diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js
index c1a0036c7a..3135ae9403 100644
--- a/frontend/src/lang/en.js
+++ b/frontend/src/lang/en.js
@@ -1016,7 +1016,11 @@ export default {
filter_exp: 'Filter Value',
filter_type: 'Filter Type',
filter_value_can_not_str: 'Value type can not input string',
- enum_value_can_not_null: 'Enum Value can not empty.'
+ enum_value_can_not_null: 'Enum Value can not empty.',
+ table_config: 'Table Config',
+ table_column_width_config: 'Column Width',
+ table_column_adapt: 'Adapt',
+ table_column_custom: 'Custom'
},
dataset: {
sheet_warn: 'There are multiple sheet pages, and the first one is extracted by default',
diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js
index 622f135d37..39d208e5fc 100644
--- a/frontend/src/lang/tw.js
+++ b/frontend/src/lang/tw.js
@@ -1016,7 +1016,11 @@ export default {
filter_exp: '過濾值',
filter_type: '過濾方式',
filter_value_can_not_str: '數值類型字段過濾值不能包含文本',
- enum_value_can_not_null: '字段枚舉值不能為空'
+ enum_value_can_not_null: '字段枚舉值不能為空',
+ table_config: '表格配置',
+ table_column_width_config: '列寬調整',
+ table_column_adapt: '自適應',
+ table_column_custom: '自定義'
},
dataset: {
sheet_warn: '有多個 Sheet 頁,默認抽取第一個',
diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js
index 79869971c1..32bfd2af3e 100644
--- a/frontend/src/lang/zh.js
+++ b/frontend/src/lang/zh.js
@@ -1018,7 +1018,11 @@ export default {
filter_exp: '过滤值',
filter_type: '过滤方式',
filter_value_can_not_str: '数值类型字段过滤值不能包含文本',
- enum_value_can_not_null: '字段枚举值不能为空'
+ enum_value_can_not_null: '字段枚举值不能为空',
+ table_config: '表格配置',
+ table_column_width_config: '列宽调整',
+ table_column_adapt: '自适应',
+ table_column_custom: '自定义'
},
dataset: {
sheet_warn: '有多个 Sheet 页,默认抽取第一个',
diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js
index e0f36d1f81..9356fd684b 100644
--- a/frontend/src/views/chart/chart/chart.js
+++ b/frontend/src/views/chart/chart/chart.js
@@ -31,6 +31,8 @@ export const DEFAULT_SIZE = {
tableTitleHeight: 36,
tableItemHeight: 36,
tablePageSize: '20',
+ tableColumnMode: 'adapt',
+ tableColumnWidth: 100,
gaugeMin: 0,
gaugeMax: 100,
gaugeStartAngle: 225,
diff --git a/frontend/src/views/chart/components/shape-attr/SizeSelectorAntV.vue b/frontend/src/views/chart/components/shape-attr/SizeSelectorAntV.vue
index ad36ad6972..b2b58c76b7 100644
--- a/frontend/src/views/chart/components/shape-attr/SizeSelectorAntV.vue
+++ b/frontend/src/views/chart/components/shape-attr/SizeSelectorAntV.vue
@@ -81,6 +81,16 @@
+
+
+
+
+
@@ -92,20 +102,19 @@
-
+
-
+
-
-
-
-
+
+
+ {{ $t('chart.table_column_adapt') }}
+ {{ $t('chart.table_column_custom') }}
+
+
+
+
@@ -322,6 +331,9 @@ export default {
this.sizeForm.liquidWaveCount = this.sizeForm.liquidWaveCount ? this.sizeForm.liquidWaveCount : DEFAULT_SIZE.liquidWaveCount
this.sizeForm.tablePageSize = this.sizeForm.tablePageSize ? this.sizeForm.tablePageSize : DEFAULT_SIZE.tablePageSize
+
+ this.sizeForm.tableColumnMode = this.sizeForm.tableColumnMode ? this.sizeForm.tableColumnMode : DEFAULT_SIZE.tableColumnMode
+ this.sizeForm.tableColumnWidth = this.sizeForm.tableColumnWidth ? this.sizeForm.tableColumnWidth : DEFAULT_SIZE.tableColumnWidth
}
}
},
@@ -361,7 +373,9 @@ export default {
.el-select-dropdown__item{
padding: 0 20px;
}
- span{font-size: 12px}
+span{
+ font-size: 12px
+}
.el-form-item{
margin-bottom: 6px;
diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue
index 9675393638..73c15a2f72 100644
--- a/frontend/src/views/chart/view/ChartEdit.vue
+++ b/frontend/src/views/chart/view/ChartEdit.vue
@@ -565,7 +565,7 @@