primevue-mirror/plugins/appState.js

18 lines
445 B
JavaScript
Raw Normal View History

2022-09-06 11:52:18 +00:00
const $appState = {
2023-02-06 15:10:51 +00:00
install: (Vue) => {
Vue.config.globalProperties.$appState = reactive({
theme: 'lara-light-blue',
darkTheme: false,
codeSandbox: false,
sourceType: 'options-api',
newsActive: true,
2023-01-30 22:50:55 +00:00
announcement: {},
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);
});