Skip to content

Commit

Permalink
Merge pull request #2328 from VisActor/release/1.6.3
Browse files Browse the repository at this point in the history
[Auto release] release 1.6.3
  • Loading branch information
fangsmile committed Aug 30, 2024
2 parents d947216 + 8b463b8 commit 7909ebf
Show file tree
Hide file tree
Showing 93 changed files with 66,301 additions and 601 deletions.
247 changes: 131 additions & 116 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"definitionName": "lockStepVersion",
"policyName": "vtableMain",
"version": "1.6.2",
"version": "1.6.3",
"mainProject": "@visactor/vtable",
"nextBump": "patch"
}
Expand Down
30 changes: 30 additions & 0 deletions docs/assets/api/en/event/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Supported event types:
MOUSEDOWN_TABLE: 'mousedown_table',
RESIZE_COLUMN: 'resize_column',
RESIZE_COLUMN_END: 'resize_column_end',
RESIZE_ROW: 'resize_row',
RESIZE_ROW_END: 'resize_row_end',
CHANGE_HEADER_POSITION: 'change_header_position',
SORT_CLICK: 'sort_click',
FREEZE_CLICK: 'freeze_click',
Expand Down Expand Up @@ -181,6 +183,34 @@ columns: number[]

``

## RESIZE_ROW

Row height adjustment events.

Event callback function parameter types.
``

{
row: number;
rowHeight: number
}

``

## RESIZE_ROW_END

Row height adjustment end event.

Event callback function parameter types.
``

{
row: number;
rowHeight: number
}

``

## CHANGE_HEADER_POSITION

Events for dragging the table header to move its position
Expand Down
25 changes: 23 additions & 2 deletions docs/assets/api/en/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,15 @@ Select a cell. If empty is passed, the currently selected highlight state will b
Select a cell。If empty is passed, the currently selected highlight state will be cleared.

```
/**
/**
* The effect of selecting a cell is the same as that of a cell selected by the mouse.
* @param col
* @param row
* @param isShift Whether to add the shift key to the selection
* @param isCtrl Whether to add the ctrl key to the selection
* @param makeSelectCellVisible Whether to make the selected cell visible
*/
selectCell(col: number, row: number): void
selectCell(col: number, row: number, isShift?: boolean, isCtrl?: boolean, makeSelectCellVisible?: boolean): void
```

## selectCells(Function)
Expand Down Expand Up @@ -1142,6 +1145,24 @@ In **PivotTable** get indicatorKey.
getHeaderField: (col: number, row: number)
```

## getColWidth(Function)

get column width.

```
/**get column width */
getColWidth: (col: number)
```

## getRowHeight(Function)

get row height.

```
/**get row height */
getRowHeight: (row: number)
```

## setColWidth(Function)

set column width.
Expand Down
32 changes: 32 additions & 0 deletions docs/assets/api/zh/event/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ TABLE_EVENT_TYPE = {
MOUSEDOWN_TABLE: 'mousedown_table',
RESIZE_COLUMN: 'resize_column',
RESIZE_COLUMN_END: 'resize_column_end',
RESIZE_ROW: 'resize_row',
RESIZE_ROW_END: 'resize_row_end',
CHANGE_HEADER_POSITION: 'change_header_position',
SORT_CLICK: 'sort_click',
FREEZE_CLICK: 'freeze_click',
Expand Down Expand Up @@ -186,6 +188,36 @@ TABLE_EVENT_TYPE = {
```

## RESIZE_ROW

列宽调整事件。

事件回调函数的参数类型:

```
{
row: number;
rowHeight: number
}
```

## RESIZE_ROW_END

列宽调整结束事件。

事件回调函数的参数类型:

```
{
row: number;
rowHeight: number
}
```

## CHANGE_HEADER_POSITION

拖拽表头移动位置的事件
Expand Down
25 changes: 23 additions & 2 deletions docs/assets/api/zh/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,15 @@ setRecords(records: Array<any>)
选中某个单元格。如果传空,则清除当前选中高亮状态。

```
/**
/**
* 选中单元格 和鼠标选中单元格效果一致
* @param col
* @param row
* @param isShift 是否按住 shift 键
* @param isCtrl 是否按住 ctrl 键
* @param makeSelectCellVisible 是否让选中的单元格可见
*/
selectCell(col: number, row: number): void
selectCell(col: number, row: number, isShift?: boolean, isCtrl?: boolean, makeSelectCellVisible?: boolean): void
```

## selectCells(Function)
Expand Down Expand Up @@ -1140,6 +1143,24 @@ interface ISortedMapItem {
getHeaderField: (col: number, row: number)
```

## getColWidth(Function)

获取列宽

```
/**获取列宽 */
getColWidth: (col: number)
```

## getRowHeight(Function)

获取行高

```
/**获取行高 */
getRowHeight: (row: number)
```

## setColWidth(Function)

设置列宽
Expand Down
Loading

0 comments on commit 7909ebf

Please sign in to comment.