diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index f7a741ef43..4297f9f0b3 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -700,7 +700,13 @@ export default { rose_radius: '圆角', view_name: '视图名称', name_can_not_empty: '名称不能为空', - custom_count: '记录数' + custom_count: '记录数', + table_title_fontsize: '表头字体大小', + table_item_fontsize: '表格字体大小', + table_header_bg: '表头背景', + table_item_bg: '表格背景', + table_item_font_color: '字体颜色', + stripe: '斑马纹' }, dataset: { datalist: '数据集', diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js index 101290218e..803721d686 100644 --- a/frontend/src/views/chart/chart/chart.js +++ b/frontend/src/views/chart/chart/chart.js @@ -1,7 +1,11 @@ export const DEFAULT_COLOR_CASE = { value: 'default', colors: ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'], - alpha: 100 + alpha: 100, + tableHeaderBgColor: '#e8eaec', + tableItemBgColor: '#ffffff', + tableFontColor: '#606266', + tableStripe: true } export const DEFAULT_SIZE = { barDefault: true, @@ -18,7 +22,9 @@ export const DEFAULT_SIZE = { pieRoseType: 'radius', pieRoseRadius: 5, funnelWidth: 80, - radarShape: 'polygon' + radarShape: 'polygon', + tableTitleFontSize: 12, + tableItemFontSize: 12 } export const DEFAULT_LABEL = { show: false, diff --git a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue index c3491ca085..da36e6547d 100644 --- a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue +++ b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue @@ -8,8 +8,8 @@ > - - + +
@@ -18,6 +18,20 @@ + + + + + + + + + + + + {{ $t('chart.stripe') }} + + @@ -31,6 +45,8 @@