From b72f1157b7898b44d9ad3ea2329ce48f928cc6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Tue, 20 Dec 2022 20:00:21 +0800 Subject: [PATCH 1/9] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=94=BB?= =?UTF-8?q?=E5=B8=83=E7=BC=A9=E6=94=BE=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chartLayoutStore/chartLayoutStore.d.ts | 5 +++- .../chartLayoutStore/chartLayoutStore.ts | 8 +++++ .../ContentEdit/components/EditRule/index.vue | 30 ++++++++++++------- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git a/src/store/modules/chartLayoutStore/chartLayoutStore.d.ts b/src/store/modules/chartLayoutStore/chartLayoutStore.d.ts index abcef916..b485dd59 100644 --- a/src/store/modules/chartLayoutStore/chartLayoutStore.d.ts +++ b/src/store/modules/chartLayoutStore/chartLayoutStore.d.ts @@ -14,7 +14,8 @@ export enum ChartLayoutStoreEnum { DETAILS = 'details', Chart_TYPE = 'chartType', LAYER_TYPE = 'layerType', - PERCENTAGE = 'percentage' + PERCENTAGE = 'percentage', + RE_POSITION_CANVAS = 'rePositionCanvas' } export interface ChartLayoutType { @@ -30,4 +31,6 @@ export interface ChartLayoutType { [ChartLayoutStoreEnum.LAYER_TYPE]: LayerModeEnum // 当前正在加载的数量 [ChartLayoutStoreEnum.PERCENTAGE]: number + // 是否重置当前画布位置 + [ChartLayoutStoreEnum.RE_POSITION_CANVAS]: boolean } diff --git a/src/store/modules/chartLayoutStore/chartLayoutStore.ts b/src/store/modules/chartLayoutStore/chartLayoutStore.ts index 5aa5704e..c2b63592 100644 --- a/src/store/modules/chartLayoutStore/chartLayoutStore.ts +++ b/src/store/modules/chartLayoutStore/chartLayoutStore.ts @@ -26,6 +26,8 @@ export const useChartLayoutStore = defineStore({ layerType: LayerModeEnum.THUMBNAIL, // 当前加载数量 percentage: 0, + // 是否重置当前画布位置 + rePositionCanvas: false, // 防止值不存在 ...storageChartLayout }), @@ -47,6 +49,9 @@ export const useChartLayoutStore = defineStore({ }, getPercentage(): number { return this.percentage + }, + getRePositionCanvas(): boolean { + return this.rePositionCanvas } }, actions: { @@ -54,7 +59,10 @@ export const useChartLayoutStore = defineStore({ this.$patch(state => { state[key] = value }) + // 存储本地 setLocalStorage(GO_CHART_LAYOUT_STORE, this.$state) + // 这里需要标记重置画布位置 + this.rePositionCanvas = true; // 重新计算拖拽区域缩放比例 setTimeout(() => { chartEditStore.computedScale() diff --git a/src/views/chart/ContentEdit/components/EditRule/index.vue b/src/views/chart/ContentEdit/components/EditRule/index.vue index 13078ec4..184dec52 100644 --- a/src/views/chart/ContentEdit/components/EditRule/index.vue +++ b/src/views/chart/ContentEdit/components/EditRule/index.vue @@ -35,8 +35,11 @@ import { ref, reactive, onMounted, toRefs, watch, onUnmounted, computed } from ' import { listen } from 'dom-helpers' import { useDesignStore } from '@/store/modules/designStore/designStore' import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' +import { useChartLayoutStore } from '@/store/modules/chartLayoutStore/chartLayoutStore' +import { ChartLayoutStoreEnum } from '@/store/modules/chartLayoutStore/chartLayoutStore.d' const chartEditStore = useChartEditStore() +const chartLayoutStore = useChartLayoutStore() const designStore = useDesignStore() const thick = 20 @@ -84,6 +87,7 @@ const themeColor = computed(() => { return designStore.getAppTheme }) +// 处理鼠标拖动 const handleWheel = (e: any) => { if (e.ctrlKey || e.metaKey) { e.preventDefault() @@ -102,6 +106,7 @@ const handleWheel = (e: any) => { } } +// 滚动条处理 const handleScroll = () => { if (!$app.value) return const screensRect = $app.value.getBoundingClientRect() @@ -111,6 +116,7 @@ const handleScroll = () => { startY.value = (screensRect.top + thick - canvasRect.top) / scale.value } +// 拖拽处理 const dragCanvas = (e: any) => { e.preventDefault() e.stopPropagation() @@ -148,6 +154,7 @@ const dragCanvas = (e: any) => { }) } +// 计算画布大小 const canvasBox = () => { const layoutDom = document.getElementById('go-chart-edit-layout') if (layoutDom) { @@ -162,7 +169,7 @@ const canvasBox = () => { } } -// 在位置不动的情况下重绘标尺 +// 重绘标尺 const reDraw = () => { sketchRuleReDraw.value = false setTimeout(() => { @@ -170,12 +177,6 @@ const reDraw = () => { }, 10) } -watch( - () => designStore.getDarkTheme, - () => { - reDraw() - } -) // 滚动居中 const canvasPosCenter = () => { @@ -186,13 +187,21 @@ const canvasPosCenter = () => { $app.value.scrollTop = containerHeight / 2 - height / 2 } -// 处理标尺重制大小 +// 处理主题变化 +watch( + () => designStore.getDarkTheme, + () => { + reDraw() + } +) + +// // 处理标尺重制大小 watch( () => scale.value, (newValue, oldValue) => { - if (oldValue !== newValue) { + if (oldValue !== newValue && chartLayoutStore.getRePositionCanvas) { + chartLayoutStore.setItemUnHandle(ChartLayoutStoreEnum.RE_POSITION_CANVAS, false) handleScroll() - chartEditStore.setScale(newValue) setTimeout(() => { canvasPosCenter() }, 500) @@ -200,6 +209,7 @@ watch( } ) +// 处理鼠标样式 watch( () => isPressSpace.value, newValue => { From 9043fc9493b94f511c1681fc99365582687acffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Thu, 22 Dec 2022 00:51:25 +0800 Subject: [PATCH 2/9] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=94=BB?= =?UTF-8?q?=E5=B8=83=E6=94=BE=E5=A4=A7=E7=BC=A9=E5=B0=8F=E7=9A=84=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chart/ContentEdit/components/EditRule/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/chart/ContentEdit/components/EditRule/index.vue b/src/views/chart/ContentEdit/components/EditRule/index.vue index 184dec52..6373dca3 100644 --- a/src/views/chart/ContentEdit/components/EditRule/index.vue +++ b/src/views/chart/ContentEdit/components/EditRule/index.vue @@ -204,7 +204,10 @@ watch( handleScroll() setTimeout(() => { canvasPosCenter() + reDraw() }, 500) + } else { + reDraw() } } ) From 6c0f488624c79c41c7fc862e1116bc1594123c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Thu, 22 Dec 2022 01:13:40 +0800 Subject: [PATCH 3/9] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E6=97=B6=E8=BE=85=E5=8A=A9=E7=BA=BF=E7=9A=84=E6=B8=B2?= =?UTF-8?q?=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chart/ContentEdit/components/EditRule/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/chart/ContentEdit/components/EditRule/index.vue b/src/views/chart/ContentEdit/components/EditRule/index.vue index 6373dca3..e200bee7 100644 --- a/src/views/chart/ContentEdit/components/EditRule/index.vue +++ b/src/views/chart/ContentEdit/components/EditRule/index.vue @@ -37,6 +37,7 @@ import { useDesignStore } from '@/store/modules/designStore/designStore' import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' import { useChartLayoutStore } from '@/store/modules/chartLayoutStore/chartLayoutStore' import { ChartLayoutStoreEnum } from '@/store/modules/chartLayoutStore/chartLayoutStore.d' +import throttle from 'lodash/throttle' const chartEditStore = useChartEditStore() const chartLayoutStore = useChartLayoutStore() @@ -177,7 +178,6 @@ const reDraw = () => { }, 10) } - // 滚动居中 const canvasPosCenter = () => { const { width: containerWidth, height: containerHeight } = $container.value.getBoundingClientRect() @@ -205,9 +205,9 @@ watch( setTimeout(() => { canvasPosCenter() reDraw() - }, 500) + }, 400) } else { - reDraw() + throttle(reDraw, 20) } } ) From 3a391665d2c54c79541207b1d5f1eb609456cfa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Thu, 22 Dec 2022 01:31:42 +0800 Subject: [PATCH 4/9] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=A1=86?= =?UTF-8?q?=E9=80=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chart/ContentEdit/components/EditSelect/index.vue | 4 ++-- src/views/chart/ContentEdit/hooks/useDrag.hook.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/chart/ContentEdit/components/EditSelect/index.vue b/src/views/chart/ContentEdit/components/EditSelect/index.vue index 1a8df6c7..90fc086b 100644 --- a/src/views/chart/ContentEdit/components/EditSelect/index.vue +++ b/src/views/chart/ContentEdit/components/EditSelect/index.vue @@ -93,7 +93,7 @@ watch( position: absolute; width: 100%; height: 100%; - border-radius: 10px; + border-radius: 5px; overflow: hidden; } .select-border { @@ -107,7 +107,7 @@ watch( .select-background { top: 2px; left: 2px; - opacity: 0.03; + opacity: 0.2; background-color: v-bind('themeColor'); } } diff --git a/src/views/chart/ContentEdit/hooks/useDrag.hook.ts b/src/views/chart/ContentEdit/hooks/useDrag.hook.ts index 82fce985..b87bdd5f 100644 --- a/src/views/chart/ContentEdit/hooks/useDrag.hook.ts +++ b/src/views/chart/ContentEdit/hooks/useDrag.hook.ts @@ -152,7 +152,7 @@ export const mousedownBoxSelect = (e: MouseEvent, item?: CreateComponentType | C } } }) - }, 20) + }, 30) // 鼠标抬起 const mouseup = () => { From f0bbddf4e7475587ee29a78c9e604a4edf599418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Thu, 22 Dec 2022 14:51:51 +0800 Subject: [PATCH 5/9] =?UTF-8?q?build:=20=E9=99=90=E5=88=B6node=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index bc0f5a13..76306284 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,9 @@ { "name": "go-view", "version": "1.1.11", + "engines": { + "node": ">=16.14 <18.0.0" + }, "scripts": { "dev": "vite --host", "build": "vue-tsc --noEmit && vite build", From 5b4934ffb85900325495fbeb5f86065eaea7d029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Thu, 22 Dec 2022 19:43:24 +0800 Subject: [PATCH 6/9] =?UTF-8?q?fix:=20=E8=A1=A5=E5=85=85=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=E7=9A=84flow=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .workflow/branch-pipeline.yml | 51 +++++++++++++++++++++++++++++++++++ .workflow/master-pipeline.yml | 49 +++++++++++++++++++++++++++++++++ .workflow/pr-pipeline.yml | 36 +++++++++++++++++++++++++ 3 files changed, 136 insertions(+) create mode 100644 .workflow/branch-pipeline.yml create mode 100644 .workflow/master-pipeline.yml create mode 100644 .workflow/pr-pipeline.yml diff --git a/.workflow/branch-pipeline.yml b/.workflow/branch-pipeline.yml new file mode 100644 index 00000000..1128d8a4 --- /dev/null +++ b/.workflow/branch-pipeline.yml @@ -0,0 +1,51 @@ +version: '1.0' +name: branch-pipeline +displayName: BranchPipeline +stages: + - stage: + name: compile + displayName: 编译 + steps: + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 + nodeVersion: 14.16.0 + # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 + commands: + - npm install && rm -rf ./dist && npm run build + # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 + artifacts: + # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 + - name: BUILD_ARTIFACT + # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 + path: + - ./dist + - step: publish@general_artifacts + name: publish_general_artifacts + displayName: 上传制品 + # 上游构建任务定义的产物名,默认BUILD_ARTIFACT + dependArtifact: BUILD_ARTIFACT + # 上传到制品库时的制品命名,默认output + artifactName: output + dependsOn: build_nodejs + - stage: + name: release + displayName: 发布 + steps: + - step: publish@release_artifacts + name: publish_release_artifacts + displayName: '发布' + # 上游上传制品任务的产出 + dependArtifact: output + # 发布制品版本号 + version: '1.0.0.0' + # 是否开启版本号自增,默认开启 + autoIncrement: true +triggers: + push: + branches: + exclude: + - master + include: + - .* diff --git a/.workflow/master-pipeline.yml b/.workflow/master-pipeline.yml new file mode 100644 index 00000000..8faf2bcc --- /dev/null +++ b/.workflow/master-pipeline.yml @@ -0,0 +1,49 @@ +version: '1.0' +name: master-pipeline +displayName: MasterPipeline +stages: + - stage: + name: compile + displayName: 编译 + steps: + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 + nodeVersion: 14.16.0 + # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 + commands: + - npm install && rm -rf ./dist && npm run build + # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 + artifacts: + # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 + - name: BUILD_ARTIFACT + # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 + path: + - ./dist + - step: publish@general_artifacts + name: publish_general_artifacts + displayName: 上传制品 + # 上游构建任务定义的产物名,默认BUILD_ARTIFACT + dependArtifact: BUILD_ARTIFACT + # 上传到制品库时的制品命名,默认output + artifactName: output + dependsOn: build_nodejs + - stage: + name: release + displayName: 发布 + steps: + - step: publish@release_artifacts + name: publish_release_artifacts + displayName: '发布' + # 上游上传制品任务的产出 + dependArtifact: output + # 发布制品版本号 + version: '1.0.0.0' + # 是否开启版本号自增,默认开启 + autoIncrement: true +triggers: + push: + branches: + include: + - master diff --git a/.workflow/pr-pipeline.yml b/.workflow/pr-pipeline.yml new file mode 100644 index 00000000..1a05dd09 --- /dev/null +++ b/.workflow/pr-pipeline.yml @@ -0,0 +1,36 @@ +version: '1.0' +name: pr-pipeline +displayName: PRPipeline +stages: + - stage: + name: compile + displayName: 编译 + steps: + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + # 支持8.16.2、10.17.0、12.16.1、14.16.0、15.12.0五个版本 + nodeVersion: 14.16.0 + # 构建命令:安装依赖 -> 清除上次打包产物残留 -> 执行构建 【请根据项目实际产出进行填写】 + commands: + - npm install && rm -rf ./dist && npm run build + # 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除 + artifacts: + # 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址 + - name: BUILD_ARTIFACT + # 构建产物获取路径,是指代码编译完毕之后构建物的所在路径 + path: + - ./dist + - step: publish@general_artifacts + name: publish_general_artifacts + displayName: 上传制品 + # 上游构建任务定义的产物名,默认BUILD_ARTIFACT + dependArtifact: BUILD_ARTIFACT + # 上传到制品库时的制品命名,默认output + artifactName: output + dependsOn: build_nodejs +triggers: + pr: + branches: + include: + - master From 28e8cb4bcfbf15cef538e2f0b883d524c37e1d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=98=89=E5=A8=81?= Date: Mon, 26 Dec 2022 17:37:29 +0800 Subject: [PATCH 7/9] =?UTF-8?q?fix:=20=E8=83=B6=E5=9B=8A=E6=9F=B1=E5=9B=BE?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=97=B6=E6=95=B0=E6=8D=AE=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=8D=E6=9B=B4=E6=96=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Charts/Bars/CapsuleChart/index.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/packages/components/Charts/Bars/CapsuleChart/index.vue b/src/packages/components/Charts/Bars/CapsuleChart/index.vue index 87971d01..c5101c21 100644 --- a/src/packages/components/Charts/Bars/CapsuleChart/index.vue +++ b/src/packages/components/Charts/Bars/CapsuleChart/index.vue @@ -111,9 +111,14 @@ watch( } ) -const calcData = (data: any) => { +const calcData = (data: any,type?:string) => { mergeConfig(props.chartConfig.option) - calcCapsuleLengthAndLabelData() + if(type=="preview"){ + calcCapsuleLengthAndLabelData(data) + }else{ + calcCapsuleLengthAndLabelData(state.mergedConfig.dataset) + } + } const mergeConfig = (data: any) => { @@ -121,8 +126,8 @@ const mergeConfig = (data: any) => { } // 数据解析 -const calcCapsuleLengthAndLabelData = () => { - const { source } = state.mergedConfig.dataset +const calcCapsuleLengthAndLabelData = (dataset:any) => { + const { source } = dataset if (!source.length) return state.capsuleItemHeight = numberSizeHandle(state.mergedConfig.itemHeight) @@ -151,7 +156,7 @@ onMounted(() => { // 预览 useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => { - calcData(newData) + calcData(newData,"preview") }) From 734c428a6b9eaa9f2f1498acf0f6c9f4812bb9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Sat, 31 Dec 2022 20:33:21 +0800 Subject: [PATCH 8/9] =?UTF-8?q?style:=20=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Charts/Bars/CapsuleChart/index.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/packages/components/Charts/Bars/CapsuleChart/index.vue b/src/packages/components/Charts/Bars/CapsuleChart/index.vue index c5101c21..135ef1d0 100644 --- a/src/packages/components/Charts/Bars/CapsuleChart/index.vue +++ b/src/packages/components/Charts/Bars/CapsuleChart/index.vue @@ -111,14 +111,13 @@ watch( } ) -const calcData = (data: any,type?:string) => { +const calcData = (data: any, type?: string) => { mergeConfig(props.chartConfig.option) - if(type=="preview"){ + if (type == 'preview') { calcCapsuleLengthAndLabelData(data) - }else{ + } else { calcCapsuleLengthAndLabelData(state.mergedConfig.dataset) } - } const mergeConfig = (data: any) => { @@ -126,7 +125,7 @@ const mergeConfig = (data: any) => { } // 数据解析 -const calcCapsuleLengthAndLabelData = (dataset:any) => { +const calcCapsuleLengthAndLabelData = (dataset: any) => { const { source } = dataset if (!source.length) return @@ -156,7 +155,7 @@ onMounted(() => { // 预览 useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => { - calcData(newData,"preview") + calcData(newData, 'preview') }) From c1af34e1e970fc19e1bc5420d175c89a52546aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Sat, 31 Dec 2022 20:50:08 +0800 Subject: [PATCH 9/9] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=88=86=E7=BB=84=E5=90=8E=EF=BC=8C=E9=A2=84=E8=A7=88=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/preview/components/PreviewRenderList/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/preview/components/PreviewRenderList/index.vue b/src/views/preview/components/PreviewRenderList/index.vue index 8ed703d1..ee5ea39c 100644 --- a/src/views/preview/components/PreviewRenderList/index.vue +++ b/src/views/preview/components/PreviewRenderList/index.vue @@ -2,7 +2,7 @@
.chart-item { position: absolute; - overflow: hidden; + &.hidden { + overflow: hidden; + } }