forked from github/dataease
fix(视图-符号地图): 修复符号地图初始化时设置主题不生效
This commit is contained in:
parent
32e87f9605
commit
4896e66558
@ -346,14 +346,14 @@ export function adaptCurTheme(customStyle, customAttr, chartType) {
|
||||
recursionThemTransObj(THEME_ATTR_TRANS_SLAVE1_BACKGROUND, customAttr, LIGHT_THEME_COMPONENT_BACKGROUND)
|
||||
if (chartType === 'symbol-map') {
|
||||
// 符号地图特殊处理
|
||||
Vue.set(customStyle['baseMapStyle'], 'baseMapTheme', 'light')
|
||||
Vue.set(customStyle, 'baseMapStyle', { baseMapTheme: 'light' })
|
||||
}
|
||||
} else {
|
||||
recursionThemTransObj(THEME_STYLE_TRANS_MAIN, customStyle, DARK_THEME_COLOR_MAIN)
|
||||
recursionThemTransObj(THEME_STYLE_TRANS_SLAVE1, customStyle, DARK_THEME_COLOR_SLAVE1)
|
||||
if (chartType === 'symbol-map') {
|
||||
// 符号地图特殊处理
|
||||
Vue.set(customStyle['baseMapStyle'], 'baseMapTheme', 'dark')
|
||||
Vue.set(customStyle, 'baseMapStyle', { baseMapTheme: 'dark' })
|
||||
recursionThemTransObj(THEME_ATTR_TRANS_MAIN_SYMBOL, customAttr, '#000000')
|
||||
} else {
|
||||
recursionThemTransObj(THEME_ATTR_TRANS_MAIN, customAttr, DARK_THEME_COLOR_MAIN)
|
||||
|
Loading…
Reference in New Issue
Block a user