refactor: 批量操作优化

This commit is contained in:
wangjiahao 2024-01-23 15:58:51 +08:00
parent dc12026faf
commit 18cfe958ff
3 changed files with 5 additions and 3 deletions

View File

@ -569,7 +569,10 @@ export const dvMainStore = defineStore('dataVisualization', {
mixPropertiesTemp = deepCopy(componentInfo.properties)
mixPropertyInnerTemp = deepCopy(componentInfo.propertyInner)
}
batchAttachInfo.type = componentInfo.value
batchAttachInfo.type =
batchAttachInfo.type === null || batchAttachInfo.type === componentInfo.value
? componentInfo.value
: 'mix'
}
mixPropertiesTemp.forEach(property => {
if (mixPropertyInnerTemp[property]) {

View File

@ -271,7 +271,7 @@ watch(
</collapse-switch-item>
<el-collapse-item
:effect="themes"
v-if="showProperties('misc-selector')"
v-if="showProperties('misc-selector') && !chart.type.includes('mix')"
name="size"
title="大小"
>

View File

@ -210,7 +210,6 @@ onMounted(() => {
:model="state.labelForm"
label-position="top"
>
<el-row v-if="batchOptStatus" style="margin-bottom: 12px"> 无其他公共属性 </el-row>
<el-space>
<el-form-item
class="form-item"