refactor(仪表板、数据大屏): 表格无数据的提示,支持自定义字体大小和颜色 #18296 (#18420)

This commit is contained in:
王嘉豪
2026-05-18 18:21:01 +08:00
committed by GitHub
parent 898bd40050
commit 482f3953b8
5 changed files with 20 additions and 0 deletions

View File

@@ -303,6 +303,21 @@
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="t('chart.table_empty_font_color')" class="form-item">
<el-color-picker
:trigger-width="colorPickerWidth"
v-model="colorForm.basicStyle['tableEmptyFontColor']"
size="small"
:predefine="predefineColors"
color-format="rgb"
:effect="themes"
show-alpha
is-custom
@change="changeColorCase('tableEmptyFontColor')"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="t('components.pager_color')" class="form-item">
<div style="display: flex; width: 100%; gap: 8px">

View File

@@ -1462,6 +1462,7 @@ export default {
table_col_freeze_tip: 'First n col',
table_row_freeze_tip: 'First n row',
table_freeze: 'Freeze',
table_empty_font_color: 'Table empty value color',
stripe: 'Zebra stripe',
start_angle: 'Starting angle',
end_angle: 'Ending angle',

View File

@@ -1424,6 +1424,7 @@ export default {
table_col_freeze_tip: '凍結前n 列',
table_row_freeze_tip: '凍結前n 行',
table_freeze: '凍結',
table_empty_font_color: '表格空值顏色',
stripe: '斑馬紋',
start_angle: '起始角度',
end_angle: '結束角度',

View File

@@ -1427,6 +1427,7 @@ export default {
table_col_freeze_tip: '冻结前 n 列',
table_row_freeze_tip: '冻结前 n 行',
table_freeze: '冻结',
table_empty_font_color: '表格空值颜色',
stripe: '斑马纹',
start_angle: '起始角度',
end_angle: '结束角度',

View File

@@ -86,6 +86,7 @@ export const DEFAULT_COLOR_CASE_LIGHT: DeepPartial<ChartAttr> = {
gaugeStyle: 'default',
tableBorderColor: '#E6E7E4',
tableScrollBarColor: 'rgba(0, 0, 0, 0.15)',
tableEmptyFontColor: '#000',
zoomButtonColor: '#aaa',
zoomBackground: '#fff'
},
@@ -147,6 +148,7 @@ export const DEFAULT_COLOR_CASE_DARK: DeepPartial<ChartAttr> = {
gaugeStyle: 'default',
tableBorderColor: '#CCCCCC',
tableScrollBarColor: 'rgba(255, 255, 255, 0.5)',
tableEmptyFontColor: '#fff',
zoomButtonColor: '#fff',
zoomBackground: '#000'
},