fix: useTable

pull/18/MERGE
xingyu 2023-05-19 18:06:43 +08:00
parent bbce129833
commit f780285364
1 changed files with 6 additions and 0 deletions

View File

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