From e1341c187a0f5ed0bd45e8834656bbf56895cd50 Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 17 Jan 2023 14:05:07 +0800 Subject: [PATCH] feat: deleteList rename deleteBatch --- yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue | 4 ++-- yudao-ui-admin-vue3/src/hooks/web/useXTable.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue b/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue index aed80c887..7bd12c3d0 100644 --- a/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue +++ b/yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue @@ -297,7 +297,7 @@ const deleteData = async (id: string | number) => { } // 批量删除 -const deleteList = async () => { +const deleteBatch = async () => { const g = unref(xGrid) if (!g) { return @@ -403,7 +403,7 @@ emit('register', { getSearchData, setProps, deleteData, - deleteList, + deleteBatch, exportList, getCurrentColumn, getRadioRecord, diff --git a/yudao-ui-admin-vue3/src/hooks/web/useXTable.ts b/yudao-ui-admin-vue3/src/hooks/web/useXTable.ts index dee259753..b258a2523 100644 --- a/yudao-ui-admin-vue3/src/hooks/web/useXTable.ts +++ b/yudao-ui-admin-vue3/src/hooks/web/useXTable.ts @@ -5,7 +5,7 @@ export interface tableMethod { reload: () => void // 刷新表格 setProps: (props: XTableProps) => void deleteData: (id: string | number) => void // 删除数据 - deleteList: () => void // 批量删除 + deleteBatch: () => void // 批量删除 exportList: (fileName?: string) => void // 导出列表 getCurrentColumn: () => void // 获取当前列 getRadioRecord: () => void // 获取当前选中列,redio @@ -30,7 +30,7 @@ export const useXTable = (props: XTableProps): [Function, tableMethod] => { reload: () => getInstance().reload(), setProps: (props) => getInstance().setProps(props), deleteData: (id: string | number) => getInstance().deleteData(id), - deleteList: () => getInstance().deleteList(), + deleteBatch: () => getInstance().deleteBatch(), exportList: (fileName?: string) => getInstance().exportList(fileName), getCurrentColumn: () => getInstance().getCheckboxRecords(), getRadioRecord: () => getInstance().getRadioRecord(),