import { defineStore } from 'pinia'; import { ref } from 'vue'; export const useModelStore = defineStore('model', () => { // state const modalVisible = ref(false); const currentTabKey = ref("basicInfo"); const tabList = ref([]); const title = ref(''); const isBasicEdit = ref(false); const params = ref<{ sttp: string; stcd: any; date: any; show: any; }>({ sttp: 'eng', stcd: '', date: '', show: true }); return { params, modalVisible, currentTabKey, tabList, title, isBasicEdit, }; });