vue-devui 1.6.16 → 1.6.18

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 (90) hide show
  1. package/auto-complete/index.es.js +12 -13
  2. package/auto-complete/index.umd.js +16 -16
  3. package/auto-complete/style.css +1 -1
  4. package/breadcrumb/index.es.js +1 -7
  5. package/breadcrumb/index.umd.js +1 -1
  6. package/category-search/index.es.js +13 -18
  7. package/category-search/index.umd.js +14 -14
  8. package/category-search/style.css +1 -1
  9. package/checkbox/index.es.js +11 -10
  10. package/checkbox/index.umd.js +7 -7
  11. package/checkbox/style.css +1 -1
  12. package/code-review/index.es.js +4 -9
  13. package/code-review/index.umd.js +17 -17
  14. package/data-grid/index.es.js +12 -17
  15. package/data-grid/index.umd.js +15 -15
  16. package/data-grid/style.css +1 -1
  17. package/date-picker-pro/index.es.js +16 -31
  18. package/date-picker-pro/index.umd.js +12 -12
  19. package/date-picker-pro/style.css +1 -1
  20. package/dropdown/index.es.js +1 -7
  21. package/dropdown/index.umd.js +1 -1
  22. package/editable-select/index.es.js +2 -6
  23. package/editable-select/index.umd.js +10 -10
  24. package/editor-md/index.es.js +2 -14
  25. package/editor-md/index.umd.js +22 -22
  26. package/form/index.es.js +11 -10
  27. package/form/index.umd.js +8 -8
  28. package/form/style.css +1 -1
  29. package/input/index.es.js +11 -10
  30. package/input/index.umd.js +9 -9
  31. package/input/style.css +1 -1
  32. package/input-number/index.es.js +11 -10
  33. package/input-number/index.umd.js +16 -16
  34. package/input-number/style.css +1 -1
  35. package/mention/index.es.js +11 -10
  36. package/mention/index.umd.js +15 -15
  37. package/mention/style.css +1 -1
  38. package/package.json +1 -1
  39. package/pagination/index.es.js +18 -21
  40. package/pagination/index.umd.js +16 -16
  41. package/pagination/style.css +1 -1
  42. package/popover/index.es.js +4 -9
  43. package/popover/index.umd.js +10 -10
  44. package/radio/index.es.js +11 -10
  45. package/radio/index.umd.js +14 -14
  46. package/radio/style.css +1 -1
  47. package/search/index.es.js +11 -10
  48. package/search/index.umd.js +8 -8
  49. package/search/style.css +1 -1
  50. package/select/index.es.js +16 -13
  51. package/select/index.umd.js +14 -14
  52. package/select/style.css +1 -1
  53. package/splitter/index.es.js +1 -7
  54. package/splitter/index.umd.js +9 -9
  55. package/style.css +1 -1
  56. package/switch/index.es.js +11 -10
  57. package/switch/index.umd.js +10 -10
  58. package/switch/style.css +1 -1
  59. package/table/index.es.js +13 -24
  60. package/table/index.umd.js +12 -12
  61. package/table/style.css +1 -1
  62. package/textarea/index.es.js +11 -10
  63. package/textarea/index.umd.js +11 -11
  64. package/textarea/style.css +1 -1
  65. package/time-picker/index.es.js +16 -13
  66. package/time-picker/index.umd.js +16 -16
  67. package/time-picker/style.css +1 -1
  68. package/time-select/index.es.js +16 -13
  69. package/time-select/index.umd.js +13 -13
  70. package/time-select/style.css +1 -1
  71. package/tooltip/index.es.js +1 -7
  72. package/tooltip/index.umd.js +11 -11
  73. package/tree/index.es.js +11 -10
  74. package/tree/index.umd.js +9 -9
  75. package/tree/style.css +1 -1
  76. package/types/auto-complete/src/auto-complete-types.d.ts +1 -1
  77. package/types/dropdown/src/dropdown-types.d.ts +1 -6
  78. package/types/dropdown/src/dropdown.d.ts +2 -11
  79. package/types/editable-select/src/editable-select-types.d.ts +1 -1
  80. package/types/form/src/components/form-item/form-item-types.d.ts +2 -1
  81. package/types/form/src/form-types.d.ts +5 -0
  82. package/types/popover/src/popover-types.d.ts +1 -6
  83. package/types/popover/src/popover.d.ts +2 -11
  84. package/types/select/src/select-types.d.ts +5 -0
  85. package/types/time-picker/src/components/time-scroll/index.d.ts +9 -0
  86. package/types/time-picker/src/time-picker-types.d.ts +5 -0
  87. package/types/tooltip/src/tooltip-types.d.ts +1 -6
  88. package/types/tooltip/src/tooltip.d.ts +2 -11
  89. package/vue-devui.es.js +30 -64
  90. package/vue-devui.umd.js +39 -39
