Merge pull request #11092 from dataease/pr@dev-v2@refactor_style-label

refactor(图表): 柱状图等标签跟随主题
This commit is contained in:
王嘉豪 2024-07-22 20:07:04 +08:00 committed by GitHub
commit 432b38627f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,11 +85,12 @@ const initSeriesLabel = () => {
return
}
let initFlag = false
const themeColor = dvMainStore.canvasStyleData.dashboard.themeColor
const axisMap = yAxis.value.reduce((pre, next) => {
let tmp = {
...next,
show: true,
color: props.themes === 'dark' ? '#fff' : '#000',
color: themeColor === 'dark' ? '#fff' : '#000',
fontSize: COMPUTED_DEFAULT_LABEL.value.fontSize,
showExtremum: false
} as SeriesFormatter