vue-devui 1.6.4-select.0 → 1.6.5

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.
@@ -8552,17 +8552,7 @@ const useDropdownEvent = ({ id, isOpen, origin, dropdownRef, props, emit }) => {
8552
8552
  onInvalidate(() => subscriptions.forEach((v) => v()));
8553
8553
  });
8554
8554
  };
8555
- function useDropdown(id, visible, isOpen, origin, dropdownRef, popDirection, emit) {
8556
- const calcPopDirection = (dropdownEl) => {
8557
- const elementHeight = dropdownEl.offsetHeight;
8558
- const bottomDistance = window.innerHeight - origin.value.getBoundingClientRect().bottom;
8559
- const isBottomEnough = bottomDistance >= elementHeight;
8560
- if (!isBottomEnough) {
8561
- popDirection.value = "top";
8562
- } else {
8563
- popDirection.value = "bottom";
8564
- }
8565
- };
8555
+ function useDropdown(id, visible, isOpen, origin, dropdownRef, emit) {
8566
8556
  watch(visible, (newVal, oldVal) => {
8567
8557
  if (oldVal === void 0) {
8568
8558
  return;
@@ -8586,9 +8576,6 @@ function useDropdown(id, visible, isOpen, origin, dropdownRef, popDirection, emi
8586
8576
  }
8587
8577
  }
8588
8578
  }
8589
- if (dropdownEl) {
8590
- calcPopDirection(dropdownEl);
8591
- }
8592
8579
  });
8593
8580
  onMounted(() => {
8594
8581
  dropdownMap.set(id, { toggleEl: origin.value });
@@ -8657,7 +8644,7 @@ var Dropdown = defineComponent({
8657
8644
  props,
8658
8645
  emit
8659
8646
  });
8660
- useDropdown(id, visible, isOpen, origin, dropdownRef, currentPosition, emit);
8647
+ useDropdown(id, visible, isOpen, origin, dropdownRef, emit);
8661
8648
  const {
8662
8649
  overlayModelValue,
8663
8650
  overlayShowValue,