Browse Source

Merge pull request #1095 from ecofe/master

modify md file (dropdownStyle)
pull/1475/head
afc163 9 years ago
parent
commit
67305505c2
  1. 2
      components/tree-select/demo/basic.md
  2. 2
      components/tree-select/demo/treeData.md
  3. 1
      components/tree-select/index.md

2
components/tree-select/demo/basic.md

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

2
components/tree-select/demo/treeData.md

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

1
components/tree-select/index.md

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

Loading…
Cancel
Save