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 11<template >
2- <div class =" input-inner vector " >
2+ <div class =" input-inner text " >
33 <div class =" fields" >
44 <span class =" input-title" >{{ t("data.main.text") }}</span >
55 <s-text-field
4444
4545<script setup lang="ts">
4646import { PrivateDataTypes } from " @/types/data" ;
47- import { ref , toRef } from " vue" ;
47+ import { ref , toRef , watch } from " vue" ;
4848import { useI18n } from " vue-i18n" ;
4949import { I18nSchema } from " @/i18n" ;
5050const { t } = useI18n <{ message: I18nSchema }>();
@@ -62,11 +62,14 @@ import ColorPicker from "./subblocks/colorPicker.vue";
6262
6363const locationX = ref <number | " " >(self .value .location [0 ]);
6464const 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 ));
6568 </script >
6669
6770<style lang="scss">
6871.text-input-box {
6972 width : 100% ;
7073 font-size : 18px ;
7174}
72- </style >
75+ </style >
You can’t perform that action at this time.
0 commit comments