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.
Files changed (77) hide show
  1. package/auto-complete/index.es.js +1 -2
  2. package/auto-complete/index.umd.js +1 -1
  3. package/breadcrumb/index.es.js +2 -15
  4. package/breadcrumb/index.umd.js +1 -1
  5. package/button/index.es.js +1 -2
  6. package/button/index.umd.js +1 -1
  7. package/carousel/index.es.js +36 -213
  8. package/carousel/index.umd.js +1 -1
  9. package/carousel/style.css +1 -1
  10. package/category-search/index.es.js +3 -17
  11. package/category-search/index.umd.js +10 -10
  12. package/collapse/index.es.js +15 -18
  13. package/collapse/index.umd.js +5 -5
  14. package/data-grid/index.es.js +3 -17
  15. package/data-grid/index.umd.js +6 -6
  16. package/date-picker-pro/index.es.js +21 -6
  17. package/date-picker-pro/index.umd.js +12 -12
  18. package/date-picker-pro/style.css +1 -1
  19. package/dropdown/index.es.js +2 -15
  20. package/dropdown/index.umd.js +1 -1
  21. package/editable-select/index.es.js +2 -3
  22. package/editable-select/index.umd.js +2 -2
  23. package/editor-md/index.es.js +32 -18
  24. package/editor-md/index.umd.js +15 -15
  25. package/icon/index.es.js +1 -2
  26. package/icon/index.umd.js +1 -1
  27. package/input/index.es.js +21 -6
  28. package/input/index.umd.js +11 -11
  29. package/input/style.css +1 -1
  30. package/mention/index.es.js +1 -2
  31. package/mention/index.umd.js +1 -1
  32. package/message/index.es.js +1 -2
  33. package/message/index.umd.js +1 -1
  34. package/modal/index.es.js +27 -4
  35. package/modal/index.umd.js +7 -1
  36. package/modal/style.css +1 -1
  37. package/notification/index.es.js +1 -2
  38. package/notification/index.umd.js +2 -2
  39. package/package.json +1 -1
  40. package/pagination/index.es.js +55 -253
  41. package/pagination/index.umd.js +18 -23
  42. package/pagination/style.css +1 -1
  43. package/result/index.es.js +1 -2
  44. package/result/index.umd.js +1 -1
  45. package/search/index.es.js +48 -27
  46. package/search/index.umd.js +18 -14
  47. package/search/style.css +1 -1
  48. package/select/index.es.js +43 -42
  49. package/select/index.umd.js +11 -16
  50. package/select/style.css +1 -1
  51. package/steps/index.es.js +1 -2
  52. package/steps/index.umd.js +1 -1
  53. package/style.css +2 -2
  54. package/table/index.es.js +3 -17
  55. package/table/index.umd.js +6 -6
  56. package/time-picker/index.es.js +21 -6
  57. package/time-picker/index.umd.js +16 -16
  58. package/time-picker/style.css +1 -1
  59. package/time-select/index.es.js +43 -42
  60. package/time-select/index.umd.js +9 -14
  61. package/time-select/style.css +1 -1
  62. package/timeline/index.es.js +1 -2
  63. package/timeline/index.umd.js +1 -1
  64. package/types/carousel/src/components/carousel-icons.d.ts +2 -0
  65. package/types/dropdown/src/use-dropdown.d.ts +1 -1
  66. package/types/editor-md/src/composables/use-editor-md.d.ts +1 -0
  67. package/types/editor-md/src/editor-md-types.d.ts +3 -0
  68. package/types/icon/src/icon-types.d.ts +0 -1
  69. package/types/modal/src/components/modal-icons.d.ts +1 -0
  70. package/types/svg-icons/index.d.ts +3 -0
  71. package/upload/index.es.js +1 -2
  72. package/upload/index.umd.js +2 -2
  73. package/vue-devui.es.js +186 -96
  74. package/vue-devui.umd.js +97 -86
  75. package/types/search/src/components/search-close-icon.d.ts +0 -2
  76. package/types/search/src/components/search-icon.d.ts +0 -2
  77. 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, popDirection, emit) {
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, currentPosition, emit);
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],