fix: 修复边框样式改变时没有主动激活保存按钮问题

This commit is contained in:
wangjiahao
2024-12-03 11:08:59 +08:00
parent 18d4bb9ec7
commit 1b2bc046a8

View File

@@ -28,6 +28,8 @@ import FlowMapLineSelector from '@/views/chart/components/editor/editor-style/co
import FlowMapPointSelector from '@/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue'
import CommonEvent from '@/custom-component/common/CommonEvent.vue'
import CommonBorderSetting from '@/custom-component/common/CommonBorderSetting.vue'
import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot'
const snapshotStore = snapshotStoreWithOut()
const dvMainStore = dvMainStoreWithOut()
const { dvInfo, batchOptStatus, mobileInPc } = storeToRefs(dvMainStore)
@@ -202,10 +204,12 @@ const onBasicStyleChange = (val, prop) => {
}
const onBackgroundChange = (val, prop) => {
snapshotStore.recordSnapshotCache()
state.initReady && emit('onBackgroundChange', val, prop)
}
const onActiveChange = val => {
snapshotStore.recordSnapshotCache()
state.initReady &&
emit('onStyleAttrChange', {
custom: 'style',