From 0841e632c2f5bbaad2ff4b28c3b1c2cbfcec110d 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, 8 Oct 2022 20:32:36 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Pages/ChartItemSetting/StylesSetting.vue | 4 +- .../components/CanvasPage/index.vue | 178 ++++++++++-------- src/views/preview/utils/style.ts | 2 +- 3 files changed, 97 insertions(+), 87 deletions(-) diff --git a/src/components/Pages/ChartItemSetting/StylesSetting.vue b/src/components/Pages/ChartItemSetting/StylesSetting.vue index 661970cc..672755c4 100644 --- a/src/components/Pages/ChartItemSetting/StylesSetting.vue +++ b/src/components/Pages/ChartItemSetting/StylesSetting.vue @@ -157,14 +157,12 @@ const props = defineProps({ } }) -// 百分比格式化persen +// 百分比格式化 person const sliderFormatTooltip = (v: string) => { - // @ts-ignore return `${(parseFloat(v) * 100).toFixed(0)}%` } // 角度格式化 const degFormatTooltip = (v: string) => { - // @ts-ignore return `${v}deg` } diff --git a/src/views/chart/ContentConfigurations/components/CanvasPage/index.vue b/src/views/chart/ContentConfigurations/components/CanvasPage/index.vue index 040823e1..5d4bcc23 100644 --- a/src/views/chart/ContentConfigurations/components/CanvasPage/index.vue +++ b/src/views/chart/ContentConfigurations/components/CanvasPage/index.vue @@ -30,17 +30,11 @@ :onBeforeUpload="beforeUploadHandle" > - 背景 + 背景
- 背景图需小于 {{ backgroundImageSize }}M ,格式为 png/jpg/gif - 的文件 + 背景图需小于 {{ backgroundImageSize }}M ,格式为 png/jpg/gif 的文件
@@ -48,43 +42,52 @@ - 背景色 - + 背景颜色 +
+ +
- 颜色应用 - 应用类型 + + :options="selectColorOptions" + @update:value="selectColorValueHandle" + /> 背景控制 - 清除背景图 - 清除颜色 + + 清除背景 + + + 清除颜色 + 预览方式 - + @click="selectPreviewType(item.key)" + > @@ -97,7 +100,7 @@ - + @@ -123,7 +126,7 @@