hy-virtual-tree 1.1.53 → 1.1.54
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 +7 -0
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1251,6 +1251,9 @@ function useCheck(props, tree) {
|
|
|
1251
1251
|
function getCheckedNodes(leafOnly = false) {
|
|
1252
1252
|
return getChecked(leafOnly).checkedNodes;
|
|
1253
1253
|
}
|
|
1254
|
+
function getCheckedBusinessNodes(leafOnly = false) {
|
|
1255
|
+
return getChecked(leafOnly).checkedBusinessNodes || [];
|
|
1256
|
+
}
|
|
1254
1257
|
function getHalfCheckedKeys() {
|
|
1255
1258
|
return getHalfChecked().halfCheckedKeys;
|
|
1256
1259
|
}
|
|
@@ -1559,6 +1562,7 @@ function useCheck(props, tree) {
|
|
|
1559
1562
|
afterNodeCheck,
|
|
1560
1563
|
getCheckedKeys,
|
|
1561
1564
|
getCheckedNodes,
|
|
1565
|
+
getCheckedBusinessNodes,
|
|
1562
1566
|
getHalfCheckedKeys,
|
|
1563
1567
|
getHalfCheckedNodes,
|
|
1564
1568
|
setChecked,
|
|
@@ -8886,6 +8890,7 @@ class VirtualTree {
|
|
|
8886
8890
|
getChecked;
|
|
8887
8891
|
getCheckedKeys;
|
|
8888
8892
|
getCheckedNodes;
|
|
8893
|
+
getCheckedBusinessNodes;
|
|
8889
8894
|
setChecked;
|
|
8890
8895
|
setCheckedKeys;
|
|
8891
8896
|
setCheckedNodes;
|
|
@@ -9138,7 +9143,7 @@ class VirtualTree {
|
|
|
9138
9143
|
this._flattenTree = this._genereateFlattenTree();
|
|
9139
9144
|
const { checkedKeys, updateCheckedKeys, isIndeterminate, isChecked, toggleCheckbox, getChecked,
|
|
9140
9145
|
// afterNodeCheck,
|
|
9141
|
-
getCheckedKeys, getCheckedNodes,
|
|
9146
|
+
getCheckedKeys, getCheckedNodes, getCheckedBusinessNodes,
|
|
9142
9147
|
// getHalfCheckedKeys,
|
|
9143
9148
|
// getHalfCheckedNodes,
|
|
9144
9149
|
setChecked, setCheckedKeys, setCheckedNodes, getSwitchCheckedValue, } = useCheck(config, this._tree);
|
|
@@ -9146,6 +9151,7 @@ class VirtualTree {
|
|
|
9146
9151
|
this.getChecked = getChecked;
|
|
9147
9152
|
this.getCheckedKeys = getCheckedKeys;
|
|
9148
9153
|
this.getCheckedNodes = getCheckedNodes;
|
|
9154
|
+
this.getCheckedBusinessNodes = getCheckedBusinessNodes;
|
|
9149
9155
|
this.setChecked = (key, isChecked, isBusiness) => {
|
|
9150
9156
|
setChecked(key, isChecked, isBusiness);
|
|
9151
9157
|
this._refreshRender();
|