+
+ {{ t('chart.text_pos_right') }}
+
+
@@ -173,6 +285,7 @@ const emits = defineEmits(['onTextChange'])
const styleMounted = ref({
opacity: 1,
fontSize: 22,
+ activeFontSize: 22,
fontWeight: 'normal',
fontStyle: 'normal',
textAlign: 'center',
@@ -237,8 +350,8 @@ const checkItalic = () => {
changeStyle()
}
-function setPosition(p: 'left' | 'center' | 'right') {
- styleForm.value.textAlign = p
+function setPosition(key, p: 'left' | 'center' | 'right') {
+ styleForm.value[key] = p
changeStyle()
}