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: {
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;
}
}
};

View File

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