docs(Cascader): add Option description (#8880)

This commit is contained in:
neverland
2021-06-17 21:03:32 +08:00
committed by GitHub
parent e28ac72484
commit e3341e6c68
3 changed files with 20 additions and 2 deletions
+8
View File
@@ -213,6 +213,14 @@ export default {
| close-icon `v3.0.10` | Close icon name | _string_ | `cross` |
| field-names `v3.0.4` | Custom the fields of options | _object_ | `{ text: 'text', value: 'value', children: 'children' }` |
### Data Structure of Option
| Key | Description | Type |
| -------- | ---------------- | ------------------ |
| text | Option text | _string_ |
| value | Option value | _string \| number_ |
| children | Cascade children | _Option[]_ |
### Events
| Event | Description | Arguments |