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 +8 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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) {
|