Refactor #4231 - Update BaseComponent
parent
c027b55c54
commit
38faf56b40
|
@ -380,7 +380,10 @@ export default {
|
||||||
isUnstyled: {
|
isUnstyled: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler(newValue) {
|
handler(newValue) {
|
||||||
!newValue && this._loadStyle();
|
if (!newValue) {
|
||||||
|
loadStyle();
|
||||||
|
this.$options.css && this.$css.loadStyle();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -414,14 +417,10 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
_hook(hookName) {
|
_hook(hookName) {
|
||||||
const selfHook = this._getOptionValue(this.pt, `hooks.${hookName}`);
|
const selfHook = this._getOptionValue(this.pt, `hooks.${hookName}`);
|
||||||
const globalHook = this._getOptionValue(this.globalPT, `hooks.${hookName}`);
|
const defaultHook = this._getOptionValue(this.defaultPT, `hooks.${hookName}`);
|
||||||
|
|
||||||
selfHook?.();
|
selfHook?.();
|
||||||
globalHook?.();
|
defaultHook?.();
|
||||||
},
|
|
||||||
_loadStyle() {
|
|
||||||
loadStyle();
|
|
||||||
this.$options.css && this.$css.loadStyle();
|
|
||||||
},
|
},
|
||||||
_loadGlobalStyles() {
|
_loadGlobalStyles() {
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue