mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Refactor #3965 - Add global and local config
This commit is contained in:
parent
bd7e602fd8
commit
3c46461c50
2 changed files with 9 additions and 1 deletions
|
@ -8,6 +8,10 @@ export default {
|
|||
pt: {
|
||||
type: Object,
|
||||
default: undefined
|
||||
},
|
||||
unstyled: {
|
||||
type: Boolean,
|
||||
default: undefined
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -41,6 +45,9 @@ export default {
|
|||
},
|
||||
defaultsParams() {
|
||||
return { instance: this.$ };
|
||||
},
|
||||
isUnstyled() {
|
||||
return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -131,7 +131,8 @@ export const defaultOptions = {
|
|||
menu: 1000,
|
||||
tooltip: 1100
|
||||
},
|
||||
pt: undefined
|
||||
pt: undefined,
|
||||
unstyled: false
|
||||
};
|
||||
|
||||
const PrimeVueSymbol = Symbol();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue