Skip to content

Commit

Permalink
Merge pull request #1016 from VisActor/release/0.18.4
Browse files Browse the repository at this point in the history
[Auto release] release 0.18.4
  • Loading branch information
fangsmile authored Jan 26, 2024
2 parents ac61354 + 3188e24 commit 78f4d18
Show file tree
Hide file tree
Showing 21 changed files with 629 additions and 419 deletions.
809 changes: 426 additions & 383 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":"0.18.3","mainProject":"@visactor/vtable","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"0.18.4","mainProject":"@visactor/vtable","nextBump":"patch"}]
24 changes: 24 additions & 0 deletions docs/assets/api/en/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,30 @@ Get the text of the cell with omitted text.
getCellOverflowText(col: number, row: number) => string | null
```

## getCellRect(Function)
Get the specific position of the cell in the entire table.
```
/**
* Get the range of cells. The return value is Rect type. Regardless of whether it is a merged cell, the coordinates start from 0
* @param {number} col column index
* @param {number} row row index
* @returns {Rect}
*/
getCellRect(col: number, row: number): Rect
```

## getCellRelativeRect(Function)
Get the specific position of the cell in the entire table. Relative position is based on the upper left corner of the table (scroll condition minus scroll value)
```
/**
* The obtained position is relative to the upper left corner of the table display interface. In case of scrolling, if the cell has rolled out of the top of the table, the y of this cell will be a negative value.
* @param {number} col index of column, of the cell
* @param {number} row index of row, of the cell
* @returns {Rect} the rect of the cell.
*/
getCellRelativeRect(col: number, row: number): Rect
```

## getCellHeaderPaths(Function)

Get the path to the row list header
Expand Down
24 changes: 24 additions & 0 deletions docs/assets/api/zh/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,30 @@ setRecords(records: Array<any>, sort?: SortState | SortState[]) //** 基本表
getCellOverflowText(col: number, row: number) => string | null
```

## getCellRect(Function)
获取单元格在整张表格中的具体位置。
```
/**
* 获取单元格的范围 返回值为Rect类型。不考虑是否为合并单元格的情况,坐标从0开始
* @param {number} col column index
* @param {number} row row index
* @returns {Rect}
*/
getCellRect(col: number, row: number): Rect
```

## getCellRelativeRect(Function)
获取单元格在整张表格中的具体位置。相对位置是基于表格左上角(滚动情况减去滚动值)
```
/**
* 获取的位置是相对表格显示界面的左上角 情况滚动情况 如单元格已经滚出表格上方 则这个单元格的y将为负值
* @param {number} col index of column, of the cell
* @param {number} row index of row, of the cell
* @returns {Rect} the rect of the cell.
*/
getCellRelativeRect(col: number, row: number): Rect
```

## getCellHeaderPaths(Function)

获取行列表头的路径
Expand Down
50 changes: 40 additions & 10 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,51 @@
# v0.18.3

2024-01-25

**🐛 Bug fix**

- **@visactor/vtable**: click outside of cells click cancel select state

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

# v0.18.2

2024-01-24

**🆕 New feature**

- **@visactor/vtable**: add component update

**🐛 Bug fix**

