大表功能完成

This commit is contained in:
2025-05-10 19:21:50 +08:00
parent 0a0beb3e91
commit 25b5576274
40 changed files with 3506 additions and 194 deletions

View File

@@ -0,0 +1,26 @@
import { nextTick, provide, reactive, ref } from "vue"
import MySetting from "../TableCommonComponent/Setting.vue"
export default function useSettings() {
const settingRef = ref<InstanceType<typeof MySetting> | null>(null)
// 表格配置
const options = reactive({
bordered: {
wrapper: true,
cell: true
},
size: "small",
stripe: false
})
provide("options", options)
// 处理函数
const tableIsShow = ref(true)
const clickSetting = () => {
settingRef.value!.open()
}
const changeColumn = async () => {
tableIsShow.value = false
await nextTick(() => (tableIsShow.value = true))
}
return { options, clickSetting, changeColumn, settingRef }
}