vue-devui 1.6.5 → 1.6.6

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 +18 -4
  2. package/auto-complete/index.umd.js +10 -10
  3. package/auto-complete/style.css +1 -1
  4. package/breadcrumb/style.css +1 -1
  5. package/button/index.es.js +30 -10
  6. package/button/index.umd.js +10 -10
  7. package/button/style.css +1 -1
  8. package/category-search/index.es.js +50 -12
  9. package/category-search/index.umd.js +12 -12
  10. package/category-search/style.css +1 -1
  11. package/checkbox/index.es.js +22 -9
  12. package/checkbox/index.umd.js +8 -8
  13. package/checkbox/style.css +1 -1
  14. package/code-review/style.css +1 -1
  15. package/data-grid/index.es.js +45 -12
  16. package/data-grid/index.umd.js +6 -6
  17. package/data-grid/style.css +1 -1
  18. package/date-picker-pro/index.es.js +70 -14
  19. package/date-picker-pro/index.umd.js +14 -14
  20. package/date-picker-pro/style.css +1 -1
  21. package/dropdown/style.css +1 -1
  22. package/editable-select/index.es.js +83 -205
  23. package/editable-select/index.umd.js +20 -16
  24. package/editable-select/style.css +1 -1
  25. package/editor-md/style.css +1 -1
  26. package/form/style.css +1 -1
  27. package/input/index.es.js +6 -1
  28. package/input/index.umd.js +6 -6
  29. package/input/style.css +1 -1
  30. package/input-number/index.es.js +5 -0
  31. package/input-number/index.umd.js +10 -10
  32. package/input-number/style.css +1 -1
  33. package/mention/index.es.js +11 -1
  34. package/mention/index.umd.js +8 -8
  35. package/mention/style.css +1 -1
  36. package/modal/style.css +1 -1
  37. package/overlay/style.css +1 -1
  38. package/package.json +1 -1
  39. package/pagination/index.es.js +28 -10
  40. package/pagination/index.umd.js +14 -14
  41. package/pagination/style.css +1 -1
  42. package/popover/style.css +1 -1
  43. package/radio/index.es.js +10 -28
  44. package/radio/index.umd.js +9 -9
  45. package/radio/style.css +1 -1
  46. package/search/index.es.js +6 -1
  47. package/search/index.umd.js +6 -6
  48. package/search/style.css +1 -1
  49. package/select/index.es.js +28 -10
  50. package/select/index.umd.js +15 -15
  51. package/select/style.css +1 -1
  52. package/splitter/style.css +1 -1
  53. package/style.css +2 -2
  54. package/switch/index.es.js +16 -2
  55. package/switch/index.umd.js +15 -15
  56. package/switch/style.css +1 -1
  57. package/table/index.es.js +46 -13
  58. package/table/index.umd.js +12 -12
  59. package/table/style.css +1 -1
  60. package/textarea/index.es.js +6 -1
  61. package/textarea/index.umd.js +1 -1
  62. package/textarea/style.css +1 -1
  63. package/time-picker/index.es.js +45 -8
  64. package/time-picker/index.umd.js +9 -9
  65. package/time-picker/style.css +1 -1
  66. package/time-select/index.es.js +28 -10
  67. package/time-select/index.umd.js +8 -8
  68. package/time-select/style.css +1 -1
  69. package/tooltip/style.css +1 -1
  70. package/tree/index.es.js +22 -9
  71. package/tree/index.umd.js +9 -9
  72. package/tree/style.css +1 -1
  73. package/types/auto-complete/src/auto-complete-types.d.ts +4 -0
  74. package/types/cascader/src/cascader-types.d.ts +4 -0
  75. package/types/checkbox/src/checkbox-types.d.ts +8 -0
  76. package/types/date-picker-pro/src/date-picker-pro-types.d.ts +12 -0
  77. package/types/date-picker-pro/src/range-date-picker-types.d.ts +4 -0
  78. package/types/editable-select/src/editable-select-types.d.ts +4 -0
  79. package/types/input/src/input-types.d.ts +4 -0
  80. package/types/input-icon/src/input-icon.d.ts +9 -0
  81. package/types/input-number/src/input-number-types.d.ts +4 -0
  82. package/types/mention/src/mention-types.d.ts +4 -0
  83. package/types/mention/src/mention.d.ts +9 -0
  84. package/types/radio/src/radio-types.d.ts +8 -0
  85. package/types/select/src/select-types.d.ts +4 -0
  86. package/types/textarea/src/textarea-types.d.ts +4 -0
  87. package/types/time-picker/src/components/time-scroll/index.d.ts +9 -0
  88. package/types/time-picker/src/time-picker-types.d.ts +4 -0
  89. package/vue-devui.es.js +208 -79
  90. package/vue-devui.umd.js +52 -52
