mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 20:57:10 +08:00
fix(useTable): double click search inpurt cause error issue
This commit is contained in:
@@ -41,7 +41,9 @@ export function useTable<T extends U, U = T>(api: Api<T>, options?: Options<T, U
|
||||
// 多选
|
||||
const selectedKeys = ref<(string | number)[]>([])
|
||||
const select: TableInstance['onSelect'] = (rowKeys) => {
|
||||
selectedKeys.value = rowKeys
|
||||
if (Array.isArray(rowKey)) {
|
||||
selectedKeys.value = rowKeys
|
||||
}
|
||||
}
|
||||
|
||||
// 全选
|
||||
|
Reference in New Issue
Block a user