2024-04-01 09:46:31 +00:00
|
|
|
import * as PrimeVueConfig from 'primevue/config';
|
2024-05-01 08:26:48 +00:00
|
|
|
import Aura from 'primevue/themes/aura';
|
2024-04-01 09:46:31 +00:00
|
|
|
|
|
|
|
export const defaultOptions = {
|
|
|
|
...PrimeVueConfig.defaultOptions,
|
|
|
|
theme: {
|
|
|
|
preset: Aura,
|
|
|
|
options: {
|
|
|
|
prefix: 'p',
|
|
|
|
darkModeSelector: 'system',
|
|
|
|
cssLayer: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export const { usePrimeVue } = PrimeVueConfig;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
install: (app, options) => {
|
|
|
|
const configOptions = { ...defaultOptions, ...options, unstyled: false };
|
|
|
|
|
2024-04-02 10:17:58 +00:00
|
|
|
PrimeVueConfig.setup(app, configOptions);
|
2024-04-01 09:46:31 +00:00
|
|
|
}
|
|
|
|
};
|