2026-03-31 16:44:41 +08:00

42 lines
1.3 KiB
JavaScript

"use strict";
var common_vendor = require("../../../../common/vendor.js");
var uni_modules_wotDesignUni_components_wdOverlay_types = require("./types.js");
require("../common/props.js");
if (!Math) {
wdTransition();
}
const wdTransition = () => "../wd-transition/wd-transition.js";
const __default__ = {
name: "wd-overlay",
options: {
virtualHost: true,
addGlobalClass: true,
styleIsolation: "shared"
}
};
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
...__default__,
props: uni_modules_wotDesignUni_components_wdOverlay_types.overlayProps,
emits: ["click"],
setup(__props, { emit }) {
function handleClick() {
emit("click");
}
return (_ctx, _cache) => {
return {
a: common_vendor.o(handleClick),
b: common_vendor.p({
show: _ctx.show,
name: "fade",
["custom-class"]: "wd-overlay",
duration: _ctx.duration,
["custom-style"]: `z-index: ${_ctx.zIndex}; ${_ctx.customStyle}`,
["disable-touch-move"]: _ctx.lockScroll
})
};
};
}
});
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/\u7F51\u6291\u4E91Time/\u79C1\u6D3B/2000\u7B97\u5366/src/uni_modules/wot-design-uni/components/wd-overlay/wd-overlay.vue"]]);
wx.createComponent(Component);