hy-dispatch-ui-v3 0.2.59 → 0.2.60

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 (87) hide show
  1. package/dist/tailwind.css +129 -0
  2. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  3. package/es/api/index.mjs +137 -0
  4. package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +365 -0
  5. package/es/bussiness/hyAddDepartmentType/index.mjs +6 -0
  6. package/es/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +31 -0
  7. package/es/bussiness/index.mjs +1 -1
  8. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +1 -1
  9. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +45 -36
  10. package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
  11. package/es/components/hyForm/cpns/formItem.vue.mjs +106 -43
  12. package/es/components/hyForm/cpns/locationSelect.vue.mjs +358 -0
  13. package/es/components/hyForm/form.vue.mjs +83 -31
  14. package/es/components/hyForm/js/index.mjs +9 -2
  15. package/es/components/hyForm/js/useAppForm.mjs +6 -36
  16. package/es/components/hyMap/map.vue.mjs +3 -3
  17. package/es/components/hyRadioGroup/index.mjs +6 -0
  18. package/es/components/hyRadioGroup/radioGroup.vue.mjs +123 -0
  19. package/es/components/hyRadioGroup/style/radioGroup.scss +0 -0
  20. package/es/components/hySearch/cpns/searchItem.vue.mjs +20 -13
  21. package/es/components/hySearch/js/useAppSearch.mjs +3 -33
  22. package/es/components/hyTable/cpns/virtualTable.vue.mjs +9 -1
  23. package/es/components/hyTable/js/index.mjs +6 -3
  24. package/es/components/hyTable/js/search.mjs +1 -0
  25. package/es/components/hyTable/table.vue.mjs +11 -4
  26. package/es/components/hyTableForm/batchTableForm.vue.mjs +5 -2
  27. package/es/components/hyTableForm/tableForm.vue.mjs +6 -0
  28. package/es/components/hyTree/js/index.mjs +69 -53
  29. package/es/components/hyTree/tree.vue.mjs +36 -1
  30. package/es/components/index.mjs +1 -0
  31. package/es/index.mjs +3 -1
  32. package/es/locale/en.mjs +17 -1
  33. package/es/locale/zh_CN.mjs +17 -1
  34. package/es/static/hy-svg-icons/hy-icon-ops-linear-shouqi.js +8 -0
  35. package/es/static/hy-svg-icons/hy-icon-ops-linear-zhankai.js +8 -0
  36. package/es/style/index.scss +53 -0
  37. package/es/style/theme.scss +0 -53
  38. package/es/utils/form.mjs +56 -7
  39. package/es/utils/index.mjs +1 -1
  40. package/es/utils/map/hook/bigMap.mjs +4 -0
  41. package/es/utils/map/hook/gaode.mjs +3 -0
  42. package/es/utils/map/hook/leafletjs.mjs +10 -10
  43. package/es/utils/map/index.mjs +27 -7
  44. package/es/version.mjs +1 -1
  45. package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
  46. package/lib/api/index.js +147 -0
  47. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +369 -0
  48. package/lib/bussiness/hyAddDepartmentType/index.js +11 -0
  49. package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +31 -0
  50. package/lib/bussiness/index.js +5 -0
  51. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +44 -35
  52. package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
  53. package/lib/components/hyForm/cpns/formItem.vue.js +111 -48
  54. package/lib/components/hyForm/cpns/locationSelect.vue.js +362 -0
  55. package/lib/components/hyForm/form.vue.js +79 -27
  56. package/lib/components/hyForm/js/index.js +9 -1
  57. package/lib/components/hyForm/js/useAppForm.js +5 -35
  58. package/lib/components/hyMap/map.vue.js +3 -3
  59. package/lib/components/hyRadioGroup/index.js +11 -0
  60. package/lib/components/hyRadioGroup/radioGroup.vue.js +127 -0
  61. package/lib/components/hyRadioGroup/style/radioGroup.scss +0 -0
  62. package/lib/components/hySearch/cpns/searchItem.vue.js +19 -12
  63. package/lib/components/hySearch/js/useAppSearch.js +2 -32
  64. package/lib/components/hyTable/cpns/virtualTable.vue.js +9 -1
  65. package/lib/components/hyTable/js/index.js +6 -3
  66. package/lib/components/hyTable/js/search.js +1 -0
  67. package/lib/components/hyTable/table.vue.js +43 -36
  68. package/lib/components/hyTableForm/batchTableForm.vue.js +5 -2
  69. package/lib/components/hyTableForm/tableForm.vue.js +6 -0
  70. package/lib/components/hyTree/js/index.js +69 -53
  71. package/lib/components/hyTree/tree.vue.js +36 -1
  72. package/lib/components/index.js +14 -12
  73. package/lib/index.js +56 -49
  74. package/lib/locale/en.js +17 -1
  75. package/lib/locale/zh_CN.js +17 -1
  76. package/lib/static/hy-svg-icons/hy-icon-ops-linear-shouqi.js +8 -0
  77. package/lib/static/hy-svg-icons/hy-icon-ops-linear-zhankai.js +8 -0
  78. package/lib/style/index.scss +53 -0
  79. package/lib/style/theme.scss +0 -53
  80. package/lib/utils/form.js +57 -5
  81. package/lib/utils/index.js +3 -0
  82. package/lib/utils/map/hook/bigMap.js +4 -0
  83. package/lib/utils/map/hook/gaode.js +3 -0
  84. package/lib/utils/map/hook/leafletjs.js +10 -10
  85. package/lib/utils/map/index.js +26 -6
  86. package/lib/version.js +1 -1
  87. package/package.json +2 -2
