hy-dispatch-ui-v3 0.2.66 → 0.2.67

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 (62) hide show
  1. package/dist/tailwind.css +25 -1
  2. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +174 -142
  3. package/es/components/hyButton/button.vue.mjs +16 -3
  4. package/es/components/hyButton/style/button.scss +2 -0
  5. package/es/components/hyForm/cpns/formItem.vue.mjs +96 -46
  6. package/es/components/hyForm/form.vue.mjs +22 -8
  7. package/es/components/hyForm/js/useAppForm.mjs +1 -1
  8. package/es/components/hyMap/js/index.mjs +6 -6
  9. package/es/components/hyMap/map.vue.mjs +14 -4
  10. package/es/components/hyOrgCascader/orgCascader.vue.mjs +7 -2
  11. package/es/components/hySearch/cpns/searchItem.vue.mjs +396 -324
  12. package/es/components/hySearch/search.vue.mjs +17 -7
  13. package/es/components/hySearch/style/search.scss +7 -0
  14. package/es/components/hyTable/cpns/virtualTable.vue.mjs +25 -6
  15. package/es/components/hyTable/js/index.mjs +11 -5
  16. package/es/components/hyTable/js/search.mjs +25 -1
  17. package/es/components/hyTable/table.vue.mjs +34 -13
  18. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +9 -2
  19. package/es/components/hyTableForm/batchTableForm.vue.mjs +23 -2
  20. package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
  21. package/es/components/hyTableForm/tableForm.vue.mjs +79 -33
  22. package/es/components/hyTree/js/index.mjs +118 -50
  23. package/es/components/hyTree/tree.vue.mjs +4 -2
  24. package/es/style/index.scss +0 -1
  25. package/es/style/tailwind.scss +0 -1
  26. package/es/utils/is.mjs +3 -1
  27. package/es/utils/map/hook/bigMap.mjs +2 -0
  28. package/es/utils/map/hook/gaode.mjs +51 -16
  29. package/es/utils/map/hook/leafletjs.mjs +15 -3
  30. package/es/utils/map/index.mjs +1 -1
  31. package/es/version.mjs +1 -1
  32. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +173 -141
  33. package/lib/components/hyButton/button.vue.js +15 -2
  34. package/lib/components/hyButton/style/button.scss +2 -0
  35. package/lib/components/hyForm/cpns/formItem.vue.js +93 -43
  36. package/lib/components/hyForm/form.vue.js +21 -7
  37. package/lib/components/hyForm/js/useAppForm.js +1 -1
  38. package/lib/components/hyMap/js/index.js +5 -5
  39. package/lib/components/hyMap/map.vue.js +13 -3
  40. package/lib/components/hyOrgCascader/orgCascader.vue.js +7 -2
  41. package/lib/components/hySearch/cpns/searchItem.vue.js +394 -322
  42. package/lib/components/hySearch/search.vue.js +17 -7
  43. package/lib/components/hySearch/style/search.scss +7 -0
  44. package/lib/components/hyTable/cpns/virtualTable.vue.js +24 -5
  45. package/lib/components/hyTable/js/index.js +11 -4
  46. package/lib/components/hyTable/js/search.js +25 -1
  47. package/lib/components/hyTable/table.vue.js +33 -12
  48. package/lib/components/hyTableActionButton/tableActionButton.vue.js +9 -2
  49. package/lib/components/hyTableForm/batchTableForm.vue.js +23 -2
  50. package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
  51. package/lib/components/hyTableForm/tableForm.vue.js +78 -32
  52. package/lib/components/hyTree/js/index.js +118 -50
  53. package/lib/components/hyTree/tree.vue.js +4 -2
  54. package/lib/style/index.scss +0 -1
  55. package/lib/style/tailwind.scss +0 -1
  56. package/lib/utils/is.js +5 -3
  57. package/lib/utils/map/hook/bigMap.js +2 -0
  58. package/lib/utils/map/hook/gaode.js +51 -16
  59. package/lib/utils/map/hook/leafletjs.js +15 -3
  60. package/lib/utils/map/index.js +1 -1
  61. package/lib/version.js +1 -1
  62. package/package.json +2 -2
@@ -202,8 +202,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
202
202
  batchTableFormRef.value.submitDataSource();
203
203
  }
204
204
  }
