Skip to content

Commit

Permalink
Merge pull request #962 from VisActor/release/0.18.0
Browse files Browse the repository at this point in the history
[Auto release] release 0.18.0
  • Loading branch information
fangsmile committed Jan 19, 2024
2 parents 18d160a + e34dbde commit f6ce5f2
Show file tree
Hide file tree
Showing 89 changed files with 30,568 additions and 678 deletions.
79 changes: 19 additions & 60 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"0.17.10","mainProject":"@visactor/vtable","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"0.18.0","mainProject":"@visactor/vtable","nextBump":"minor"}]
2 changes: 1 addition & 1 deletion docs/assets/api/en/event/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Parameter types of event callback function:
```

## CHANGE_CELL_VALUE
Event that changes the cell value. **ListTable table exclusive event**
Event that changes the cell value.

Parameter types of event callback function:

Expand Down
13 changes: 13 additions & 0 deletions docs/assets/api/en/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,19 @@ Delete data supports multiple pieces of data
*/
deleteRecords(recordIndexs: number[])
```
## updateRecords(Function)

Modify data to support multiple pieces of data

** ListTable proprietary **
```
/**
* Modify data to support multiple pieces of data
* @param records Modify data entries
* @param recordIndexs The index corresponding to the modified data (the index displayed in the body, that is, which row of data in the body part is to be modified)
*/
updateRecords(records: any[], recordIndexs: number[])
```

## getBodyVisibleCellRange(Function)

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/api/zh/event/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ icon 图标点击事件。
```

## CHANGE_CELL_VALUE
更改单元格值的事件。**ListTable表格专有事件**
更改单元格值的事件。

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

Expand Down
15 changes: 15 additions & 0 deletions docs/assets/api/zh/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,21 @@ use case: 点击图例项后 更新过滤规则 来更新图表
*/
deleteRecords(recordIndexs: number[])
```

## updateRecords(Function)

修改数据 支持多条数据

** ListTable 专有 **
```
/**
* 修改数据 支持多条数据
* @param records 修改数据条目
* @param recordIndexs 对应修改数据的索引(显示在body中的索引,即要修改的是body部分的第几行数据)
*/
updateRecords(records: any[], recordIndexs: number[])
```

## getBodyVisibleCellRange(Function)

获取表格body部分的显示单元格范围
Expand Down
Loading

0 comments on commit f6ce5f2

Please sign in to comment.