同步弹窗组件逻辑

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