同步弹窗组件逻辑

This commit is contained in:
aixianling
2022-03-17 09:16:07 +08:00
parent 119663606c
commit 782d060673

View File

@@ -10,7 +10,7 @@
</div>
</div>
</u-popup>
<div @tap="show=true">
<div @tap="show= !disabled&&true">
<slot name="btn"/>
</div>
</section>
@@ -25,7 +25,8 @@ export default {
ops: {default: () => ({label: 'label', search: 'name'})},
url: String,
mode: {default: "right"},
length: {default: "100%"}
length: {default: "100%"},
disabled: Boolean
},
data() {
return {
@@ -49,9 +50,6 @@ export default {
}
})
},
showPopup() {
this.show = true
},
handleSelect(op) {
this.$emit('select', op)
this.show = false