modify md file (dropdownStyle)

This commit is contained in:
ecofe 2016-02-29 16:52:53 +08:00
parent 86b5c6eecc
commit 5f8baf1bfd
3 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ const Demo = React.createClass({
return (
<TreeSelect style={{ width: 300 }}
value={this.state.value}
dropdownMenuStyle={{ maxHeight: 400, overflow: 'auto' }}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="请选择"
allowClear
treeDefaultExpandAll

View File

@ -42,7 +42,7 @@ const Demo = React.createClass({
return (
<TreeSelect style={{ width: 300 }}
value={this.state.value}
dropdownMenuStyle={{ maxHeight: 400, overflow: 'auto' }}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
treeData={treeData}
placeholder="请选择"
treeDefaultExpandAll

View File

@ -28,6 +28,7 @@
| onSearch | 文本框值变化时回调 | function(value: String) | |
| placeholder | 选择框默认文字 | string | 无 |
| searchPlaceholder | 搜索框默认文字 | string | 无 |
| dropdownStyle | 下拉菜单的样式 | object | 无 |
| dropdownMatchSelectWidth | 下拉菜单和选择器同宽 | boolean | true |
| combobox | 输入框自动提示模式 | boolean | false |
| size | 选择框大小,可选 `large` `small` | String | default |