diff --git a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue index 8b28c8f476..cde976af18 100644 --- a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue +++ b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue @@ -195,7 +195,8 @@ const DETAIL_CHART_ATTR: DeepPartial = { } const state = reactive({ - scale: 0.5 + scale: 0.5, + componentSourceType: null }) const DETAIL_TABLE_ATTR: DeepPartial = { senior: { @@ -209,7 +210,11 @@ const DETAIL_TABLE_ATTR: DeepPartial = { const authShow = computed(() => editMode.value === 'edit' || dvInfo.value.weight > 3) const customExport = computed(() => { - const style = canvasStyleData.value ? getCanvasStyle(canvasStyleData.value, 'canvas-main') : {} + const style = + canvasStyleData.value && + (optType.value === 'enlarge' || state.componentSourceType?.includes('table')) + ? getCanvasStyle(canvasStyleData.value, 'canvas-main') + : {} if (downLoading.value) { const bashStyle = pixel.value.split(' * ') style['width'] = bashStyle[0] + 'px!important' @@ -263,6 +268,7 @@ const dialogInit = (canvasStyle, view, item, opt, params = { scale: 0.5 }) => { sourceViewType.value = view.type optType.value = opt dialogShow.value = true + state.componentSourceType = view.type viewInfo.value = deepCopy(view) as DeepPartial viewInfo.value.customStyle.text.show = false config.value = deepCopy(item)