applies formatting and linting
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { computed, ref, useTemplateRef, watch } from 'vue';
|
||||
import NumericText from '@/components/NumericText.vue';
|
||||
|
||||
const props = defineProps<{
|
||||
defineProps<{
|
||||
x: number;
|
||||
y: number;
|
||||
value: number;
|
||||
@@ -13,7 +13,7 @@ const y_offset = computed(() => 9);
|
||||
|
||||
const labelRef = useTemplateRef<SVGTextElement>('label-ref');
|
||||
|
||||
const value_text = ref("");
|
||||
const value_text = ref('');
|
||||
const label_width = ref(0);
|
||||
|
||||
watch(
|
||||
@@ -39,7 +39,11 @@ function update_value_text(text: string) {
|
||||
:height="16 + background_offset * 2"
|
||||
></rect>
|
||||
<text ref="label-ref" :x="x" :y="y">
|
||||
<NumericText :value="value" :max_width="6" @update="update_value_text"></NumericText>
|
||||
<NumericText
|
||||
:value="value"
|
||||
:max_width="6"
|
||||
@update="update_value_text"
|
||||
></NumericText>
|
||||
</text>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user