56 lines
1.4 KiB
JavaScript
56 lines
1.4 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../common/vendor.js");
|
|
const _sfc_main = {
|
|
name: "ConfirmDialog",
|
|
props: {
|
|
visible: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
title: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
message: {
|
|
type: String,
|
|
default: ""
|
|
},
|
|
confirmText: {
|
|
type: String,
|
|
default: "确定"
|
|
},
|
|
cancelText: {
|
|
type: String,
|
|
default: "取消"
|
|
}
|
|
},
|
|
emits: ["confirm", "cancel"],
|
|
methods: {
|
|
confirm() {
|
|
this.$emit("confirm");
|
|
},
|
|
cancel() {
|
|
this.$emit("cancel");
|
|
}
|
|
}
|
|
};
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return common_vendor.e({
|
|
a: $props.visible
|
|
}, $props.visible ? common_vendor.e({
|
|
b: $props.title
|
|
}, $props.title ? {
|
|
c: common_vendor.t($props.title)
|
|
} : {}, {
|
|
d: common_vendor.t($props.message),
|
|
e: common_vendor.t($props.cancelText),
|
|
f: common_vendor.o((...args) => $options.cancel && $options.cancel(...args)),
|
|
g: common_vendor.t($props.confirmText),
|
|
h: common_vendor.o((...args) => $options.confirm && $options.confirm(...args)),
|
|
i: common_vendor.o((...args) => $options.cancel && $options.cancel(...args))
|
|
}) : {});
|
|
}
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a8d7f3de"]]);
|
|
wx.createComponent(Component);
|
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/ConfirmDialog.js.map
|