File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 17
17
:default-active =" getCurrentRoute"
18
18
class =" menubar-menu-list"
19
19
:collapse =" isCollapse"
20
+ :collapse-transition =" false"
20
21
@select =" handleMenuSelect"
21
22
>
22
- <!-- :collapse-transition="false" -->
23
- <!-- :active-text-color="getActiveTextColor" -->
24
23
<NavigationMenuBarItem
25
24
v-for =" (route, index) in getRoutes"
26
25
:key =" index"
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ export default {
30
30
},
31
31
immediate: true
32
32
},
33
- async theme (val ) {
34
- const oldVal = this . chalk ? this .theme : ORIGINAL_THEME
33
+ async theme (val , prevVal ) {
34
+ const oldVal = prevVal || this .theme
35
35
if (typeof val !== ' string' ) return
36
36
const themeCluster = this .getThemeCluster (val .replace (' #' , ' ' ))
37
37
const originalCluster = this .getThemeCluster (oldVal .replace (' #' , ' ' ))
@@ -60,10 +60,10 @@ export default {
60
60
}
61
61
}
62
62
63
- // if (!this.chalk) {
64
- const url = ` https://unpkg.com/element-ui@${ version} /lib/theme-chalk/index.css`
65
- await this .getCSSString (url, ' chalk' )
66
- // }
63
+ if (! this .chalk ) {
64
+ const url = ` https://unpkg.com/element-ui@${ version} /lib/theme-chalk/index.css`
65
+ await this .getCSSString (url, ' chalk' )
66
+ }
67
67
68
68
const chalkHandler = getHandler (' chalk' , ' chalk-style' )
69
69
You can’t perform that action at this time.
0 commit comments