Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# v1.23.0

2026-01-29


**🆕 New feature**

- **@visactor/vtable-sheet**: add event system for vtable sheet [#4861](https://github.com/VisActor/VTable/issues/4861)

**🐛 Bug fix**

- **@visactor/vtable**: when dimension value is empty string should different from no dimension value [#4935](https://github.com/VisActor/VTable/issues/4935)
- **@visactor/vtable**: when no columnTree to adjust columnWidthConfig [#4935](https://github.com/VisActor/VTable/issues/4935)
- **@visactor/vtable**: change dimension value to recalculate totalTree [#4953](https://github.com/VisActor/VTable/issues/4953)
- **@visactor/vtable**: when change dimenison value should update cached changedTree value
- **@visactor/vtable**: to update formula after add records
- **@visactor/vtable**: react type define

**🔨 Refactor**

- **@visactor/vtable**: pivotTable have to distinguishing no dimension and dimension value is null character string



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

# v1.22.12

2026-01-26
Expand Down
23 changes: 23 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
# v1.23.0

2026-01-29


**🆕 新增功能**

- **@visactor/vtable-sheet**:vtable-sheet 新增事件系统 [#4861](https://github.com/VisActor/VTable/issues/4861)

**🐛 功能修复**

- **@visactor/vtable**: 修复 columnWidthConfig 计算逻辑 [#4935](https://github.com/VisActor/VTable/issues/4935)
- **@visactor/vtable**: 维度值变化时重新计算 totalTree [#4953](https://github.com/VisActor/VTable/issues/4953)
- **@visactor/vtable**: 维度值变化时更新 cached changedTree 值
- **@visactor/vtable-sheet**: 新增记录后更新公式
- **@visactor/vtable**: 修复 react 类型定义

**🔨 功能重构**

- **@visactor/vtable**: 修复 pivotTable 区分无维度值和维度值为空字符串的问题

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

# v1.22.12

2026-01-26
Expand Down
23 changes: 19 additions & 4 deletions docs/assets/guide/en/sheet/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,21 @@ const sheetInstance = new VTableSheet.VTableSheet(container, {
});
```

## Disable Built-in Plugins

If you want to disable built-in plugins, you can configure the plugins through VTablePluginModules to disable built-in plugins.

For example, to disable the context menu plugin:

```javascript
VTablePluginModules: [
{
module: VTablePlugins.ContextMenuPlugin,
disabled: true
}
]
```

## Combined Use of Plugins and Menus

For combined use of plugins and menus, refer to [Menu Configuration](./menu.md) for specific menu configuration.
Expand Down Expand Up @@ -228,25 +243,25 @@ const sheetInstance = new VTableSheet.VTableSheet(container, {
items: [
{
name: 'Import',
menuKey: VTableSheet.TYPES.MenuKey.IMPORT,
menuKey: 'import',
description: 'Import data to replace current sheet'
},
{
name: 'Export',
items: [
{
name: 'Export CSV',
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_CURRENT_SHEET_CSV,
menuKey: 'export-current-sheet-csv',
description: 'Export current sheet data to csv'
},
{
name: 'Export XLSX',
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_CURRENT_SHEET_XLSX,
menuKey: 'export-current-sheet-xlsx',
description: 'Export current sheet data to xlsx'
},
{
name: 'Export All Sheets',
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_ALL_SHEETS_XLSX,
menuKey: 'export-all-sheets-xlsx',
description: 'Export all sheets to xlsx'
}
]
Expand Down
30 changes: 24 additions & 6 deletions docs/assets/guide/zh/sheet/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,34 @@ const sheetInstance = new VTableSheet.VTableSheet(container, {
});
```

## 禁用内置插件

如果想要禁用内置插件,可以通过VTablePluginModules配置插件,来禁用内置插件。
如禁用表格右键插件:

```javascript
VTablePluginModules: [
{
module: VTablePlugins.ContextMenuPlugin,
disabled: true
}
]
```

## 插件与菜单的组合使用

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

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

下面示例中配置了mainMenu,UI左上角将出现主菜单按钮,点击主菜单按钮将出现导入导出功能,如果:
下面示例中配置了mainMenu,UI左上角将出现主菜单按钮,点击主菜单按钮将出现导入导出功能,如图所示:

<div style="display: flex; justify-content: center; width: 50%;">
<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;">
</div>

具体demo如:

```javascript livedemo template=vtable
// 引入所需插件包 需要确保版本和VTableSheet中引用的版本一致
// import * as VTablePlugins from '@visactor/vtable-plugins';
Expand Down Expand Up @@ -228,25 +246,25 @@ const sheetInstance = new VTableSheet.VTableSheet(container, {
items: [
{
name: '导入',
menuKey: VTableSheet.TYPES.MenuKey.IMPORT,
menuKey: 'import',
description: '导入数据替换到当前sheet'
},
{
name: '导出',
items: [
{
name: '导出CSV',
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_CURRENT_SHEET_CSV,
menuKey: 'export-current-sheet-csv',
description: '导出当前sheet数据到csv'
},
{
name: '导出XLSX',
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_CURRENT_SHEET_XLSX,
menuKey: 'export-current-sheet-xlsx',
description: '导出当前sheet数据到xlsx'
},
{
name: '导出所有表格',
menuKey: VTableSheet.TYPES.MenuKey.EXPORT_ALL_SHEETS_XLSX,
menuKey: 'export-all-sheets-xlsx',
description: '导出所有表格页到xlsx'
}
]
Expand All @@ -258,9 +276,9 @@ const sheetInstance = new VTableSheet.VTableSheet(container, {
enableDragRowOrder: true
}
});
window.sheetInstance = sheetInstance;
```


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

```typescript
Expand Down
Loading