- **@visactor/vtable**: fix rowHeaderGroup attribute y when has no colHeaderGroup [#971](https://github.com/VisActor/VTable/issues/971)
- **@visactor/vtable**: transpose bottomFrozenRow cell layout error [#978](https://github.com/VisActor/VTable/issues/978)
- **@visactor/vtable**: passte value to last row occur error [#979](https://github.com/VisActor/VTable/issues/979)
- **@visactor/vtable**: use updateColumns api click state not right [#975](https://github.com/VisActor/VTable/issues/975)
- **@visactor/vtable**: record has nan string value pivotchart cell value parse handle this case [#993](https://github.com/VisActor/VTable/issues/993)
- **@visactor/vtable**: row Height compute for axis
- **@visactor/vtable**: fix deltaY col number in moveCell()

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

# v0.18.0

2024-01-19


**🆕 New feature**

- **@visactor/vtable**: pivotchart support pie
- **@visactor/vtable**: add customLayout & customRander in customMergeCell
- **@visactor/vtable**: add eventOptions [#914](https://github.com/VisActor/VTable/issues/914)

- **@visactor/vtable**: pivotchart support pie
- **@visactor/vtable**: add customLayout & customRander in customMergeCell
- **@visactor/vtable**: add eventOptions [#914](https://github.com/VisActor/VTable/issues/914)

**🐛 Bug fix**

- **@visactor/vtable**: handle with chartSpec barWidth set string type
- **@visactor/vtable**: addRecords api call when body no data [#953](https://github.com/VisActor/VTable/issues/953)
- **@visactor/vtable**: mouse drag to move Header position has error when column has multi-levels [#957](https://github.com/VisActor/VTable/issues/957)
- **@visactor/vtable**: when resize column width bottomFrozenRow height should update [#954](https://github.com/VisActor/VTable/issues/954)


- **@visactor/vtable**: handle with chartSpec barWidth set string type
- **@visactor/vtable**: addRecords api call when body no data [#953](https://github.com/VisActor/VTable/issues/953)
- **@visactor/vtable**: mouse drag to move Header position has error when column has multi-levels [#957](https://github.com/VisActor/VTable/issues/957)
- **@visactor/vtable**: when resize column width bottomFrozenRow height should update [#954](https://github.com/VisActor/VTable/issues/954)



[more detail about v0.18.0](https://github.com/VisActor/VTable/releases/tag/v0.18.0)
Expand Down
30 changes: 30 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
# v0.18.3

2024-01-25

**🐛 功能修复**

- **@visactor/vtable**: 点击单元格外部取消选择状态

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

# v0.18.2

2024-01-24

**🆕 新增功能**

- **@visactor/vtable**: 当调用updateTheme时 组件更新逻辑

**🐛 功能修复**

- **@visactor/vtable**: 修复 rowHeaderGroup 属性 y 在没有 colHeaderGroup 时的问题 [#971](https://github.com/VisActor/VTable/issues/971)
- **@visactor/vtable**: 修复 transpose时,bottomFrozenRow 单元格布局错误 [#978](https://github.com/VisActor/VTable/issues/978)
- **@visactor/vtable**: 修复值粘贴到最后一行时出现的错误 [#979](https://github.com/VisActor/VTable/issues/979)
- **@visactor/vtable**: 修复使用 updateColumns api 点击选择状态不正确的问题 [#975](https://github.com/VisActor/VTable/issues/975)
- **@visactor/vtable**: 修复records中有'NaN'字符串值 pivotchart 单元格值解析处理问题 [#993](https://github.com/VisActor/VTable/issues/993)
- **@visactor/vtable**: 坐标轴单元格行高度计算逻辑的优化
- **@visactor/vtable**: 修复在 moveCell() 中 deltaY的问题

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

# v0.18.0

2024-01-19
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/en/cell-type/chart.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
category: examples
group: Cell Type In PivotTable
group: Cell Type
title: Chart Type Use in PivotTable
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/chart.png
link: '../guide/cell_type/chart'
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/en/cell-type/list-table-chart.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
category: examples
group: Cell Type In ListTable
group: Cell Type
title: List table integrated chart
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/list-chart.png
link: '../guide/cell_type/chart'
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/en/edit/add-delete-records.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
category: examples
group: edit
title: add or delete records
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/performance.gif
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/add-delete-records.png
---

# Add and delete data dynamically
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/zh/cell-type/chart.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
category: examples
group: Cell Type In PivotTable
group: Cell Type
title: 透视表集成图表
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/chart.png
link: '../guide/cell_type/chart'
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/zh/cell-type/list-table-chart.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
category: examples
group: Cell Type In ListTable
group: Cell Type
title: 基本表格集成图表
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/list-chart.png
link: '../guide/cell_type/chart'
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/demo/zh/edit/add-delete-records.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
category: examples
group: edit
title: 动态添加删除数据
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/performance.gif
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/add-delete-records.png
---

# 动态添加删除数据
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@visactor/vtable": "workspace:*",
"@visactor/vtable-editors": "workspace:*",
"@visactor/vtable-export": "workspace:*",
"@visactor/vchart": "1.8.7",
"@visactor/vchart": "1.9.0",
"markdown-it": "^13.0.0",
"highlight.js": "^11.8.0",
"axios": "^1.4.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-vtable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vtable",
"version": "0.18.3",
"version": "0.18.4",
"description": "The react version of VTable",
"keywords": [
"react",
Expand Down Expand Up @@ -52,7 +52,7 @@
"react-is": "^18.2.0"
},
"devDependencies": {
"@visactor/vchart": "1.8.7",
"@visactor/vchart": "1.9.0",
"@internal/bundler": "workspace:*",
"@internal/eslint-config": "workspace:*",
"@internal/ts-config": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/vtable-editors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vtable-editors",
"version": "0.18.3",
"version": "0.18.4",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/vtable-export/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vtable-export",
"version": "0.18.3",
"version": "0.18.4",
"description": "The export util of VTable",
"author": {
"name": "VisActor",
Expand Down Expand Up @@ -40,7 +40,7 @@
"exceljs": "4.4.0"
},
"devDependencies": {
"@visactor/vchart": "1.8.7",
"@visactor/vchart": "1.9.0",
"@internal/bundler": "workspace:*",
"@internal/eslint-config": "workspace:*",
"@internal/ts-config": "workspace:*",
Expand Down
12 changes: 12 additions & 0 deletions packages/vtable/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@visactor/vtable",
"entries": [
{
"version": "0.18.4",
"tag": "@visactor/vtable_v0.18.4",
"date": "Fri, 26 Jan 2024 09:15:07 GMT",
"comments": {
"none": [
{
"comment": "fix: when click bottomFrozenRow table scroll sometimes #1011\n\n"
}
]
}
},
{
"version": "0.18.3",
"tag": "@visactor/vtable_v0.18.3",
Expand Down
11 changes: 10 additions & 1 deletion packages/vtable/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Change Log - @visactor/vtable

This log was last generated on Thu, 25 Jan 2024 10:27:02 GMT and should not be manually modified.
This log was last generated on Fri, 26 Jan 2024 09:15:07 GMT and should not be manually modified.

## 0.18.4
Fri, 26 Jan 2024 09:15:07 GMT

### Updates

- fix: when click bottomFrozenRow table scroll sometimes #1011



## 0.18.3
Thu, 25 Jan 2024 10:27:02 GMT
Expand Down
6 changes: 3 additions & 3 deletions packages/vtable/examples/list/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ export function createTable() {
tableInstance.on('change_cell_value', arg => {
console.log(arg);
});
setTimeout(() => {
tableInstance.addRecord({ id: 333 }, 6);
}, 3000);
// setTimeout(() => {
// tableInstance.addRecord({ id: 333 }, 6);
// }, 3000);
// tableInstance.on('sort_click', args => {
// tableInstance.updateSortState(
// {
Expand Down
4 changes: 2 additions & 2 deletions packages/vtable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vtable",
"version": "0.18.3",
"version": "0.18.4",
"description": "canvas table width high performance",
"keywords": [
"grid",
Expand Down Expand Up @@ -61,7 +61,7 @@
},
"devDependencies": {
"luxon": "*",
"@visactor/vchart": "1.8.7",
"@visactor/vchart": "1.9.0",
"@internal/bundler": "workspace:*",
"@internal/eslint-config": "workspace:*",
"@internal/ts-config": "workspace:*",
Expand Down
Loading

0 comments on commit 78f4d18

Please sign in to comment.