hy-virtual-tree 1.1.37 → 1.1.38

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.
package/CHANGELOG.md CHANGED
@@ -1,8 +1,15 @@
1
1
  ## Changelog
2
2
 
3
+ ### 1.1.38
4
+
5
+ _2025-10-24_
6
+
7
+ - 扩展[VirtualTree] 功能
8
+ (1)修复虚拟树卸载时没有清除元素问题
9
+
3
10
  ### 1.1.37
4
11
 
5
- _2025-09-25_
12
+ _2025-10-11_
6
13
 
7
14
  - 扩展[VirtualTree] 功能
8
15
  (1)修复更新设备数据时,统计数据出错问题
package/dist/index.js CHANGED
@@ -2491,6 +2491,10 @@ class VirtualTree {
2491
2491
  /** 销毁组件 */
2492
2492
  destroy = () => {
2493
2493
  this._el = null;
2494
+ for (const $destroy of this._destroyDomSet) {
2495
+ $destroy && $destroy();
2496
+ }
2497
+ this._destroyDomSet.clear();
2494
2498
  this.setData([]);
2495
2499
  this.setCheckedKeys && this.setCheckedKeys([]);
2496
2500
  this._expandedKeySet = new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-virtual-tree",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -18,7 +18,9 @@
18
18
  ".": "./dist/index.js",
19
19
  "./style": "./dist/index.css"
20
20
  },
21
- "dependencies": {},
21
+ "dependencies": {
22
+ "vue-router": "^4.6.3"
23
+ },
22
24
  "devDependencies": {
23
25
  "@babel/core": "^7.28.0",
24
26
  "@babel/preset-env": "^7.28.0",