hy-dispatch-ui-v3 0.2.78 → 0.2.80

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 (36) hide show
  1. package/dist/tailwind.css +18 -4
  2. package/es/components/hyDatePicker/datePicker.vue.mjs +34 -4
  3. package/es/components/hyForm/cpns/formItem.vue.mjs +71 -62
  4. package/es/components/hyForm/js/useAppForm.mjs +4 -3
  5. package/es/components/hyLocationMap/index.mjs +7 -0
  6. package/es/components/hyLocationMap/locationMap.vue.mjs +215 -0
  7. package/es/components/hyLocationMap/style/locationMap.scss +0 -0
  8. package/es/components/hyMap/js/index.mjs +6 -4
  9. package/es/components/hySearch/js/useAppSearch.mjs +4 -31
  10. package/es/components/hyTable/js/search.mjs +1 -1
  11. package/es/components/hyTooltip/tooltip.vue.mjs +27 -17
  12. package/es/components/index.mjs +1 -0
  13. package/es/index.mjs +2 -1
  14. package/es/utils/form.mjs +68 -22
  15. package/es/utils/index.mjs +1 -1
  16. package/es/utils/is.mjs +1 -1
  17. package/es/utils/permission.mjs +3 -1
  18. package/es/version.mjs +1 -1
  19. package/lib/components/hyDatePicker/datePicker.vue.js +32 -2
  20. package/lib/components/hyForm/cpns/formItem.vue.js +70 -61
  21. package/lib/components/hyForm/js/useAppForm.js +2 -1
  22. package/lib/components/hyLocationMap/index.js +12 -0
  23. package/lib/components/hyLocationMap/locationMap.vue.js +219 -0
  24. package/lib/components/hyLocationMap/style/locationMap.scss +0 -0
  25. package/lib/components/hyMap/js/index.js +6 -4
  26. package/lib/components/hySearch/js/useAppSearch.js +2 -29
  27. package/lib/components/hyTable/js/search.js +1 -1
  28. package/lib/components/hyTooltip/tooltip.vue.js +26 -16
  29. package/lib/components/index.js +30 -28
  30. package/lib/index.js +50 -46
  31. package/lib/utils/form.js +69 -21
  32. package/lib/utils/index.js +2 -0
  33. package/lib/utils/is.js +1 -1
  34. package/lib/utils/permission.js +3 -1
  35. package/lib/version.js +1 -1
  36. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent, useModel, ref, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, createElementBlock, normalizeStyle, normalizeClass, mergeModels } from 'vue';
1
+ import { defineComponent, useModel, ref, computed, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, mergeModels } from 'vue';
2
2
  import { ElTooltip } from 'element-plus';
3
3
  import '../../utils/index.mjs';
4
4
  import '../../hooks/index.mjs';
@@ -37,6 +37,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
37
37
  },
38
38
  content: {
39
39
  type: [String, Number]
40
+ },
41
+ maxWidth: {
42
+ type: String,
43
+ default: "300px"
44
+ },
45
+ maxHeight: {
46
+ type: String
40
47
  }
41
48
  }, {
42
49
  "modelValue": { type: Boolean, default: false },
@@ -72,11 +79,22 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
72
79
  class: "item",
73
80
  effect: "dark",
74
81
  placement: "top",
75
- "popper-class": "max-w-[300px]"
76
- }, _ctx.$attrs, {
77
- disabled: isDisabled.value,
78
- content: _ctx.$slots.content ? void 0 : unref(isNumber)(__props.content) ? `${__props.content}` : __props.content
79
- }), createSlots({
82
+ "popper-class": _ctx.$slots.content ? "" : "pr-0"
83
+ }, _ctx.$attrs, { disabled: isDisabled.value }), {
84
+ content: withCtx(() => [
85
+ renderSlot(_ctx.$slots, "content", {}, () => [
86
+ createElementVNode(
87
+ "div",
88
+ {
89
+ class: "scroll-body break-all overflow-y-auto pr-1",
90
+ style: normalizeStyle({ maxWidth: __props.maxWidth, maxHeight: __props.maxHeight })
91
+ },
92
+ toDisplayString(unref(isNumber)(__props.content) ? `${__props.content}` : __props.content),
93
+ 5
94
+ /* TEXT, STYLE */
95
+ )
96
+ ])
97
+ ]),
80
98
  default: withCtx(() => [
81
99
  __props.isAlways ? renderSlot(_ctx.$slots, "default", {}, () => [
82
100
  createTextVNode(
@@ -105,17 +123,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
105
123
  /* CLASS, STYLE, NEED_HYDRATION */
106
124
  ))
107
125
  ]),
108
- _: 2
109
- /* DYNAMIC */
110
- }, [
111
- _ctx.$slots.content ? {
112
- name: "content",
113
- fn: withCtx(() => [
114
- renderSlot(_ctx.$slots, "content")
115
- ]),
116
- key: "0"
117
- } : void 0
118
- ]), 1040, ["visible", "onUpdate:visible", "disabled", "content"]);
126
+ _: 3
127
+ /* FORWARDED */
128
+ }, 16, ["visible", "onUpdate:visible", "popper-class", "disabled"]);
119
129
  };
