fix: 修复图表边框设置不好用问题

This commit is contained in:
wangjiahao 2024-08-26 11:24:28 +08:00
parent b01a3ff4f6
commit e1f29b126d

View File

@ -205,6 +205,15 @@ const onBackgroundChange = (val, prop) => {
state.initReady && emit('onBackgroundChange', val, prop) state.initReady && emit('onBackgroundChange', val, prop)
} }
const onActiveChange = val => {
state.initReady &&
emit('onStyleAttrChange', {
custom: 'style',
property: 'active',
value: commonBorderPop.value.borderActive
})
}
const onStyleAttrChange = ({ key, value }) => { const onStyleAttrChange = ({ key, value }) => {
state.initReady && emit('onStyleAttrChange', { custom: 'style', property: key, value: value }) state.initReady && emit('onStyleAttrChange', { custom: 'style', property: key, value: value })
} }
@ -338,9 +347,9 @@ watch(
<collapse-switch-item <collapse-switch-item
v-if="showProperties('border-style') && commonBorderPop" v-if="showProperties('border-style') && commonBorderPop"
v-model="commonBorderPop.borderActive" v-model="commonBorderPop.borderActive"
@modelChange="val => onStyleAttrChange({ key: 'borderActive', value: val })" @modelChange="val => onActiveChange(val)"
:themes="themes" :themes="themes"
title="边框" :title="'边框'"
name="borderSetting" name="borderSetting"
class="common-style-area" class="common-style-area"
> >