mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
Add placeholder
This commit is contained in:
parent
3c8117f85f
commit
3b6ea9846d
@ -32,7 +32,10 @@ var Test = React.createClass({
|
||||
});
|
||||
},
|
||||
render() {
|
||||
return <Select combobox style={{width:200}} onChange={this.handleChange}>
|
||||
return <Select combobox
|
||||
style={{width:200}}
|
||||
onChange={this.handleChange}
|
||||
searchPlaceholder="请输入账户名">
|
||||
{this.state.options}
|
||||
</Select>;
|
||||
}
|
||||
|
@ -30,4 +30,6 @@
|
||||
| onDeselect | 取消选中时调用,参数为选中的option value值,仅在multiple或tags模式下生效 | function | 无 |
|
||||
| onChange | 选中option,或input的value变化(combobox模式下)时,调用此函数 | function | 无 |
|
||||
| allowClear | 显示清除按钮 | | false |
|
||||
| placeholder | 选择框默认文字 | string | 无 |
|
||||
| searchPlaceholder | 搜索框默认文字 | string | 无 |
|
||||
| combobox | 输入框自动提示模式 | | false |
|
||||
|
Loading…
Reference in New Issue
Block a user