Skip to content

Commit

Permalink
Refactor #4231 - Update BaseComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Aug 2, 2023
1 parent c027b55 commit 38faf56
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions components/lib/basecomponent/BaseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ export default {
isUnstyled: {
immediate: true,
handler(newValue) {
!newValue && this._loadStyle();
if (!newValue) {
loadStyle();
this.$options.css && this.$css.loadStyle();
}
}
}
},
Expand Down Expand Up @@ -414,14 +417,10 @@ export default {
methods: {
_hook(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?.();
globalHook?.();
},
_loadStyle() {
loadStyle();
this.$options.css && this.$css.loadStyle();
defaultHook?.();
},
_loadGlobalStyles() {
/*
Expand Down

0 comments on commit 38faf56

Please sign in to comment.