From 976dbe78a62bc48335c8930c6977c50f7c9ea710 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 26 Nov 2024 17:11:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=9B=B4=E5=A4=A7=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/common/CommonStyleSet.vue | 6 ++++++ .../src/custom-component/rich-text/DeRichTextView.vue | 3 ++- .../editor-style/components/DualYAxisSelectorInner.vue | 6 ++++++ .../editor/editor-style/components/FlowMapPointSelector.vue | 6 ++++++ .../editor/editor-style/components/LabelSelector.vue | 6 ++++++ .../editor/editor-style/components/LegendSelector.vue | 6 ++++++ .../editor/editor-style/components/MiscStyleSelector.vue | 6 ++++++ .../editor/editor-style/components/QuadrantSelector.vue | 6 ++++++ .../editor/editor-style/components/TitleSelector.vue | 6 ++++++ .../editor/editor-style/components/TooltipSelector.vue | 6 ++++++ .../editor/editor-style/components/XAxisSelector.vue | 6 ++++++ .../editor/editor-style/components/YAxisSelector.vue | 6 ++++++ .../editor-style/components/table/TableCellSelector.vue | 6 ++++++ .../editor-style/components/table/TableHeaderSelector.vue | 6 ++++++ 14 files changed, 80 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/custom-component/common/CommonStyleSet.vue b/core/core-frontend/src/custom-component/common/CommonStyleSet.vue index e074a77497..dae771707f 100644 --- a/core/core-frontend/src/custom-component/common/CommonStyleSet.vue +++ b/core/core-frontend/src/custom-component/common/CommonStyleSet.vue @@ -455,6 +455,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 70; i <= 300; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) const styleOptionKeyArrayPre = [ diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue index 7ad5df67f3..6747e0535e 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -164,7 +164,8 @@ const init = ref({ ' blockquote subscript superscript removeformat | table image ', toolbar_location: '/', font_formats: curFontFamily(), - fontsize_formats: '12px 14px 16px 18px 20px 22px 24px 28px 32px 36px 42px 48px 56px 72px', // 字体大小 + fontsize_formats: + '12px 14px 16px 18px 20px 22px 24px 28px 32px 36px 42px 48px 56px 72px 80px 90px 100px 110px 120px 140px 150px 170px 190px 210px', // 字体大小 menubar: false, placeholder: '', outer_placeholder: '双击输入文字', diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue index 185be345e3..368ba81bd4 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue @@ -57,6 +57,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue index aee6efc12e..dd645a7d0d 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue @@ -30,6 +30,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) const state = reactive({ diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue index c463944dd5..5b4e547679 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue @@ -219,6 +219,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue index cb00e5d8fa..3b51ca8c8b 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue @@ -71,6 +71,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscStyleSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscStyleSelector.vue index bb6f6004bb..146944385c 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscStyleSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/MiscStyleSelector.vue @@ -44,6 +44,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/QuadrantSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/QuadrantSelector.vue index d50ab591f0..26206b54cd 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/QuadrantSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/QuadrantSelector.vue @@ -73,6 +73,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue index c4a22b46ee..29898144ea 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TitleSelector.vue @@ -66,6 +66,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue index d4d21a4727..9b1dc2320f 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue @@ -213,6 +213,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/XAxisSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/XAxisSelector.vue index 30a8db75bd..b55197e655 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/XAxisSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/XAxisSelector.vue @@ -50,6 +50,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue index d75ae8989d..07355e710a 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/YAxisSelector.vue @@ -50,6 +50,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableCellSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableCellSelector.vue index 946c567f44..6b16a5b316 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableCellSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableCellSelector.vue @@ -50,6 +50,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr }) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue index 248daa3ca6..c6c9c08663 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/TableHeaderSelector.vue @@ -48,6 +48,12 @@ const fontSizeList = computed(() => { value: i }) } + for (let i = 50; i <= 200; i = i + 10) { + arr.push({ + name: i + '', + value: i + }) + } return arr })