tanxin-ui 1.0.5 → 1.0.6

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.
@@ -16411,15 +16411,12 @@ const useModal = () => {
16411
16411
  return currentZIndex.value;
16412
16412
  };
16413
16413
  const addClosingTag = () => {
16414
- console.log("addClosingTag");
16415
16414
  closingTag.value = true;
16416
16415
  };
16417
16416
  const removeClosingTag = () => {
16418
- console.log("removeClosingTag");
16419
16417
  closingTag.value = false;
16420
16418
  };
16421
16419
  const existsClosingTag = () => {
16422
- console.log("existsClosingTag", closingTag.value);
16423
16420
  return closingTag.value;
16424
16421
  };
16425
16422
  return {
@@ -16608,7 +16605,6 @@ var Modal = defineComponent({
16608
16605
  };
16609
16606
  const handleKeyup = (event) => {
16610
16607
  if (event.code == "Escape") {
16611
- console.log(`modal modalLevel.value = ${modalLevel.value}, getModalLevelCount(vm) - 1=${getModalLevelCount(vm) - 1}`);
16612
16608
  if (visible.value && modalLevel.value == getModalLevelCount(vm) - 1)
16613
16609
  handleClose2();
16614
16610
  }
@@ -21407,12 +21403,11 @@ var ImagePreview = defineComponent({
21407
21403
  modal.addClosingTag();
21408
21404
  visible.value = false;
21409
21405
  emit("update:visible", false);
21410
- setTimeout(() => modal.removeClosingTag(), 10);
21406
+ setTimeout(() => modal.removeClosingTag(), 200);
21411
21407
  };
21412
21408
  const handleKeydown = (event) => {
21413
21409
  switch (event.code) {
21414
21410
  case "Escape":
21415
- console.log(`preview modalLevel.value = ${modalLevel.value}, getModalLevelCount(vm) - 1=${getModalLevelCount(vm) - 1}`);
21416
21411
  if (visible.value && modalLevel.value == getModalLevelCount(vm) - 1)
21417
21412
  handleClose2();
21418
21413
  break;