Fix wrong description about Select[allowClear] (#4101)

This commit is contained in:
afc163 2016-12-01 22:28:43 +08:00
parent 643463c9f2
commit 3802f08191

View File

@ -26,7 +26,7 @@ A Selector similar to Select2.
| value | Current selected option. | string/Array<String> | - |
| defaultValue | Initial selected option. | string/Array<String> | - |
| multiple | Allow multiple select. | boolean | false |
| allowClear | Show clear button, effective in multiple mode only. | boolean | false |
| allowClear | Show clear button, working in single mode only. | boolean | false |
| filterOption | If true, filter options by input, if function, filter options against it. The function will receive two arguments, `inputValue` and `option`, if the function returns `true`, the option will be included in the filtered set; Otherwise, it will be excluded. | boolean or function(inputValue, option) | true |
| tags | When tagging is enabled the user can select from pre-existing options or create a new tag by picking the first choice, which is what the user has typed into the search box so far. | boolean |false |
| onSelect | Called when a option is selected. param is option's value and option instance. | function(value, option) | - |