| 123456789101112131415161718192021222324252627282930313233343536 |
- "use strict";
- const common_vendor = require("../common/vendor.js");
- const _sfc_main = {
- __name: "PurchaseModal",
- props: {
- visible: { type: Boolean, default: false },
- icon: { type: String, default: "💰" },
- title: { type: String, default: "打赏解锁" },
- description: { type: String, default: "" },
- amountLabel: { type: String, default: "打赏金额:" },
- amount: { type: [Number, String], default: 1 }
- },
- emits: ["close", "confirm"],
- setup(__props, { emit }) {
- const onClose = () => emit("close");
- const onConfirm = () => emit("confirm");
- return (_ctx, _cache) => {
- return common_vendor.e({
- a: __props.visible
- }, __props.visible ? {
- b: common_vendor.o(onClose),
- c: common_vendor.t(__props.icon),
- d: common_vendor.t(__props.title),
- e: common_vendor.t(__props.description),
- f: common_vendor.t(__props.amountLabel),
- g: common_vendor.t(__props.amount),
- h: common_vendor.o(onConfirm),
- i: common_vendor.o(() => {
- }),
- j: common_vendor.o(onClose)
- } : {});
- };
- }
- };
- const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1af578f4"], ["__file", "D:/program/gupiao/gupiao-wx/src/components/PurchaseModal.vue"]]);
- wx.createComponent(Component);
|