From 406167735a18122c05d6a2e4223abab556f928c9 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 24 Apr 2024 16:27:26 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E9=80=8F?= =?UTF-8?q?=E8=A7=86=E8=A1=A8=E6=94=AF=E6=8C=81=E6=A0=91=E5=BD=A2=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=20#8509?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/zh-CN.ts | 5 ++++- .../src/models/chart/chart-attr.d.ts | 4 ++++ .../components/BasicStyleSelector.vue | 17 +++++++++++++++++ .../views/chart/components/editor/util/chart.ts | 3 ++- .../js/panel/charts/table/table-pivot.ts | 13 ++++++++++--- 5 files changed, 37 insertions(+), 5 deletions(-) diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 32fb51656f..102d2f361b 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -1110,7 +1110,10 @@ export default { quadrant: '象限', font_size: '字号', word_size_range: '字号区间', - word_spacing: '文字间隔' + word_spacing: '文字间隔', + table_layout_mode: '展示形式', + table_layout_grid: '平铺展示', + table_layout_tree: '树形展示' }, dataset: { scope_edit: '仅编辑时生效', diff --git a/core/core-frontend/src/models/chart/chart-attr.d.ts b/core/core-frontend/src/models/chart/chart-attr.d.ts index 369a4ba001..2b0c398ff1 100644 --- a/core/core-frontend/src/models/chart/chart-attr.d.ts +++ b/core/core-frontend/src/models/chart/chart-attr.d.ts @@ -96,6 +96,10 @@ declare interface ChartBasicStyle { * 表格分页大小 */ tablePageSize: number + /** + * 表格展示形式,平铺和树形 + */ + tableLayoutMode: 'grid' | 'tree' /** * 仪表盘样式 */ diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue index 8b7ef91330..6a0f1e6780 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue @@ -198,6 +198,23 @@ onMounted(() => { + + + {{ t('chart.table_layout_grid') }} + {{ t('chart.table_layout_tree') }} + + +