Skip to content

Commit 6a87a2e

Browse files
authored
Merge pull request #4143 from VisActor/release/1.19.2
[Auto release] release 1.19.2
2 parents d1a4c79 + 67c612f commit 6a87a2e

73 files changed

Lines changed: 6103 additions & 609 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

common/config/rush/pnpm-lock.yaml

Lines changed: 254 additions & 204 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.19.1","mainProject":"@visactor/vtable","nextBump":"patch"}]
1+
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.19.2","mainProject":"@visactor/vtable","nextBump":"patch"}]

docs/assets/api/en/methods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,13 +1430,13 @@ getAllColsWidth: () => number;
14301430

14311431
```
14321432
1433-
## getAllColsWidths(Function)
1433+
## getColsWidths(Function)
14341434
14351435
get all columns width list
14361436
14371437
```
14381438

1439-
getAllColsWidth: () => number[];
1439+
getColsWidths: () => number[];
14401440

14411441
```
14421442

docs/assets/api/zh/methods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,12 +1279,12 @@ getAllRowsHeight: () => number;
12791279
getAllColsWidth: () => number;
12801280
```
12811281

1282-
## getAllColsWidths(Function)
1282+
## getColsWidths(Function)
12831283

12841284
获取表格所有列的宽度列表
12851285

12861286
```
1287-
getAllColsWidth: () => number[];
1287+
getColsWidths: () => number[];
12881288
```
12891289

12901290
## setSortedIndexMap(Function)

