lew-ui 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -20245,7 +20245,15 @@ const _hoisted_3$3 = {
20245
20245
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
20246
20246
  __name: "LewModal",
20247
20247
  props: modalProps,
20248
- emits: ["update:visible", "ok", "cancel", "show", "close"],
20248
+ emits: [
20249
+ "update:visible",
20250
+ "ok",
20251
+ "cancel",
20252
+ "show",
20253
+ "close",
20254
+ "after-show",
20255
+ "after-close"
20256
+ ],
20249
20257
  setup(__props, { emit: __emit }) {
20250
20258
  const { x: x2, y: y2 } = useMouse();
20251
20259
  const { Escape } = useMagicKeys();
@@ -20277,8 +20285,18 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
20277
20285
  if (newVal) {
20278
20286
  transformOrigin.value = `${x2.value}px ${y2.value}px`;
20279
20287
  emit("show");
20288
+ setTimeout(() => {
20289
+ nextTick(() => {
20290
+ emit("after-show");
20291
+ });
20292
+ }, 500);
20280
20293
  } else {
20281
20294
  emit("close");
20295
+ setTimeout(() => {
20296
+ nextTick(() => {
20297
+ emit("after-show");
20298
+ });
20299
+ }, 500);
20282
20300
  }
20283
20301
  }
20284
20302
  );
@@ -20374,8 +20392,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
20374
20392
  };
20375
20393
  }
20376
20394
  });
20377
- const LewModal_vue_vue_type_style_index_0_scoped_09ad643e_lang = "";
20378
- const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-09ad643e"]]);
20395
+ const LewModal_vue_vue_type_style_index_0_scoped_92f7587e_lang = "";
20396
+ const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-92f7587e"]]);
20379
20397
  const popokProps = {
20380
20398
  type: {
20381
20399
  type: String,