@@ -0,0 +1,369 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var elementPlus = require('element-plus');
7
+ var index$4 = require('../../api/index.js');
8
+ var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
9
+ var useLocale = require('../../hooks/useLocale.js');
10
+ var useMixins = require('../../hooks/useMixins.js');
11
+ var index = require('../../components/hyDialog/index.js');
12
+ var index$1 = require('../../components/hyIcon/index.js');
13
+ var index$2 = require('../../components/hyButton/index.js');
14
+ var index$3 = require('../../components/hyCutter/index.js');
15
+ var file = require('../../utils/file.js');
16
+
17
+ const __default__ = vue.defineComponent({
18
+ name: "HyAddDepartmentType"
19
+ });
20
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
21
+ props: {
22
+ // 是否可缩小化
23
+ ifShrink: { type: Boolean, default: false },
24
+ // 是否拖拽
25
+ ifDraggable: { type: Boolean, default: false }
26
+ },
27
+ emits: ["on-submit", "onMinimized", "onDialogMousedown"],
28
+ setup(__props, { expose: __expose, emit: __emit }) {
29
+ const { t } = useLocale.useLocale();
30
+ const props = __props;
31
+ const emit = __emit;
32
+ const HyCutterRef = vue.useTemplateRef("HyCutterRef");
33
+ function useAddDepartmentType(hy) {
34
+ const { emit: emit2 } = hy;
35
+ const formRef2 = vue.ref(null);
36
+ const HyDialogRef2 = vue.ref();
37
+ const visible2 = vue.ref(false);
38
+ const form2 = vue.ref({
39
+ icon: null,
40
+ typeName: null
41
+ });
42
+ const rules2 = vue.ref({
43
+ typeName: [
44
+ {
45
+ required: true,
46
+ message: t("departmentType.pleaseEnterTheDepartmentTypeName"),
47
+ trigger: "blur"
48
+ }
49
+ ]
50
+ });
51
+ const title2 = vue.ref(t("departmentType.addDepartmentType"));
52
+ function beforeAvatarUpload2(file) {
53
+ const width = 44;
54
+ const height = 44;
55
+ const isLt2M = file.size / 1024 / 1024 < 2;
56
+ if (!isLt2M) {
57
+ elementPlus.ElMessage.error(t("departmentType.imageUploadFailedLogoSizeWithin2M"));
58
+ return false;
59
+ }
60
+ HyCutterRef.value.open({
61
+ file,
62
+ options: {
63
+ outputType: "png",
64
+ // 裁剪生成图片的格式
65
+ canScale: true,
66
+ // 图片是否允许滚轮缩放
67
+ fixedBox: true,
68
+ // 固定截图框大小 不允许改变
69
+ infoTrue: false,
70
+ // 是否开启截图框宽高固定比例
71
+ autoCropWidth: width,
72
+ autoCropHeight: height,
73
+ centerBox: false,
74
+ original: true,
75
+ fixed: false
76
+ },
77
+ onSubmit: ({ url, key }) => {
78
+ hy.form.value.icon = url;
79
+ hy.form.value.iconKey = key;
80
+ }
81
+ });
82
+ return false;
83
+ }
84
+ async function handleHttpRequestImg2(object) {
85
+ await file.fileUpload(object.file).then((url) => {
86
+ hy.form.value.icon = url;
87
+ });
88
+ }
89
+ function submit2() {
90
+ hy.formRef.value?.validate((valid) => {
91
+ if (valid) {
92
+ if (!hy.form.value.icon) {
93
+ hy.form.value.iconKey = null;
94
+ }
95
+ index$4.saveApi("organization/orgType", {
96
+ ...hy.form.value,
97
+ icon: null
98
+ }).then((res) => {
99
+ if (res.code === 200) {
100
+ emit2("on-submit", hy.form.value.id ? null : 1);
101
+ hy.visible.value = false;
102
+ elementPlus.ElMessage.success(t("videoPlayer.operationSuccessful"));
103
+ }
104
+ });
105
+ }
106
+ });
107
+ }
108
+ function onClose2() {
109
+ hy.visible.value = false;
110
+ }
111
+ function setDragLevelIndex2(dragLevel) {
112
+ HyDialogRef2.value.setDragLevelIndex(dragLevel);
113
+ }
114
+ function onMinimized2(e) {
115
+ emit2("onMinimized", e);
116
+ }
117
+ function onDialogMousedown2(e) {
118
+ emit2("onDialogMousedown", e);
119
+ }
120
+ function show2(row) {
121
+ if (row) {
122
+ hy.form.value = { ...row };
123
+ } else {
124
+ hy.form.value = {
125
+ icon: null,
126
+ typeName: null
127
+ };
128
+ }
129
+ hy.visible.value = true;
130
+ }
131
+ return {
132
+ // HyCutterRef,
133
+ formRef: formRef2,
134
+ visible: visible2,
135
+ form: form2,
136
+ rules: rules2,
137
+ beforeAvatarUpload: beforeAvatarUpload2,
138
+ handleHttpRequestImg: handleHttpRequestImg2,
139
+ submit: submit2,
140
+ onClose: onClose2,
141
+ show: show2,
142
+ onDialogMousedown: onDialogMousedown2,
143
+ onMinimized: onMinimized2,
144
+ setDragLevelIndex: setDragLevelIndex2,
145
+ title: title2,
146
+ HyDialogRef: HyDialogRef2
147
+ };
148
+ }
149
+ const {
150
+ // HyCutterRef,
151
+ formRef,
152
+ visible,
153
+ form,
154
+ rules,
155
+ beforeAvatarUpload,
156
+ handleHttpRequestImg,
157
+ submit,
158
+ onClose,
159
+ show,
160
+ title,
161
+ setDragLevelIndex,
162
+ HyDialogRef,
163
+ onMinimized,
164
+ onDialogMousedown
165
+ } = useMixins.useMixins({ emit, props }, [useAddDepartmentType]);
166
+ __expose({
167
+ show,
168
+ setDragLevelIndex
169
+ });
170
+ return (_ctx, _cache) => {
171
+ const _component_el_input = vue.resolveComponent("el-input");
172
+ return vue.openBlock(), vue.createBlock(vue.unref(index.HyDialog), {
173
+ ref_key: "HyDialogRef",
174
+ ref: HyDialogRef,
175
+ modelValue: vue.unref(visible),
176
+ "onUpdate:modelValue": ($event) => vue.isRef(visible) ? visible.value = $event : null,
177
+ "if-shrink": props.ifShrink,
178
+ "if-draggable": props.ifDraggable,
179
+ width: "310px",
180
+ title: vue.unref(title),
181
+ showOperate: false,
182
+ "on-close": vue.unref(onClose),
183
+ onOnMinimized: vue.unref(onMinimized),
184
+ onOnDialogMousedown: vue.unref(onDialogMousedown)
185
+ }, {
186
+ default: vue.withCtx(() => [
187
+ vue.createCommentVNode(` <template #header>
188
+ <div
189
+ class="box-border w-full border-0 border-b border-solid border-background-3 px-4 py-[10px] text-main text-sm font-bold flex justify-between items-center relative"
190
+ >
191
+ <span v-if="form.id">{{ t('editDepartmentType') }}</span>
192
+ <span v-else>{{ t('addDepartmentType') }}</span>
193
+ <div class="text-lg absolute right-4 cursor-pointer text-danger-2">
194
+ <HyIcon
195
+ svg-name="layout-dialog-close-v2"
196
+ class="!w-[20px] !h-[20px]"
197
+ @click="onClose"
198
+ />
199
+ </div>
200
+ </div>
201
+ </template> `),
202
+ vue.createElementVNode("div", { class: "text-main" }, [
203
+ vue.createElementVNode("div", { class: "box-border" }, [
204
+ vue.createElementVNode("div", { class: "overflow-hidden" }, [
205
+ vue.createVNode(vue.unref(elementPlus.ElForm), {
206
+ ref_key: "formRef",
207
+ ref: formRef,
208
+ "label-position": "top",
209
+ model: vue.unref(form),
210
+ rules: vue.unref(rules),
211
+ "label-width": "0px"
212
+ }, {
213
+ default: vue.withCtx(() => [
214
+ vue.createVNode(vue.unref(elementPlus.ElFormItem), { prop: "companyName" }, {
215
+ label: vue.withCtx(() => [
216
+ vue.createElementVNode(
217
+ "span",
218
+ { class: "form-label" },
219
+ vue.toDisplayString(vue.unref(t)("departmentType.departmentIcon")),
220
+ 1
221
+ /* TEXT */
222
+ )
223
+ ]),
224
+ default: vue.withCtx(() => [
225
+ vue.createElementVNode("div", { class: "flex flex-row" }, [
226
+ vue.createVNode(vue.unref(elementPlus.ElUpload), {
227
+ class: "w-[80px] flex items-center justify-center",
228
+ accept: ".png,.jpg,.gif",
229
+ "before-upload": vue.unref(beforeAvatarUpload),
230
+ "http-request": vue.unref(handleHttpRequestImg),
231
+ action: "",
232
+ "show-file-list": false
233
+ }, {
234
+ default: vue.withCtx(() => [
235
+ vue.createElementVNode("div", { class: "click-box emptyHead" }, [
236
+ vue.unref(form).icon ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImage), {
237
+ key: 0,
238
+ fit: "contain",
239
+ class: "w-[44px] h-[44px]",
240
+ src: vue.unref(form).icon
241
+ }, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
242
+ key: 1,
243
+ "svg-name": "ops-file-empty-head",
244
+ class: "text-auxiliary !w-[42px] !h-[42px]"
245
+ })),
246
+ vue.createElementVNode(
247
+ "span",
248
+ { class: "uploadTips text-center" },
249
+ vue.toDisplayString(vue.unref(t)("departmentType.upload")),
250
+ 1
251
+ /* TEXT */
252
+ )
253
+ ])
254
+ ]),
255
+ _: 1
256
+ /* STABLE */
257
+ }, 8, ["before-upload", "http-request"]),
258
+ vue.createElementVNode("div", { class: "flex-grow leading-[20px] text-auxiliary text-xs text-center" }, [
259
+ vue.createElementVNode(
260
+ "div",
261
+ null,
262
+ vue.toDisplayString(vue.unref(t)("departmentType.pleaseUploadDepartmentTypeIcon")),
263
+ 1
264
+ /* TEXT */
265
+ ),
266
+ vue.createElementVNode(
267
+ "div",
268
+ null,
269
+ vue.toDisplayString(vue.unref(t)("departmentType.iconSize44px")) + "*44px",
270
+ 1
271
+ /* TEXT */
272
+ ),
273
+ vue.createElementVNode(
274
+ "div",
275
+ null,
276
+ vue.toDisplayString(vue.unref(t)("departmentType.ifNoIconUseTheDefaultIcon")),
277
+ 1
278
+ /* TEXT */
279
+ )
280
+ ])
281
+ ])
282
+ ]),
283
+ _: 1
284
+ /* STABLE */
285
+ }),
286
+ vue.createVNode(vue.unref(elementPlus.ElFormItem), { prop: "typeName" }, {
287
+ label: vue.withCtx(() => [
288
+ vue.createElementVNode(
289
+ "span",
290
+ { class: "form-label" },
291
+ vue.toDisplayString(vue.unref(t)("departmentType.departmentTypeName")),
292
+ 1
293
+ /* TEXT */
294
+ )
295
+ ]),
296
+ default: vue.withCtx(() => [
297
+ vue.createVNode(_component_el_input, {
298
+ modelValue: vue.unref(form).typeName,
299
+ "onUpdate:modelValue": ($event) => vue.unref(form).typeName = $event,
300
+ placeholder: vue.unref(t)("departmentType.pleaseEnterTheDepartmentTypeName"),
301
+ clearable: ""
302
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
303
+ ]),
304
+ _: 1
305
+ /* STABLE */
306
+ })
307
+ ]),
308
+ _: 1
309
+ /* STABLE */
310
+ }, 8, ["model", "rules"])
311
+ ]),
312
+ vue.createElementVNode("div", { class: "flex items-center justify-center mt-5" }, [
313
+ vue.createVNode(vue.unref(index$2.HyButton), {
314
+ class: "!min-w-[120px]",
315
+ onClick: vue.unref(onClose)
316
+ }, {
317
+ default: vue.withCtx(() => [
318
+ vue.createTextVNode(
319
+ vue.toDisplayString(vue.unref(t)("departmentType.close")),
320
+ 1
321
+ /* TEXT */
322
+ )
323
+ ]),
324
+ _: 1
325
+ /* STABLE */
326
+ }, 8, ["onClick"]),
327
+ vue.createVNode(vue.unref(index$2.HyButton), {
328
+ type: "primary",
329
+ class: "!min-w-[120px]",
330
+ onClick: vue.unref(submit)
331
+ }, {
332
+ default: vue.withCtx(() => [
333
+ vue.createTextVNode(
334
+ vue.toDisplayString(vue.unref(t)("departmentType.save")),
335
+ 1
336
+ /* TEXT */
337
+ )
338
+ ]),
339
+ _: 1
340
+ /* STABLE */
341
+ }, 8, ["onClick"])
342
+ ])
343
+ ])
344
+ ]),
345
+ vue.unref(visible) ? (vue.openBlock(), vue.createBlock(
346
+ vue.unref(index$3.HyCutter),
347
+ {
348
+ key: 0,
349
+ ref_key: "HyCutterRef",
350
+ ref: HyCutterRef,
351
+ "show-upload": false,
352
+ "z-index": 1e4
353
+ },
354
+ null,
355
+ 512
356
+ /* NEED_PATCH */
357
+ )) : vue.createCommentVNode("v-if", true)
358
+ ]),
359
+ _: 1
360
+ /* STABLE */
361
+ }, 8, ["modelValue", "onUpdate:modelValue", "if-shrink", "if-draggable", "title", "on-close", "onOnMinimized", "onOnDialogMousedown"]);
362
+ };
363
+ }
364
+ });
365
+ import "./style/addDepartmentType.scss?vue&type=style&index=0&src=1a1962e6&scoped=1a1962e6&lang.css";
366
+
367
+ var componnet = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-1a1962e6"]]);
368
+
369
+ exports.default = componnet;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var addDepartmentType = require('./addDepartmentType.vue.js');
6
+ var handler = require('../../utils/handler.js');
7
+
8
+ const HyAddDepartmentType = handler.withInstall(addDepartmentType.default);
9
+
10
+ exports.HyAddDepartmentType = HyAddDepartmentType;
11
+ exports.default = HyAddDepartmentType;
@@ -0,0 +1,31 @@
1
+ .emptyHead {
2
+ color: rgba(var(--hy-auxiliary), 1);
3
+ height: 44px;
4
+ width: 44px;
5
+ background: var(--item-background-main-color);
6
+ box-shadow: 0 0 10px 2px var(--background-auxiliary-color);
7
+ border-radius: 6px;
8
+ border: 1px solid #454b5f;
9
+ position: relative;
10
+ overflow: hidden;
11
+ span.uploadTips {
12
+ color: #fff;
13
+ position: absolute;
14
+ top: 50%;
15
+ left: 50%;
16
+ width: 44px;
17
+ font-size: 12px;
18
+ line-height: 20px;
19
+ transform: translate(-50%, -50%);
20
+ opacity: 0;
21
+ transition: 0.5s;
22
+ }
23
+ }
24
+ .emptyHead:hover {
25
+ img {
26
+ opacity: 0.5;
27
+ }
28
+ span.uploadTips {
29
+ opacity: 1;
30
+ }
31
+ }
@@ -1,2 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ var index = require('./hyAddDepartmentType/index.js');
4
+
5
+
6
+
7
+ exports.HyAddDepartmentType = index.HyAddDepartmentType;
@@ -82,6 +82,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
82
82
  beforeDataHandle: {
83
83
  type: Function
84
84
  },
