From 8a1a7cf7b7f41c9098da52304edde5043c66fca6 Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Tue, 29 Dec 2020 19:32:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/api/table.js | 4 ++-- types/table.d.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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;