activityDescPopup.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const hooks_useDraw = require("../../../hooks/useDraw.js");
  4. if (!Array) {
  5. const _easycom_wd_popup2 = common_vendor.resolveComponent("wd-popup");
  6. _easycom_wd_popup2();
  7. }
  8. const _easycom_wd_popup = () => "../../../node-modules/wot-design-uni/components/wd-popup/wd-popup.js";
  9. if (!Math) {
  10. _easycom_wd_popup();
  11. }
  12. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  13. __name: "activityDescPopup",
  14. props: {
  15. show: {
  16. type: Boolean,
  17. default: false
  18. },
  19. description: {
  20. type: Array,
  21. default: () => []
  22. }
  23. },
  24. emits: ["update:show"],
  25. setup(__props, { emit: __emit }) {
  26. const props = __props;
  27. const emit = __emit;
  28. const { handleClose } = hooks_useDraw.useDraw(props, emit);
  29. return (_ctx, _cache) => {
  30. return {
  31. a: common_vendor.f(__props.description, (item, index, i0) => {
  32. return {
  33. a: common_vendor.t(item),
  34. b: index
  35. };
  36. }),
  37. b: common_vendor.o(common_vendor.unref(handleClose)),
  38. c: common_vendor.o(($event) => props.show = $event),
  39. d: common_vendor.p({
  40. position: "bottom",
  41. closable: true,
  42. ["custom-style"]: "height: 600rpx;border-radius:16rpx",
  43. modelValue: props.show
  44. })
  45. };
  46. };
  47. }
  48. });
  49. const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-84dcedc1"]]);
  50. wx.createComponent(Component);