205
+ function getIsSubmitting() {
206
+ return isSubmitting.value;
207
+ }
205
208
  __expose({
206
209
  show,
210
+ getIsSubmitting,
207
211
  getTableDataSource: () => {
208
212
  return batchTableFormRef.value.getTableDataSource();
209
213
  },
@@ -221,159 +225,187 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
221
225
  },
222
226
  setDragLevelIndex: (dragLevel) => {
223
227
  HyDialogRef.value.setDragLevelIndex(dragLevel);
228
+ },
229
+ async getOptions() {
230
+ if (batchTableFormRef.value) {
231
+ await batchTableFormRef.value.getOptions();
232
+ }
233
+ },
234
+ async getOptionsFields(keys) {
235
+ if (batchTableFormRef.value) {
236
+ await batchTableFormRef.value.getOptionsFields(keys);
237
+ }
238
+ },
239
+ async getOptionsError() {
240
+ if (batchTableFormRef.value) {
241
+ await batchTableFormRef.value.getOptionsError();
242
+ }
243
+ },
244
+ getOptionsByField(key) {
245
+ if (batchTableFormRef.value) {
246
+ return batchTableFormRef.value.getOptionsByField(key);
247
+ }
224
248
  }
225
249
  });
226
250
  return (_ctx, _cache) => {
227
- return vue.openBlock(), vue.createBlock(vue.unref(index.HyDialog), vue.mergeProps({
228
- ref_key: "HyDialogRef",
229
- ref: HyDialogRef,
230
- modelValue: visible.value,
231
- "onUpdate:modelValue": ($event) => visible.value = $event,
232
- loading: isSubmitting.value,
233
- "onUpdate:loading": ($event) => isSubmitting.value = $event,
234
- title: __props.title,
235
- width: __props.width,
236
- "dialog-type": __props.dialogType,
237
- "show-operate": true,
238
- "show-submit": false,
239
- "show-cancel": !isSubmitting.value,
240
- ifShrink: __props.ifShrink,
241
- ifDraggable: __props.ifDraggable
242
- }, _ctx.$attrs, {
243
- onOnMinimized: onMinimized,
244
- onOnDialogMousedown: onDialogMousedown
245
- }), vue.createSlots({
246
- "operate-left-box": vue.withCtx(() => [
247
- failedCount.value ? (vue.openBlock(), vue.createElementBlock("div", {
248
- key: 0,
249
- class: "flex items-center gap-1.5 text-xs text-warning"
250
- }, [
251
- vue.createVNode(vue.unref(index$4.HyIcon), {
252
- "svg-name": "dispatch-share1-prompt",
253
- class: "!w-3 !h-3"
254
- }),
255
- failedStatus.value === "validate" ? (vue.openBlock(), vue.createElementBlock(
256
- "span",
257
- { key: 0 },
258
- "\u5F53\u524D " + vue.toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u70B9\u51FB\u5BFC\u5165\u5C06\u4EC5\u5BFC\u5165\u5C31\u7EEA\u6570\u636E\uFF0C\u5F02\u5E38\u6570\u636E\u5C06\u88AB\u5FFD\u7565\u3002",
259
- 1
260
- /* TEXT */
261
- )) : (vue.openBlock(), vue.createElementBlock(
262
- "span",
263
- { key: 1 },
264
- "\u5F53\u524D " + vue.toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u8BF7\u4FEE\u6B63\u5185\u5BB9",
265
- 1
266
- /* TEXT */
267
- ))
268
- ])) : currentStep.value === 2 && !totalElements.value ? (vue.openBlock(), vue.createElementBlock("div", {
269
- key: 1,
270
- class: "flex items-center gap-1.5 text-xs text-warning"
271
- }, [
272
- vue.createVNode(vue.unref(index$4.HyIcon), {
273
- "svg-name": "dispatch-share1-prompt",
274
- class: "!w-3 !h-3"
275
- }),
276
- vue.createElementVNode("span", null, "\u5F53\u524D\u672A\u5BFC\u5165\u6570\u636E\uFF0C\u8BF7\u60A8\u5BFC\u5165\u6DFB\u52A0\u6570\u636E")
277
- ])) : vue.createCommentVNode("v-if", true)
278
- ]),
279
- "operate-right-box": vue.withCtx(() => [
280
- currentStep.value === 1 && !importing.value && __props.showAddBtn ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyButton), {
281
- key: 0,
282
- type: "primary",
283
- class: "!min-w-[120px]",
284
- onClick: onNextStep
285
- }, {
286
- default: vue.withCtx(() => [
287
- vue.createTextVNode("\u8FDB\u5165\u6DFB\u52A0")
251
+ return vue.openBlock(), vue.createElementBlock(
252
+ vue.Fragment,
253
+ null,
254
+ [
255
+ vue.createCommentVNode(' v-model:loading="isSubmitting"'),
256
+ vue.createVNode(vue.unref(index.HyDialog), vue.mergeProps({
257
+ ref_key: "HyDialogRef",
258
+ ref: HyDialogRef,
259
+ modelValue: visible.value,
260
+ "onUpdate:modelValue": ($event) => visible.value = $event,
261
+ title: __props.title,
262
+ width: __props.width,
263
+ "dialog-type": __props.dialogType,
264
+ "show-operate": true,
265
+ "show-submit": false,
266
+ "show-cancel": !isSubmitting.value,
267
+ ifShrink: __props.ifShrink,
268
+ ifDraggable: __props.ifDraggable
269
+ }, _ctx.$attrs, {
270
+ onOnMinimized: onMinimized,
271
+ onOnDialogMousedown: onDialogMousedown
272
+ }), vue.createSlots({
273
+ "operate-left-box": vue.withCtx(() => [
274
+ failedCount.value ? (vue.openBlock(), vue.createElementBlock("div", {
275
+ key: 0,
276
+ class: "flex items-center gap-1.5 text-xs text-warning"
277
+ }, [
278
+ vue.createVNode(vue.unref(index$4.HyIcon), {
279
+ "svg-name": "dispatch-share1-prompt",
280
+ class: "!w-3 !h-3"
281
+ }),
282
+ failedStatus.value === "validate" ? (vue.openBlock(), vue.createElementBlock(
283
+ "span",
284
+ { key: 0 },
285
+ "\u5F53\u524D " + vue.toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u70B9\u51FB\u5BFC\u5165\u5C06\u4EC5\u5BFC\u5165\u5C31\u7EEA\u6570\u636E\uFF0C\u5F02\u5E38\u6570\u636E\u5C06\u88AB\u5FFD\u7565\u3002",
286
+ 1
287
+ /* TEXT */
288
+ )) : (vue.openBlock(), vue.createElementBlock(
289
+ "span",
290
+ { key: 1 },
291
+ "\u5F53\u524D " + vue.toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u8BF7\u4FEE\u6B63\u5185\u5BB9",
292
+ 1
293
+ /* TEXT */
294
+ ))
295
+ ])) : currentStep.value === 2 && !totalElements.value ? (vue.openBlock(), vue.createElementBlock("div", {
296
+ key: 1,
297
+ class: "flex items-center gap-1.5 text-xs text-warning"
298
+ }, [
299
+ vue.createVNode(vue.unref(index$4.HyIcon), {
300
+ "svg-name": "dispatch-share1-prompt",
301
+ class: "!w-3 !h-3"
302
+ }),
303
+ vue.createElementVNode("span", null, "\u5F53\u524D\u672A\u5BFC\u5165\u6570\u636E\uFF0C\u8BF7\u60A8\u5BFC\u5165\u6DFB\u52A0\u6570\u636E")
304
+ ])) : vue.createCommentVNode("v-if", true)
288
305
  ]),
289
- _: 1
290
- /* STABLE */
291
- })) : currentStep.value === 2 ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.HyTooltip), {
292
- key: 1,
293
- disabled: !isSubmitting.value,
294
- content: "\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u7A0D\u7B49"
295
- }, {
296
- default: vue.withCtx(() => [
297
- vue.createVNode(vue.unref(index$2.HyButton), {
306
+ "operate-right-box": vue.withCtx(() => [
307
+ currentStep.value === 1 && !importing.value && __props.showAddBtn ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyButton), {
308
+ key: 0,
298
309
  type: "primary",
299
- loading: isSubmitting.value,
300
310
  class: "!min-w-[120px]",
301
- onClick: onSubmitHandler
311
+ onClick: onNextStep
312
+ }, {
313
+ default: vue.withCtx(() => [
314
+ vue.createTextVNode("\u8FDB\u5165\u6DFB\u52A0")
315
+ ]),
316
+ _: 1
317
+ /* STABLE */
318
+ })) : currentStep.value === 2 ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.HyTooltip), {
319
+ key: 1,
320
+ disabled: !isSubmitting.value,
321
+ content: "\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u7A0D\u7B49"
302
322
  }, {
303
323
  default: vue.withCtx(() => [
304
- vue.createTextVNode(
305
- vue.toDisplayString(isSubmitting.value ? "\u6B63\u5728\u5BFC\u5165" : "\u786E\u8BA4\u5BFC\u5165"),
306
- 1
307
- /* TEXT */
308
- )
324
+ vue.createVNode(vue.unref(index$2.HyButton), {
325
+ type: "primary",
326
+ loading: isSubmitting.value,
327
+ class: "!min-w-[120px]",
328
+ onClick: onSubmitHandler
329
+ }, {
330
+ default: vue.withCtx(() => [
331
+ vue.createTextVNode(
332
+ vue.toDisplayString(isSubmitting.value ? "\u6B63\u5728\u5BFC\u5165" : "\u786E\u8BA4\u5BFC\u5165"),
333
+ 1
334
+ /* TEXT */
335
+ )
336
+ ]),
337
+ _: 1
338
+ /* STABLE */
339
+ }, 8, ["loading"])
309
340
  ]),
310
341
  _: 1
311
342
  /* STABLE */
312
- }, 8, ["loading"])
343
+ }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
313
344
  ]),
314
- _: 1
315
- /* STABLE */
316
- }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
317
- ]),
318
- default: vue.withCtx(() => [
319
- vue.createElementVNode("div", { class: "flex flex-col w-full h-full" }, [
320
- vue.renderSlot(_ctx.$slots, "dialog-head-box", vue.normalizeProps(vue.guardReactiveProps({ currentStep: currentStep.value }))),
321
- vue.createElementVNode("div", { class: "flex-grow h-0" }, [
322
- visible.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyBatchTableForm), {
323
- key: 0,
324
- ref_key: "batchTableFormRef",
325
- ref: batchTableFormRef,
326
- step: currentStep.value,
327
- "onUpdate:step": ($event) => currentStep.value = $event,
328
- tableColumns: __props.tableColumns,
329
- formColumns: __props.formColumns,
330
- rules: __props.rules,
331
- emptyText: __props.emptyText,
332
- fontSize: __props.fontSize,
333
- rowClickExpand: __props.rowClickExpand,
334
- columnNum: __props.columnNum,
335
- size: __props.size,
336
- beforeDataHandle: __props.beforeDataHandle,
337
- beforeDataListHandle: __props.beforeDataListHandle,
338
- onExpandRowChange: __props.onExpandRowChange,
339
- "submit-handler": __props.submitHandler,
340
- showAddBtn: __props.showAddBtn,
341
- onTableDataChange: tableDataChange,
342
- onUploading: onTableUploadingHandler,
343
- onUploaded: onTableUploadedHandler,
344
- onReset: onTableResetHandler,
345
- onValidate: onTableValidateHandler,
346
- onSubmitting: onTableSubmittingHandler,
347
- onSubmit: onTableSubmitHandler,
348
- onSubmitProgress: onSubmitProgressHandler
349
- }, vue.createSlots({
350
- _: 2
351
- /* DYNAMIC */
352
- }, [
353
- vue.renderList(_ctx.$slots, (_, slotName) => {
354
- return {
355
- name: slotName,
356
- fn: vue.withCtx((scope) => [
357
- vue.renderSlot(_ctx.$slots, slotName, vue.normalizeProps(vue.guardReactiveProps(scope)))
358
- ])
359
- };
360
- })
361
- ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "beforeDataListHandle", "onExpandRowChange", "submit-handler", "showAddBtn"])) : vue.createCommentVNode("v-if", true)
362
- ])
363
- ])
364
- ]),
365
- _: 2
366
- /* DYNAMIC */
367
- }, [
368
- vue.renderList(_ctx.$slots, (_, slotName) => {
369
- return {
370
- name: slotName,
371
- fn: vue.withCtx((scope) => [
372
- vue.renderSlot(_ctx.$slots, slotName, vue.normalizeProps(vue.guardReactiveProps(scope)))
373
- ])
374
- };
375
- })
376
- ]), 1040, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "title", "width", "dialog-type", "show-cancel", "ifShrink", "ifDraggable"]);
345
+ default: vue.withCtx(() => [
346
+ vue.createElementVNode("div", { class: "flex flex-col w-full h-full" }, [
347
+ vue.renderSlot(_ctx.$slots, "dialog-head-box", vue.normalizeProps(vue.guardReactiveProps({ currentStep: currentStep.value }))),
348
+ vue.createElementVNode("div", { class: "flex-grow h-0" }, [
349
+ visible.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyBatchTableForm), {
350
+ key: 0,
351
+ ref_key: "batchTableFormRef",
352
+ ref: batchTableFormRef,
353
+ step: currentStep.value,
354
+ "onUpdate:step": ($event) => currentStep.value = $event,
355
+ tableColumns: __props.tableColumns,
356
+ formColumns: __props.formColumns,
357
+ rules: __props.rules,
358
+ emptyText: __props.emptyText,
359
+ fontSize: __props.fontSize,
360
+ rowClickExpand: __props.rowClickExpand,
361
+ columnNum: __props.columnNum,
362
+ size: __props.size,
363
+ beforeDataHandle: __props.beforeDataHandle,
364
+ beforeDataListHandle: __props.beforeDataListHandle,
365
+ onExpandRowChange: __props.onExpandRowChange,
366
+ "submit-handler": __props.submitHandler,
367
+ showAddBtn: __props.showAddBtn,
368
+ onTableDataChange: tableDataChange,
369
+ onUploading: onTableUploadingHandler,
370
+ onUploaded: onTableUploadedHandler,
371
+ onReset: onTableResetHandler,
372
+ onValidate: onTableValidateHandler,
373
+ onSubmitting: onTableSubmittingHandler,
374
+ onSubmit: onTableSubmitHandler,
375
+ onSubmitProgress: onSubmitProgressHandler,
376
+ onOptionsStatus: _ctx.$attrs.onOptionsStatus
377
+ }, vue.createSlots({
378
+ _: 2
379
+ /* DYNAMIC */
380
+ }, [
381
+ vue.renderList(_ctx.$slots, (_, slotName) => {
382
+ return {
383
+ name: slotName,
384
+ fn: vue.withCtx((scope) => [
385
+ vue.renderSlot(_ctx.$slots, slotName, vue.normalizeProps(vue.guardReactiveProps(scope)))
386
+ ])
387
+ };
388
+ })
389
+ ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "beforeDataListHandle", "onExpandRowChange", "submit-handler", "showAddBtn", "onOptionsStatus"])) : vue.createCommentVNode("v-if", true)
390
+ ])
391
+ ])
392
+ ]),
393
+ _: 2
394
+ /* DYNAMIC */
395
+ }, [
396
+ vue.renderList(_ctx.$slots, (_, slotName) => {
397
+ return {
398
+ name: slotName,
399
+ fn: vue.withCtx((scope) => [
400
+ vue.renderSlot(_ctx.$slots, slotName, vue.normalizeProps(vue.guardReactiveProps(scope)))
401
+ ])
402
+ };
403
+ })
404
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "title", "width", "dialog-type", "show-cancel", "ifShrink", "ifDraggable"])
405
+ ],
406
+ 2112
407
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
408
+ );
377
409
  };
