73 lines
1.9 KiB
JavaScript
73 lines
1.9 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../common/vendor.js");
|
|
if (!Array) {
|
|
const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
|
|
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
|
(_easycom_up_button2 + _easycom_up_popup2)();
|
|
}
|
|
const _easycom_up_button = () => "../uni_modules/uview-plus/components/u-button/u-button.js";
|
|
const _easycom_up_popup = () => "../uni_modules/uview-plus/components/u-popup/u-popup.js";
|
|
if (!Math) {
|
|
(_easycom_up_button + _easycom_up_popup)();
|
|
}
|
|
const _sfc_main = {
|
|
__name: "modal",
|
|
props: {
|
|
show: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
title: {
|
|
type: String,
|
|
default: "确认操作吗"
|
|
},
|
|
content: {
|
|
type: String,
|
|
default: "确认后继续下一步操作"
|
|
},
|
|
confirmText: {
|
|
type: String,
|
|
default: "确认"
|
|
},
|
|
cancleText: {
|
|
type: String,
|
|
default: "取消"
|
|
}
|
|
},
|
|
emits: ["close", "change"],
|
|
setup(__props, { emit: __emit }) {
|
|
const emit = __emit;
|
|
const close = () => {
|
|
emit("close");
|
|
};
|
|
const change = () => {
|
|
emit("change");
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.t(__props.title),
|
|
b: common_vendor.t(__props.content),
|
|
c: common_vendor.t(__props.cancleText),
|
|
d: common_vendor.o(close),
|
|
e: common_vendor.p({
|
|
plain: true,
|
|
color: "#999"
|
|
}),
|
|
f: common_vendor.t(__props.confirmText),
|
|
g: common_vendor.o(change),
|
|
h: common_vendor.p({
|
|
color: "#20B128"
|
|
}),
|
|
i: common_vendor.o(close),
|
|
j: common_vendor.p({
|
|
show: __props.show,
|
|
round: "10",
|
|
mode: "center"
|
|
})
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b2596e17"], ["__file", "D:/里海数字乡村/purchase-let/components/modal.vue"]]);
|
|
wx.createComponent(Component);
|