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

42 lines
1.3 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "input",
props: { isShow: { type: Boolean, required: true } },
emits: ["nav"],
setup(__props, { emit: __emit }) {
const props = __props;
const transition = common_vendor.ref(true);
const uuid = common_vendor.ref("");
common_vendor.watch(
() => props.isShow,
(newVal, oldVal) => {
if (!oldVal && newVal) {
transition.value = false;
setTimeout(() => transition.value = true, 50);
}
}
);
return (_ctx, _cache) => {
return {
a: common_assets._imports_0$5,
b: uuid.value,
c: common_vendor.o(($event) => uuid.value = $event.detail.value),
d: uuid.value,
e: common_assets._imports_1$2,
f: common_vendor.o(($event) => uuid.value = ""),
g: __props.isShow,
h: common_vendor.s(transition.value ? {
opacity: `1`
} : {
opacity: `0`
})
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bcec69b8"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/component/Initialization/input.js.map