feat: deleteList rename deleteBatch

pull/2/head
xingyu 2023-01-17 14:05:07 +08:00
parent 19f34acc55
commit e1341c187a
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

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