NEZ-1173 fix: 升级 组件 解决无法保存已经改变线条的位置

This commit is contained in:
zhangyu
2021-11-05 17:08:25 +08:00
parent d227362bfe
commit b699286d5e
3 changed files with 16 additions and 11 deletions

View File

@@ -691,7 +691,7 @@
controls-position="right"
size="small" name="x"
class="input"
v-model.number="selection.pen.font.fontSize"
v-model.number="selection.pen.fontSize"
:readonly="readonly"
required
@change="onChange()"></el-input-number>
@@ -711,7 +711,7 @@
<el-select :placeholder="$t('el.select.placeholder')" :popper-append-to-body="true"
class="right-box-row-with-btn no-style-class" popper-class="chart-box-dropdown-small"
size="mini"
v-model="selection.pen.font.textAlign" value-key="chartType" @change="onChange">
v-model="selection.pen.textAlign" value-key="chartType" @change="onChange">
<el-option :key="item.id" :label="item.name" :value="item.id" v-for="item in textAlignOptions">
<span class="panel-dropdown-label-txt">{{ item.name }}</span>
</el-option>
@@ -725,7 +725,7 @@
<el-select :placeholder="$t('el.select.placeholder')" :popper-append-to-body="true"
class="right-box-row-with-btn no-style-class" popper-class="chart-box-dropdown-small"
size="mini"
v-model="selection.pen.font.textBaseline" value-key="chartType" @change="onChange">
v-model="selection.pen.textBaseline" value-key="chartType" @change="onChange">
<el-option :key="item.id" :label="item.name" :value="item.id" v-for="item in textBaselineOptions">
<span class="panel-dropdown-label-txt">{{ item.name }}</span>
</el-option>
@@ -1683,7 +1683,7 @@ export default {
}
}
if (name === 'fontColor') {
this.selection.pen.font.color = this.colorRGBtoHex(val)
// this.selection.pen.font.color = this.colorRGBtoHex(val)
}
this.selection.pen.data[name] = this.colorRGBtoHex(val)
this.onChange()