hy-virtual-tree 1.1.5 → 1.1.6

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,13 @@
1
1
  ## Changelog
2
2
 
3
+ ### 1.1.6
4
+
5
+ _2025-08-26_
6
+
7
+ - 扩展[VirtualTree] 功能
8
+ (1)修复单选无法触发rowSelection.onCheckChange
9
+ (2)修复 rowSelection.showSelect 设置为false还会触发高亮
10
+
3
11
  ### 1.1.5
4
12
 
5
13
  _2025-08-26_
package/dist/index.js CHANGED
@@ -706,6 +706,7 @@ function useCheck(props, tree) {
706
706
  if (isChecked) {
707
707
  checkedKeySet.add(node.key);
708
708
  }
709
+ afterNodeCheck(node, isChecked);
709
710
  return;
710
711
  }
711
712
  // 多选
@@ -1647,7 +1648,9 @@ class VirtualTree {
1647
1648
  let nodeClickTimer;
1648
1649
  let nodeClickCount = 0;
1649
1650
  const nodeClickHandle = (e) => {
1650
- if (!getDisabled(config, item)) {
1651
+ if (!getDisabled(config, item) && (isBoolean(showSelect)
1652
+ ? showSelect
1653
+ : isFunction(showSelect) && showSelect(item.data, item))) {
1651
1654
  if (config.checkOnClickNode) {
1652
1655
  toggleCheckbox(item, !(isChecked(item) || isIndeterminate(item)), true, true);
1653
1656
  if (!config.expandOnClickNode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-virtual-tree",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",