EP-WachatApp/eaterplanet_ecommerce/components/dialog/index.js

29 lines
509 B
JavaScript
Raw Normal View History

2023-03-24 11:24:28 +08:00
Component({
externalClasses: ["i-class", "i-btn"],
properties: {
visible: {
type: Boolean,
value: false
},
text: String,
confirmText: {
type: String,
value: "确定"
},
showCancel: {
type: Boolean,
value: true
}
},
methods: {
confirm: function () {
this.triggerEvent("confirm");
},
cancel: function () {
this.triggerEvent("cancel");
},
close: function () {
this.triggerEvent("cancel");
}
}
});