diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index 639711ae0..67a5de8f6 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -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; } } }; diff --git a/components/lib/config/PrimeVue.js b/components/lib/config/PrimeVue.js index 532251cf9..078b401b0 100644 --- a/components/lib/config/PrimeVue.js +++ b/components/lib/config/PrimeVue.js @@ -131,7 +131,8 @@ export const defaultOptions = { menu: 1000, tooltip: 1100 }, - pt: undefined + pt: undefined, + unstyled: false }; const PrimeVueSymbol = Symbol();