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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-devui",
3
- "version": "1.6.4-select.0",
3
+ "version": "1.6.5",
4
4
  "license": "MIT",
5
5
  "description": "DevUI components based on Vite and Vue3",
6
6
  "keywords": [
@@ -10229,17 +10229,7 @@ const useDropdownEvent = ({ id, isOpen, origin, dropdownRef, props, emit }) => {
10229
10229
  onInvalidate(() => subscriptions.forEach((v) => v()));
10230
10230
  });
10231
10231
  };
10232
- function useDropdown(id, visible, isOpen, origin, dropdownRef, popDirection, emit) {
10233
- const calcPopDirection = (dropdownEl) => {
10234
- const elementHeight = dropdownEl.offsetHeight;
10235
- const bottomDistance = window.innerHeight - origin.value.getBoundingClientRect().bottom;
10236
- const isBottomEnough = bottomDistance >= elementHeight;
10237
- if (!isBottomEnough) {
10238
- popDirection.value = "top";
10239
- } else {
10240
- popDirection.value = "bottom";
10241
- }
10242
- };
10232
+ function useDropdown(id, visible, isOpen, origin, dropdownRef, emit) {
10243
10233
  watch(visible, (newVal, oldVal) => {
10244
10234
  if (oldVal === void 0) {
10245
10235
  return;
@@ -10263,9 +10253,6 @@ function useDropdown(id, visible, isOpen, origin, dropdownRef, popDirection, emi
10263
10253
  }
10264
10254
  }
10265
10255
  }
10266
- if (dropdownEl) {
10267
- calcPopDirection(dropdownEl);
10268
- }
10269
10256
  });
10270
10257
  onMounted(() => {
10271
10258
  dropdownMap.set(id, { toggleEl: origin.value });
@@ -10334,7 +10321,7 @@ var Dropdown = defineComponent({
10334
10321
  props,
10335
10322
  emit
10336
10323
  });
10337
- useDropdown(id, visible, isOpen, origin, dropdownRef, currentPosition, emit);
10324
+ useDropdown(id, visible, isOpen, origin, dropdownRef, emit);
10338
10325
  const {
10339
10326
  overlayModelValue,
10340
10327
  overlayShowValue,