378
410
  }
379
411
  });
@@ -45,6 +45,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
45
45
  // 链接按钮
46
46
  type: Boolean,
47
47
  default: false
48
+ },
49
+ isDot: {
50
+ // 是否显示小红点
51
+ type: Boolean,
52
+ default: false
48
53
  }
49
54
  },
50
55
  emits: ["click"],
@@ -79,7 +84,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
79
84
  }
80
85
  ]]
81
86
  }, _ctx.$attrs, { onClick: handleClick }), [
82
- vue.renderSlot(_ctx.$slots, "default")
87
+ vue.renderSlot(_ctx.$slots, "default"),
88
+ __props.isDot ? (vue.openBlock(), vue.createElementBlock("div", {
89
+ key: 0,
90
+ class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
91
+ })) : vue.createCommentVNode("v-if", true)
83
92
  ], 16, ["type", "disabled", "loading"])) : (vue.openBlock(), vue.createElementBlock("button", {
84
93
  key: 1,
85
94
  type: "button",
@@ -160,7 +169,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
160
169
  ],
161
170
  2
162
171
  /* CLASS */
163
- )
172
+ ),
173
+ __props.isDot ? (vue.openBlock(), vue.createElementBlock("div", {
174
+ key: 0,
175
+ class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
176
+ })) : vue.createCommentVNode("v-if", true)
164
177
  ], 10, ["disabled"]));
165
178
  };
166
179
  }
@@ -10,6 +10,7 @@
10
10
  font-size: 14px;
11
11
  box-sizing: border-box;
12
12
  border-radius: 4px;
13
+ position: relative;
13
14
 
14
15
  &:disabled,
15
16
  &.is-disabled {
@@ -376,6 +377,7 @@
376
377
  background: none;
377
378
  border: none;
378
379
  cursor: pointer;
380
+ position: relative;
379
381
 
380
382
  &:not(.is-disabled) {
381
383
  &:active {