hldy_app/unpackage/dist/dev/mp-weixin/component/Initialization/saoma.js

34 lines
1016 B
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "saoma",
props: { isShow: { type: Boolean, required: true } },
emits: ["nav"],
setup(__props, { emit: __emit }) {
const props = __props;
const transition = common_vendor.ref(true);
common_vendor.watch(
() => props.isShow,
(newVal, oldVal) => {
if (!oldVal && newVal) {
transition.value = false;
setTimeout(() => transition.value = true, 50);
}
}
);
return (_ctx, _cache) => {
return {
a: __props.isShow,
b: common_vendor.s(transition.value ? {
opacity: `1`
} : {
opacity: `0`
})
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ab7f57c7"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/component/Initialization/saoma.js.map