chore: small fix

This commit is contained in:
07akioni 2019-09-27 22:28:10 +08:00
parent 300e6ead8a
commit 9d264f9499
3 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,9 @@
export default {
install: function install (Vue) {
if (!Vue.prototype.$naive) {
Vue.prototype.$naive = {}
}
const naive = Vue.prototype.$naive
// naive.theme
}
}

View File

@ -10,7 +10,7 @@ export default {
if (this.theme !== null) {
return this.theme
} else {
return (this.NApp && this.NApp.theme) || 'default'
return (this.NApp && this.NApp.theme) || null
}
}
}

View File

@ -11,7 +11,7 @@
'n-nimbus-service-layout__body--collapsed': isCollapsed,
'n-nimbus-service-layout__body--active': !isCollapsed,
'n-nimbus-service-layout__body--disable-menu': disableMenu,
'n-nimbus-service-layout__body--with-header': $slots.header
'n-nimbus-service-layout__body--with-header': $slots.nav
}"
>
<scrollbar>
@ -30,7 +30,7 @@
'n-nimbus-service-layout-drawer--collapsed': isCollapsed,
'n-nimbus-service-layout-drawer--active': !isCollapsed,
'n-nimbus-service-layout-drawer--disabled': disableMenu,
'n-nimbus-service-layout-drawer--with-header': $slots.header
'n-nimbus-service-layout-drawer--with-header': $slots.nav
}"
>
<div class="n-nimbus-service-layout-drawer-content">