cr tree-select
parent
adbd82b910
commit
673081274f
|
@ -27,7 +27,6 @@ export const selectorPropTypes = () => ({
|
||||||
inputIcon: PropTypes.any,
|
inputIcon: PropTypes.any,
|
||||||
clearIcon: PropTypes.any,
|
clearIcon: PropTypes.any,
|
||||||
removeIcon: PropTypes.any,
|
removeIcon: PropTypes.any,
|
||||||
selectorValueList: PropTypes.array,
|
|
||||||
placeholder: PropTypes.any,
|
placeholder: PropTypes.any,
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
focused: PropTypes.bool,
|
focused: PropTypes.bool,
|
||||||
|
|
|
@ -203,7 +203,7 @@ export function getFilterTree(h, treeNodes, searchValue, filterFunc, valueEntiti
|
||||||
match = true;
|
match = true;
|
||||||
}
|
}
|
||||||
const $slots = getSlots(node);
|
const $slots = getSlots(node);
|
||||||
const children = toNodeArray($slots.default)
|
const children = $slots.default
|
||||||
.map(mapFilteredNodeToData)
|
.map(mapFilteredNodeToData)
|
||||||
.filter(n => n);
|
.filter(n => n);
|
||||||
delete $slots.default;
|
delete $slots.default;
|
||||||
|
@ -299,7 +299,8 @@ export function formatSelectorValue(valueList, props, valueEntities) {
|
||||||
value,
|
value,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
} else if (showCheckedStrategy === SHOW_CHILD) {
|
}
|
||||||
|
if (showCheckedStrategy === SHOW_CHILD) {
|
||||||
// Only get the children checked value
|
// Only get the children checked value
|
||||||
const targetValueList = [];
|
const targetValueList = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue