Commit e1341c187a0f5ed0bd45e8834656bbf56895cd50
1 parent
19f34acc
feat: deleteList rename deleteBatch
Showing
2 changed files
with
4 additions
and
4 deletions
yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue
| @@ -297,7 +297,7 @@ const deleteData = async (id: string | number) => { | @@ -297,7 +297,7 @@ const deleteData = async (id: string | number) => { | ||
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | // 批量删除 | 299 | // 批量删除 |
| 300 | -const deleteList = async () => { | 300 | +const deleteBatch = async () => { |
| 301 | const g = unref(xGrid) | 301 | const g = unref(xGrid) |
| 302 | if (!g) { | 302 | if (!g) { |
| 303 | return | 303 | return |
| @@ -403,7 +403,7 @@ emit('register', { | @@ -403,7 +403,7 @@ emit('register', { | ||
| 403 | getSearchData, | 403 | getSearchData, |
| 404 | setProps, | 404 | setProps, |
| 405 | deleteData, | 405 | deleteData, |
| 406 | - deleteList, | 406 | + deleteBatch, |
| 407 | exportList, | 407 | exportList, |
| 408 | getCurrentColumn, | 408 | getCurrentColumn, |
| 409 | getRadioRecord, | 409 | getRadioRecord, |
yudao-ui-admin-vue3/src/hooks/web/useXTable.ts
| @@ -5,7 +5,7 @@ export interface tableMethod { | @@ -5,7 +5,7 @@ export interface tableMethod { | ||
| 5 | reload: () => void // 刷新表格 | 5 | reload: () => void // 刷新表格 |
| 6 | setProps: (props: XTableProps) => void | 6 | setProps: (props: XTableProps) => void |
| 7 | deleteData: (id: string | number) => void // 删除数据 | 7 | deleteData: (id: string | number) => void // 删除数据 |
| 8 | - deleteList: () => void // 批量删除 | 8 | + deleteBatch: () => void // 批量删除 |
| 9 | exportList: (fileName?: string) => void // 导出列表 | 9 | exportList: (fileName?: string) => void // 导出列表 |
| 10 | getCurrentColumn: () => void // 获取当前列 | 10 | getCurrentColumn: () => void // 获取当前列 |
| 11 | getRadioRecord: () => void // 获取当前选中列,redio | 11 | getRadioRecord: () => void // 获取当前选中列,redio |
| @@ -30,7 +30,7 @@ export const useXTable = (props: XTableProps): [Function, tableMethod] => { | @@ -30,7 +30,7 @@ export const useXTable = (props: XTableProps): [Function, tableMethod] => { | ||
| 30 | reload: () => getInstance().reload(), | 30 | reload: () => getInstance().reload(), |
| 31 | setProps: (props) => getInstance().setProps(props), | 31 | setProps: (props) => getInstance().setProps(props), |
| 32 | deleteData: (id: string | number) => getInstance().deleteData(id), | 32 | deleteData: (id: string | number) => getInstance().deleteData(id), |
| 33 | - deleteList: () => getInstance().deleteList(), | 33 | + deleteBatch: () => getInstance().deleteBatch(), |
| 34 | exportList: (fileName?: string) => getInstance().exportList(fileName), | 34 | exportList: (fileName?: string) => getInstance().exportList(fileName), |
| 35 | getCurrentColumn: () => getInstance().getCheckboxRecords(), | 35 | getCurrentColumn: () => getInstance().getCheckboxRecords(), |
| 36 | getRadioRecord: () => getInstance().getRadioRecord(), | 36 | getRadioRecord: () => getInstance().getRadioRecord(), |