Refactor #3965 - Add global and local config

pull/3970/head
mertsincan 2023-05-16 11:29:56 +01:00
parent bd7e602fd8
commit 3c46461c50
2 changed files with 9 additions and 1 deletions

View File

@ -8,6 +8,10 @@ export default {
pt: { pt: {
type: Object, type: Object,
default: undefined default: undefined
},
unstyled: {
type: Boolean,
default: undefined
} }
}, },
methods: { methods: {
@ -41,6 +45,9 @@ export default {
}, },
defaultsParams() { defaultsParams() {
return { instance: this.$ }; return { instance: this.$ };
},
isUnstyled() {
return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
} }
} }
}; };

View File

@ -131,7 +131,8 @@ export const defaultOptions = {
menu: 1000, menu: 1000,
tooltip: 1100 tooltip: 1100
}, },
pt: undefined pt: undefined,
unstyled: false
}; };
const PrimeVueSymbol = Symbol(); const PrimeVueSymbol = Symbol();