Skip to content

Commit 2ad508c

Browse files
authored
Merge pull request dataease#11739 from dataease/pr@dev-v2@fix_border
fix: 修复图表边框设置不好用问题
2 parents ea5935e + e1f29b1 commit 2ad508c

File tree

1 file changed

+11
-2
lines changed
  • core/core-frontend/src/views/chart/components/editor/editor-style

1 file changed

+11
-2
lines changed

core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,15 @@ const onBackgroundChange = (val, prop) => {
205205
state.initReady && emit('onBackgroundChange', val, prop)
206206
}
207207
208+
const onActiveChange = val => {
209+
state.initReady &&
210+
emit('onStyleAttrChange', {
211+
custom: 'style',
212+
property: 'active',
213+
value: commonBorderPop.value.borderActive
214+
})
215+
}
216+
208217
const onStyleAttrChange = ({ key, value }) => {
209218
state.initReady && emit('onStyleAttrChange', { custom: 'style', property: key, value: value })
210219
}
@@ -338,9 +347,9 @@ watch(
338347
<collapse-switch-item
339348
v-if="showProperties('border-style') && commonBorderPop"
340349
v-model="commonBorderPop.borderActive"
341-
@modelChange="val => onStyleAttrChange({ key: 'borderActive', value: val })"
350+
@modelChange="val => onActiveChange(val)"
342351
:themes="themes"
343-
title="边框"
352+
:title="'边框'"
344353
name="borderSetting"
345354
class="common-style-area"
346355
>

0 commit comments

Comments
 (0)