mpvue-vant icon indicating copy to clipboard operation
mpvue-vant copied to clipboard

自定义DropdownMenu菜单内容

Open 1757315673 opened this issue 4 years ago • 1 comments

使用selectComponent(id).toggle() 不能手动触发下拉菜单的关闭 。提示this.$refs.date.toggle is not a function

1757315673 avatar Mar 03 '20 02:03 1757315673

要看看selectComponent(id) 拿到的组件是不是 DropdownItem 组件,文档里描述的 toggle 方法是属于 DropdownItem 组件的,而不是 DropdownMenu

Rychou avatar Mar 19 '20 06:03 Rychou