120
130
  }
121
131
  });
@@ -30,6 +30,7 @@ export { HyTour } from './hyTour/index.mjs';
30
30
  export { HyDrawer } from './hyDrawer/index.mjs';
31
31
  export { HyStatus } from './hyStatus/index.mjs';
32
32
  export { HyCheckboxGroup } from './hyCheckboxGroup/index.mjs';
33
+ export { HyLocationMap } from './hyLocationMap/index.mjs';
33
34
  export { resetAppFormValue, useAppForm } from './hyForm/js/useAppForm.mjs';
34
35
  export { resetAppSearchValue, useAppSearch } from './hySearch/js/useAppSearch.mjs';
35
36
  export { useAppTable } from './hyTable/js/useAppTable.mjs';
package/es/index.mjs CHANGED
@@ -28,6 +28,7 @@ export { HyFilePlayback } from './bussiness/hyFilePlayback/index.mjs';
28
28
  export { HyForm } from './components/hyForm/index.mjs';
29
29
  export { HyIcon } from './components/hyIcon/index.mjs';
30
30
  export { HyIconBox } from './components/hyIconBox/index.mjs';
31
+ export { HyLocationMap } from './components/hyLocationMap/index.mjs';
31
32
  export { HyMap } from './components/hyMap/index.mjs';
32
33
  export { HyMapAearchPlace } from './bussiness/hyMapAearchPlace/index.mjs';
33
34
  export { HyMenu } from './components/hyMenu/index.mjs';
@@ -53,7 +54,7 @@ export { base64Decrypt, encryptToBase64, generateRandomCode } from './utils/cryp
53
54
  export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, presignedUrl, sizeToTextHandler } from './utils/file.mjs';
54
55
  export { bus, usePublish, useSubscribe } from './hooks/useSubscribe.mjs';
55
56
  export { clearResizeObserver, useResizeObserver } from './hooks/useResizeObserver.mjs';
