From f7802853646ba714e4d92d0de8edfb38f4149352 Mon Sep 17 00:00:00 2001 From: xingyu Date: Fri, 19 May 2023 18:06:43 +0800 Subject: [PATCH] fix: useTable --- src/components/Table/src/hooks/useTable.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Table/src/hooks/useTable.ts b/src/components/Table/src/hooks/useTable.ts index 74ca26b4..856494e0 100644 --- a/src/components/Table/src/hooks/useTable.ts +++ b/src/components/Table/src/hooks/useTable.ts @@ -161,6 +161,12 @@ export function useTable(tableProps?: Props): [ }, scrollTo: (pos: string) => { getTableInstance().scrollTo(pos) + }, + setShowForm: async (show: boolean) => { + getTableInstance().setShowForm(show) + }, + getShowForm: () => { + return toRaw(getTableInstance().getShowForm()) } }