hy-dispatch-ui-v3 0.1.6 → 0.2.1

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 (160) hide show
  1. package/README.md +47 -0
  2. package/dist/tailwind.css +349 -4
  3. package/es/components/appAudioPlayer/appAudioPlayer.vue.mjs +462 -0
  4. package/es/components/appAudioPlayer/index.mjs +6 -0
  5. package/es/components/appAudioPlayer/js/index.mjs +327 -0
  6. package/es/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
  7. package/es/components/appButton/style/appButton.scss +0 -1
  8. package/es/components/appConfigProvider/appConfigProvider.vue.mjs +22 -1
  9. package/es/components/appCutter/appCutter.vue.mjs +202 -129
  10. package/es/components/appDatePicker/appDatePicker.vue.mjs +1 -1
  11. package/es/components/appForm/appForm.vue.mjs +132 -209
  12. package/es/components/appForm/cpns/appFormItem.vue.mjs +312 -0
  13. package/es/components/appForm/cpns/arrayItem.vue.mjs +305 -0
  14. package/es/components/appForm/cpns/extraItem.vue.mjs +140 -0
  15. package/es/components/appForm/js/index.mjs +46 -24
  16. package/es/components/appForm/js/useAppForm.mjs +30 -6
  17. package/es/components/appForm/style/appForm.scss +53 -0
  18. package/es/components/appIcon/appIcon.vue.mjs +0 -1
  19. package/es/components/appIconBox/style/appIconBox.scss +0 -1
  20. package/es/components/appInput/appInput.vue.mjs +99 -0
  21. package/es/components/appInput/index.mjs +6 -0
  22. package/es/components/appMenu/appMenu.vue.mjs +129 -0
  23. package/es/components/appMenu/index.mjs +6 -0
  24. package/es/components/appMenu/style/appMenu.scss +145 -0
  25. package/es/components/appOrgCascader/appOrgCascader.vue.mjs +14 -10
  26. package/es/components/appSearch/appSearch.vue.mjs +55 -211
  27. package/es/components/appSearch/cpns/appSearchItem.vue.mjs +238 -0
  28. package/es/components/appSearch/js/index.mjs +20 -8
  29. package/es/components/appSearch/js/useAppSearch.mjs +10 -5
  30. package/es/components/appSearch/style/appSearch.scss +10 -0
  31. package/es/components/appTable/appTable.vue.mjs +312 -158
  32. package/es/components/appTable/cpns/columnSelect.vue.mjs +151 -156
  33. package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +104 -110
  34. package/es/components/appTable/cpns/headerItem.vue.mjs +98 -0
  35. package/es/components/appTable/cpns/virtualTable.vue.mjs +560 -0
  36. package/es/components/appTable/js/index.mjs +46 -20
  37. package/es/components/appTable/js/search.mjs +1 -2
  38. package/es/components/appTable/js/useAppTable.mjs +58 -14
  39. package/es/components/appTable/style/appTable.scss +16 -0
  40. package/es/components/appTooltip/appTooltip.vue.mjs +24 -13
  41. package/es/components/appTree/appTree.vue.mjs +304 -0
  42. package/es/components/appTree/index.mjs +6 -0
  43. package/es/components/appTree/js/index.mjs +531 -0
  44. package/es/components/appUserAvatar/appUserAvatar.vue.mjs +9 -8
  45. package/es/components/appUserAvatar/style/appUserAvatar.scss +0 -1
  46. package/es/components/appVideoPlayer/appVideoPlayer.vue.mjs +645 -0
  47. package/es/components/appVideoPlayer/cpns/mediaLoading.vue.mjs +35 -0
  48. package/es/components/appVideoPlayer/index.mjs +6 -0
  49. package/es/components/appVideoPlayer/js/index.mjs +426 -0
  50. package/es/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
  51. package/es/components/appVideoPlayer/style/mediaLoading.scss +62 -0
  52. package/es/components/index.mjs +5 -0
  53. package/es/hooks/index.mjs +3 -0
  54. package/es/hooks/useApi.mjs +4 -4
  55. package/es/hooks/useAudioPlayerConfig.mjs +12 -0
  56. package/es/hooks/useGlobalConfig.mjs +18 -7
  57. package/es/hooks/useLocale.mjs +3 -11
  58. package/es/hooks/useMixins.mjs +1 -1
  59. package/es/hooks/usePermissionMap.mjs +12 -0
  60. package/es/hooks/useUserAvatarMap.mjs +2 -3
  61. package/es/hooks/useVideoPlayerConfig.mjs +12 -0
  62. package/es/index.mjs +13 -4
  63. package/es/locale/en.mjs +52 -3
  64. package/es/locale/zh_CN.mjs +48 -3
  65. package/es/make-installer.mjs +2 -0
  66. package/es/static/hy-svg-icons.js +462 -0
  67. package/es/static/index.js +2 -0
  68. package/es/static/protocolcheck.js +247 -0
  69. package/es/style/element/element.scss +9 -0
  70. package/es/style/element/index.scss +6 -3
  71. package/es/style/index.scss +11 -0
  72. package/es/style/theme.scss +73 -0
  73. package/es/utils/date.mjs +25 -1
  74. package/es/utils/file.mjs +5 -4
  75. package/es/utils/form.mjs +52 -0
  76. package/es/utils/handler.mjs +22 -2
  77. package/es/utils/index.mjs +5 -4
  78. package/es/utils/is.mjs +23 -2
  79. package/es/version.mjs +1 -1
  80. package/lib/components/appAudioPlayer/appAudioPlayer.vue.js +466 -0
  81. package/lib/components/appAudioPlayer/index.js +11 -0
  82. package/lib/components/appAudioPlayer/js/index.js +329 -0
  83. package/lib/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
  84. package/lib/components/appButton/style/appButton.scss +0 -1
  85. package/lib/components/appConfigProvider/appConfigProvider.vue.js +22 -1
  86. package/lib/components/appCutter/appCutter.vue.js +201 -128
  87. package/lib/components/appDatePicker/appDatePicker.vue.js +1 -1
  88. package/lib/components/appForm/appForm.vue.js +129 -206
  89. package/lib/components/appForm/cpns/appFormItem.vue.js +316 -0
  90. package/lib/components/appForm/cpns/arrayItem.vue.js +309 -0
  91. package/lib/components/appForm/cpns/extraItem.vue.js +144 -0
  92. package/lib/components/appForm/js/index.js +48 -23
  93. package/lib/components/appForm/js/useAppForm.js +30 -6
  94. package/lib/components/appForm/style/appForm.scss +53 -0
  95. package/lib/components/appIcon/appIcon.vue.js +0 -1
  96. package/lib/components/appIconBox/style/appIconBox.scss +0 -1
  97. package/lib/components/appInput/appInput.vue.js +103 -0
  98. package/lib/components/appInput/index.js +11 -0
  99. package/lib/components/appMenu/appMenu.vue.js +133 -0
  100. package/lib/components/appMenu/index.js +11 -0
  101. package/lib/components/appMenu/style/appMenu.scss +145 -0
  102. package/lib/components/appOrgCascader/appOrgCascader.vue.js +14 -10
  103. package/lib/components/appSearch/appSearch.vue.js +51 -207
  104. package/lib/components/appSearch/cpns/appSearchItem.vue.js +242 -0
  105. package/lib/components/appSearch/js/index.js +20 -7
  106. package/lib/components/appSearch/js/useAppSearch.js +10 -5
  107. package/lib/components/appSearch/style/appSearch.scss +10 -0
  108. package/lib/components/appTable/appTable.vue.js +319 -165
  109. package/lib/components/appTable/cpns/columnSelect.vue.js +151 -156
  110. package/lib/components/appTable/cpns/columnSelectItem.vue2.js +105 -111
  111. package/lib/components/appTable/cpns/headerItem.vue.js +102 -0
  112. package/lib/components/appTable/cpns/virtualTable.vue.js +564 -0
  113. package/lib/components/appTable/js/index.js +47 -19
  114. package/lib/components/appTable/js/search.js +1 -2
  115. package/lib/components/appTable/js/useAppTable.js +57 -13
  116. package/lib/components/appTable/style/appTable.scss +16 -0
  117. package/lib/components/appTooltip/appTooltip.vue.js +23 -12
  118. package/lib/components/appTree/appTree.vue.js +308 -0
  119. package/lib/components/appTree/index.js +11 -0
  120. package/lib/components/appTree/js/index.js +533 -0
  121. package/lib/components/appUserAvatar/appUserAvatar.vue.js +9 -8
  122. package/lib/components/appUserAvatar/style/appUserAvatar.scss +0 -1
  123. package/lib/components/appVideoPlayer/appVideoPlayer.vue.js +649 -0
  124. package/lib/components/appVideoPlayer/cpns/mediaLoading.vue.js +39 -0
  125. package/lib/components/appVideoPlayer/index.js +11 -0
  126. package/lib/components/appVideoPlayer/js/index.js +429 -0
  127. package/lib/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
  128. package/lib/components/appVideoPlayer/style/mediaLoading.scss +62 -0
  129. package/lib/components/index.js +42 -32
  130. package/lib/hooks/index.js +9 -0
  131. package/lib/hooks/useApi.js +4 -4
  132. package/lib/hooks/useAudioPlayerConfig.js +15 -0
  133. package/lib/hooks/useGlobalConfig.js +18 -7
  134. package/lib/hooks/useLocale.js +3 -11
  135. package/lib/hooks/useMixins.js +1 -1
  136. package/lib/hooks/usePermissionMap.js +15 -0
  137. package/lib/hooks/useUserAvatarMap.js +1 -2
  138. package/lib/hooks/useVideoPlayerConfig.js +15 -0
  139. package/lib/index.js +59 -33
  140. package/lib/locale/en.js +52 -3
  141. package/lib/locale/zh_CN.js +48 -3
  142. package/lib/make-installer.js +2 -0
  143. package/lib/static/hy-svg-icons.js +459 -8
  144. package/lib/static/index.js +5 -0
  145. package/lib/static/protocolcheck.js +249 -0
  146. package/lib/style/element/element.scss +9 -0
  147. package/lib/style/element/index.scss +6 -3
  148. package/lib/style/index.scss +11 -0
  149. package/lib/style/theme.scss +73 -0
  150. package/lib/utils/date.js +25 -0
  151. package/lib/utils/file.js +4 -4
  152. package/lib/utils/form.js +57 -0
  153. package/lib/utils/handler.js +22 -1
  154. package/lib/utils/index.js +8 -1
  155. package/lib/utils/is.js +23 -1
  156. package/lib/version.js +1 -1
  157. package/package.json +25 -9
  158. package/es/config/index.mjs +0 -1
  159. package/es/static/hy-svg-icons.mjs +0 -11
  160. package/lib/config/index.js +0 -2
