This commit is contained in:
2024-08-02 16:22:33 +08:00
parent 1b1df48566
commit 520d34a951

View File

@@ -45,7 +45,9 @@
<dropdown-menu
:option="option1"
:active="active1"
:open="open1">
:open="open1"
@toggleItem="toggleItem1"
@dropdownMenu="dropdownMenu1">
</dropdown-menu>
</div>
</div>
@@ -254,6 +256,17 @@ export default {
},
packUp () {
this.up = submitPackUp(this.$refs.submit, this.$refs.arrow, this.$refs.content, 2, this.up)
},
toggleItem1 () {
if (!this.open1) {
this.open1 = true
} else {
this.open1 = false
}
},
dropdownMenu1 (i) {
this.active1 = i + ''
this.open1 = false
}
}
}