Browse Source

update code style

pull/1307/head
afc163 9 years ago
parent
commit
fbee9d9dd9
  1. 4
      components/cascader/index.jsx
  2. 2
      components/cascader/index.md

4
components/cascader/index.jsx

@ -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() {},

2
components/cascader/index.md

@ -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 | - |

Loading…
Cancel
Save