Skip to content

Commit 6730812

Browse files
committed
cr tree-select
1 parent adbd82b commit 6730812

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/vc-tree-select/src/Base/BaseSelector.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export const selectorPropTypes = () => ({
2727
inputIcon: PropTypes.any,
2828
clearIcon: PropTypes.any,
2929
removeIcon: PropTypes.any,
30-
selectorValueList: PropTypes.array,
3130
placeholder: PropTypes.any,
3231
disabled: PropTypes.bool,
3332
focused: PropTypes.bool,

components/vc-tree-select/src/util.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export function getFilterTree(h, treeNodes, searchValue, filterFunc, valueEntiti
203203
match = true;
204204
}
205205
const $slots = getSlots(node);
206-
const children = toNodeArray($slots.default)
206+
const children = $slots.default
207207
.map(mapFilteredNodeToData)
208208
.filter(n => n);
209209
delete $slots.default;
@@ -299,7 +299,8 @@ export function formatSelectorValue(valueList, props, valueEntities) {
299299
value,
300300
};
301301
});
302-
} else if (showCheckedStrategy === SHOW_CHILD) {
302+
}
303+
if (showCheckedStrategy === SHOW_CHILD) {
303304
// Only get the children checked value
304305
const targetValueList = [];
305306

0 commit comments

Comments
 (0)