lew-ui 2.1.13 → 2.1.14

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
@@ -17965,7 +17965,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
17965
17965
  );
17966
17966
  if (props.closeByEsc) {
17967
17967
  watch(Escape, (v) => {
17968
- if (v && visible.value) {
17968
+ const dialogEl = document.getElementById("lew-dialog");
17969
+ const hasDialog = dialogEl && dialogEl.children.length > 0;
17970
+ if (v && visible.value && !hasDialog) {
17969
17971
  visible.value = false;
17970
17972
  }
17971
17973
  });
@@ -18055,7 +18057,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
18055
18057
  };
18056
18058
  }
18057
18059
  });
18058
- const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-398c242b"]]);
18060
+ const LewModal = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-1420b868"]]);
18059
18061
  const popokProps = {
18060
18062
  type: {
18061
18063
  type: String,