mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #5502
This commit is contained in:
parent
5671752903
commit
e896552ccb
5 changed files with 33 additions and 20 deletions
2
components/lib/config/PrimeVue.d.ts
vendored
2
components/lib/config/PrimeVue.d.ts
vendored
|
@ -101,6 +101,8 @@ export interface PrimeVueConfiguration {
|
|||
locale?: PrimeVueLocaleOptions;
|
||||
filterMatchModeOptions?: any;
|
||||
zIndex?: PrimeVueZIndexOptions;
|
||||
theme?: any;
|
||||
unstyled?: boolean;
|
||||
pt?: PassThrough<PrimeVuePTOptions>;
|
||||
ptOptions?: PassThroughOptions;
|
||||
csp?: PrimeVueCSPOptions;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue