mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Stateful dark mode
This commit is contained in:
parent
b4f2c00dce
commit
65c6403acc
5 changed files with 54 additions and 26 deletions
|
@ -1,6 +1,15 @@
|
|||
const $appState = {
|
||||
install: (Vue, options) => {
|
||||
Vue.config.globalProperties.$appState = reactive({ theme: 'lara-light-green', darkTheme: false, codeSandbox: false, sourceType: 'options-api', newsActive: false, announcement: null, storageKey: 'primevue' });
|
||||
Vue.config.globalProperties.$appState = reactive({
|
||||
theme: 'lara-light-green',
|
||||
darkTheme: false,
|
||||
codeSandbox: false,
|
||||
sourceType: 'options-api',
|
||||
newsActive: false,
|
||||
announcement: null,
|
||||
storageKey: 'primevue',
|
||||
colorSchemeKey: 'primevue-color-scheme'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue