mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
支持行标记为删除
This commit is contained in:
2
types/grid.d.ts
vendored
2
types/grid.d.ts
vendored
@@ -10,7 +10,7 @@ import { RowInfo } from './component'
|
||||
/* eslint-disable no-use-before-define */
|
||||
|
||||
/**
|
||||
* 高级表格
|
||||
* 配置式表格
|
||||
*/
|
||||
export declare class Grid extends Table {
|
||||
/**
|
||||
|
||||
17
types/table.d.ts
vendored
17
types/table.d.ts
vendored
@@ -600,6 +600,22 @@ export declare class Table extends VXETableComponent {
|
||||
* @param row 指定行
|
||||
*/
|
||||
setRadioRow(row: RowInfo): Promise<any>;
|
||||
/**
|
||||
* 将指定行设置为取消/标记待删除状态
|
||||
*/
|
||||
setPendingRow(rows: any | any[], status: boolean): Promise<any>
|
||||
/**
|
||||
* 切换指定行的取消/标记待删除状态
|
||||
*/
|
||||
togglePendingRow(rows: any | any[]): Promise<any>
|
||||
/**
|
||||
* 获取待删除状态的数据
|
||||
*/
|
||||
getPendingRecords(): any[]
|
||||
/**
|
||||
* 清除所有标记状态
|
||||
*/
|
||||
clearPendingRow(): Promise<any>
|
||||
/**
|
||||
* 手动清除临时合并的单元格
|
||||
*/
|
||||
@@ -913,6 +929,7 @@ export declare class Table extends VXETableComponent {
|
||||
insertRecords: RowInfo[];
|
||||
removeRecords: RowInfo[];
|
||||
updateRecords: RowInfo[];
|
||||
pendingRecords: RowInfo[]
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
2
types/v-x-e-table/renderer.d.ts
vendored
2
types/v-x-e-table/renderer.d.ts
vendored
@@ -181,7 +181,7 @@ export class TableRenderParams extends RenderParams {
|
||||
|
||||
export class GridRenderParams extends TableRenderParams {
|
||||
/**
|
||||
* 高级表格实例对象
|
||||
* 配置式表格实例对象
|
||||
*/
|
||||
$grid: Grid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user