56
- export { clearSpace, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './utils/form.mjs';
57
+ export { clearSpace, columnDefaultValueHandler, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnTimeRangeOptionsHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './utils/form.mjs';
57
58
  export { cloneDeep, copyText, createUniqueId, funRunHandler, mergeDeep, withInstall } from './utils/handler.mjs';
58
59
  export { configProviderContextKey, provideGlobalConfig, useGlobalConfig } from './hooks/useGlobalConfig.mjs';
59
60
  export { defaultAxios, localApiKey, useApi } from './hooks/useApi.mjs';
package/es/utils/form.mjs CHANGED
@@ -2,6 +2,7 @@ import dayjs from 'dayjs';
2
2
  import { unref } from 'vue';
3
3
  import '../hooks/index.mjs';
4
4
  import { isString, isArray, isBoolean, isFunction, isObject, isNumber, isEmpty } from './is.mjs';
5
+ import { funRunHandler } from './handler.mjs';
5
6
  import { $t } from '../hooks/useLocale.mjs';
6
7
 
7
8
  function getValueByProp(model, prop) {
@@ -169,6 +170,31 @@ function columnHelpHandler(props, column) {
169
170
  if (isFunction(help)) return help(column, props.model);
170
171
  return;
171
172
  }
173
+ function columnTimeRangeOptionsHandler(config) {
174
+ const { timeRangeOptions } = config || {};
175
+ if (!timeRangeOptions?.length) return timeRangeOptions;
176
+ return timeRangeOptions.reduce((list, item) => {
177
+ let { value, label, unit } = item;
178
+ if (!value || !isNumber(value) || isNaN(value)) return list;
179
+ const isPlural = value > 1;
180
+ if (!label) {
181
+ switch (unit) {
182
+ case "year":
183
+ label = $t("hy.lastDate", [value + $t(isPlural ? "hy.years" : "hy.year")]);
184
+ break;
185
+ case "month":
186
+ label = $t("hy.lastDate", [value + $t(isPlural ? "hy.months" : "hy.month")]);
187
+ break;
188
+ case "day":
189
+ default:
190
+ unit = "day";
191
+ label = value === 1 ? $t("hy.today") : $t("hy.lastDate", [value + $t(isPlural ? "hy.days" : "hy.day")]);
192
+ }
193
+ }
194
+ list.push({ ...item, label, unit });
195
+ return list;
196
+ }, []);
197
+ }
172
198
  function genColumnShortcuts(column) {
173
199
  if (!["datetimerange", "daterange", "monthrange", "yearrange"].includes(column.attrs?.type) || !isArray(column.field) || !column.timeRangeOptions?.length) {
174
200
  return;
@@ -185,28 +211,48 @@ function genColumnShortcuts(column) {
185
211
  value: genShortcutItem
186
212
  };
187
213
  });
188
- function genShortcutItem() {
189
- const format = "YYYY-MM-DD";
190
- const date = dayjs(Date.now());
191
- const { value, unit, type } = this.options;
192
- const timeRangeFill2 = this.options.timeRangeFill || type === "datetimerange";
193
- if (unit === "day" && value === 1) {
194
- return [
195
- date.format(`${format}${timeRangeFill2 ? " 00:00:00" : ""}`),
196
- date.format(`${format}${timeRangeFill2 ? " 23:59:59" : ""}`)
197
- ];
198
- } else if (unit === "day") {
199
- return [
200
- date.subtract(value - 1, unit).format(`${format}${timeRangeFill2 ? " 00:00:00" : ""}`),
201
- date.format(`${format}${timeRangeFill2 ? " 23:59:59" : ""}`)
202
- ];
203
- } else {
204
- return [
205
- date.subtract(value, unit).format(`${format}${timeRangeFill2 ? " 00:00:00" : ""}`),
206
- date.format(`${format}${timeRangeFill2 ? " 23:59:59" : ""}`)
207
- ];
208
- }
214
+ }
215
+ function genShortcutItem(options = this.options) {
216
+ const format = "YYYY-MM-DD";
217
+ const date = dayjs(Date.now());
218
+ const { value, unit, type } = options;
219
+ const timeRangeFill = options.timeRangeFill || type === "datetimerange";
220
+ if (!isNumber(value) || value < 1) {
221
+ console.warning("timeRangeOptions \u7684 value \u5B57\u6BB5\u8981\u4F20\u5165\u6570\u5B57");
222
+ return [];
223
+ }
224
+ if (!["day", "month", "year"].includes(unit)) {
225
+ console.warning("timeRangeOptions \u7684 unit \u5B57\u6BB5\u4F20\u5165\u683C\u5F0F\u9519\u8BEF");
226
+ return [];
209
227
  }
228
+ if (unit === "day" && value === 1) {
229
+ return [
230
+ date.format(`${format}${timeRangeFill ? " 00:00:00" : ""}`),
231
+ date.format(`${format}${timeRangeFill ? " 23:59:59" : ""}`)
232
+ ];
233
+ } else if (unit === "day") {
234
+ return [
235
+ date.subtract(value - 1, unit).format(`${format}${timeRangeFill ? " 00:00:00" : ""}`),
236
+ date.format(`${format}${timeRangeFill ? " 23:59:59" : ""}`)
237
+ ];
238
+ } else {
239
+ return [
240
+ date.subtract(value, unit).format(`${format}${timeRangeFill ? " 00:00:00" : ""}`),
241
+ date.format(`${format}${timeRangeFill ? " 23:59:59" : ""}`)
242
+ ];
243
+ }
244
+ }
245
+ function columnDefaultValueHandler(column) {
246
+ const { type, defaultValue, attrs } = column || {};
247
+ const value = funRunHandler(defaultValue);
248
+ if (type === "date-picker" && isObject(value) && ["datetimerange", "daterange", "monthrange", "yearrange"].includes(attrs.type)) {
249
+ return genShortcutItem({
250
+ ...value,
251
+ type: attrs.type,
252
+ timeRangeFill: attrs.timeRangeFill
253
+ });
254
+ }
255
+ return value;
210
256
  }
211
257
 
212
- export { clearSpace, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp };
258
+ export { clearSpace, columnDefaultValueHandler, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnTimeRangeOptionsHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp };
@@ -4,7 +4,7 @@ export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isOb
4
4
  export { cloneDeep, copyText, createUniqueId, funRunHandler, mergeDeep, withInstall } from './handler.mjs';
5
5
  export { formatDuration, getDefaultValueFormatByType } from './date.mjs';
6
6
  export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, presignedUrl, sizeToTextHandler } from './file.mjs';
7
- export { clearSpace, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './form.mjs';
7
+ export { clearSpace, columnDefaultValueHandler, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnTimeRangeOptionsHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './form.mjs';
8
8
  export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatTimeFn, getPublicFileSize, inputForbidden, keepTwoDecimalPlaces, onlyNumber } from './input.mjs';
9
9
  export { PERMISSION } from './permission.mjs';
10
10
  export { InitMap, setMapServer, setPoiServer } from './map/index.mjs';
package/es/utils/is.mjs CHANGED
@@ -5,7 +5,7 @@ import { usePermissionMap } from '../hooks/usePermissionMap.mjs';
5
5
  import { PERMISSION } from './permission.mjs';
6
6
 
7
7
  const isString = (e) => typeof e === "string";
8
- const isNumber = (e) => typeof e === "number";
8
+ const isNumber = (e) => typeof e === "number" && !isNaN(e);
9
9
  const isObject = (e) => Object.prototype.toString.call(e) === "[object Object]";
10
10
  const isFunction = (e) => typeof e === "function";
11
11
  const isArray = (e) => Array.isArray(e);
@@ -492,7 +492,9 @@ const PERMISSION = {
492
492
  // 区域管理
493
493
  operator_areaManagement: "operator_areaManagement",
494
494
  // 工单系统
495
- headerNavigation_policeticketSyncShangrao: "headerNavigation_policeticketSyncShangrao"
495
+ headerNavigation_policeticketSyncShangrao: "headerNavigation_policeticketSyncShangrao",
496
+ // 采集站管理 - 非全链路模式 - 同步数据
497
+ operator_acquisitionStation_nonFullChainMode_manualDataSynchronization: "operator_acquisitionStation_nonFullChainMode_manualDataSynchronization"
496
498
  };
497
499
 
498
500
  export { PERMISSION };
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.2.77";
1
+ const version = "0.2.79";
2
2
 
3
3
  export { version };
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
+ var dayjs = require('dayjs');
6
7
  var elementPlus = require('element-plus');
7
8
  require('../../utils/index.js');
8
9
  require('../../hooks/index.js');
@@ -37,7 +38,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
37
38
  type: String
38
39
  },
39
40
  startPlaceholder: String,
40
- endPlaceholder: String
41
+ endPlaceholder: String,
42
+ disabledDate: Function,
43
+ // 超出禁用天数
44
+ exceedDisableDays: Number
41
45
  }, {
42
46
  "modelValue": { type: [String, Date, Array] },
43
47
  "modelModifiers": {},
@@ -115,6 +119,30 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
115
119
  }
116
120
  emits("change", dateValue.value);
117
121
  }