docs/assets/changelog/en/release.md

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,47 @@
1+
# v1.19.1
2+
3+
2025-06-20
4+
5+
6+
**🆕 New feature**
7+
8+
- **@visactor/vtable**: fix when use containerFit scroll and bottom border error [#3337](https://github.com/VisActor/VTable/issues/3337)
9+
10+
**🐛 Bug fix**
11+
12+
- **@visactor/vtable**: copy not work when after copy tooltip text [#3968](https://github.com/VisActor/VTable/issues/3968)
13+
- **@visactor/vtable**: fix the issue where the icon configuration is not effective when cellType is progressBar [#4047](https://github.com/VisActor/VTable/issues/4047)
14+
15+
**🔧 Configuration releated**
16+
17+
- **@visactor/vtable**: update vrender 1.0.5 fix animation bug
18+
19+
20+
21+
[more detail about v1.19.1](https://github.com/VisActor/VTable/releases/tag/v1.19.1)
22+
123
# v1.19.0
224

325
2025-06-16
426

527

628
**🆕 New feature**
7-
8-
- **@visactor/vtable-gantt**: add task-bar minSize config [#4016](https://github.com/VisActor/VTable/issues/4016)
9-
- **@visactor/vtable-gantt**: support different dependency link line has differrent style [#4016](https://github.com/VisActor/VTable/issues/4016)
10-
- **@visactor/vtable**: add containerFit config to support table size
11-
- **@visactor/vtable**: add wps fill-handle plugin
12-
- **@visactor/vtable**: add clearColWidthCache for updateColumns api
29+
30+
- **@visactor/vtable-gantt**: add task-bar minSize config [#4016](https://github.com/VisActor/VTable/issues/4016)
31+
- **@visactor/vtable-gantt**: support different dependency link line has differrent style [#4016](https://github.com/VisActor/VTable/issues/4016)
32+
- **@visactor/vtable**: add containerFit config to support table size
33+
- **@visactor/vtable**: add wps fill-handle plugin
34+
- **@visactor/vtable**: add clearColWidthCache for updateColumns api
1335

1436
**🐛 Bug fix**
15-
16-
- **@visactor/vtable**: some taskShowMode should compute all row height on vtable [#4011](https://github.com/VisActor/VTable/issues/4011)
17-
- **@visactor/vtable**: group release so gif can stop animation [#4029](https://github.com/VisActor/VTable/issues/4029)
37+
38+
- **@visactor/vtable**: some taskShowMode should compute all row height on vtable [#4011](https://github.com/VisActor/VTable/issues/4011)
39+
- **@visactor/vtable**: group release so gif can stop animation [#4029](https://github.com/VisActor/VTable/issues/4029)
1840

1941
**🔧 Configuration releated**
20-
21-
- **@visactor/vtable**: update vrender 1.0.0
22-
42+
43+
- **@visactor/vtable**: update vrender 1.0.0
44+
2345

2446

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

docs/assets/changelog/zh/release.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# v1.19.1
2+
3+
2025-06-20
4+
5+
6+
**🆕 新增功能**
7+
8+
- **@visactor/vtable**: 修复使用 containerFit 滚动时底部边框错误问题 [#3337](https://github.com/VisActor/VTable/issues/3337)
9+
10+
**🐛 功能修复**
11+
12+
- **@visactor/vtable**: 修复复制 tooltip 文本后无法复制的问题 [#3968](https://github.com/VisActor/VTable/issues/3968)
13+
- **@visactor/vtable**: 修复当 cellType 为 progressBar 时图标配置不生效的问题 [#4047](https://github.com/VisActor/VTable/issues/4047)
14+
15+
**🔧 项目配置**
16+
17+
- **@visactor/vtable**: 更新 vrender 1.0.5 修复动画 bug
18+
19+
20+
21+
[更多详情请查看 v1.19.1](https://github.com/VisActor/VTable/releases/tag/v1.19.1)
22+
123
# v1.19.0
224

325
2025-06-16

docs/assets/demo/en/basic-functionality/list-table-header-group-collapse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
category: examples
33
group: Basic Features
44
title: List Table - Header Group Collapse
5-
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/list-table-header-group.png
5+
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/list-table-header-hierarchy-tree.gif
66
link: table-type/list-table
77
option: ListTable-columns-text#columns
88
---
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
---
2+
category: examples
3+
group: data-analysis
4+
title: Pivot Analysis Update Subtotal Total Using Editor
5+
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/pivot-analysis-updateTotalData.gif
6+
link: data_analysis/pivot_table_dataAnalysis
7+
option: PivotTable#dataConfig.updateAggregationOnEditCell
8+
---
9+
10+
# Pivot Analysis - Update Subtotal Total Using Editor
11+
12+
To summarize table data in pivot analysis, configure totals in dataConfig to set the total subtotal of the row and column dimensions, and configure updateAggregationOnEditCell to true to update the subtotal total when editing the cell.
13+
14+
## Key Configurations
15+
16+
- `PivotTable`
17+
- `columns`
18+
- `rows`
19+
- `indicators`
20+
- `dataConfig`
21+
- `updateAggregationOnEditCell` When updateAggregationOnEditCell is true, the subtotal total will be updated when editing the cell.
22+
23+
## Code demo
24+
25+
```javascript livedemo template=vtable
26+
const input_editor = new VTable_editors.InputEditor();
27+
VTable.register.editor('input', input_editor);
28+
const sumNumberFormat = VTable.DataStatistics.numberFormat({
29+
prefix: '$'
30+
});
31+
const countNumberFormat = VTable.DataStatistics.numberFormat({
32+
digitsAfterDecimal: 0,
33+
thousandsSep: '',
34+
suffix: ' orders'
35+
});
36+
let tableInstance;
37+
fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_data.json')
38+
.then(res => res.json())
39+
.then(data => {
40+
const option = {
41+
records: data,
42+
rows: [
43+
{
44+
dimensionKey: 'Category',
45+
title: 'Category',
46+
headerStyle: {
47+
textStick: true
48+
},
49+
width: 'auto'
50+
},
51+
{
52+
dimensionKey: 'Sub-Category',
53+
title: 'Sub-Catogery',
54+
headerStyle: {
55+
textStick: true
56+
},
57+
width: 'auto'
58+
}
59+
],
60+
columns: [
61+
{
62+
dimensionKey: 'Region',
63+
title: 'Region',
64+
headerStyle: {
65+
textStick: true
66+
},
67+
width: 'auto'
68+
},
69+
{
70+
dimensionKey: 'Segment',
71+
title: 'Segment',
72+
headerStyle: {
73+
textStick: true
74+
},
75+
width: 'auto'
76+
}
77+
],
78+
indicators: ['TotalSales', 'OrderCount', 'AverageOrderSales', 'MaxOrderSales', 'MinOrderSales'],
79+
corner: {
80+
titleOnDimension: 'row',
81+
headerStyle: {
82+
textStick: true
83+
}
84+
},
85+
dataConfig: {
86+
updateAggregationOnEditCell: true,
87+
aggregationRules: [
88+
//做聚合计算的依据,如销售额如果没有配置则默认按聚合sum计算结果显示单元格内容
89+
{
90+
indicatorKey: 'TotalSales', //指标名称
91+
field: 'Sales', //指标依据字段
92+
aggregationType: VTable.TYPES.AggregationType.SUM, //计算类型
93+
formatFun: sumNumberFormat
94+
},
95+
{
96+
indicatorKey: 'OrderCount', //指标名称
97+
field: 'Sales', //指标依据字段
98+
aggregationType: VTable.TYPES.AggregationType.COUNT, //计算类型
99+
formatFun: countNumberFormat
100+
},
101+
{
102+
indicatorKey: 'AverageOrderSales', //指标名称
103+
field: 'Sales', //指标依据字段
104+
aggregationType: VTable.TYPES.AggregationType.AVG, //计算类型
105+
formatFun: sumNumberFormat
106+
},
107+
{
108+
indicatorKey: 'MaxOrderSales', //指标名称
109+
field: 'Sales', //指标依据字段
110+
aggregationType: VTable.TYPES.AggregationType.MAX, //计算类型
111+
formatFun: sumNumberFormat
112+
},
113+
{
114+
indicatorKey: 'MinOrderSales', //指标名称
115+
field: 'Sales', //指标依据字段
116+
aggregationType: VTable.TYPES.AggregationType.MIN, //计算类型
117+
formatFun: sumNumberFormat
118+
}
119+
],
120+
totals: {
121+
row: {
122+
showGrandTotals: true,
123+
grandTotalLabel: '行总计'
124+
},
125+
column: {
126+
showGrandTotals: true,
127+
grandTotalLabel: '列总计'
128+
}
129+
}
130+
},
131+
editor: 'input',
132+
widthMode: 'autoWidth'
133+
};
134+
tableInstance = new VTable.PivotTable(document.getElementById(CONTAINER_ID), option);
135+
window.tableInstance = tableInstance;
136+
});
137+
```

docs/assets/demo/menu.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,22 @@
13331333
"zh": "透视表上钻下钻",
13341334
"en": "Pivot Table Drill"
13351335
}
1336+
},
1337+
{
1338+
"path": "pivot-analysis-updateTotalData",
1339+
"title": {
1340+
"zh": "透视维度小计总计动态更新",
1341+
"en": "Pivot Analysis Update Subtotal Total Using Editor"
1342+
},
1343+
"meta": {
1344+
"title": "Pivot Analysis Update Subtotal Total Using Editor",
1345+
"keywords": "pivot table, edit, aggregation, total, subtotal, updateAggregationOnEditCell",
1346+
"category": "demo",
1347+
"group": "Data Analysis",
1348+
"cover": "https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/pivot-analysis-total.png",
1349+
"link": "data_analysis/pivot_table_dataAnalysis",
1350+
"option": "PivotTable#dataConfig.updateAggregationOnEditCell"
1351+
}
13361352
}
13371353
]
13381354
},

docs/assets/demo/zh/basic-functionality/list-table-header-group-collapse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
category: examples
33
group: Basic Features
44
title: 基本表格表头分组与折叠
5-
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/list-table-header-group.png
5+
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/list-table-header-hierarchy-tree.gif
66
link: table-type/list-table
77
option: ListTable-columns-text#columns
88
---

0 commit comments

Comments
 (0)