[new feauture] DropdownItem: add change event

This commit is contained in:
陈嘉涵
2019-05-07 20:56:23 +08:00
parent 02bcc66414
commit e9854daf29
4 changed files with 61 additions and 1 deletions
+6
View File
@@ -95,6 +95,12 @@ export default {
| title | 菜单项标题 | `String` | 当前选中项文字 | - |
| options | 选项数组 | `Array` | `[]` | - |
### DropdownItem Events
| 事件名 | 说明 | 回调参数 |
|------|------|------|
| change | 点击选项导致 value 变化时触发 | value |
### DropdownItem 方法
通过 ref 可以获取到 DropdownItem 实例并调用实例方法