122
+ const pickDate = vue.ref();
123
+ const exceedDisableDays = vue.computed(() => {
124
+ const val = Number(props.exceedDisableDays);
125
+ return is.isNumber(val) ? val : void 0;
126
+ });
127
+ const disabledDate = (date) => {
128
+ if (is.isFunction(props.disabledDate)) return props.disabledDate(date);
129
+ if (!pickDate.value || !is.isNumber(exceedDisableDays.value) || exceedDisableDays.value < 1) {
130
+ return false;
131
+ }
132
+ const minTime = dayjs(pickDate.value).subtract(exceedDisableDays.value - 1, "day");
133
+ const maxTime = dayjs(pickDate.value).add(exceedDisableDays.value - 1, "day");
134
+ return date.getTime() < minTime.valueOf() || date.getTime() > maxTime.valueOf();
135
+ };
136
+ function onCalendarChangeHandler(dates) {
137
+ if (!dates || !is.isNumber(exceedDisableDays.value) || exceedDisableDays.value < 1 || !["daterange", "datetimerange"].includes(props.type)) {
138
+ return;
139
+ }
140
+ const [start, end] = dates;
141
+ pickDate.value = start ? start.getTime() : null;
142
+ if (end) {
143
+ pickDate.value = null;
144
+ }
145
+ }
118
146
  __expose({
119
147
  focus() {
120
148
  if (!vue.unref(appDatePicker)) return;
@@ -146,7 +174,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
146
174
  "start-placeholder": startPlaceholder.value,
147
175
  "range-separator": vue.unref(useLocale.$t)("datePicker.to"),
148
176
  "end-placeholder": endPlaceholder.value,
149
- onChange: onChangeHandler
177
+ disabledDate,
178
+ onChange: onChangeHandler,
179
+ onCalendarChange: onCalendarChangeHandler
150
180
  }), vue.createSlots({
151
181
  _: 2
152
182
  /* DYNAMIC */
@@ -127,7 +127,8 @@ const _sfc_main = {
127
127
  ...attrs,
128
128
  label: form.columnLabelHandler(props.column, props.model),
129
129
  noDataText: form.columnnoDataTextHandler(props.column, props.model),
130
- placeholder: form.columnPlaceholderHandler(props.column, props.model)
130
+ placeholder: form.columnPlaceholderHandler(props.column, props.model),
131
+ shortcuts: form.genColumnShortcuts(props.column)
131
132
  };
132
133
  });
133
134
  async function obtainOptions(isMountedLoad = false) {
@@ -265,74 +266,82 @@ const _sfc_main = {
265
266
  "show-message": showMessage.value
266
267
  }, vue.createSlots({
267
268
  default: vue.withCtx(() => [
268
- vue.createElementVNode("div", { class: "w-full flex justify-between text-main" }, [
269
- vue.createElementVNode("div", { class: "flex items-center" }, [
270
- vue.createElementVNode("span", { class: "text-main whitespace-nowrap" }, [
271
- vue.renderSlot(_ctx.$slots, __props.column.labelSlot, {
272
- column: columnConfig.value,
273
- model: __props.model,
274
- required: vue.unref(index.isRequired)(props, __props.column)
275
- }, () => [
276
- vue.createTextVNode(
277
- vue.toDisplayString(vue.unref(form.columnLabelHandler)(__props.column, props.model) || "\xA0"),
278
- 1
279
- /* TEXT */
280
- )
281
- ])
282
- ]),
283
- vue.unref(index.isRequired)(props, __props.column) ? (vue.openBlock(), vue.createElementBlock("span", {
284
- key: 0,
285
- class: "label-required"
286
- })) : vue.createCommentVNode("v-if", true),
287
- vue.unref(form.columnHelpHandler)(props, __props.column) || __props.column.tooltipContentSlot ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
288
- key: 1,
289
- "is-always": "",
290
- overLine: 1
291
- }, {
292
- content: vue.withCtx(() => [
293
- !__props.column.tooltipContentSlot ? (vue.openBlock(), vue.createElementBlock(
294
- "span",
295
- { key: 0 },
296
- vue.toDisplayString(vue.unref(form.columnHelpHandler)(props, __props.column)),
297
- 1
298
- /* TEXT */
299
- )) : vue.createCommentVNode("v-if", true),
300
- vue.renderSlot(_ctx.$slots, __props.column.tooltipContentSlot, {
269
+ vue.createElementVNode(
270
+ "div",
271
+ {
272
+ class: vue.normalizeClass(["w-full flex justify-between text-main", __props.column.labelClass])
273
+ },
274
+ [
275
+ vue.createElementVNode("div", { class: "flex items-center" }, [
276
+ vue.createElementVNode("span", { class: "text-main whitespace-nowrap" }, [
277
+ vue.renderSlot(_ctx.$slots, __props.column.labelSlot, {
301
278
  column: columnConfig.value,
302
279
  model: __props.model,
303
280
  required: vue.unref(index.isRequired)(props, __props.column)
304
- })
305
- ]),
306
- default: vue.withCtx(() => [
307
- vue.createElementVNode("span", { class: "text-xs text-theme ml-2" }, [
308
- vue.createVNode(vue.unref(index$2.HyIcon), {
309
- "svg-name": "dispatch-share-v3-base-help",
310
- class: "!w-3 !h-3 mr-1"
311
- }),
312
- vue.createElementVNode(
313
- "span",
314
- null,
315
- vue.toDisplayString(vue.unref(useLocale.$t)("hy.help")),
281
+ }, () => [
282
+ vue.createTextVNode(
283
+ vue.toDisplayString(vue.unref(form.columnLabelHandler)(__props.column, props.model) || "\xA0"),
316
284
  1
317
285
  /* TEXT */
318
286
  )
319
287
  ])
320
288
  ]),
321
- _: 3
322
- /* FORWARDED */
323
- })) : vue.createCommentVNode("v-if", true)
324
- ]),
325
- __props.column.rightSlot && _ctx.$slots[__props.column.rightSlot] ? (vue.openBlock(), vue.createElementBlock("div", {
326
- key: 0,
327
- class: "ml-2 flex items-center"
328
- }, [
329
- vue.renderSlot(_ctx.$slots, __props.column.rightSlot, {
330
- column: columnConfig.value,
331
- model: __props.model,
332
- required: vue.unref(index.isRequired)(props, __props.column)
333
- })
334
- ])) : vue.createCommentVNode("v-if", true)
335
- ]),
289
+ vue.unref(index.isRequired)(props, __props.column) ? (vue.openBlock(), vue.createElementBlock("span", {
290
+ key: 0,
291
+ class: "label-required"
292
+ })) : vue.createCommentVNode("v-if", true),
293
+ vue.unref(form.columnHelpHandler)(props, __props.column) || __props.column.tooltipContentSlot ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyTooltip), {
294
+ key: 1,
295
+ "is-always": "",
296
+ overLine: 1
297
+ }, {
298
+ content: vue.withCtx(() => [
299
+ !__props.column.tooltipContentSlot ? (vue.openBlock(), vue.createElementBlock(
300
+ "span",
301
+ { key: 0 },
302
+ vue.toDisplayString(vue.unref(form.columnHelpHandler)(props, __props.column)),
303
+ 1
304
+ /* TEXT */
305
+ )) : vue.createCommentVNode("v-if", true),
306
+ vue.renderSlot(_ctx.$slots, __props.column.tooltipContentSlot, {
307
+ column: columnConfig.value,
308
+ model: __props.model,
309
+ required: vue.unref(index.isRequired)(props, __props.column)
310
+ })
311
+ ]),
312
+ default: vue.withCtx(() => [
313
+ vue.createElementVNode("span", { class: "text-xs text-theme ml-2" }, [
314
+ vue.createVNode(vue.unref(index$2.HyIcon), {
315
+ "svg-name": "dispatch-share-v3-base-help",
316
+ class: "!w-3 !h-3 mr-1"
317
+ }),
318
+ vue.createElementVNode(
319
+ "span",
320
+ null,
321
+ vue.toDisplayString(vue.unref(useLocale.$t)("hy.help")),
322
+ 1
323
+ /* TEXT */
324
+ )
325
+ ])
326
+ ]),
327
+ _: 3
328
+ /* FORWARDED */
329
+ })) : vue.createCommentVNode("v-if", true)
330
+ ]),
331
+ __props.column.rightSlot && _ctx.$slots[__props.column.rightSlot] ? (vue.openBlock(), vue.createElementBlock("div", {
332
+ key: 0,
333
+ class: "ml-2 flex items-center"
334
+ }, [
335
+ vue.renderSlot(_ctx.$slots, __props.column.rightSlot, {
336
+ column: columnConfig.value,
337
+ model: __props.model,
338
+ required: vue.unref(index.isRequired)(props, __props.column)
339
+ })
340
+ ])) : vue.createCommentVNode("v-if", true)
341
+ ],
342
+ 2
343
+ /* CLASS */
344
+ ),
336
345
  vue.unref(index.isReadonly)(props, __props.column) || !__props.column.type && !__props.column.slot ? (vue.openBlock(), vue.createElementBlock(
337
346
  "div",
338
347
  {
@@ -17,6 +17,7 @@ function appFormItemHandler(column = {}) {
17
17
  label,
18
18
  readonly: column.readonly || false,
19
19
  rules: column.rules,
20
+ timeRangeOptions: form.columnTimeRangeOptionsHandler(column),
20
21
  attrs
21
22
  }
22
23
  );
@@ -71,7 +72,7 @@ function appFormItemHandler(column = {}) {
71
72
  }
72
73
  const resetAppFormValue = (columns = [], obj = {}) => {
73
74
  for (const item of columns) {
74
- const value = handler.funRunHandler(item.defaultValue);
75
+ const value = form.columnDefaultValueHandler(item);
75
76
  if (item.type === "array") {
76
77
  if (is.isArray(value)) {
77
78
  obj[item.prop] = value;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../utils/index.js');
6
+ var locationMap = require('./locationMap.vue.js');
7
+ var handler = require('../../utils/handler.js');
8
+
9
+ const HyLocationMap = handler.withInstall(locationMap.default);
10
+
11
+ exports.HyLocationMap = HyLocationMap;
12
+ exports.default = HyLocationMap;