first commit
This commit is contained in:
37
store/customizer.ts
Executable file
37
store/customizer.ts
Executable file
@@ -0,0 +1,37 @@
|
||||
import { defineStore, createPinia } from "pinia";
|
||||
import config from '../config'
|
||||
const pinia = createPinia();
|
||||
|
||||
export const useCustomizerStore = defineStore('customizer', {
|
||||
state: () => ({
|
||||
Sidebar_drawer: config.Sidebar_drawer,
|
||||
Customizer_drawer: config.Customizer_drawer,
|
||||
mini_sidebar: config.mini_sidebar,
|
||||
setHorizontalLayout: config.setHorizontalLayout, // Horizontal layout
|
||||
actTheme: config.actTheme,
|
||||
boxed: config.boxed,
|
||||
setBorderCard: config.setBorderCard
|
||||
}),
|
||||
getters: {},
|
||||
actions: {
|
||||
SET_SIDEBAR_DRAWER() {
|
||||
this.Sidebar_drawer = !this.Sidebar_drawer;
|
||||
},
|
||||
SET_MINI_SIDEBAR(payload: any) {
|
||||
this.mini_sidebar = payload;
|
||||
},
|
||||
SET_CUSTOMIZER_DRAWER(payload: any) {
|
||||
this.Customizer_drawer = payload;
|
||||
},
|
||||
|
||||
SET_LAYOUT(payload: any) {
|
||||
this.setHorizontalLayout = payload;
|
||||
},
|
||||
SET_THEME(payload: any) {
|
||||
this.actTheme = payload;
|
||||
},
|
||||
SET_CARD_BORDER(payload: any){
|
||||
this.setBorderCard = payload
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user