cr tree-select

pull/1040/head
tangjinzhou 2019-06-26 08:28:17 +08:00
parent adbd82b910
commit 673081274f
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,6 @@ export const selectorPropTypes = () => ({
inputIcon: PropTypes.any,
clearIcon: PropTypes.any,
removeIcon: PropTypes.any,
selectorValueList: PropTypes.array,
placeholder: PropTypes.any,
disabled: PropTypes.bool,
focused: PropTypes.bool,

View File

@ -203,7 +203,7 @@ export function getFilterTree(h, treeNodes, searchValue, filterFunc, valueEntiti
match = true;
}
const $slots = getSlots(node);
const children = toNodeArray($slots.default)
const children = $slots.default
.map(mapFilteredNodeToData)
.filter(n => n);
delete $slots.default;
@ -299,7 +299,8 @@ export function formatSelectorValue(valueList, props, valueEntities) {
value,
};
});
} else if (showCheckedStrategy === SHOW_CHILD) {
}
if (showCheckedStrategy === SHOW_CHILD) {
// Only get the children checked value
const targetValueList = [];