Skip to content

Commit

Permalink
Merge pull request #2996 from VisActor/release/1.12.0
Browse files Browse the repository at this point in the history
[Auto release] release 1.12.0
  • Loading branch information
fangsmile authored Dec 3, 2024
2 parents 07feccc + 1248bf7 commit 4946607
Show file tree
Hide file tree
Showing 91 changed files with 8,415 additions and 682 deletions.
412 changes: 234 additions & 178 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
@@ -1 +1 @@
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.11.5","mainProject":"@visactor/vtable","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.12.0","mainProject":"@visactor/vtable","nextBump":"minor"}]
21 changes: 21 additions & 0 deletions docs/assets/api/en/GanttAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,27 @@ deleteLink: (link: ITaskLink) => void
```

### scrollTop

Get or set the vertical scroll value to a specified position.

### scrollLeft

Get or set the horizontal scroll value to a specified position.

### getTaskBarRelativeRect(Function)

Get the position of the task bar. The position relative to the top-left corner of the Gantt chart.

```
getTaskBarRelativeRect:(index: number) =>{
left: number;
top: number;
width: number;
height: number;
}
```

## Events

The Gantt chart event list allows you to listen to the required events and implement custom business logic as needed.
Expand Down
5 changes: 3 additions & 2 deletions docs/assets/api/en/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ Set the table data interface, which can be called as an update interface.

Basic table updates:

The basic table can also set the sorting status to sort the table data. Set sortState to null to clear the sorting status. If not set, the incoming data will be sorted according to the current sorting status.
The basic table can also set the sorting status to sort the table data. Set sortState to null to clear the sorting status. If not set, the incoming data will be sorted according to the current sorting status.In a scenario where internal sorting is disabled, be sure to clear the current sorting state before invoking the interface.

```
setRecords(
records: Array<any>,
option?: { sortState?: SortState | SortState[]}
option?: { sortState?: SortState | SortState[] | null }
): void;
```

Expand Down Expand Up @@ -1322,6 +1322,7 @@ setCanvasSize: (width: number, height: number) => void;
## setLoadingHierarchyState(Function)

Set the loading state of the tree expansion and collapse of the cell

```
/** Set the loading state of the tree expansion and collapse of the cell */
setLoadingHierarchyState: (col: number, row: number) => void;
Expand Down
21 changes: 21 additions & 0 deletions docs/assets/api/zh/GanttAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,27 @@
```

### scrollTop

竖向滚动到指定位置的滚动值获取或者设置

### scrollLeft

横向滚动到指定位置的滚动值获取或者设置

### getTaskBarRelativeRect(Function)

获取任务条的位置。相对应甘特图表左上角的位置。

```
getTaskBarRelativeRect:(index: number) =>{
left: number;
top: number;
width: number;
height: number;
}
```

## Events

甘特图事件列表,可以根据实际需要,监听所需事件,实现自定义业务。
Expand Down
6 changes: 3 additions & 3 deletions docs/assets/api/zh/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ tableInstance.renderWithRecreateCells();

基本表格更新:

基本表格可同时设置排序状态对表格数据排序,sortState 设置为 null 清空排序状态,如果不设置则按当前排序状态对传入数据排序。
基本表格可同时设置排序状态对表格数据排序,sortState 设置为 null 清空当前的排序状态,如果不设置则按当前排序状态对传入数据排序。如果是禁用内部排序的场景,请务必在调用该接口前清空当前的排序状态

```
setRecords(
records: Array<any>,
option?: { sortState?: SortState | SortState[] }
option?: { sortState?: SortState | SortState[] | null }
): void;
```

Expand Down Expand Up @@ -1319,7 +1319,7 @@ interface ISortedMapItem {

## setLoadingHierarchyState(Function)

设置单元格的树形展开收起状态为 loading
设置单元格的树形展开收起状态为 loading

```
/** 设置单元格的树形展开收起状态为 loading */
Expand Down
16 changes: 16 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# v1.11.5

2024-11-29


**🆕 New feature**

- **@visactor/vtable**: add @visactor/vtable-plugins package

**📖 Site / documentation update**

- **@visactor/vtable**: 更新进入或离开节点时的事件文档
- **@visactor/vtable**: 更新甘特图事件文档,暴露整个e的信息

[more detail about v1.11.5](https://github.com/VisActor/VTable/releases/tag/v1.11.5)

# v1.11.3

2024-11-28
Expand Down
16 changes: 16 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# v1.11.5

2024-11-29


**🆕 新增功能**

- **@visactor/vtable**: add @visactor/vtable-plugins package

**📖 文档更新**

- **@visactor/vtable**: 更新进入或离开节点时的事件文档
- **@visactor/vtable**: 更新甘特图事件文档,暴露整个e的信息

[更多详情请查看 v1.11.5](https://github.com/VisActor/VTable/releases/tag/v1.11.5)

# v1.11.3

2024-11-28
Expand Down
Loading

0 comments on commit 4946607

Please sign in to comment.