Skip to content

Commit dea8d0d

Browse files
authored
Merge pull request #3767 from VisActor/develop
merge develop
2 parents 647b240 + cf3032c commit dea8d0d

File tree

125 files changed

+5181
-526
lines changed

Some content is hidden

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

125 files changed

+5181
-526
lines changed

common/changes/@visactor/vtable/fix-fix-switch-direction_2025-04-02-09-23.json renamed to common/changes/@visactor/vtable/chore-release-minor_2025-04-17-07-31.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"changes": [
33
{
44
"packageName": "@visactor/vtable",
5-
"comment": "fix: fix switch default direction #3667",
6-
"type": "minor"
5+
"comment": "chore: release 1.18.0",
6+
"type": "none"
77
}
88
],
99
"packageName": "@visactor/vtable"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.17.6","mainProject":"@visactor/vtable","nextBump":"patch"}]
1+
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.18.0","mainProject":"@visactor/vtable","nextBump":"minor"}]

docs/assets/changelog/en/release.md

Lines changed: 73 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,51 @@
1+
# v1.18.0
2+
v1.17.7 same content
3+
4+
2025-04-17
5+
6+
**💥 Breaking change**
7+
8+
- **@visactor/vtable**: fix switch default direction [#3667](https://github.com/VisActor/VTable/issues/3667)
9+
- **@visactor/vtable-editors**: fix input editor default style
10+
11+
**🆕 New feature**
12+
13+
- **@visactor/vtable**: add onBeforeCacheChartImage event
14+
- **@visactor/vtable**: support customConfig disableBuildInChartActive
15+
- **@visactor/vtable**: add dynamicUpdateSelectionSize config in theme.selectionStyle
16+
17+
**🐛 Bug fix**
18+
19+
- **@visactor/vtable**: fix table size in getCellsRect() [#3681](https://github.com/VisActor/VTable/issues/3681)
20+
- **@visactor/vtable**: correct column index calculation when rowSeriesNumber is configured
21+
- **@visactor/vtable**: fix image flash problem [#3588](https://github.com/VisActor/VTable/issues/3588)
22+
- **@visactor/vtable**: fix row/column update problem in text-stick [#3744](https://github.com/VisActor/VTable/issues/3744)
23+
- **@visactor/vtable**: fix switch default direction [#3667](https://github.com/VisActor/VTable/issues/3667)
24+
25+
26+
27+
[more detail about v1.17.7](https://github.com/VisActor/VTable/releases/tag/v1.17.7)
28+
129
# v1.17.6
230

331
2025-04-10
432

533

634
**🆕 New feature**
7-
8-
- **@visactor/vtable**: listTable added tiggerEvent parameter to changeCellValue
9-
- **@visactor/vtable**: list table header support hierarchy
35+
36+
- **@visactor/vtable**: listTable added tiggerEvent parameter to changeCellValue
37+
- **@visactor/vtable**: list table header support hierarchy
1038

1139
**🐛 Bug fix**
12-
13-
- **@visactor/vtable**: when move tree node position code occor error [#3645](https://github.com/VisActor/VTable/issues/3645) [#3706](https://github.com/VisActor/VTable/issues/3706)
14-
- **@visactor/vtable**: frame border set array render bottom line position error [#3684](https://github.com/VisActor/VTable/issues/3684)
15-
- **@visactor/vtable**: mobile touch event resize column width [#3693](https://github.com/VisActor/VTable/issues/3693)
16-
- **@visactor/vtable**: when set frozen disableDragSelect not work [#3702](https://github.com/VisActor/VTable/issues/3702)
17-
- **@visactor/vtable**: fix flex layout update in react-custom-layout component [#3696](https://github.com/VisActor/VTable/issues/3696)
18-
- **@visactor/vtable**: updateTaskRecord api [#3639](https://github.com/VisActor/VTable/issues/3639)
19-
- **@visactor/vtable**: repeat call computeColsWidth adaptive mode result error
20-
40+
41+
- **@visactor/vtable**: when move tree node position code occor error [#3645](https://github.com/VisActor/VTable/issues/3645) [#3706](https://github.com/VisActor/VTable/issues/3706)
42+
- **@visactor/vtable**: frame border set array render bottom line position error [#3684](https://github.com/VisActor/VTable/issues/3684)
43+
- **@visactor/vtable**: mobile touch event resize column width [#3693](https://github.com/VisActor/VTable/issues/3693)
44+
- **@visactor/vtable**: when set frozen disableDragSelect not work [#3702](https://github.com/VisActor/VTable/issues/3702)
45+
- **@visactor/vtable**: fix flex layout update in react-custom-layout component [#3696](https://github.com/VisActor/VTable/issues/3696)
46+
- **@visactor/vtable**: updateTaskRecord api [#3639](https://github.com/VisActor/VTable/issues/3639)
47+
- **@visactor/vtable**: repeat call computeColsWidth adaptive mode result error
48+
2149

2250

2351
[more detail about v1.17.6](https://github.com/VisActor/VTable/releases/tag/v1.17.6)
@@ -28,23 +56,23 @@
2856

2957

3058
**🆕 New feature**
31-
32-
- **@visactor/vtable**: cell support marked function [#3583](https://github.com/VisActor/VTable/issues/3583)
33-
- **@visactor/vtable**: refactor pivotTable corner with no columns or rows case [#3653](https://github.com/VisActor/VTable/issues/3653)
59+
60+
- **@visactor/vtable**: cell support marked function [#3583](https://github.com/VisActor/VTable/issues/3583)
61+
- **@visactor/vtable**: refactor pivotTable corner with no columns or rows case [#3653](https://github.com/VisActor/VTable/issues/3653)
3462

3563
**🐛 Bug fix**
36-
37-
- **@visactor/vtable**: gantt scale set quarter parser problem [#3612](https://github.com/VisActor/VTable/issues/3612)
38-
- **@visactor/vtable**: gantt overscrollBehavior none work [#3638](https://github.com/VisActor/VTable/issues/3638)
39-
- **@visactor/vtable**: gantt chart updateRecords error when table is tree mode [#3639](https://github.com/VisActor/VTable/issues/3639)
40-
- **@visactor/vtable**: rowHeight error when set adaptive heightMode [#3640](https://github.com/VisActor/VTable/issues/3640)
41-
- **@visactor/vtable**: when set renderChartAsync setRecords api render error [#3661](https://github.com/VisActor/VTable/issues/3661)
42-
- **@visactor/vtable**: fix merge cell checkbox state update [#3668](https://github.com/VisActor/VTable/issues/3668)
64+
65+
- **@visactor/vtable**: gantt scale set quarter parser problem [#3612](https://github.com/VisActor/VTable/issues/3612)
66+
- **@visactor/vtable**: gantt overscrollBehavior none work [#3638](https://github.com/VisActor/VTable/issues/3638)
67+
- **@visactor/vtable**: gantt chart updateRecords error when table is tree mode [#3639](https://github.com/VisActor/VTable/issues/3639)
68+
- **@visactor/vtable**: rowHeight error when set adaptive heightMode [#3640](https://github.com/VisActor/VTable/issues/3640)
69+
- **@visactor/vtable**: when set renderChartAsync setRecords api render error [#3661](https://github.com/VisActor/VTable/issues/3661)
70+
- **@visactor/vtable**: fix merge cell checkbox state update [#3668](https://github.com/VisActor/VTable/issues/3668)
4371

4472
**🔨 Refactor**
45-
46-
- **@visactor/vtable**: fillHandle function [#3582](https://github.com/VisActor/VTable/issues/3582)
47-
73+
74+
- **@visactor/vtable**: fillHandle function [#3582](https://github.com/VisActor/VTable/issues/3582)
75+
4876

4977

5078
[more detail about v1.17.5](https://github.com/VisActor/VTable/releases/tag/v1.17.5)
@@ -55,15 +83,15 @@
5583

5684

5785
**🆕 New feature**
58-
59-
- **@visactor/vtable**: add barMarkInBar style config in progressbar [#3616](https://github.com/VisActor/VTable/issues/3616)
86+
87+
- **@visactor/vtable**: add barMarkInBar style config in progressbar [#3616](https://github.com/VisActor/VTable/issues/3616)
6088

6189
**🐛 Bug fix**
62-
63-
- **@visactor/vtable**: fix button style problem [#3614](https://github.com/VisActor/VTable/issues/3614)
64-
- **@visactor/vtable**: fix checkbox state order update [#3606](https://github.com/VisActor/VTable/issues/3606)
65-
- **@visactor/vtable**: add isCustom tag for merge cell range [#3504](https://github.com/VisActor/VTable/issues/3504)
66-
- **@visactor/vtable**: fix tree checkbox state update problem
90+
91+
- **@visactor/vtable**: fix button style problem [#3614](https://github.com/VisActor/VTable/issues/3614)
92+
- **@visactor/vtable**: fix checkbox state order update [#3606](https://github.com/VisActor/VTable/issues/3606)
93+
- **@visactor/vtable**: add isCustom tag for merge cell range [#3504](https://github.com/VisActor/VTable/issues/3504)
94+
- **@visactor/vtable**: fix tree checkbox state update problem
6795
- **@visactor/vtable**: disable group title editor
6896

6997
[more detail about v1.17.4](https://github.com/VisActor/VTable/releases/tag/v1.17.4)
@@ -74,21 +102,21 @@
74102

75103

76104
**🆕 New feature**
77-
78-
- **@visactor/vtable**: rowSeriesNumber support cell type radio [#3558](https://github.com/VisActor/VTable/issues/3558)
79-
- **@visactor/vtable**: add custom reactAttributePlugin in react-vtable
80-
- **@visactor/vtable**: add maintainedColumnCount config
105+
106+
- **@visactor/vtable**: rowSeriesNumber support cell type radio [#3558](https://github.com/VisActor/VTable/issues/3558)
107+
- **@visactor/vtable**: add custom reactAttributePlugin in react-vtable
108+
- **@visactor/vtable**: add maintainedColumnCount config
81109

82110
**🐛 Bug fix**
83-
84-
- **@visactor/vtable**: selection mergeCell extend range [#3529](https://github.com/VisActor/VTable/issues/3529)
85-
- **@visactor/vtable**: set cellInnerBorder false frame border render error [#3574](https://github.com/VisActor/VTable/issues/3574)
86-
- **@visactor/vtable**: fix cell border in cell with corner-radius
87-
- **@visactor/vtable**: fix axis label autosize computation
88-
- **@visactor/vtable**: fix small window size frozen column count
89-
- **@visactor/vtable**: columnWidthConfig match dimension error
90-
- **@visactor/vtable**: fix react component update [#3474](https://github.com/VisActor/VTable/issues/3474)
91-
- **@visactor/vtable**: fix right button select problem
111+
112+
- **@visactor/vtable**: selection mergeCell extend range [#3529](https://github.com/VisActor/VTable/issues/3529)
113+
- **@visactor/vtable**: set cellInnerBorder false frame border render error [#3574](https://github.com/VisActor/VTable/issues/3574)
114+
- **@visactor/vtable**: fix cell border in cell with corner-radius
115+
- **@visactor/vtable**: fix axis label autosize computation
116+
- **@visactor/vtable**: fix small window size frozen column count
117+
- **@visactor/vtable**: columnWidthConfig match dimension error
118+
- **@visactor/vtable**: fix react component update [#3474](https://github.com/VisActor/VTable/issues/3474)
119+
- **@visactor/vtable**: fix right button select problem
92120
- **@visactor/vtable**: fix row update range [#3468](https://github.com/VisActor/VTable/issues/3468)
93121

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

docs/assets/changelog/zh/release.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
# v1.18.0
2+
v1.17.7 版本相同内容
3+
4+
2025-04-17
5+
6+
**💥 Breaking change**
7+
8+
- **@visactor/vtable**: 修复 switch 默认方向问题 [#3667](https://github.com/VisActor/VTable/issues/3667)
9+
- **@visactor/vtable-editors**: 修改了input编辑器中的默认样式
10+
11+
**🆕 新增功能**
12+
- **@visactor/vtable-plugins**: 新增 行列新增 行列序号 excel键盘对齐等插件
13+
- **@visactor/vtable**: 新增 onBeforeCacheChartImage 事件
14+
- **@visactor/vtable**: 支持 customConfig disableBuildInChartActive 配置
15+
- **@visactor/vtable**: 在 theme.selectionStyle 中新增 dynamicUpdateSelectionSize 配置
16+
17+
**🐛 功能修复**
18+
19+
- **@visactor/vtable**: 修复 getCellsRect() 中表格大小问题 [#3681](https://github.com/VisActor/VTable/issues/3681)
20+
- **@visactor/vtable**: 修复配置 rowSeriesNumber 时列索引计算错误问题
21+
- **@visactor/vtable**: 修复图片闪烁问题 [#3588](https://github.com/VisActor/VTable/issues/3588)
22+
- **@visactor/vtable**: 修复 text-stick 中行/列更新问题 [#3744](https://github.com/VisActor/VTable/issues/3744)
23+
24+
25+
26+
[更多详情请查看 v1.17.7](https://github.com/VisActor/VTable/releases/tag/v1.17.7)
27+
128
# v1.17.6
229

330
2025-04-10

docs/assets/demo/en/animation/carousel-animation.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
---
22
category: examples
33
group: Animation
4-
title: carousel animation
4+
title: Carousel Animation
55
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/carousel-animation.gif
66
link: animation/carousel_animation
77
---
88

99
# Carousel Animation
1010

11-
Carousel animation in VTable
11+
Table carousel animation display
1212

13-
## Key configuration
13+
## Key Configuration
1414

15-
- `CarouselAnimationPlugin` carousel animation plugin
16-
- `rowCount` scroll row count in a carousel animation
17-
- `colCount` scroll column count in a carousel animation
18-
- `animationDuration` The duration of a single carousel animation, in milliseconds
19-
- `animationDelay` The delay of a single carousel animation, in milliseconds
20-
- `animationEasing` The easing function of a single carousel animation
21-
- `replaceScrollAction` Whether to replace the scroll action, if true, the scroll action will be replaced by the carousel animation
15+
- `TableCarouselAnimationPlugin` Carousel animation plugin
16+
- `rowCount` Number of rows scrolled in one animation
17+
- `colCount` Number of columns scrolled in one animation
18+
- `animationDuration` Duration of a single scroll animation
19+
- `animationDelay` Time interval between animations
20+
- `animationEasing` Animation easing function
2221

23-
## Code demonstration
22+
## Code demo
2423

2524
```javascript livedemo template=vtable
2625
// use this for project
@@ -31,6 +30,10 @@ let tableInstance;
3130
fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_data100.json')
3231
.then(res => res.json())
3332
.then(data => {
33+
34+
const animationPlugin = new VTablePlugins.TableCarouselAnimationPlugin( {
35+
rowCount: 2,
36+
});
3437
const columns = [
3538
{
3639
field: 'Category',
@@ -92,16 +95,12 @@ fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American
9295
const option = {
9396
records: data.slice(0, 20),
9497
columns,
95-
widthMode: 'standard'
98+
widthMode: 'standard',
99+
plugins: [animationPlugin]
96100
};
97101
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option);
98102
window['tableInstance'] = tableInstance;
99103

100-
const ca = new VTablePlugins.CarouselAnimationPlugin(tableInstance, {
101-
rowCount: 2,
102-
replaceScrollAction: true
103-
});
104-
105-
ca.play();
104+
106105
});
107106
```

docs/assets/demo/en/interaction/head-highlight.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Highlight the header when selecting the cell.
1212

1313
## Key Configurations
1414

15-
- `HeaderHighlightPlugin` highlight plugin
15+
- `HighlightHeaderWhenSelectCellPlugin` highlight plugin
1616
- `columnHighlight` whether highlight the column
1717
- `rowHighlight` whether highlight the row
1818
- `colHighlightBGColor` the background color of the column highlight
@@ -90,14 +90,15 @@ const columns = [
9090
width: 100
9191
}
9292
];
93-
93+
const highlightPlugin = new VTablePlugins.HighlightHeaderWhenSelectCellPlugin();
9494
const option = {
9595
records,
9696
columns,
97-
rowSeriesNumber: {}
97+
rowSeriesNumber: {},
98+
plugins: [highlightPlugin]
9899
};
99100
const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option);
100101
window['tableInstance'] = tableInstance;
101102

102-
const highlightPlugin = new VTablePlugins.HeaderHighlightPlugin(tableInstance, {});
103+
103104
```

docs/assets/demo/en/interaction/invert-highlight.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Show the highlight effect when set highlight range.
1212

1313
## Key Configurations
1414

15-
- `InvertHighlightPlugin` invert highlight plugin
15+
- `FocusHighlightPlugin` invert highlight plugin
1616
- `fill` invert highlight background color
1717
- `opacity` invert highlight opacity
1818
- `setInvertHighlightRange` set highlight range
@@ -87,25 +87,16 @@ const columns = [
8787
width: 100
8888
}
8989
];
90-
90+
const highlightPlugin = new VTablePlugins.FocusHighlightPlugin();
9191
const option = {
9292
records,
9393
columns,
94-
theme: VTable.themes.DARK
94+
theme: VTable.themes.DARK,
95+
plugins: [highlightPlugin]
9596
};
9697
const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option);
9798
window['tableInstance'] = tableInstance;
9899

99-
const highlightPlugin = new VTablePlugins.InvertHighlightPlugin(tableInstance, {});
100100

101-
highlightPlugin.setInvertHighlightRange({
102-
start: {
103-
col: 0,
104-
row: 6
105-
},
106-
end: {
107-
col: 5,
108-
row: 6
109-
}
110-
});
101+
111102
```

0 commit comments

Comments
 (0)