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()) } }