mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #4231 - Update BaseComponent
This commit is contained in:
parent
c027b55c54
commit
38faf56b40
1 changed files with 6 additions and 7 deletions
|
@ -380,7 +380,10 @@ export default {
|
|||
isUnstyled: {
|
||||
immediate: true,
|
||||
handler(newValue) {
|
||||
!newValue && this._loadStyle();
|
||||
if (!newValue) {
|
||||
loadStyle();
|
||||
this.$options.css && this.$css.loadStyle();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -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() {
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue