qt-public-ui
Version:
新设计规范下业务组件库
27 lines (22 loc) • 1.38 kB
Markdown
## DynamicList
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| max | 动态列表的最大个数 | number | Infinity |
| min | 动态列表的最小个数 | number | 0 |
| value | 每个对象的key 为 form.item 的 name,value 为 Form.Item 的值,同时还可增加 disabled,withoutDel | `Array<object>` | - |
| columns | 列的配置描述 | Array<[Column](/#/ui/DynamicList)> | - |
| onChange | 值发生改变的回调 | function(value) | - |
| disabled | 整个表单disabled | boolean | false |
| addText | 新增按钮的文案 | string | 添加 |
| rowClassName | 每一行的classname | string | - |
| buttonLayout | button 的布局,一整个对象作为button外层的FormItem的props传入 | object | - |
### Column
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| key | 相当于From.Item 的name 用于绑定值 | string | - |
| title | 相当于From.Item 的 title | string | - |
| options | 其他From.Item 的 options | [FormItemProps](https://ant-design.gitee.io/components/form-cn/#Form.Item) | - |
| span | 同栅格布局的span | number | - |
| grid | 栅格布局Col的配置 | [ColProps](https://ant-design.gitee.io/components/grid-cn/#Col) | - |
| className | 类名 | string | - |
| render | 具体的渲染函数(必填) | (props: RenderProps, record: any, index: number) => React.ReactNode` | - |