feat: deleteList rename deleteBatch
parent
19f34acc55
commit
e1341c187a
|
@ -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,
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue