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/breadcrumb/index.es.js +2 -15
- package/breadcrumb/index.umd.js +1 -1
- package/category-search/index.es.js +2 -15
- package/category-search/index.umd.js +10 -10
- package/data-grid/index.es.js +2 -15
- package/data-grid/index.umd.js +6 -6
- package/dropdown/index.es.js +2 -15
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +1 -1
- package/editable-select/index.umd.js +1 -1
- package/editor-md/index.es.js +2 -15
- package/editor-md/index.umd.js +9 -9
- package/package.json +1 -1
- package/pagination/index.es.js +2 -15
- package/pagination/index.umd.js +11 -11
- package/table/index.es.js +2 -15
- package/table/index.umd.js +6 -6
- package/types/dropdown/src/use-dropdown.d.ts +1 -1
- package/vue-devui.es.js +4 -17
- package/vue-devui.umd.js +3 -3
package/package.json
CHANGED
package/pagination/index.es.js
CHANGED
|
@@ -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,
|
|
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,
|
|
10324
|
+
useDropdown(id, visible, isOpen, origin, dropdownRef, emit);
|
|
10338
10325
|
const {
|
|
10339
10326
|
overlayModelValue,
|
|
10340
10327
|
overlayShowValue,
|