hy-virtual-tree 2.1.0 → 2.1.2

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,5 +1,17 @@
1
1
  ## Changelog
2
2
 
3
+ ### 2.1.2
4
+
5
+ _2026-05-20_
6
+
7
+ (1)修复 调用setChecked方法时 checkStrictly配置 不生效问题
8
+
9
+ ### 2.1.1
10
+
11
+ _2026-05-16_
12
+
13
+ (1)修复在过滤后调用 getData 出现不触发展开逻辑问题
14
+
3
15
  ### 2.1.0
4
16
 
5
17
  _2026-05-16_
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* hy-virtual-tree v2.1.0 */
1
+ /* hy-virtual-tree v2.1.2 */
2
2
  import './svg_bundle.js';
3
3
  const isString = (e) => typeof e === 'string';
4
4
  const isNumber = (e) => typeof e === 'number';
@@ -8449,7 +8449,7 @@ function useCheck(props, instance) {
8449
8449
  if (!isBusiness || !props.business) {
8450
8450
  const node = treeNodeMap.get(key);
8451
8451
  if (node) {
8452
- toggleCheckbox(node, isChecked, false, true, true, isForce);
8452
+ toggleCheckbox(node, isChecked, false, true, false, isForce);
8453
8453
  }
8454
8454
  return;
8455
8455
  }
@@ -10435,6 +10435,7 @@ class VirtualTree {
10435
10435
  }
10436
10436
  this._hiddenExpandIconKeySet = hiddenExpandIconKeySet;
10437
10437
  this._hiddenNodeKeySet = hiddenNodeKeySet;
10438
+ this._isRenderInitial = false;
10438
10439
  this._isForceHiddenExpandIcon = isForceHiddenExpandIcon;
10439
10440
  this._updateCheckedKeys();
10440
10441
  this._refreshVirtualScroll();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-virtual-tree",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",