ProFormCascader有哪些属性
时间: 2024-01-18 16:04:38 浏览: 39
ProFormCascader是Ant Design Pro组件库中的级联选择器组件,其常用的属性有:
1. options: 必选属性,级联选择器的选项数据源,格式为数组,数组的每一项可以是对象或者字符串。
2. fieldNames: 可选属性,选项数据源的字段名配置,格式为对象,属性包括value、label、children,默认值为{ value: 'value', label: 'label', children: 'children' }。
3. placeholder: 可选属性,级联选择器的占位符。
4. label: 可选属性,级联选择器的标签文本。
5. rules: 可选属性,级联选择器的校验规则,格式为数组,数组的每一项可以是对象或者函数。
6. disabled: 可选属性,级联选择器是否禁用,默认值为false。
7. fieldProps: 可选属性,级联选择器子表单的属性,格式为对象,可以设置子表单的initialValue、name、rules等属性。
8. onChange: 可选属性,级联选择器的值发生改变时的回调函数。
9. loadData: 可选属性,动态加载级联选择器选项数据源的函数,可以用来实现级联选择器的异步加载。
相关推荐
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![mp4](https://img-home.csdnimg.cn/images/20210720083504.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![apk](https://img-home.csdnimg.cn/images/20210720083646.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![mp4](https://img-home.csdnimg.cn/images/20210720083504.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)