From 19fca8d5369d21939c0702c111a473c62855c8f6 Mon Sep 17 00:00:00 2001 From: K <1175047471@qq.com> Date: Fri, 5 Jan 2024 17:25:35 +0800 Subject: [PATCH] chore: fix type error --- src/components/Table/src/BasicTable.vue | 4 ++-- tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Table/src/BasicTable.vue b/src/components/Table/src/BasicTable.vue index a799384..6b9f248 100644 --- a/src/components/Table/src/BasicTable.vue +++ b/src/components/Table/src/BasicTable.vue @@ -187,7 +187,7 @@ const { getFooterProps } = useTableFooter( ) const { getFormProps, replaceFormSlotKey, getFormSlotKeys, handleSearchInfoChange, getShowForm, setShowForm } - = useTableForm(getProps, slots, fetch, getLoading) + = useTableForm(getProps, slots, async params => void fetch(params), getLoading) const getBindValues = computed(() => { const dataSource = unref(getDataSourceRef) @@ -240,7 +240,7 @@ function setProps(props: Partial) { } const tableAction: TableActionType = { - reload, + reload: async params => void reload(params), getSelectRows, setSelectedRows, clearSelectedRowKeys, diff --git a/tsconfig.json b/tsconfig.json index dab5aac..3e592f9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -37,5 +37,5 @@ "build/**/*.d.ts", "vite.config.ts" ], - "exclude": ["node_modules", "dist", "./src/components/FormDesign/*"] + "exclude": ["node_modules", "dist"] }