Merge pull request #13755 from dataease/pr@dev-v2@fix_border

fix: 修复边框样式改变时没有主动激活保存按钮问题
This commit is contained in:
王嘉豪
2024-12-03 11:09:52 +08:00
committed by GitHub

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',