This commit is contained in:
mertsincan 2024-04-01 14:58:07 +01:00
parent 5671752903
commit e896552ccb
5 changed files with 33 additions and 20 deletions

View file

@ -101,6 +101,8 @@ export interface PrimeVueConfiguration {
locale?: PrimeVueLocaleOptions;
filterMatchModeOptions?: any;
zIndex?: PrimeVueZIndexOptions;
theme?: any;
unstyled?: boolean;
pt?: PassThrough<PrimeVuePTOptions>;
ptOptions?: PassThroughOptions;
csp?: PrimeVueCSPOptions;

View file

@ -133,6 +133,8 @@ export const defaultOptions = {
menu: 1000,
tooltip: 1100
},
theme: undefined,
unstyled: false,
pt: undefined,
ptOptions: {
mergeSections: true,
@ -167,7 +169,9 @@ export function setup(app, options) {
}
export default {
install: () => {
console.error("This plugin has been removed in v4 version. Use 'PrimeVueStyled' plugin for styled mode, and 'PrimeVueUnstyled' plugin for unstyled mode.");
install: (app, options) => {
const configOptions = { ...defaultOptions, ...options };
setup(app, configOptions);
}
};