mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
update code style
This commit is contained in:
parent
921d3bce46
commit
fbee9d9dd9
@ -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() {},
|
||||
|
@ -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…
Reference in New Issue
Block a user