diff --git a/examples/api/table.js b/examples/api/table.js index 268c3cbdd..74d21a9c8 100644 --- a/examples/api/table.js +++ b/examples/api/table.js @@ -3695,12 +3695,12 @@ const apis = [ list: [] }, { - name: 'setCellAreas(areas)', + name: 'setCellAreas(areaConfigs, activeArea)', desc: '如果功能被支持,用于 mouse-config.area,选择指定区域的单元格', version: 'pro', type: 'Promise', enum: '', - defVal: 'areas: CellAreaOptions', + defVal: 'areaConfigs: CellAreaConfig[], activeArea?: { area?: CellAreaConfig, row: Row, column: ColumnInfo }', list: [] }, { diff --git a/types/table.d.ts b/types/table.d.ts index c4f12376f..8a44a0e51 100644 --- a/types/table.d.ts +++ b/types/table.d.ts @@ -898,9 +898,9 @@ export declare class Table extends VXETableComponent { setSelectCell(row: RowInfo, field: string): Promise; /** * 用于 mouse-config.area,选取指定区域的单元格 - * @param areas 指定区域 + * @param areaConfigs 指定区域 */ - setCellAreas(areas: CellAreaOptions, activeArea: { + setCellAreas(areaConfigs: CellAreaConfig[], activeArea?: { area?: MouseCellArea; column: ColumnInfo; row: RowInfo; @@ -1316,7 +1316,7 @@ export interface MouseCellArea { export type CELL_AREA_TYPE = 'main' | 'copy' | 'extend' | 'multi' | 'active' -export interface CellAreaOptions { +export interface CellAreaConfig { type?: CELL_AREA_TYPE; startColumn: ColumnInfo; endColumn: ColumnInfo;