mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 12:03:05 +08:00
fix: 修复图表边框设置不好用问题
This commit is contained in:
parent
b01a3ff4f6
commit
e1f29b126d
@ -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"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user