Update documentation to match with the select search method #9494 (#9577)

pull/9588/head
Xoce51 7 years ago committed by 偏右
parent 59b7195c06
commit e142bce0a0

@ -52,12 +52,16 @@ function onChange(value, selectedOptions) {
console.log(value, selectedOptions);
}
function filter(inputValue, path) {
return (path.some(option => (option.label).toLowerCase().indexOf(inputValue.toLowerCase()) > -1));
}
ReactDOM.render(
<Cascader
options={options}
onChange={onChange}
placeholder="Please select"
showSearch
showSearch={{ filter }}
/>,
mountNode
);

Loading…
Cancel
Save