primevue-mirror/plugins/app-state.js

10 lines
365 B
JavaScript
Raw Normal View History

2022-09-06 11:52:18 +00:00
const $appState = {
2023-02-28 08:29:30 +00:00
install: (Vue, options) => {
2023-10-17 11:34:50 +00:00
Vue.config.globalProperties.$appState = reactive({ theme: 'lara-light-teal', darkTheme: false, codeSandbox: false, sourceType: 'options-api', newsActive: false, announcement: null, storageKey: 'primevue' });
2022-09-14 14:26:41 +00:00
}
};
2022-12-09 20:47:50 +00:00
2022-09-06 11:52:18 +00:00
export default defineNuxtPlugin((nuxtApp) => {
2022-09-14 14:26:41 +00:00
nuxtApp.vueApp.use($appState);
});