fold.js
1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"use strict";
const common_vendor = require("../../../../common/vendor.js");
if (!Array) {
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
_easycom_uni_icons2();
}
const _easycom_uni_icons = () => "../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
if (!Math) {
_easycom_uni_icons();
}
const _sfc_main = {
__name: "fold",
props: {
title: String,
text: String,
cost: String
},
setup(__props) {
const porps = __props;
const show = common_vendor.ref(false);
function changFN() {
show.value = !show.value;
}
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.t(porps.title),
b: show.value
}, show.value ? {
c: common_vendor.p({
type: "top",
color: "#95a1a6"
})
} : {
d: common_vendor.p({
type: "bottom",
color: "#95a1a6"
})
}, {
e: common_vendor.o(changFN),
f: common_vendor.t(porps.text),
g: common_vendor.t(porps.cost),
h: show.value
});
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ec372eb7"], ["__file", "/Users/yangyang/project/j-mini/Venue/components/train/train-apply-four/fold/fold.vue"]]);
wx.createComponent(Component);