File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" input-inner vector " >
2
+ <div class =" input-inner text " >
3
3
<div class =" fields" >
4
4
<span class =" input-title" >{{ t("data.main.text") }}</span >
5
5
<s-text-field
44
44
45
45
<script setup lang="ts">
46
46
import { PrivateDataTypes } from " @/types/data" ;
47
- import { ref , toRef } from " vue" ;
47
+ import { ref , toRef , watch } from " vue" ;
48
48
import { useI18n } from " vue-i18n" ;
49
49
import { I18nSchema } from " @/i18n" ;
50
50
const { t } = useI18n <{ message: I18nSchema }>();
@@ -62,11 +62,14 @@ import ColorPicker from "./subblocks/colorPicker.vue";
62
62
63
63
const locationX = ref <number | " " >(self .value .location [0 ]);
64
64
const locationY = ref <number | " " >(self .value .location [1 ]);
65
+
66
+ watch (locationX , (val ) => (self .value .location [0 ] = val || 0 ));
67
+ watch (locationY , (val ) => (self .value .location [1 ] = val || 0 ));
65
68
</script >
66
69
67
70
<style lang="scss">
68
71
.text-input-box {
69
72
width : 100% ;
70
73
font-size : 18px ;
71
74
}
72
- </style >
75
+ </style >
You can’t perform that action at this time.
0 commit comments