shared.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. var __defProp = Object.defineProperty;
  2. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  3. var __getOwnPropNames = Object.getOwnPropertyNames;
  4. var __hasOwnProp = Object.prototype.hasOwnProperty;
  5. var __export = (target, all) => {
  6. for (var name in all)
  7. __defProp(target, name, { get: all[name], enumerable: true });
  8. };
  9. var __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. };
  17. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  18. var stdin_exports = {};
  19. __export(stdin_exports, {
  20. popupSharedPropKeys: () => popupSharedPropKeys,
  21. popupSharedProps: () => popupSharedProps
  22. });
  23. module.exports = __toCommonJS(stdin_exports);
  24. var import_utils = require("../utils");
  25. const popupSharedProps = {
  26. show: Boolean,
  27. zIndex: import_utils.numericProp,
  28. overlay: import_utils.truthProp,
  29. duration: import_utils.numericProp,
  30. teleport: [String, Object],
  31. lockScroll: import_utils.truthProp,
  32. lazyRender: import_utils.truthProp,
  33. beforeClose: Function,
  34. overlayStyle: Object,
  35. overlayClass: import_utils.unknownProp,
  36. transitionAppear: Boolean,
  37. closeOnClickOverlay: import_utils.truthProp
  38. };
  39. const popupSharedPropKeys = Object.keys(
  40. popupSharedProps
  41. );