arthub-table 0.2.0-beta.47 → 0.2.0-beta.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1395,6 +1395,21 @@ declare class DataGrid {
1395
1395
  * (e.g. after loadData with corrected data).
1396
1396
  */
1397
1397
  resumeRenderLoop(): void;
1398
+ /**
1399
+ * 清除 Body 层的所有内部缓存(不影响接口数据缓存)。
1400
+ *
1401
+ * 典型场景:displayTaskNum 变化时,需要彻底清除 canvas 表格实例的缓存,
1402
+ * 确保后续 loadData 时不会从旧的 body.data 迁移任何状态(如 _nestedExpanded),
1403
+ * 同时所有 Row/Cell 对象会被重新创建。
1404
+ *
1405
+ * 清除范围:
1406
+ * - body.data(设为空数组,阻止 Body.paint() 迁移旧状态)
1407
+ * - body.rowCache / rowAccessTime(Row 对象缓存池和 LRU 访问时间)
1408
+ * - body.visibleRowIndexes / rows(可见行索引和 Row 对象数组)
1409
+ * - body._nestedDirtyRows / _nestedRenderedRows(嵌套表格渲染追踪)
1410
+ * - body.rowHeights / rowOffsets(行高和偏移量数组)
1411
+ */
1412
+ clearBodyCache(): void;
1398
1413
  drawContainer(): void;
1399
1414
  draw(): void;
1400
1415
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arthub-table",
3
- "version": "0.2.0-beta.47",
3
+ "version": "0.2.0-beta.49",
4
4
  "description": "High-performance canvas-based table/grid component for Vue 3 with TypeScript support, featuring virtual scrolling, cell viewers, grouped rows, and nested grids.",
5
5
  "main": "dist/arthub-table.common.js",
6
6
  "module": "dist/arthub-table.umd.min.js",