From 86d92266ac393be82192160470617c55b146396a Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 26 Nov 2024 10:14:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E6=A8=AA=E5=90=91?= =?UTF-8?q?=E6=9F=B1=E7=8A=B6=E5=9B=BE=E7=9A=84=E6=A8=AA=E8=BD=B4=E7=BB=B4?= =?UTF-8?q?=E5=BA=A6=E6=98=BE=E7=A4=BA=E5=AD=97=E7=AC=A6=E6=95=B0=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=20#13161=20#12639?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/en.ts | 3 +- core/core-frontend/src/locales/tw.ts | 3 +- core/core-frontend/src/locales/zh-CN.ts | 3 +- .../src/models/chart/chart-style.d.ts | 4 + .../editor-style/components/XAxisSelector.vue | 17 ++++ .../editor-style/components/YAxisSelector.vue | 16 ++++ .../chart/components/editor/util/chart.ts | 6 +- .../js/panel/charts/bar/bidirectional-bar.ts | 2 + .../js/panel/charts/bar/horizontal-bar.ts | 2 + .../js/panel/charts/bar/progress-bar.ts | 2 + .../js/panel/charts/bar/range-bar.ts | 2 + .../js/panel/charts/bar/waterfall.ts | 2 + .../components/js/panel/common/common_antv.ts | 88 +++++++++++++++++++ 13 files changed, 145 insertions(+), 5 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index 134160112e..2d592f6fd4 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -1849,7 +1849,8 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr central_point: 'center point', full_display: 'full display', show_hover_style: 'show mouse hover style', - merge_cells: 'merge cells' + merge_cells: 'merge cells', + length_limit: 'length limit' }, dataset: { scope_edit: 'only effective when editing', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index 05604b38e0..9ec10d0581 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -1809,7 +1809,8 @@ export default { central_point: '中心點', full_display: '全量顯示', show_hover_style: '顯示滑鼠懸浮樣式', - merge_cells: '合併儲存格' + merge_cells: '合併儲存格', + length_limit: '長度限制' }, dataset: { scope_edit: '僅編輯時生效', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 2b87351683..c8742a1064 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -1811,7 +1811,8 @@ export default { central_point: '中心点', full_display: '全量显示', show_hover_style: '显示鼠标悬浮样式', - merge_cells: '合并单元格' + merge_cells: '合并单元格', + length_limit: '长度限制' }, dataset: { scope_edit: '仅编辑时生效', diff --git a/core/core-frontend/src/models/chart/chart-style.d.ts b/core/core-frontend/src/models/chart/chart-style.d.ts index 44aca1b55f..1cd45f2834 100644 --- a/core/core-frontend/src/models/chart/chart-style.d.ts +++ b/core/core-frontend/src/models/chart/chart-style.d.ts @@ -193,6 +193,10 @@ declare interface AxisLabel { * 格式化设置 */ formatter: string + /** + * 长度限制 + */ + lengthLimit: number } /** * 轴线条设置 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 2291f57cbe..30a8db75bd 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 @@ -429,6 +429,23 @@ onMounted(() => { /> + + +