From 6efadb79886be4e3329a9f762eccf527c9f596ca Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Fri, 7 Oct 2016 20:22:46 +0800 Subject: [PATCH] docs: update docs for AutoComplete, ref: #3295 --- components/auto-complete/index.en-US.md | 2 +- components/auto-complete/index.zh-CN.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/auto-complete/index.en-US.md b/components/auto-complete/index.en-US.md index c347be7a81..ff22b9589f 100644 --- a/components/auto-complete/index.en-US.md +++ b/components/auto-complete/index.en-US.md @@ -25,5 +25,5 @@ const dataSource = ['12345', '23456', '34567']; | value | selected option | String/Array/{key: String, label: React.Node}/Array<{key, label}> | - | | defaultValue | Initial selected option. | string/Array | - | | allowClear | Show clear button, effective in multiple mode only. | boolean | false | -| onChange | Called when select an option or input value change, or value of input is changed in combobox mode | function(value, label) | - | +| onChange | Called when select an option or input value change, or value of input is changed | function(value, label) | - | | disabled | Whether disabled select | boolean | false | diff --git a/components/auto-complete/index.zh-CN.md b/components/auto-complete/index.zh-CN.md index 20c4714df4..fc281a01cd 100644 --- a/components/auto-complete/index.zh-CN.md +++ b/components/auto-complete/index.zh-CN.md @@ -22,9 +22,9 @@ const dataSource = ['12345', '23456', '34567']; | 参数 | 说明 | 类型 | 默认值 | |----------------|----------------------------------|------------|---------| -| dataSource | 自动完成的数据源 | Array | | +| dataSource | 自动完成的数据源 | Array | | | value | 指定当前选中的条目 | String/Array/{key: String, label: React.Node}/Array<{key, label}> | 无 | | defaultValue | 指定默认选中的条目 | String/Array/{key: String, label: React.Node}/Array<{key, label}> | 无 | | allowClear | 支持清除, 单选模式有效 | boolean | false | -| onChange | 选中 option,或 input 的 value 变化(combobox 模式下)时,调用此函数 | function(value) | 无 | +| onChange | 选中 option,或 input 的 value 变化时,调用此函数 | function(value) | 无 | | disabled | 是否禁用 | boolean | false |