@@ -0,0 +1,238 @@
1
+ import { computed, unref, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createCommentVNode, renderSlot, createElementBlock, toDisplayString, normalizeClass, Fragment, createVNode, mergeProps, withKeys, renderList } from 'vue';
2
+ import { ElFormItem, ElSelect } from 'element-plus';
3
+ import { columnShowHandler, columnItemStyle, columnItemInputStyle, isDisabled, optionsHandler, isSelectedTimeRange, timeRangeHandler } from '../js/index.mjs';
4
+ import { AppDatePicker } from '../../appDatePicker/index.mjs';
5
+ import { AppOrgCascader } from '../../appOrgCascader/index.mjs';
6
+ import { isArray } from '../../../utils/is.mjs';
7
+ import { setValueByProp, getValueByProp } from '../../../utils/form.mjs';
8
+ import { AppInput } from '../../appInput/index.mjs';
9
+
10
+ const _sfc_main = {
11
+ __name: "appSearchItem",
12
+ props: {
13
+ model: {
14
+ type: Object,
15
+ default: () => ({})
16
+ },
17
+ column: {
18
+ type: Object,
19
+ default: () => ({})
20
+ }
21
+ },
22
+ emits: ["search"],
23
+ setup(__props, { emit: __emit }) {
24
+ const props = __props;
25
+ const emits = __emit;
26
+ const columnProp = computed(() => {
27
+ let field = isArray(props.column.field) ? props.column.field[0] : props.column.field;
28
+ return field;
29
+ });
30
+ const bindValue = computed({
31
+ get() {
32
+ const prop = isArray(props.column.field) ? props.column.field[0] : props.column.field;
33
+ return getValueByProp(props.model, prop);
34
+ },
35
+ set(val) {
36
+ const prop = isArray(props.column.field) ? props.column.field[0] : props.column.field;
37
+ setValueByProp(props.model, prop, val);
38
+ }
39
+ });
40
+ const bindValue2 = computed({
41
+ get() {
42
+ const prop = isArray(props.column.field) ? props.column.field[1] : props.column.field;
43
+ return getValueByProp(props.model, prop);
44
+ },
45
+ set(val) {
46
+ const prop = isArray(props.column.field) ? props.column.field[1] : props.column.field;
47
+ setValueByProp(props.model, prop, val);
48
+ }
49
+ });
50
+ function onChangeHandler(value, column) {
51
+ emits("search");
52
+ }
53
+ function onKeydownEnterHander(e) {
54
+ emits("search");
55
+ }
56
+ function onTimeRangeClickHandler(column, options) {
57
+ const { field } = column;
58
+ const dateValue = timeRangeHandler(column, options);
59
+ const flag = dateValue.length && dateValue.every((value, index) => {
60
+ return isArray(field) ? value === props.model[field[index]] : props.model[field][index];
61
+ });
62
+ if (flag) return;
63
+ if (isArray(field)) {
64
+ props.model[field[0]] = dateValue[0];
65
+ props.model[field[1]] = dateValue[1];
66
+ } else {
67
+ props.model[field] = dateValue;
68
+ }
69
+ emits("search");
70
+ }
71
+ return (_ctx, _cache) => {
72
+ return unref(columnShowHandler)(props, __props.column) ? (openBlock(), createBlock(unref(ElFormItem), {
73
+ key: 0,
74
+ prop: columnProp.value
75
+ }, {
76
+ default: withCtx(() => [
77
+ createElementVNode("div", { class: "flex bg-background-2 rounded border border-transparent hover:border-theme box-border" }, [
78
+ createElementVNode(
79
+ "div",
80
+ {
81
+ class: "flex",
82
+ style: normalizeStyle(unref(columnItemStyle)(props, __props.column))
83
+ },
84
+ [
85
+ createCommentVNode(" \u8868\u5355label "),
86
+ createElementVNode("div", { class: "flex items-center text-auxiliary text-xs px-3 whitespace-nowrap border-r border-border" }, [
87
+ __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? renderSlot(_ctx.$slots, __props.column.labelSlot, {
88
+ key: 0,
89
+ column: __props.column
90
+ }) : (openBlock(), createElementBlock(
91
+ "span",
92
+ { key: 1 },
93
+ toDisplayString(__props.column.label),
94
+ 1
95
+ /* TEXT */
96
+ ))
97
+ ]),
98
+ createCommentVNode(" \u8868\u5355\u7EC4\u4EF6 "),
99
+ createElementVNode(
100
+ "div",
101
+ {
102
+ class: normalizeClass({ "app-search-custom-wrapper": __props.column.slot }),
103
+ style: normalizeStyle(unref(columnItemInputStyle)(props, __props.column))
104
+ },
105
+ [
106
+ createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
107
+ __props.column.slot ? renderSlot(_ctx.$slots, __props.column.slot, {
108
+ key: 0,
109
+ column: __props.column
110
+ }) : __props.column.type === "input" ? (openBlock(), createElementBlock(
111
+ Fragment,
112
+ { key: 1 },
113
+ [
114
+ createCommentVNode(" \u8F93\u5165\u6846 "),
115
+ createVNode(unref(AppInput), mergeProps({
116
+ modelValue: bindValue.value,
117
+ "onUpdate:modelValue": ($event) => bindValue.value = $event
118
+ }, __props.column.attrs, {
119
+ disabled: unref(isDisabled)(props, __props.column),
120
+ onKeydown: withKeys(($event) => onKeydownEnterHander($event, __props.column), ["enter"]),
121
+ onChange: ($event) => onChangeHandler($event, __props.column)
122
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "onKeydown", "onChange"])
123
+ ],
124
+ 2112
125
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
126
+ )) : __props.column.type === "select" ? (openBlock(), createElementBlock(
127
+ Fragment,
128
+ { key: 2 },
129
+ [
130
+ createCommentVNode(" \u9009\u62E9\u6846 "),
131
+ createVNode(unref(ElSelect), mergeProps({
132
+ modelValue: bindValue.value,
133
+ "onUpdate:modelValue": ($event) => bindValue.value = $event
134
+ }, __props.column.attrs, {
135
+ disabled: unref(isDisabled)(props, __props.column),
136
+ options: unref(optionsHandler)(props, __props.column),
137
+ onChange: ($event) => onChangeHandler($event, __props.column)
138
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "options", "onChange"])
139
+ ],
140
+ 2112
141
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
142
+ )) : __props.column.type === "date-picker" ? (openBlock(), createElementBlock(
143
+ Fragment,
144
+ { key: 3 },
145
+ [
146
+ createCommentVNode(" \u65E5\u671F\u9009\u62E9\u6846 "),
147
+ [
148
+ "datetimerange",
149
+ "daterange",
150
+ "monthrange",
151
+ "yearrange"
152
+ ].includes(__props.column.attrs?.type) && unref(isArray)(__props.column.field) ? (openBlock(), createBlock(unref(AppDatePicker), mergeProps({
153
+ key: 0,
154
+ start: bindValue.value,
155
+ "onUpdate:start": ($event) => bindValue.value = $event,
156
+ end: bindValue2.value,
157
+ "onUpdate:end": ($event) => bindValue2.value = $event,
158
+ "is-range": true,
159
+ style: { "width": "100%" },
160
+ timeRangeFill: __props.column.timeRangeFill
161
+ }, __props.column.attrs, {
162
+ disabled: unref(isDisabled)(props, __props.column),
163
+ onChange: ($event) => onChangeHandler($event, __props.column)
164
+ }), null, 16, ["start", "onUpdate:start", "end", "onUpdate:end", "timeRangeFill", "disabled", "onChange"])) : (openBlock(), createBlock(unref(AppDatePicker), mergeProps({
165
+ key: 1,
166
+ modelValue: bindValue.value,
167
+ "onUpdate:modelValue": ($event) => bindValue.value = $event,
168
+ "is-range": false,
169
+ style: { "width": "100%" },
170
+ timeRangeFill: __props.column.timeRangeFill
171
+ }, __props.column.attrs, {
172
+ disabled: unref(isDisabled)(props, __props.column),
173
+ onChange: ($event) => onChangeHandler($event, __props.column)
174
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "timeRangeFill", "disabled", "onChange"]))
175
+ ],
176
+ 64
177
+ /* STABLE_FRAGMENT */
178
+ )) : __props.column.type === "org-cascader" ? (openBlock(), createElementBlock(
179
+ Fragment,
180
+ { key: 4 },
181
+ [
182
+ createCommentVNode(" \u90E8\u95E8\u7EA7\u8054\u9009\u62E9\u6846 "),
183
+ createVNode(unref(AppOrgCascader), mergeProps({
184
+ modelValue: bindValue.value,
185
+ "onUpdate:modelValue": ($event) => bindValue.value = $event
186
+ }, __props.column.attrs, {
187
+ disabled: unref(isDisabled)(props, __props.column)
188
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
189
+ ],
190
+ 2112
191
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
192
+ )) : createCommentVNode("v-if", true)
193
+ ],
194
+ 6
195
+ /* CLASS, STYLE */
196
+ )
197
+ ],
198
+ 4
199
+ /* STYLE */
200
+ ),
201
+ __props.column.type === "date-picker" && ["daterange", "datetimerange"].includes(__props.column.attrs?.type) && __props.column.timeRangeOptions?.length ? (openBlock(), createElementBlock("div", {
202
+ key: 0,
203
+ class: "flex text-main select-none"
204
+ }, [
205
+ (openBlock(true), createElementBlock(
206
+ Fragment,
207
+ null,
208
+ renderList(__props.column.timeRangeOptions, (item, index) => {
209
+ return openBlock(), createElementBlock("div", {
210
+ key: index,
211
+ class: normalizeClass(["border-l border-border px-[10px] cursor-pointer", {
212
+ "bg-[rgba(var(--hy-theme),0.2)] text-theme font-bold": unref(isSelectedTimeRange)(__props.column, item, __props.model)
213
+ }]),
214
+ onClick: ($event) => onTimeRangeClickHandler(__props.column, item)
215
+ }, [
216
+ createElementVNode(
217
+ "span",
218
+ null,
219
+ toDisplayString(item.label),
220
+ 1
221
+ /* TEXT */
222
+ )
223
+ ], 10, ["onClick"]);
224
+ }),
225
+ 128
226
+ /* KEYED_FRAGMENT */
227
+ ))
228
+ ])) : createCommentVNode("v-if", true)
229
+ ])
230
+ ]),
231
+ _: 3
232
+ /* FORWARDED */
233
+ }, 8, ["prop"])) : createCommentVNode("v-if", true);
234
+ };
235
+ }
236
+ };
237
+
238
+ export { _sfc_main as default };
@@ -35,8 +35,11 @@ function columnShowHandler(props, column) {
35
35
  return true;
36
36
  }
37
37
  function isDisabled(props, column) {
38
- var _a;
39
- return !!(props.loading || ((_a = column.attrs) == null ? void 0 : _a.disabled));
38
+ if (props.loading) return true;
39
+ const disabled = unref(column.attrs?.disabled);
40
+ if (isBoolean(disabled)) return disabled;
41
+ if (isFunction(disabled)) return disabled(column, props.model);
42
+ return false;
40
43
  }
41
44
  function isEmptyValue(e) {
42
45
  return isEmpty(e) || isArray(e) && !e.length;
@@ -45,17 +48,18 @@ function useShrink(props, templateRef) {
45
48
  const { addResize, removeResize } = useResizeHandler();
46
49
  const resizeExpandKey = /* @__PURE__ */ Symbol("appSearchExpand");
47
50
  const isExpand = ref(false);
51
+ const showShrink = ref(true);
48
52
  const containerHeight = ref(getContainerPickUpHeight());
49
53
  function getContainerPickUpHeight() {
50
54
  switch (props.size) {
51
55
  case "large":
52
- return 41;
56
+ return 43;
53
57
  case "small":
54
- return 25;
58
+ return 27;
55
59
  case "":
56
60
  case "default":
57
61
  default:
58
- return 33;
62
+ return 35;
59
63
  }
60
64
  }
61
65
  function switchShrink() {
@@ -78,6 +82,7 @@ function useShrink(props, templateRef) {
78
82
  );
79
83
  return {
80
84
  isExpand,
85
+ showShrink,
81
86
  containerHeight,
82
87
  switchShrink,
83
88
  shrinkResizeHandler,
@@ -88,7 +93,8 @@ function useShrink(props, templateRef) {
88
93
  }
89
94
  function timeRangeHandler(column, options) {
90
95
  const { value, unit } = options;
91
- let { timeRangeFill, attrs } = column;
96
+ const { attrs } = column;
97
+ let { timeRangeFill } = attrs;
92
98
  const format = "YYYY-MM-DD";
93
99
  const date = dayjs(Date.now());
94
100
  timeRangeFill = timeRangeFill || attrs.type === "datetimerange";
@@ -97,7 +103,7 @@ function timeRangeHandler(column, options) {
97
103
  case "month":
98
104
  return [
99
105
  date.subtract(value, unit).format(`${format}${timeRangeFill ? " 00:00:00" : ""}`),
100
- current
106
+ date.format(`${format}${timeRangeFill ? " 23:59:59" : ""}`)
101
107
  ];
102
108
  case "day":
103
109
  default:
@@ -118,5 +124,11 @@ function isSelectedTimeRange(column, options, model = {}) {
118
124
  }
119
125
  return start === model[field][0] && end === model[field][1];
120
126
  }
127
+ function optionsHandler(props, column) {
128
+ const options = unref(column.attrs.options);
129
+ if (isArray(options)) return options;
130
+ if (isFunction(options)) return options(column, props.model);
131
+ return [];
132
+ }
121
133
 
122
- export { columnItemInputStyle, columnItemStyle, columnShowHandler, isDisabled, isEmptyValue, isSelectedTimeRange, timeRangeHandler, useShrink };
134
+ export { columnItemInputStyle, columnItemStyle, columnShowHandler, isDisabled, isEmptyValue, isSelectedTimeRange, optionsHandler, timeRangeHandler, useShrink };
@@ -1,5 +1,6 @@
1
1
  import { unref, toRef } from 'vue';
2
2
  import { funRunHandler, mergeDeep } from '../../../utils/handler.mjs';
3
+ import { genValueByProp } from '../../../utils/form.mjs';
3
4
  import { getDefaultValueFormatByType } from '../../../utils/date.mjs';
4
5
  import { useLocale } from '../../../hooks/useLocale.mjs';
5
6
  import { isNumber } from '../../../utils/is.mjs';
@@ -24,7 +25,7 @@ const genPlaceholderHandler = (config) => {
24
25
  placeholder = placeholder || t("hy.pleaseSelectPlaceholder", [label]);
25
26
  case "date-picker":
26
27
  if (["datetimerange", "daterange", "monthrange", "yearrange"].includes(
27
- attrs == null ? void 0 : attrs.type
28
+ attrs?.type
28
29
  )) {
29
30
  switch (attrs.type) {
30
31
  case "yearrange":
@@ -57,7 +58,7 @@ const genColumnWidth = (config) => {
57
58
  let inputWidth;
58
59
  if (!width) {
59
60
  if (type === "date-picker") {
60
- switch (attrs == null ? void 0 : attrs.type) {
61
+ switch (attrs?.type) {
61
62
  case "datetimerange":
62
63
  inputWidth = 390;
63
64
  break;
@@ -79,7 +80,7 @@ const genColumnWidth = (config) => {
79
80
  const timeRangeOptionsHandler = (config) => {
80
81
  const { t } = useLocale();
81
82
  const { timeRangeOptions } = config || {};
82
- if (!(timeRangeOptions == null ? void 0 : timeRangeOptions.length)) return timeRangeOptions;
83
+ if (!timeRangeOptions?.length) return timeRangeOptions;
83
84
  return timeRangeOptions.reduce((list, item) => {
84
85
  let { value, label, unit } = item;
85
86
  if (!value || !isNumber(value) || isNaN(value)) return list;
@@ -164,10 +165,14 @@ const resetAppSearchValue = (columns = [], obj = {}) => {
164
165
  const value = funRunHandler(item.defaultValue);
165
166
  if (Array.isArray(item.prop)) {
166
167
  for (let i = 0; i < item.prop.length; i++) {
167
- obj[item.prop[i]] = value && Array.isArray(value) ? value[i] : void 0;
168
+ genValueByProp(
169
+ obj,
170
+ item.prop[i],
171
+ Array.isArray(value) ? value[i] : void 0
172
+ );
168
173
  }
169
174
  } else {
170
- obj[item.prop] = value;
175
+ genValueByProp(obj, item.prop, value);
171
176
  }
172
177
  }
173
178
  return obj;
@@ -49,11 +49,21 @@
49
49
  --el-input-text-color: rgb(var(--hy-main));
50
50
  --el-input-border-radius: 0px 4px 4px 0px;
51
51
  --el-input-hover-border-color: rgb(var(--hy-theme));
52
+ .hy-el-input__wrapper,
53
+ &.hy-el-input__wrapper {
54
+ box-shadow: none !important;
55
+ }
52
56
  }
53
57
  .hy-el-select {
54
58
  --el-border-color: transparent;
55
59
  --el-fill-color-blank: transparent;
56
60
  --el-border-radius-base: 0px 4px 4px 0px;
57
61
  --el-border-color-hover: rgb(var(--hy-theme));
62
+ .hy-el-select__wrapper {
63
+ box-shadow: none !important;
64
+ }
65
+ }
66
+ .app-search-custom-wrapper {
67
+ min-height: var(--hy-el-component-size);
58
68
  }
59
69
  }