From a27e61aec27b2a446a60e60f21bb5eec73378287 Mon Sep 17 00:00:00 2001 From: junjie Date: Mon, 26 Apr 2021 15:20:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=E8=A7=86=E5=9B=BE=20?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=20=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81'=E9=A2=9C=E8=89=B2'=E4=B8=8E'?= =?UTF-8?q?=E5=AD=97=E4=BD=93'=E5=B1=9E=E6=80=A7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/zh.js | 8 +++- frontend/src/views/chart/chart/chart.js | 10 +++- .../components/shape-attr/ColorSelector.vue | 39 ++++++++++------ .../components/shape-attr/SizeSelector.vue | 27 ++++++++++- .../chart/components/table/TableNormal.vue | 46 ++++++++++++++++++- 5 files changed, 111 insertions(+), 19 deletions(-) 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 @@