vue-devui 1.6.4 → 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/auto-complete/index.es.js +1 -2
- package/auto-complete/index.umd.js +1 -1
- package/breadcrumb/index.es.js +2 -15
- package/breadcrumb/index.umd.js +1 -1
- package/button/index.es.js +1 -2
- package/button/index.umd.js +1 -1
- package/carousel/index.es.js +36 -213
- package/carousel/index.umd.js +1 -1
- package/carousel/style.css +1 -1
- package/category-search/index.es.js +3 -17
- package/category-search/index.umd.js +10 -10
- package/collapse/index.es.js +15 -18
- package/collapse/index.umd.js +5 -5
- package/data-grid/index.es.js +3 -17
- package/data-grid/index.umd.js +6 -6
- package/date-picker-pro/index.es.js +21 -6
- package/date-picker-pro/index.umd.js +12 -12
- package/date-picker-pro/style.css +1 -1
- package/dropdown/index.es.js +2 -15
- package/dropdown/index.umd.js +1 -1
- package/editable-select/index.es.js +2 -3
- package/editable-select/index.umd.js +2 -2
- package/editor-md/index.es.js +32 -18
- package/editor-md/index.umd.js +15 -15
- package/icon/index.es.js +1 -2
- package/icon/index.umd.js +1 -1
- package/input/index.es.js +21 -6
- package/input/index.umd.js +11 -11
- package/input/style.css +1 -1
- package/mention/index.es.js +1 -2
- package/mention/index.umd.js +1 -1
- package/message/index.es.js +1 -2
- package/message/index.umd.js +1 -1
- package/modal/index.es.js +27 -4
- package/modal/index.umd.js +7 -1
- package/modal/style.css +1 -1
- package/notification/index.es.js +1 -2
- package/notification/index.umd.js +2 -2
- package/package.json +1 -1
- package/pagination/index.es.js +55 -253
- package/pagination/index.umd.js +18 -23
- package/pagination/style.css +1 -1
- package/result/index.es.js +1 -2
- package/result/index.umd.js +1 -1
- package/search/index.es.js +48 -27
- package/search/index.umd.js +18 -14
- package/search/style.css +1 -1
- package/select/index.es.js +43 -42
- package/select/index.umd.js +11 -16
- package/select/style.css +1 -1
- package/steps/index.es.js +1 -2
- package/steps/index.umd.js +1 -1
- package/style.css +2 -2
- package/table/index.es.js +3 -17
- package/table/index.umd.js +6 -6
- package/time-picker/index.es.js +21 -6
- package/time-picker/index.umd.js +16 -16
- package/time-picker/style.css +1 -1
- package/time-select/index.es.js +43 -42
- package/time-select/index.umd.js +9 -14
- package/time-select/style.css +1 -1
- package/timeline/index.es.js +1 -2
- package/timeline/index.umd.js +1 -1
- package/types/carousel/src/components/carousel-icons.d.ts +2 -0
- package/types/dropdown/src/use-dropdown.d.ts +1 -1
- package/types/editor-md/src/composables/use-editor-md.d.ts +1 -0
- package/types/editor-md/src/editor-md-types.d.ts +3 -0
- package/types/icon/src/icon-types.d.ts +0 -1
- package/types/modal/src/components/modal-icons.d.ts +1 -0
- package/types/svg-icons/index.d.ts +3 -0
- package/upload/index.es.js +1 -2
- package/upload/index.umd.js +2 -2
- package/vue-devui.es.js +186 -96
- package/vue-devui.umd.js +97 -86
- package/types/search/src/components/search-close-icon.d.ts +0 -2
- package/types/search/src/components/search-icon.d.ts +0 -2
- package/types/select/src/components/select-arrow-icon.d.ts +0 -2
package/table/index.es.js
CHANGED
|
@@ -1012,17 +1012,7 @@ const useDropdownEvent = ({ id, isOpen, origin, dropdownRef, props, emit }) => {
|
|
|
1012
1012
|
onInvalidate(() => subscriptions.forEach((v) => v()));
|
|
1013
1013
|
});
|
|
1014
1014
|
};
|
|
1015
|
-
function useDropdown(id, visible, isOpen, origin, dropdownRef,
|
|
1016
|
-
const calcPopDirection = (dropdownEl) => {
|
|
1017
|
-
const elementHeight = dropdownEl.offsetHeight;
|
|
1018
|
-
const bottomDistance = window.innerHeight - origin.value.getBoundingClientRect().bottom;
|
|
1019
|
-
const isBottomEnough = bottomDistance >= elementHeight;
|
|
1020
|
-
if (!isBottomEnough) {
|
|
1021
|
-
popDirection.value = "top";
|
|
1022
|
-
} else {
|
|
1023
|
-
popDirection.value = "bottom";
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1015
|
+
function useDropdown(id, visible, isOpen, origin, dropdownRef, emit) {
|
|
1026
1016
|
watch(visible, (newVal, oldVal) => {
|
|
1027
1017
|
if (oldVal === void 0) {
|
|
1028
1018
|
return;
|
|
@@ -1046,9 +1036,6 @@ function useDropdown(id, visible, isOpen, origin, dropdownRef, popDirection, emi
|
|
|
1046
1036
|
}
|
|
1047
1037
|
}
|
|
1048
1038
|
}
|
|
1049
|
-
if (dropdownEl) {
|
|
1050
|
-
calcPopDirection(dropdownEl);
|
|
1051
|
-
}
|
|
1052
1039
|
});
|
|
1053
1040
|
onMounted(() => {
|
|
1054
1041
|
dropdownMap.set(id, { toggleEl: origin.value });
|
|
@@ -1414,7 +1401,7 @@ var Dropdown = defineComponent({
|
|
|
1414
1401
|
props,
|
|
1415
1402
|
emit
|
|
1416
1403
|
});
|
|
1417
|
-
useDropdown(id, visible, isOpen, origin, dropdownRef,
|
|
1404
|
+
useDropdown(id, visible, isOpen, origin, dropdownRef, emit);
|
|
1418
1405
|
const {
|
|
1419
1406
|
overlayModelValue,
|
|
1420
1407
|
overlayShowValue,
|
|
@@ -1571,8 +1558,7 @@ const DEFAULT_PREFIX = "icon";
|
|
|
1571
1558
|
const iconProps = {
|
|
1572
1559
|
name: {
|
|
1573
1560
|
type: String,
|
|
1574
|
-
default: ""
|
|
1575
|
-
required: true
|
|
1561
|
+
default: ""
|
|
1576
1562
|
},
|
|
1577
1563
|
size: {
|
|
1578
1564
|
type: [Number, String],
|