Skip to content

Commit

Permalink
Refactor #3965 - Add global and local config
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 16, 2023
1 parent bd7e602 commit 3c46461
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions components/lib/basecomponent/BaseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export default {
pt: {
type: Object,
default: undefined
},
unstyled: {
type: Boolean,
default: undefined
}
},
methods: {
Expand Down Expand Up @@ -41,6 +45,9 @@ export default {
},
defaultsParams() {
return { instance: this.$ };
},
isUnstyled() {
return this.unstyled !== undefined ? this.unstyled : this.$primevue.config.unstyled;
}
}
};
Expand Down
3 changes: 2 additions & 1 deletion components/lib/config/PrimeVue.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ export const defaultOptions = {
menu: 1000,
tooltip: 1100
},
pt: undefined
pt: undefined,
unstyled: false
};

const PrimeVueSymbol = Symbol();
Expand Down

0 comments on commit 3c46461

Please sign in to comment.