refactor: 优化指标卡批量操作逻辑

This commit is contained in:
wangjiahao 2024-01-23 15:36:46 +08:00
parent 88e033ad7d
commit dc12026faf
2 changed files with 11 additions and 1 deletions

View File

@ -276,7 +276,7 @@ watch(
title="大小"
>
<misc-selector
:property-inner="propertyInnerAll['size-selector']"
:property-inner="propertyInnerAll['misc-selector']"
:themes="themes"
class="attr-selector"
:chart="chart"

View File

@ -25,6 +25,8 @@
@onTableCellChange="onTableCellChange"
@onTableTotalChange="onTableTotalChange"
@onChangeMiscStyleForm="onChangeMiscStyleForm"
@onIndicatorChange="onIndicatorChange"
@onIndicatorNameChange="onIndicatorNameChange"
/>
<common-attr
v-else-if="mixProperties && batchOptComponentInfo && batchOptComponentType !== 'UserView'"
@ -77,6 +79,14 @@ const onChangeYAxisForm = (val, prop) => {
batchOptChange('customStyle', 'yAxis', val, prop)
}
const onIndicatorChange = (val, prop) => {
batchOptChange('customAttr', 'indicator', val, prop)
}
const onIndicatorNameChange = (val, prop) => {
batchOptChange('customAttr', 'indicatorName', val, prop)
}
const onChangeMiscStyleForm = (val, prop) => {
batchOptChange('customStyle', 'misc', val, prop)
}