acdr-ui/dist/dev/mp-weixin/node-modules/wot-design-uni/components/wd-overlay/wd-overlay.js

65 lines
2.1 KiB
JavaScript

"use strict";
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
const common_vendor = require("../../../../common/vendor.js");
if (!Array) {
const _easycom_wd_transition2 = common_vendor.resolveComponent("wd-transition");
_easycom_wd_transition2();
}
const _easycom_wd_transition = () => "../wd-transition/wd-transition.js";
if (!Math) {
_easycom_wd_transition();
}
const __default__ = {
name: "wd-overlay",
options: {
virtualHost: true,
addGlobalClass: true,
styleIsolation: "shared"
}
};
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent(__spreadProps(__spreadValues({}, __default__), {
props: common_vendor.overlayProps,
emits: ["click"],
setup(__props, { emit: __emit }) {
const emit = __emit;
function handleClick() {
emit("click");
}
function noop() {
}
return (_ctx, _cache) => {
return {
a: common_vendor.o(handleClick),
b: common_vendor.o(($event) => _ctx.lockScroll ? noop : ""),
c: common_vendor.p({
show: _ctx.show,
name: "fade",
["custom-class"]: "wd-overlay",
duration: _ctx.duration,
["custom-style"]: `z-index: ${_ctx.zIndex}; ${_ctx.customStyle}`
})
};
};
}
}));
wx.createComponent(_sfc_main);
//# sourceMappingURL=wd-overlay.js.map