types(DropdownItem): add toggle method type

This commit is contained in:
陈嘉涵
2019-12-22 17:36:47 +08:00
committed by neverland
parent 0438bdbc97
commit 5c1883f77c
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -56,6 +56,7 @@ export default createComponent({
},
methods: {
// @exposed-api
toggle(show = !this.showPopup, options = {}) {
if (show === this.showPopup) {
return;