同步弹窗组件逻辑
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user