fold.js 1.32 KB
"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);