From 9e4885d95977df2bbf0d537a8e543606b9b27f7c Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 7 Jan 2017 22:15:22 +0800 Subject: [PATCH] update select doc --- components/select/index.en-US.md | 4 ++-- components/select/index.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index 1417dfa375..cc605644b6 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -29,8 +29,8 @@ A Selector similar to Select2. | 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) | - | -| onDeselect | Called when a option is deselected. param is option's value. only called for multiple or tags, effective in multiple or tags mode only. | function(value) | - | +| onSelect | Called when a option is selected, the params are option's value (or key) and option instance. | function(value, option) | - | +| onDeselect | Called when a option is deselected, the params are option's value (or key) . only called for multiple or tags, effective in multiple or tags mode only. | function(value) | - | | onChange | Called when select an option or input value change, or value of input is changed in combobox mode | function(value, label) | - | | onSearch | Callback function that is fired when input changed. | function(value: String) | | | onBlur | Called when blur | function | - | diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index ee0f7232d5..6280e79d93 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -30,8 +30,8 @@ title: Select | allowClear | 支持清除, 单选模式有效 | boolean | false | | filterOption | 是否根据输入项进行筛选。当其为一个函数时,会接收 `inputValue` `option` 两个参数,当 `option` 符合筛选条件时,应返回 `true`,反之则返回 `false`。 | boolean or function(inputValue, option) | true | | tags | 可以把随意输入的条目作为 tag,输入项不需要与下拉选项匹配 | boolean |false | -| onSelect | 被选中时调用,参数为选中项的 value 值 | function(value, option) | - | -| onDeselect | 取消选中时调用,参数为选中项的 option value 值,仅在 multiple 或 tags 模式下生效 | function(value) | - | +| onSelect | 被选中时调用,参数为选中项的 value (或 key) 值 | function(value, option) | - | +| onDeselect | 取消选中时调用,参数为选中项的 value (或 key) 值,仅在 multiple 或 tags 模式下生效 | function(value) | - | | onChange | 选中 option,或 input 的 value 变化(combobox 模式下)时,调用此函数 | function(value) | - | | onSearch | 文本框值变化时回调 | function(value: String) | | | onBlur | 失去焦点的时回调 | function | - |