vue-devui 1.6.17 → 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 +1 -3
  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 +29 -61
  90. package/vue-devui.umd.js +39 -39
package/form/index.es.js CHANGED
@@ -86,6 +86,10 @@ const formProps = {
86
86
  appendToBodyScrollStrategy: {
87
87
  type: String,
88
88
  default: "reposition"
89
+ },
90
+ requirePosition: {
91
+ type: String,
92
+ default: "left"
89
93
  }
90
94
  };
91
95
  const FORM_TOKEN = "dForm";
@@ -6043,11 +6047,7 @@ const popoverProps = {
6043
6047
  },
6044
6048
  position: {
6045
6049
  type: Array,
6046
- default: ["bottom"]
6047
- },
6048
- align: {
6049
- type: String,
6050
- default: null
6050
+ default: () => ["top", "right", "bottom", "left"]
6051
6051
  },
6052
6052
  offset: {
6053
6053
  type: [Number, Object],
@@ -6118,6 +6118,7 @@ function usePopover(props, visible, placement, origin, popoverRef) {
6118
6118
  function usePopoverEvent(props, visible, origin) {
6119
6119
  const { trigger, position, mouseEnterDelay, mouseLeaveDelay, disabled } = toRefs(props);
6120
6120
  const isClick = computed(() => trigger.value === "click");
6121
+ const isHover = computed(() => trigger.value === "hover");
6121
6122
  const placement = ref(position.value[0].split("-")[0]);
6122
6123
  const isEnter = ref(false);
6123
6124
  const onClick = () => {
@@ -6136,13 +6137,13 @@ function usePopoverEvent(props, visible, origin) {
6136
6137
  if (disabled.value) {
6137
6138
  return;
6138
6139
  }
6139
- if (!isClick.value) {
6140
+ if (isHover.value) {
6140
6141
  isEnter.value = true;
6141
6142
  enter();
6142
6143
  }
6143
6144
  };
6144
6145
  const onMouseleave = () => {
6145
- if (!isClick.value) {
6146
+ if (isHover.value) {
6146
6147
  isEnter.value = false;
6147
6148
  leave();
6148
6149
  }
@@ -6292,7 +6293,6 @@ var Popover = defineComponent({
6292
6293
  content,
6293
6294
  popType,
6294
6295
  position,
6295
- align,
6296
6296
  offset: offset2,
6297
6297
  showAnimation
6298
6298
  } = toRefs(props);
@@ -6334,7 +6334,6 @@ var Popover = defineComponent({
6334
6334
  "ref": popoverRef,
6335
6335
  "origin": origin.value,
6336
6336
  "position": position.value,
6337
- "align": align.value,
6338
6337
  "offset": offset2.value,
6339
6338
  "class": [ns2.e("content"), popType.value !== "default" ? "is-icon" : ""],
6340
6339
  "show-arrow": true,
@@ -6456,7 +6455,8 @@ function useFormLabel() {
6456
6455
  }));
6457
6456
  const labelInnerClasses = computed(() => ({
6458
6457
  [`${ns2.e("label-span")}`]: true,
6459
- [`${ns2.em("label", "required")}`]: formItemContext.isRequired,
6458
+ [`${ns2.em("label", "required")}`]: formItemContext.isRequired && labelData.value.requiredPosition === "left",
6459
+ [`${ns2.em("label", "required-right")}`]: formItemContext.isRequired && labelData.value.requiredPosition === "right",
6460
6460
  [`${ns2.em("label", "required-hide")}`]: formItemContext.isRequired && formContext.hideRequiredMark
6461
6461
  }));
6462
6462
  const tipsPopover = computed(() => {
@@ -7773,6 +7773,7 @@ var FormItem = defineComponent({
7773
7773
  layout: formContext.layout,
7774
7774
  labelSize: formContext.labelSize,
7775
7775
  labelAlign: formContext.labelAlign,
7776
+ requiredPosition: formContext.requirePosition,
7776
7777
  helpTips: helpTips.value,
7777
7778
  formItemCtx: ctx
7778
7779
  }));