[new feature] DropdownMenu: add icon option (#3855)

This commit is contained in:
neverland
2019-07-15 18:44:33 +08:00
committed by GitHub
parent d15315b8e4
commit dbe56fd362
5 changed files with 83 additions and 28 deletions
+8
View File
@@ -134,3 +134,11 @@ Use ref to get DropdownItem instance and call instance methods
| Name | Attribute | Return value | Description |
|------|------|------|------|
| toggle | show: boolean | - | Toggle display |
### Data Structure of Option
| Key | Description | Type |
|------|------|------|
| text | Text | `string` |
| value | Value | `string | number` |
| icon | Left icon | `string` |