|
@@ -48,7 +48,7 @@
|
|
v-model.number="data.rect.x"
|
|
v-model.number="data.rect.x"
|
|
style="width: 80px"
|
|
style="width: 80px"
|
|
:format="decimalPlaces"
|
|
:format="decimalPlaces"
|
|
- @change="changeValue('x')"
|
|
|
|
|
|
+ @change="changeRectValue('x')"
|
|
/>
|
|
/>
|
|
<t-icon name="link" class="hidden ml-4" />
|
|
<t-icon name="link" class="hidden ml-4" />
|
|
<t-input
|
|
<t-input
|
|
@@ -58,7 +58,7 @@
|
|
v-model.number="data.rect.y"
|
|
v-model.number="data.rect.y"
|
|
style="width: 80px"
|
|
style="width: 80px"
|
|
:format="decimalPlaces"
|
|
:format="decimalPlaces"
|
|
- @change="changeValue('y')"
|
|
|
|
|
|
+ @change="changeRectValue('y')"
|
|
/>
|
|
/>
|
|
<t-input
|
|
<t-input
|
|
class="ml-16"
|
|
class="ml-16"
|
|
@@ -84,7 +84,7 @@
|
|
min="1"
|
|
min="1"
|
|
style="width: 80px"
|
|
style="width: 80px"
|
|
:format="decimalPlaces"
|
|
:format="decimalPlaces"
|
|
- @change="changeValue('width')"
|
|
|
|
|
|
+ @change="changeRectValue('width')"
|
|
/>
|
|
/>
|
|
<t-tooltip v-if="data.pen.ratio" content="固定比例" placement="top">
|
|
<t-tooltip v-if="data.pen.ratio" content="固定比例" placement="top">
|
|
<t-icon
|
|
<t-icon
|
|
@@ -109,7 +109,7 @@
|
|
min="1"
|
|
min="1"
|
|
style="width: 80px"
|
|
style="width: 80px"
|
|
:format="decimalPlaces"
|
|
:format="decimalPlaces"
|
|
- @change="changeValue('height')"
|
|
|
|
|
|
+ @change="changeRectValue('height')"
|
|
/>
|
|
/>
|
|
|
|
|
|
<t-input
|
|
<t-input
|
|
@@ -1111,6 +1111,12 @@ const changeValue = (prop: string) => {
|
|
updatePen(data.pen, prop);
|
|
updatePen(data.pen, prop);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const changeRectValue = (prop: string) => {
|
|
|
|
+ data.rect.id = data.pen.id;
|
|
|
|
+ data.rect.ratio = data.pen.ratio;
|
|
|
|
+ updatePen(data.rect, prop);
|
|
|
|
+};
|
|
|
|
+
|
|
const onFontPopupVisible = (val: boolean) => {
|
|
const onFontPopupVisible = (val: boolean) => {
|
|
data.fontFamilyPopupVisible = val;
|
|
data.fontFamilyPopupVisible = val;
|
|
};
|
|
};
|