update code style

This commit is contained in:
afc163 2016-03-30 19:36:29 +08:00
parent 921d3bce46
commit fbee9d9dd9
2 changed files with 2 additions and 4 deletions

View File

@ -13,9 +13,7 @@ export default class Cascader extends React.Component {
popupPlacement: 'bottomLeft',
onChange() {},
options: [],
displayRender(label) {
return label.join(' / ');
},
displayRender: label => label.join(' / '),
disabled: false,
allowClear: true,
onPopupVisibleChange() {},

View File

@ -27,7 +27,7 @@
| defaultValue | 默认的选中项 | array |[] |
| value | 指定选中项 | array | - |
| onChange | 选择完成后的回调 | `function(value, selectedOptions)` | - |
| displayRender | 选择后展示的渲染函数 | `function(label)`` | `function(label) { return label.join(' / ') }` |
| displayRender | 选择后展示的渲染函数 | `function(label)`` | `label => label.join(' / ')` |
| style | 自定义样式 | string | - |
| className | 自定义类名 | string | - |
| popupClassName | 自定义浮层类名 | string | - |