feat(仪表板、数据大屏): 通用配色增加斑马纹配色 (#16741)

This commit is contained in:
王嘉豪
2025-08-15 11:23:23 +08:00
committed by GitHub
parent 4eda2cd46b
commit 7d85d6825d
3 changed files with 19 additions and 4 deletions

View File

@@ -103,8 +103,20 @@
/>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="8">
<el-col :span="12">
<el-form-item :label="t('chart.stripe')" class="form-item">
<el-color-picker
:trigger-width="colorPickerWidth"
v-model="colorForm['tableCell']['tableItemSubBgColor']"
size="small"
:predefine="predefineColors"
is-custom
show-alpha
:effect="themes"
@change="changeColorCase('tableItemSubBgColor')"
/>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="t('chart.table_header_font_color')" class="form-item">
<el-color-picker

View File

@@ -65,7 +65,10 @@ const themeAttrChange = (custom, property, value) => {
}
merge(viewInfo['customAttr'], tmpValue)
} else {
console.log('viewInfo=' + JSON.stringify(viewInfo['customAttr']))
console.log('value=' + JSON.stringify(value))
merge(viewInfo['customAttr'], value)
console.log('merge=' + JSON.stringify(viewInfo['customAttr']))
}
} else {
Object.keys(value).forEach(function (key) {

View File

@@ -103,7 +103,7 @@ export const DEFAULT_COLOR_CASE_LIGHT: DeepPartial<ChartAttr> = {
tableCell: {
tableItemBgColor: '#FFFFFF',
tableFontColor: '#000000',
tableItemSubBgColor: '#EEEEEE'
tableItemSubBgColor: '#1E90FF'
}
}
@@ -154,7 +154,7 @@ export const DEFAULT_COLOR_CASE_DARK: DeepPartial<ChartAttr> = {
tableCell: {
tableItemBgColor: '#131E42',
tableFontColor: '#ffffff',
tableItemSubBgColor: '#EEEEEE'
tableItemSubBgColor: '#1E90FF'
}
}