@@ -151,6 +151,10 @@ const autoCompleteProps = {
151
151
  clearable: {
152
152
  type: Boolean,
153
153
  default: false
154
+ },
155
+ showGlowStyle: {
156
+ type: Boolean,
157
+ default: true
154
158
  }
155
159
  };
156
160
  const DropdownPropsKey = Symbol("DropdownPropsKey");
@@ -8263,6 +8267,7 @@ function useAutoCompleteRender(props, ctx2, visible, isFocus, isDisabled, autoCo
8263
8267
  const inputWrapperClasses = computed(() => ({
8264
8268
  [inputNs.e("wrapper")]: true,
8265
8269
  [inputNs.em("wrapper", "error")]: isValidatorError.value,
8270
+ [ns2.m("glow-style")]: props.showGlowStyle,
8266
8271
  [inputNs.em("wrapper", "feedback")]: Boolean(formItemContext == null ? void 0 : formItemContext.validateState) && (formItemContext == null ? void 0 : formItemContext.showFeedback),
8267
8272
  [ns2.m("disabled")]: isDisabled.value
8268
8273
  }));
@@ -9004,6 +9009,7 @@ var AutoComplete = defineComponent({
9004
9009
  const inputNs = useNamespace("auto-complete-input");
9005
9010
  const isDisabled = computed(() => (formContext == null ? void 0 : formContext.disabled) || disabled.value);
9006
9011
  const autoCompleteSize = computed(() => (formContext == null ? void 0 : formContext.size) || props.size);
9012
+ const align = computed(() => position.value.some((item) => item.includes("start") || item.includes("end")) ? "start" : null);
9007
9013
  const {
9008
9014
  handleSearch,
9009
9015
  searchList,
@@ -9063,22 +9069,30 @@ var AutoComplete = defineComponent({
9063
9069
  valueParser
9064
9070
  });
9065
9071
  const origin = ref();
9072
+ const currentPosition = ref("bottom");
9066
9073
  const prefixVisible = ctx2.slots.prefix || props.prefix;
9067
9074
  const suffixVisible = ctx2.slots.suffix || props.suffix || props.clearable;
9068
9075
  const showClearable = computed(() => props.clearable && !isDisabled.value);
9076
+ const overlayStyles = computed(() => ({
9077
+ transformOrigin: currentPosition.value === "top" ? "0% 100%" : "0% 0%",
9078
+ zIndex: "var(--devui-z-index-dropdown, 1052)"
9079
+ }));
9080
+ const handlePositionChange = (pos) => {
9081
+ currentPosition.value = pos.includes("top") || pos.includes("right-end") || pos.includes("left-end") ? "top" : "bottom";
9082
+ };
9069
9083
  const renderBasicDropdown = () => {
9070
9084
  let _slot;
9071
9085
  return createVNode(Transition, {
9072
- "name": showAnimation ? "fade" : ""
9086
+ "name": showAnimation ? ns2.m(`fade-${currentPosition.value}`) : ""
9073
9087
  }, {
9074
9088
  default: () => [createVNode(FlexibleOverlay, {
9075
9089
  "origin": origin.value,
9076
9090
  "position": position.value,
9091
+ "align": align.value,
9077
9092
  "modelValue": visible.value,
9078
9093
  "onUpdate:modelValue": ($event) => visible.value = $event,
9079
- "style": {
9080
- zIndex: "var(--devui-z-index-dropdown, 1052)"
9081
- }
9094
+ "onPositionChange": handlePositionChange,
9095
+ "style": overlayStyles.value
9082
9096
  }, {
9083
9097
  default: () => [createVNode("div", {
9084
9098
  "class": ns2.e("menu"),