Cascader
Container properties
All component configurations support Container properties at the first level.
Component properties
| Name | Type | Default | Supports Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | The className of the component | |
| style | object | The style of the component | ||
| dataUrl | ConditionalListOrSinglePropertyPropType(string) | ✔️ | Get data through dataUrl | |
| dataResponseKeyPath | string | The data exists in the key path in the response data | ||
| translateDataResponse | bool | false | Is the translation request result required | |
| dataFilters | ConditionalListPropertyPropType(DataFilters) | ✔️ | Fixed filter conditions hidden by requesting data source cannot be changed through the interface | |
| debounceTime | number | 200 | Debounce time for requesting data | |
| options | Array<{ value: string | number, label: string }> | antd Cascader element | ||
| mapping | { value: string, label: string | number, children: string } | { value: 'value', label: 'label', children: 'children' } | The mapping relationship of value, the data is saved by default { value, label }. If other keys are provided, they will be saved together. | |
| multiple | bool | false | Multiple selection | |
| useOriginValue | bool | false | Whether to save the original value of the mapping relationship | |
| stringEqual | bool | false | Option id is converted to string or not. | |
| buildTreeBy | string | { parent: string, parentPointee: string } | Automatically build a tree structure based on fields |
All the remaining componentsProps will be passed to the component root element(Cascader)。
JS API
The interface obtained through formApi.getFieldApi() is as follows:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | The root DOM element of the component |