Refactor #4231 - Update BaseComponent

pull/4239/head
mertsincan 2023-08-02 14:59:10 +03:00
parent c027b55c54
commit 38faf56b40
1 changed files with 6 additions and 7 deletions

View File

@ -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() {
/* /*