85
+ onExpandRowChange: {
86
+ type: Function
87
+ },
85
88
  submitHandler: {
86
89
  type: Function
87
90
  }
@@ -292,41 +295,47 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
292
295
  }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
293
296
  ]),
294
297
  default: vue.withCtx(() => [
295
- visible.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyBatchTableForm), {
296
- key: 0,
297
- ref_key: "batchTableFormRef",
298
- ref: batchTableFormRef,
299
- step: currentStep.value,
300
- "onUpdate:step": ($event) => currentStep.value = $event,
301
- tableColumns: __props.tableColumns,
302
- formColumns: __props.formColumns,
303
- rules: __props.rules,
304
- emptyText: __props.emptyText,
305
- fontSize: __props.fontSize,
306
- rowClickExpand: __props.rowClickExpand,
307
- columnNum: __props.columnNum,
308
- size: __props.size,
309
- beforeDataHandle: __props.beforeDataHandle,
310
- "submit-handler": __props.submitHandler,
311
- onUploading: onTableUploadingHandler,
312
- onUploaded: onTableUploadedHandler,
313
- onReset: onTableResetHandler,
314
- onValidate: onTableValidateHandler,
315
- onSubmitting: onTableSubmittingHandler,
316
- onSubmit: onTableSubmitHandler
317
- }, vue.createSlots({
318
- _: 2
319
- /* DYNAMIC */
320
- }, [
321
- vue.renderList(_ctx.$slots, (_, slotName) => {
322
- return {
323
- name: slotName,
324
- fn: vue.withCtx((scope) => [
325
- vue.renderSlot(_ctx.$slots, slotName, vue.normalizeProps(vue.guardReactiveProps(scope)))
326
- ])
327
- };
328
- })
329
- ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "submit-handler"])) : vue.createCommentVNode("v-if", true)
298
+ vue.createElementVNode("div", { class: "flex flex-col w-full h-full" }, [
299
+ vue.renderSlot(_ctx.$slots, "dialog-head-box", vue.normalizeProps(vue.guardReactiveProps({ currentStep: currentStep.value }))),
300
+ vue.createElementVNode("div", { class: "flex-grow h-0" }, [
301
+ visible.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyBatchTableForm), {
302
+ key: 0,
303
+ ref_key: "batchTableFormRef",
304
+ ref: batchTableFormRef,
305
+ step: currentStep.value,
306
+ "onUpdate:step": ($event) => currentStep.value = $event,
307
+ tableColumns: __props.tableColumns,
308
+ formColumns: __props.formColumns,
309
+ rules: __props.rules,
310
+ emptyText: __props.emptyText,
311
+ fontSize: __props.fontSize,
312
+ rowClickExpand: __props.rowClickExpand,
313
+ columnNum: __props.columnNum,
314
+ size: __props.size,
315
+ beforeDataHandle: __props.beforeDataHandle,
316
+ onExpandRowChange: __props.onExpandRowChange,
317
+ "submit-handler": __props.submitHandler,
318
+ onUploading: onTableUploadingHandler,
319
+ onUploaded: onTableUploadedHandler,
320
+ onReset: onTableResetHandler,
321
+ onValidate: onTableValidateHandler,
322
+ onSubmitting: onTableSubmittingHandler,
323
+ onSubmit: onTableSubmitHandler
324
+ }, vue.createSlots({
325
+ _: 2
326
+ /* DYNAMIC */
327
+ }, [
328
+ vue.renderList(_ctx.$slots, (_, slotName) => {
329
+ return {
330
+ name: slotName,
331
+ fn: vue.withCtx((scope) => [
332
+ vue.renderSlot(_ctx.$slots, slotName, vue.normalizeProps(vue.guardReactiveProps(scope)))
333
+ ])
334
+ };
335
+ })
336
+ ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "onExpandRowChange", "submit-handler"])) : vue.createCommentVNode("v-if", true)
337
+ ])
338
+ ])
330
339
  ]),
331
340
  _: 2
332
341
  /* DYNAMIC */
@@ -93,6 +93,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
93
93
  ) && props.isRange) {
94
94
  if (start && end) {
95
95
  dateValue.value = [start, end];
96
+ } else {
97
+ dateValue.value = [];
96
98
  }
97
99
  }
98
100
  },