diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue index a0bc770939..07ea81f995 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -855,14 +855,16 @@ function removeItemById(componentId) { function removeItem(index) { let item = componentData.value[index] if (item && isSameCanvas(item, canvasId.value)) { - removeItemFromPositionBox(item) - let belowItems = findBelowItems(item) - _.forEach(belowItems, function (upItem) { - let canGoUpRows = canItemGoUp(upItem) - if (canGoUpRows > 0) { - moveItemUp(upItem, canGoUpRows) - } - }) + if (isDashboard()) { + removeItemFromPositionBox(item) + let belowItems = findBelowItems(item) + _.forEach(belowItems, function (upItem) { + let canGoUpRows = canItemGoUp(upItem) + if (canGoUpRows > 0) { + moveItemUp(upItem, canGoUpRows) + } + }) + } let checkedFields = [] if (item.innerType === 'VQuery') { ;(item.propValue || []).forEach(ele => { diff --git a/core/core-frontend/src/components/data-visualization/canvas/PointShadow.vue b/core/core-frontend/src/components/data-visualization/canvas/PointShadow.vue index c9d6e71da9..8a0b2f5f2a 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/PointShadow.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/PointShadow.vue @@ -15,7 +15,7 @@ import { storeToRefs } from 'pinia' import { computed } from 'vue' const dvMainStore = dvMainStoreWithOut() -const { mousePointShadowMap } = storeToRefs(dvMainStore) +const { mousePointShadowMap, canvasStyleData } = storeToRefs(dvMainStore) defineProps({ canvasId: { type: String, @@ -25,6 +25,7 @@ defineProps({ const tipsStyleInfo = computed(() => { return { + fontSize: (16 * canvasStyleData.value.scale) / 100 + 'px', width: mousePointShadowMap.value.width + 'px', height: mousePointShadowMap.value.height + 'px' } @@ -58,6 +59,7 @@ const styleInfo = computed(() => { .point-shadow-tips { left: 0px; top: 0px; + overflow: hidden; box-sizing: border-box; z-index: 10001; display: flex; diff --git a/core/core-frontend/src/custom-component/de-tabs/Component.vue b/core/core-frontend/src/custom-component/de-tabs/Component.vue index fab42d4736..e77a2c7360 100644 --- a/core/core-frontend/src/custom-component/de-tabs/Component.vue +++ b/core/core-frontend/src/custom-component/de-tabs/Component.vue @@ -301,6 +301,7 @@ const componentMoveIn = component => { dvMainStore.setCurComponent({ component: null, index: null }) component.canvasId = element.value.id + '--' + tabItem.name dataVTabComponentAdd(component, element.value.style) + tabItem.componentData.push(component) } } }) diff --git a/core/core-frontend/src/custom-component/de-tabs/DataVComponent.vue b/core/core-frontend/src/custom-component/de-tabs/DataVComponent.vue deleted file mode 100644 index f4faa5e5f3..0000000000 --- a/core/core-frontend/src/custom-component/de-tabs/DataVComponent.vue +++ /dev/null @@ -1,523 +0,0 @@ - - - -