mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Demo:修复更改基础样式后切换主题,选择覆盖,再修改基础样式时之前覆盖的样式会恢复的问题
This commit is contained in:
parent
721cae8139
commit
2a84a3cf16
@ -17,7 +17,7 @@
|
||||
<OutlineSidebar :mindMap="mindMap"></OutlineSidebar>
|
||||
<Style v-if="!isZenMode"></Style>
|
||||
<BaseStyle :data="mindMapData" :mindMap="mindMap"></BaseStyle>
|
||||
<Theme v-if="mindMap" :mindMap="mindMap"></Theme>
|
||||
<Theme v-if="mindMap" :data="mindMapData" :mindMap="mindMap"></Theme>
|
||||
<Structure :mindMap="mindMap"></Structure>
|
||||
<ShortcutKey></ShortcutKey>
|
||||
<Contextmenu v-if="mindMap" :mindMap="mindMap"></Contextmenu>
|
||||
|
||||
@ -44,6 +44,10 @@ export default {
|
||||
Sidebar
|
||||
},
|
||||
props: {
|
||||
data: {
|
||||
type: [Object, null],
|
||||
default: null
|
||||
},
|
||||
mindMap: {
|
||||
type: Object
|
||||
}
|
||||
@ -155,6 +159,7 @@ export default {
|
||||
callback: action => {
|
||||
if (action === 'confirm') {
|
||||
this.mindMap.setThemeConfig({}, true)
|
||||
this.data.theme.config = {}
|
||||
this.changeTheme(theme, {})
|
||||
} else if (action === 'cancel') {
|
||||
this.changeTheme(theme, customThemeConfig)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user