mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
chore: small fix
This commit is contained in:
parent
300e6ead8a
commit
9d264f9499
9
packages/addons/ThemeController.js
Normal file
9
packages/addons/ThemeController.js
Normal 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
|
||||
}
|
||||
}
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user