Skip to content

Commit 8a760ea

Browse files
authored
Merge pull request #4974 from VisActor/docs/generate-changelog-v1.23.0
[Auto changelog] changlog of v1.23.0
2 parents ebf70aa + d9b4714 commit 8a760ea

4 files changed

Lines changed: 92 additions & 10 deletions

File tree

docs/assets/changelog/en/release.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
# v1.23.0
2+
3+
2026-01-29
4+
5+
6+
**🆕 New feature**
7+
8+
- **@visactor/vtable-sheet**: add event system for vtable sheet [#4861](https://github.com/VisActor/VTable/issues/4861)
9+
10+
**🐛 Bug fix**
11+
12+
- **@visactor/vtable**: when dimension value is empty string should different from no dimension value [#4935](https://github.com/VisActor/VTable/issues/4935)
13+
- **@visactor/vtable**: when no columnTree to adjust columnWidthConfig [#4935](https://github.com/VisActor/VTable/issues/4935)
14+
- **@visactor/vtable**: change dimension value to recalculate totalTree [#4953](https://github.com/VisActor/VTable/issues/4953)
15+
- **@visactor/vtable**: when change dimenison value should update cached changedTree value
16+
- **@visactor/vtable**: to update formula after add records
17+
- **@visactor/vtable**: react type define
18+
19+
**🔨 Refactor**
20+
21+
- **@visactor/vtable**: pivotTable have to distinguishing no dimension and dimension value is null character string
22+
23+
24+
25+
[more detail about v1.23.0](https://github.com/VisActor/VTable/releases/tag/v1.23.0)
26+
127
# v1.22.12
228

329
2026-01-26

docs/assets/changelog/zh/release.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# v1.23.0
2+
3+
2026-01-29
4+
5+
6+
**🆕 新增功能**
7+
8+
- **@visactor/vtable-sheet**:vtable-sheet 新增事件系统 [#4861](https://github.com/VisActor/VTable/issues/4861)
9+
10+
**🐛 功能修复**
11+
12+
- **@visactor/vtable**: 修复 columnWidthConfig 计算逻辑 [#4935](https://github.com/VisActor/VTable/issues/4935)
13+
- **@visactor/vtable**: 维度值变化时重新计算 totalTree [#4953](https://github.com/VisActor/VTable/issues/4953)
14+
- **@visactor/vtable**: 维度值变化时更新 cached changedTree 值
15+
- **@visactor/vtable-sheet**: 新增记录后更新公式
16+
- **@visactor/vtable**: 修复 react 类型定义
17+
18+
**🔨 功能重构**
19+
20+
- **@visactor/vtable**: 修复 pivotTable 区分无维度值和维度值为空字符串的问题
21+
22+
[更多详情请查看 v1.23.0](https://github.com/VisActor/VTable/releases/tag/v1.23.0)
23+
124
# v1.22.12
225

326
2026-01-26

docs/assets/guide/en/sheet/plugins.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,21 @@ const sheetInstance = new VTableSheet.VTableSheet(container, {
164164
});
165165
```
166166

167+
## Disable Built-in Plugins
168+
169+
If you want to disable built-in plugins, you can configure the plugins through VTablePluginModules to disable built-in plugins.
170+
171+
For example, to disable the context menu plugin:
172+
173+
```javascript
174+
VTablePluginModules: [
175+
{
176+
module: VTablePlugins.ContextMenuPlugin,
177+
disabled: true
178+
}
179+
]
180+
```
181+
167182
## Combined Use of Plugins and Menus
168183

169184
For combined use of plugins and menus, refer to [Menu Configuration](./menu.md) for specific menu configuration.
@@ -228,25 +243,25 @@ const sheetInstance = new VTableSheet.VTableSheet(container, {
228243
items: [
229244
{
230245
name: 'Import',
231-
menuKey: VTableSheet.TYPES.MenuKey.IMPORT,
246+
menuKey: 'import',
232247
description: 'Import data to replace current sheet'
233248
},
234249
{
235250
name: 'Export',
236251
items: [
237252
{
238253
name: 'Export CSV',
239-
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_CURRENT_SHEET_CSV,
254+
menuKey: 'export-current-sheet-csv',
240255
description: 'Export current sheet data to csv'
241256
},
242257
{
243258
name: 'Export XLSX',
244-
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_CURRENT_SHEET_XLSX,
259+
menuKey: 'export-current-sheet-xlsx',
245260
description: 'Export current sheet data to xlsx'
246261
},
247262
{
248263
name: 'Export All Sheets',
249-
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_ALL_SHEETS_XLSX,
264+
menuKey: 'export-all-sheets-xlsx',
250265
description: 'Export all sheets to xlsx'
251266
}
252267
]

docs/assets/guide/zh/sheet/plugins.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,34 @@ const sheetInstance = new VTableSheet.VTableSheet(container, {
165165
});
166166
```
167167

168+
## 禁用内置插件
169+
170+
如果想要禁用内置插件,可以通过VTablePluginModules配置插件,来禁用内置插件。
171+
如禁用表格右键插件:
172+
173+
```javascript
174+
VTablePluginModules: [
175+
{
176+
module: VTablePlugins.ContextMenuPlugin,
177+
disabled: true
178+
}
179+
]
180+
```
181+
168182
## 插件与菜单的组合使用
169183

170184
插件与菜单的组合使用,具体菜单的配置可以参考[菜单配置](./menu.md)
171185

172186
这里主要介绍说明菜单中增加导入导出的功能,在配置VTablePluginModules中需要明确配置所需的`ExcelImportPlugin``TableExportPlugin`插件。
173187

174-
下面示例中配置了mainMenu,UI左上角将出现主菜单按钮,点击主菜单按钮将出现导入导出功能,如果:
188+
下面示例中配置了mainMenu,UI左上角将出现主菜单按钮,点击主菜单按钮将出现导入导出功能,如图所示:
189+
175190
<div style="display: flex; justify-content: center; width: 50%;">
176191
<img src="https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/guide/mainMenu.png" style="width: 100%; object-fit: contain; padding: 10px;">
177192
</div>
193+
194+
具体demo如:
195+
178196
```javascript livedemo template=vtable
179197
// 引入所需插件包 需要确保版本和VTableSheet中引用的版本一致
180198
// import * as VTablePlugins from '@visactor/vtable-plugins';
@@ -228,25 +246,25 @@ const sheetInstance = new VTableSheet.VTableSheet(container, {
228246
items: [
229247
{
230248
name: '导入',
231-
menuKey: VTableSheet.TYPES.MenuKey.IMPORT,
249+
menuKey: 'import',
232250
description: '导入数据替换到当前sheet'
233251
},
234252
{
235253
name: '导出',
236254
items: [
237255
{
238256
name: '导出CSV',
239-
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_CURRENT_SHEET_CSV,
257+
menuKey: 'export-current-sheet-csv',
240258
description: '导出当前sheet数据到csv'
241259
},
242260
{
243261
name: '导出XLSX',
244-
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_CURRENT_SHEET_XLSX,
262+
menuKey: 'export-current-sheet-xlsx',
245263
description: '导出当前sheet数据到xlsx'
246264
},
247265
{
248266
name: '导出所有表格',
249-
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_ALL_SHEETS_XLSX,
267+
menuKey: 'export-all-sheets-xlsx',
250268
description: '导出所有表格页到xlsx'
251269
}
252270
]
@@ -258,9 +276,9 @@ const sheetInstance = new VTableSheet.VTableSheet(container, {
258276
enableDragRowOrder: true
259277
}
260278
});
261-
window.sheetInstance = sheetInstance;
262279
```
263280

281+
264282
示例中的MenuKey是VTableSheet内部定义的菜单键值。
265283

266284
```typescript

0 commit comments

Comments
 (0)