UNPKG

1.85 kBJavaScriptView Raw
1var __defProp = Object.defineProperty;
2var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3var __getOwnPropNames = Object.getOwnPropertyNames;
4var __hasOwnProp = Object.prototype.hasOwnProperty;
5var __export = (target, all) => {
6 for (var name in all)
7 __defProp(target, name, { get: all[name], enumerable: true });
8};
9var __copyProps = (to, from, except, desc) => {
10 if (from && typeof from === "object" || typeof from === "function") {
11 for (let key of __getOwnPropNames(from))
12 if (!__hasOwnProp.call(to, key) && key !== except)
13 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14 }
15 return to;
16};
17var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18var stdin_exports = {};
19__export(stdin_exports, {
20 popupSharedPropKeys: () => popupSharedPropKeys,
21 popupSharedProps: () => popupSharedProps
22});
23module.exports = __toCommonJS(stdin_exports);
24var import_utils = require("../utils");
25const popupSharedProps = {
26 // whether to show popup
27 show: Boolean,
28 // z-index
29 zIndex: import_utils.numericProp,
30 // whether to show overlay
31 overlay: import_utils.truthProp,
32 // transition duration
33 duration: import_utils.numericProp,
34 // teleport
35 teleport: [String, Object],
36 // prevent body scroll
37 lockScroll: import_utils.truthProp,
38 // whether to lazy render
39 lazyRender: import_utils.truthProp,
40 // callback function before close
41 beforeClose: Function,
42 // overlay custom style
43 overlayStyle: Object,
44 // overlay custom class name
45 overlayClass: import_utils.unknownProp,
46 // Initial rendering animation
47 transitionAppear: Boolean,
48 // whether to close popup when overlay is clicked
49 closeOnClickOverlay: import_utils.truthProp
50};
51const popupSharedPropKeys = Object.keys(
52 popupSharedProps
53);