diff --git a/components/cascader/demo/search.md b/components/cascader/demo/search.md index 3d77c51989..a0340b2862 100644 --- a/components/cascader/demo/search.md +++ b/components/cascader/demo/search.md @@ -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( , mountNode );