@@ -538,6 +538,10 @@ const formProps = {
538
538
  appendToBodyScrollStrategy: {
539
539
  type: String,
540
540
  default: "reposition"
541
+ },
542
+ requirePosition: {
543
+ type: String,
544
+ default: "left"
541
545
  }
542
546
  };
543
547
  const FORM_TOKEN = "dForm";
@@ -6170,11 +6174,7 @@ const popoverProps = {
6170
6174
  },
6171
6175
  position: {
6172
6176
  type: Array,
6173
- default: ["bottom"]
6174
- },
6175
- align: {
6176
- type: String,
6177
- default: null
6177
+ default: () => ["top", "right", "bottom", "left"]
6178
6178
  },
6179
6179
  offset: {
6180
6180
  type: [Number, Object],
@@ -6245,6 +6245,7 @@ function usePopover(props, visible, placement, origin, popoverRef) {
6245
6245
  function usePopoverEvent(props, visible, origin) {
6246
6246
  const { trigger, position, mouseEnterDelay, mouseLeaveDelay, disabled } = toRefs(props);
6247
6247
  const isClick = computed(() => trigger.value === "click");
6248
+ const isHover = computed(() => trigger.value === "hover");
6248
6249
  const placement = ref(position.value[0].split("-")[0]);
6249
6250
  const isEnter = ref(false);
6250
6251
  const onClick = () => {
@@ -6263,13 +6264,13 @@ function usePopoverEvent(props, visible, origin) {
6263
6264
  if (disabled.value) {
6264
6265
  return;
6265
6266
  }
6266
- if (!isClick.value) {
6267
+ if (isHover.value) {
6267
6268
  isEnter.value = true;
6268
6269
  enter();
6269
6270
  }
6270
6271
  };
6271
6272
  const onMouseleave = () => {
6272
- if (!isClick.value) {
6273
+ if (isHover.value) {
6273
6274
  isEnter.value = false;
6274
6275
  leave();
6275
6276
  }
@@ -6419,7 +6420,6 @@ var Popover = defineComponent({
6419
6420
  content,
6420
6421
  popType,
6421
6422
  position,
6422
- align,
6423
6423
  offset: offset2,
6424
6424
  showAnimation
6425
6425
  } = toRefs(props);
@@ -6461,7 +6461,6 @@ var Popover = defineComponent({
6461
6461
  "ref": popoverRef,
6462
6462
  "origin": origin.value,
6463
6463
  "position": position.value,
6464
- "align": align.value,
6465
6464
  "offset": offset2.value,
6466
6465
  "class": [ns2.e("content"), popType.value !== "default" ? "is-icon" : ""],
6467
6466
  "show-arrow": true,
@@ -6583,7 +6582,8 @@ function useFormLabel() {
6583
6582
  }));
6584
6583
  const labelInnerClasses = computed(() => ({
6585
6584
  [`${ns2.e("label-span")}`]: true,
6586
- [`${ns2.em("label", "required")}`]: formItemContext.isRequired,
6585
+ [`${ns2.em("label", "required")}`]: formItemContext.isRequired && labelData.value.requiredPosition === "left",
6586
+ [`${ns2.em("label", "required-right")}`]: formItemContext.isRequired && labelData.value.requiredPosition === "right",
6587
6587
  [`${ns2.em("label", "required-hide")}`]: formItemContext.isRequired && formContext.hideRequiredMark
6588
6588
  }));
6589
6589
  const tipsPopover = computed(() => {
@@ -7900,6 +7900,7 @@ defineComponent({
7900
7900
  layout: formContext.layout,
7901
7901
  labelSize: formContext.labelSize,
7902
7902
  labelAlign: formContext.labelAlign,
7903
+ requiredPosition: formContext.requirePosition,
7903
7904
  helpTips: helpTips.value,
7904
7905
  formItemCtx: ctx
7905
7906
  }));
@@ -8450,11 +8451,7 @@ const dropdownProps = {
8450
8451
  },
8451
8452
  position: {
8452
8453
  type: Array,
8453
- default: ["bottom"]
8454
- },
8455
- align: {
8456
- type: String,
8457
- default: null
8454
+ default: () => ["bottom", "top", "left", "right"]
8458
8455
  },
8459
8456
  offset: {
8460
8457
  type: [Number, Object],
@@ -8640,7 +8637,6 @@ var Dropdown = defineComponent({
8640
8637
  const {
8641
8638
  visible,
8642
8639
  position,
8643
- align,
8644
8640
  offset: offset2,
8645
8641
  destroyOnHide,
8646
8642
  shiftOffset,
@@ -8698,7 +8694,6 @@ var Dropdown = defineComponent({
8698
8694
  "ref": overlayRef,
8699
8695
  "origin": origin.value,
8700
8696
  "position": position.value,
8701
- "align": align.value,
8702
8697
  "offset": offset2.value,
8703
8698
  "shiftOffset": shiftOffset == null ? void 0 : shiftOffset.value,
8704
8699
  "onPositionChange": handlePositionChange,