mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix(图表): 修复仪表盘的自定义配色重置按钮无效的问题
This commit is contained in:
committed by
jianneng-fit2cloud
parent
fd71b63841
commit
4a5c7b5803
@@ -234,11 +234,18 @@ const changeColorOption = (option?) => {
|
||||
}
|
||||
}
|
||||
const resetCustomColor = () => {
|
||||
if (props.chart.type.includes('map')) {
|
||||
const { type } = props.chart
|
||||
const { basicStyleForm } = state.value
|
||||
|
||||
if (type.includes('map')) {
|
||||
changeColorOption()
|
||||
} else {
|
||||
state.value.basicStyleForm[seriesColorName.value] = []
|
||||
basicStyleForm[seriesColorName.value] = []
|
||||
changeBasicStyle(seriesColorName.value)
|
||||
const colorScheme = basicStyleForm[colorSchemeName.value]
|
||||
basicStyleForm[colorsName.value] =
|
||||
colorCases.find(ele => ele.value === colorScheme)?.colors ?? colorCases[0].colors
|
||||
changeBasicStyle(colorsName.value)
|
||||
setupSeriesColor()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user