This commit is contained in:
Vladimir Voronin
2024-11-06 19:14:53 +03:00
parent 04fae4dec7
commit 9d546f6069
23 changed files with 1008 additions and 108 deletions

22
src/stores/drawerStore.ts Normal file
View File

@@ -0,0 +1,22 @@
import {defineStore} from "pinia";
import {ref} from "vue";
export const useDrawerStore = defineStore('drawer', () => {
const visible = ref(false);
const transactionType = ref(null)
const categoryType = ref(null)
const setVisible = (isVisible: boolean) => {
visible.value = isVisible;
}
const setTransactionType = (type: string) => {
transactionType.value = type;
}
const setCategoryType = (type: string) => {
categoryType.value = type;
}
return {visible, transactionType, categoryType, setTransactionType, setCategoryType, setVisible}
})