mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Chore: add theme (#15361)
This commit is contained in:
@@ -25,6 +25,19 @@ Vue.component('main-header', MainHeader);
|
||||
Vue.component('side-nav', SideNav);
|
||||
Vue.component('footer-nav', FooterNav);
|
||||
|
||||
const globalEle = new Vue({
|
||||
data: { $isEle: false } // 是否 ele 用户
|
||||
});
|
||||
|
||||
Vue.mixin({
|
||||
computed: {
|
||||
$isEle: {
|
||||
get: () => (globalEle.$data.$isEle),
|
||||
set: (data) => {globalEle.$data.$isEle = data;}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Vue.prototype.$icon = icon; // Icon 列表页用
|
||||
|
||||
const router = new VueRouter({
|
||||
|
||||
Reference in New Issue
Block a user