From 0e1f154aabd13634238726a5d9925edc6ba53681 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 3 Dec 2016 15:28:47 +0800 Subject: [PATCH] Add doc and demo for AutoComplete[placeholder], close #4044 --- components/auto-complete/demo/basic.md | 1 + components/auto-complete/demo/options.md | 1 + components/auto-complete/index.en-US.md | 1 + components/auto-complete/index.zh-CN.md | 1 + 4 files changed, 4 insertions(+) diff --git a/components/auto-complete/demo/basic.md b/components/auto-complete/demo/basic.md index 4cab65bb46..2798226775 100644 --- a/components/auto-complete/demo/basic.md +++ b/components/auto-complete/demo/basic.md @@ -43,6 +43,7 @@ const Complete = React.createClass({ style={{ width: 200 }} onSelect={onSelect} onChange={this.handleChange} + placeholder="input here" /> ); }, diff --git a/components/auto-complete/demo/options.md b/components/auto-complete/demo/options.md index 642e9891f6..77e3c8b102 100644 --- a/components/auto-complete/demo/options.md +++ b/components/auto-complete/demo/options.md @@ -42,6 +42,7 @@ const Complete = React.createClass({ {children} diff --git a/components/auto-complete/index.en-US.md b/components/auto-complete/index.en-US.md index 35a6843163..eca1bb8b6a 100644 --- a/components/auto-complete/index.en-US.md +++ b/components/auto-complete/index.en-US.md @@ -28,3 +28,4 @@ Since `AutoComplete` is based on `Select`, so besides the following API, `AutoCo | onChange | Called when select an option or input value change, or value of input is changed | function(value, label) | - | | onSelect | Called when a option is selected. param is option's value and option instance. | function(value, option) | - | | disabled | Whether disabled select | boolean | false | +| placeholder | placeholder of input | string | - | diff --git a/components/auto-complete/index.zh-CN.md b/components/auto-complete/index.zh-CN.md index f2fa375d0e..eacad5a915 100644 --- a/components/auto-complete/index.zh-CN.md +++ b/components/auto-complete/index.zh-CN.md @@ -29,3 +29,4 @@ const dataSource = ['12345', '23456', '34567']; | onChange | 选中 option,或 input 的 value 变化时,调用此函数 | function(value) | 无 | | onSelect | 被选中时调用,参数为选中项的 value 值 | function(value, option) | 无 | | disabled | 是否禁用 | boolean | false | +| placeholder | 输入框提示 | string | - |