diff --git a/core/core-frontend/src/store/modules/data-visualization/copy.ts b/core/core-frontend/src/store/modules/data-visualization/copy.ts index 071335bde0..e0bb75871f 100644 --- a/core/core-frontend/src/store/modules/data-visualization/copy.ts +++ b/core/core-frontend/src/store/modules/data-visualization/copy.ts @@ -200,7 +200,12 @@ function deepCopyHelper(data, idMap) { const newComponentId = generateID() idMap[data.id] = newComponentId result.id = newComponentId + // 复制清理移动端样式 result.inMobile = false + delete result.mStyle + delete result.mEvents + delete result.mPropValue + delete result.mCommonBackgroud if (result.component === 'Group') { result.propValue.forEach((component, i) => { result.propValue[i] = deepCopyHelper(component, idMap) diff --git a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts index 154a6726df..151b26e04c 100644 --- a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts +++ b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts @@ -404,12 +404,15 @@ export const dvMainStore = defineStore('dataVisualization', { Object.keys(idMap).forEach(function (oldComponentId) { if (canvasViewInfoPre[oldComponentId]) { const newComponentId = idMap[oldComponentId] - _this.canvasViewInfo[newComponentId] = { + const newView = { ...deepCopy(canvasViewInfoPre[oldComponentId]), id: newComponentId, linkageActive: false, jumpActive: false } + newView['customAttrMobile'] = null + newView['customStyleMobile'] = null + _this.canvasViewInfo[newComponentId] = newView } }) } diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue index abe39b98e2..cf492ff552 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue @@ -30,7 +30,7 @@ import CommonEvent from '@/custom-component/common/CommonEvent.vue' import CommonBorderSetting from '@/custom-component/common/CommonBorderSetting.vue' const dvMainStore = dvMainStoreWithOut() -const { dvInfo, batchOptStatus, curComponent } = storeToRefs(dvMainStore) +const { dvInfo, batchOptStatus, mobileInPc } = storeToRefs(dvMainStore) const { t } = useI18n() const state = { @@ -445,8 +445,9 @@ watch( @onLabelChange="onLabelChange" /> + // tooltip 为鼠标悬停 移动端看不到效果 不再单独配置 { activeTabbar.value = wsCache.get('activeTabbar') || 'home'