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') }} + + +