hy-dispatch-ui-v3 0.2.65 → 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 (144) hide show
  1. package/dist/tailwind.css +51 -13
  2. package/es/api/organization.mjs +43 -0
  3. package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +245 -0
  4. package/es/bussiness/hyAcquisitionStationTree/index.mjs +7 -0
  5. package/es/bussiness/hyAcquisitionStationTree/js/index.mjs +124 -0
  6. package/es/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  7. package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +249 -0
  8. package/es/bussiness/hyDeviceTree/index.mjs +7 -0
  9. package/es/bussiness/hyDeviceTree/js/index.mjs +126 -0
  10. package/es/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  11. package/es/bussiness/hyOrgGroupTree/index.mjs +7 -0
  12. package/es/bussiness/hyOrgGroupTree/js/index.mjs +124 -0
  13. package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +245 -0
  14. package/es/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  15. package/es/bussiness/hyPlanGroupDeviceTree/index.mjs +7 -0
  16. package/es/bussiness/hyPlanGroupDeviceTree/js/index.mjs +124 -0
  17. package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +245 -0
  18. package/es/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  19. package/es/bussiness/hyUserTree/index.mjs +7 -0
  20. package/es/bussiness/hyUserTree/js/index.mjs +126 -0
  21. package/es/bussiness/hyUserTree/style/userTree.scss +0 -0
  22. package/es/bussiness/hyUserTree/userTree.vue.mjs +239 -0
  23. package/es/bussiness/index.mjs +5 -0
  24. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +183 -149
  25. package/es/components/hyButton/button.vue.mjs +19 -5
  26. package/es/components/hyButton/style/button.scss +72 -0
  27. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -2
  28. package/es/components/hyForm/cpns/formItem.vue.mjs +254 -32
  29. package/es/components/hyForm/cpns/locationSelect.vue.mjs +8 -1
  30. package/es/components/hyForm/form.vue.mjs +88 -19
  31. package/es/components/hyForm/js/index.mjs +2 -1
  32. package/es/components/hyForm/js/useAppForm.mjs +3 -3
  33. package/es/components/hyIcon/style/icon.scss +1 -0
  34. package/es/components/hyMap/js/index.mjs +6 -6
  35. package/es/components/hyMap/map.vue.mjs +14 -4
  36. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
  37. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
  38. package/es/components/hyOrgCascader/orgCascader.vue.mjs +75 -15
  39. package/es/components/hyRadioGroup/radioGroup.vue.mjs +5 -4
  40. package/es/components/hySearch/cpns/searchItem.vue.mjs +434 -206
  41. package/es/components/hySearch/js/index.mjs +2 -1
  42. package/es/components/hySearch/search.vue.mjs +71 -10
  43. package/es/components/hySearch/style/search.scss +7 -0
  44. package/es/components/hyTable/cpns/columnSelect.vue.mjs +21 -22
  45. package/es/components/hyTable/cpns/virtualTable.vue.mjs +35 -21
  46. package/es/components/hyTable/js/index.mjs +16 -17
  47. package/es/components/hyTable/js/search.mjs +28 -2
  48. package/es/components/hyTable/style/table.scss +13 -0
  49. package/es/components/hyTable/table.vue.mjs +55 -22
  50. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +17 -12
  51. package/es/components/hyTableForm/batchTableForm.vue.mjs +36 -5
  52. package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
  53. package/es/components/hyTableForm/tableForm.vue.mjs +84 -32
  54. package/es/components/hyTour/index.mjs +7 -0
  55. package/es/components/hyTour/style/tour.scss +0 -0
  56. package/es/components/hyTour/tour.vue.mjs +23 -0
  57. package/es/components/hyTree/config/tree-config.mjs +5 -2
  58. package/es/components/hyTree/js/index.mjs +128 -56
  59. package/es/components/hyTree/tree.vue.mjs +22 -37
  60. package/es/components/index.mjs +1 -0
  61. package/es/index.mjs +6 -0
  62. package/es/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  63. package/es/style/element/hy-element.scss +24 -3
  64. package/es/style/index.scss +0 -1
  65. package/es/style/tailwind.scss +0 -1
  66. package/es/style/theme.scss +1 -0
  67. package/es/utils/is.mjs +3 -1
  68. package/es/utils/map/hook/bigMap.mjs +11 -1
  69. package/es/utils/map/hook/gaode.mjs +60 -17
  70. package/es/utils/map/hook/leafletjs.mjs +25 -4
  71. package/es/utils/map/index.mjs +1 -1
  72. package/es/version.mjs +1 -1
  73. package/lib/api/organization.js +47 -0
  74. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +249 -0
  75. package/lib/bussiness/hyAcquisitionStationTree/index.js +12 -0
  76. package/lib/bussiness/hyAcquisitionStationTree/js/index.js +126 -0
  77. package/lib/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  78. package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +253 -0
  79. package/lib/bussiness/hyDeviceTree/index.js +12 -0
  80. package/lib/bussiness/hyDeviceTree/js/index.js +128 -0
  81. package/lib/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  82. package/lib/bussiness/hyOrgGroupTree/index.js +12 -0
  83. package/lib/bussiness/hyOrgGroupTree/js/index.js +126 -0
  84. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +249 -0
  85. package/lib/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  86. package/lib/bussiness/hyPlanGroupDeviceTree/index.js +12 -0
  87. package/lib/bussiness/hyPlanGroupDeviceTree/js/index.js +126 -0
  88. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +249 -0
  89. package/lib/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  90. package/lib/bussiness/hyUserTree/index.js +12 -0
  91. package/lib/bussiness/hyUserTree/js/index.js +128 -0
  92. package/lib/bussiness/hyUserTree/style/userTree.scss +0 -0
  93. package/lib/bussiness/hyUserTree/userTree.vue.js +243 -0
  94. package/lib/bussiness/index.js +14 -4
  95. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +182 -148
  96. package/lib/components/hyButton/button.vue.js +18 -4
  97. package/lib/components/hyButton/style/button.scss +72 -0
  98. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +0 -1
  99. package/lib/components/hyForm/cpns/formItem.vue.js +250 -28
  100. package/lib/components/hyForm/cpns/locationSelect.vue.js +8 -1
  101. package/lib/components/hyForm/form.vue.js +86 -17
  102. package/lib/components/hyForm/js/index.js +2 -0
  103. package/lib/components/hyForm/js/useAppForm.js +3 -3
  104. package/lib/components/hyIcon/style/icon.scss +1 -0
  105. package/lib/components/hyMap/js/index.js +5 -5
  106. package/lib/components/hyMap/map.vue.js +13 -3
  107. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
  108. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
  109. package/lib/components/hyOrgCascader/orgCascader.vue.js +73 -13
  110. package/lib/components/hyRadioGroup/radioGroup.vue.js +5 -4
  111. package/lib/components/hySearch/cpns/searchItem.vue.js +431 -203
  112. package/lib/components/hySearch/js/index.js +2 -0
  113. package/lib/components/hySearch/search.vue.js +69 -8
  114. package/lib/components/hySearch/style/search.scss +7 -0
  115. package/lib/components/hyTable/cpns/columnSelect.vue.js +20 -21
  116. package/lib/components/hyTable/cpns/virtualTable.vue.js +51 -37
  117. package/lib/components/hyTable/js/index.js +16 -16
  118. package/lib/components/hyTable/js/search.js +28 -2
  119. package/lib/components/hyTable/style/table.scss +13 -0
  120. package/lib/components/hyTable/table.vue.js +53 -20
  121. package/lib/components/hyTableActionButton/tableActionButton.vue.js +16 -11
  122. package/lib/components/hyTableForm/batchTableForm.vue.js +36 -5
  123. package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
  124. package/lib/components/hyTableForm/tableForm.vue.js +85 -33
  125. package/lib/components/hyTour/index.js +12 -0
  126. package/lib/components/hyTour/style/tour.scss +0 -0
  127. package/lib/components/hyTour/tour.vue.js +27 -0
  128. package/lib/components/hyTree/config/tree-config.js +5 -2
  129. package/lib/components/hyTree/js/index.js +128 -56
  130. package/lib/components/hyTree/tree.vue.js +22 -37
  131. package/lib/components/index.js +8 -6
  132. package/lib/index.js +67 -55
  133. package/lib/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  134. package/lib/style/element/hy-element.scss +24 -3
  135. package/lib/style/index.scss +0 -1
  136. package/lib/style/tailwind.scss +0 -1
  137. package/lib/style/theme.scss +1 -0
  138. package/lib/utils/is.js +5 -3
  139. package/lib/utils/map/hook/bigMap.js +11 -1
  140. package/lib/utils/map/hook/gaode.js +60 -17
  141. package/lib/utils/map/hook/leafletjs.js +25 -4
  142. package/lib/utils/map/index.js +1 -1
  143. package/lib/version.js +1 -1
  144. package/package.json +2 -2
@@ -1,11 +1,10 @@
1
- import { defineComponent, useTemplateRef, useModel, ref, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, renderList, createCommentVNode, createTextVNode, createVNode, toDisplayString, createElementBlock, mergeModels } from 'vue';
2
- import { ElIcon } from 'element-plus';
3
- import { Warning } from '@element-plus/icons-vue';
1
+ import { defineComponent, useTemplateRef, useModel, ref, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, createBlock, renderList, createTextVNode, toDisplayString, mergeModels } from 'vue';
4
2
  import '../index.mjs';
5
3
  import { HyDialog } from '../hyDialog/index.mjs';
6
4
  import { HyBatchTableForm } from '../hyTableForm/index.mjs';
7
5
  import { HyButton } from '../hyButton/index.mjs';
8
6
  import { HyTooltip } from '../hyTooltip/index.mjs';
7
+ import { HyIcon } from '../hyIcon/index.mjs';
9
8
 
10
9
  import "./style/batchUploadDialog.scss";
11
10
 
@@ -105,6 +104,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
105
104
  "validate",
106
105
  "submitting",
107
106
  "submit",
107
+ "submitProgress",
108
+ "tableDataChange",
108
109
  "onMinimized",
109
110
  "onDialogMousedown"
110
111
  ], ["update:modelValue"]),
@@ -120,6 +121,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
120
121
  const totalElements = ref(0);
121
122
  const failedCount = ref(0);
122
123
  const failedStatus = ref(null);
124
+ function tableDataChange(e) {
125
+ emits("tableDataChange", e);
126
+ }
123
127
  function setDragLevelIndex(dragLevel) {
124
128
  HyDialogRef.value.setDragLevelIndex(dragLevel);
125
129
  }
@@ -162,6 +166,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
162
166
  isSubmitting.value = true;
163
167
  emits("submitting", ...args);
164
168
  }
169
+ function onSubmitProgressHandler(submitProgress) {
170
+ emits("submitProgress", submitProgress);
171
+ }
165
172
  function onTableSubmitHandler(params) {
166
173
  const { total, success, failed, result } = params;
167
174
  if (result) {
@@ -191,9 +198,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
191
198
  batchTableFormRef.value.submitDataSource();
192
199
  }
193
200
  }
201
+ function getIsSubmitting() {
202
+ return isSubmitting.value;
203
+ }
194
204
  __expose({
195
205
  show,
196
- setDragLevelIndex,
206
+ getIsSubmitting,
197
207
  getTableDataSource: () => {
198
208
  return batchTableFormRef.value.getTableDataSource();
199
209
  },
@@ -211,163 +221,187 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
211
221
  },
212
222
  setDragLevelIndex: (dragLevel) => {
213
223
  HyDialogRef.value.setDragLevelIndex(dragLevel);
224
+ },
225
+ async getOptions() {
226
+ if (batchTableFormRef.value) {
227
+ await batchTableFormRef.value.getOptions();
228
+ }
229
+ },
230
+ async getOptionsFields(keys) {
231
+ if (batchTableFormRef.value) {
232
+ await batchTableFormRef.value.getOptionsFields(keys);
233
+ }
234
+ },
235
+ async getOptionsError() {
236
+ if (batchTableFormRef.value) {
237
+ await batchTableFormRef.value.getOptionsError();
238
+ }
239
+ },
240
+ getOptionsByField(key) {
241
+ if (batchTableFormRef.value) {
242
+ return batchTableFormRef.value.getOptionsByField(key);
243
+ }
214
244
  }
215
245
  });
216
246
  return (_ctx, _cache) => {
217
- return openBlock(), createBlock(unref(HyDialog), mergeProps({
218
- ref_key: "HyDialogRef",
219
- ref: HyDialogRef,
220
- modelValue: visible.value,
221
- "onUpdate:modelValue": ($event) => visible.value = $event,
222
- loading: isSubmitting.value,
223
- "onUpdate:loading": ($event) => isSubmitting.value = $event,
224
- title: __props.title,
225
- width: __props.width,
226
- "dialog-type": __props.dialogType,
227
- "show-operate": true,
228
- "show-submit": false,
229
- "show-cancel": !isSubmitting.value,
230
- ifShrink: __props.ifShrink,
231
- ifDraggable: __props.ifDraggable
232
- }, _ctx.$attrs, {
233
- onOnMinimized: onMinimized,
234
- onOnDialogMousedown: onDialogMousedown
235
- }), createSlots({
236
- "operate-left-box": withCtx(() => [
237
- failedCount.value ? (openBlock(), createElementBlock("div", {
238
- key: 0,
239
- class: "flex items-center gap-1.5 text-xs text-warning"
240
- }, [
241
- createVNode(unref(ElIcon), null, {
242
- default: withCtx(() => [
243
- createVNode(unref(Warning))
244
- ]),
245
- _: 1
246
- /* STABLE */
247
- }),
248
- failedStatus.value === "validate" ? (openBlock(), createElementBlock(
249
- "span",
250
- { key: 0 },
251
- "\u5F53\u524D " + 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",
252
- 1
253
- /* TEXT */
254
- )) : (openBlock(), createElementBlock(
255
- "span",
256
- { key: 1 },
257
- "\u5F53\u524D " + toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u8BF7\u4FEE\u6B63\u5185\u5BB9",
258
- 1
259
- /* TEXT */
260
- ))
261
- ])) : currentStep.value === 2 && !totalElements.value ? (openBlock(), createElementBlock("div", {
262
- key: 1,
263
- class: "flex items-center gap-1.5 text-xs text-warning"
264
- }, [
265
- createVNode(unref(ElIcon), null, {
266
- default: withCtx(() => [
267
- createVNode(unref(Warning))
268
- ]),
269
- _: 1
270
- /* STABLE */
271
- }),
272
- createElementVNode("span", null, "\u5F53\u524D\u672A\u5BFC\u5165\u6570\u636E\uFF0C\u8BF7\u60A8\u5BFC\u5165\u6DFB\u52A0\u6570\u636E")
273
- ])) : createCommentVNode("v-if", true)
274
- ]),
275
- "operate-right-box": withCtx(() => [
276
- currentStep.value === 1 && !importing.value && __props.showAddBtn ? (openBlock(), createBlock(unref(HyButton), {
277
- key: 0,
278
- type: "primary",
279
- class: "!min-w-[120px]",
280
- onClick: onNextStep
281
- }, {
282
- default: withCtx(() => [
283
- createTextVNode("\u8FDB\u5165\u6DFB\u52A0")
247
+ return openBlock(), createElementBlock(
248
+ Fragment,
249
+ null,
250
+ [
251
+ createCommentVNode(' v-model:loading="isSubmitting"'),
252
+ createVNode(unref(HyDialog), mergeProps({
253
+ ref_key: "HyDialogRef",
254
+ ref: HyDialogRef,
255
+ modelValue: visible.value,
256
+ "onUpdate:modelValue": ($event) => visible.value = $event,
257
+ title: __props.title,
258
+ width: __props.width,
259
+ "dialog-type": __props.dialogType,
260
+ "show-operate": true,
261
+ "show-submit": false,
262
+ "show-cancel": !isSubmitting.value,
263
+ ifShrink: __props.ifShrink,
264
+ ifDraggable: __props.ifDraggable
265
+ }, _ctx.$attrs, {
266
+ onOnMinimized: onMinimized,
267
+ onOnDialogMousedown: onDialogMousedown
268
+ }), createSlots({
269
+ "operate-left-box": withCtx(() => [
270
+ failedCount.value ? (openBlock(), createElementBlock("div", {
271
+ key: 0,
272
+ class: "flex items-center gap-1.5 text-xs text-warning"
273
+ }, [
274
+ createVNode(unref(HyIcon), {
275
+ "svg-name": "dispatch-share1-prompt",
276
+ class: "!w-3 !h-3"
277
+ }),
278
+ failedStatus.value === "validate" ? (openBlock(), createElementBlock(
279
+ "span",
280
+ { key: 0 },
281
+ "\u5F53\u524D " + 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",
282
+ 1
283
+ /* TEXT */
284
+ )) : (openBlock(), createElementBlock(
285
+ "span",
286
+ { key: 1 },
287
+ "\u5F53\u524D " + toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u8BF7\u4FEE\u6B63\u5185\u5BB9",
288
+ 1
289
+ /* TEXT */
290
+ ))
291
+ ])) : currentStep.value === 2 && !totalElements.value ? (openBlock(), createElementBlock("div", {
292
+ key: 1,
293
+ class: "flex items-center gap-1.5 text-xs text-warning"
294
+ }, [
295
+ createVNode(unref(HyIcon), {
296
+ "svg-name": "dispatch-share1-prompt",
297
+ class: "!w-3 !h-3"
298
+ }),
299
+ createElementVNode("span", null, "\u5F53\u524D\u672A\u5BFC\u5165\u6570\u636E\uFF0C\u8BF7\u60A8\u5BFC\u5165\u6DFB\u52A0\u6570\u636E")
300
+ ])) : createCommentVNode("v-if", true)
284
301
  ]),
285
- _: 1
286
- /* STABLE */
287
- })) : currentStep.value === 2 ? (openBlock(), createBlock(unref(HyTooltip), {
288
- key: 1,
289
- disabled: !isSubmitting.value,
290
- content: "\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u7A0D\u7B49"
291
- }, {
292
- default: withCtx(() => [
293
- createVNode(unref(HyButton), {
302
+ "operate-right-box": withCtx(() => [
303
+ currentStep.value === 1 && !importing.value && __props.showAddBtn ? (openBlock(), createBlock(unref(HyButton), {
304
+ key: 0,
294
305
  type: "primary",
295
- loading: isSubmitting.value,
296
306
  class: "!min-w-[120px]",
297
- onClick: onSubmitHandler
307
+ onClick: onNextStep
308
+ }, {
309
+ default: withCtx(() => [
310
+ createTextVNode("\u8FDB\u5165\u6DFB\u52A0")
311
+ ]),
312
+ _: 1
313
+ /* STABLE */
314
+ })) : currentStep.value === 2 ? (openBlock(), createBlock(unref(HyTooltip), {
315
+ key: 1,
316
+ disabled: !isSubmitting.value,
317
+ content: "\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u7A0D\u7B49"
298
318
  }, {
299
319
  default: withCtx(() => [
300
- createTextVNode(
301
- toDisplayString(isSubmitting.value ? "\u6B63\u5728\u5BFC\u5165" : "\u786E\u8BA4\u5BFC\u5165"),
302
- 1
303
- /* TEXT */
304
- )
320
+ createVNode(unref(HyButton), {
321
+ type: "primary",
322
+ loading: isSubmitting.value,
323
+ class: "!min-w-[120px]",
324
+ onClick: onSubmitHandler
325
+ }, {
326
+ default: withCtx(() => [
327
+ createTextVNode(
328
+ toDisplayString(isSubmitting.value ? "\u6B63\u5728\u5BFC\u5165" : "\u786E\u8BA4\u5BFC\u5165"),
329
+ 1
330
+ /* TEXT */
331
+ )
332
+ ]),
333
+ _: 1
334
+ /* STABLE */
335
+ }, 8, ["loading"])
305
336
  ]),
306
337
  _: 1
307
338
  /* STABLE */
308
- }, 8, ["loading"])
339
+ }, 8, ["disabled"])) : createCommentVNode("v-if", true)
309
340
  ]),
310
- _: 1
311
- /* STABLE */
312
- }, 8, ["disabled"])) : createCommentVNode("v-if", true)
313
- ]),
314
- default: withCtx(() => [
315
- createElementVNode("div", { class: "flex flex-col w-full h-full" }, [
316
- renderSlot(_ctx.$slots, "dialog-head-box", normalizeProps(guardReactiveProps({ currentStep: currentStep.value }))),
317
- createElementVNode("div", { class: "flex-grow h-0" }, [
318
- visible.value ? (openBlock(), createBlock(unref(HyBatchTableForm), {
319
- key: 0,
320
- ref_key: "batchTableFormRef",
321
- ref: batchTableFormRef,
322
- step: currentStep.value,
323
- "onUpdate:step": ($event) => currentStep.value = $event,
324
- tableColumns: __props.tableColumns,
325
- formColumns: __props.formColumns,
326
- rules: __props.rules,
327
- emptyText: __props.emptyText,
328
- fontSize: __props.fontSize,
329
- rowClickExpand: __props.rowClickExpand,
330
- columnNum: __props.columnNum,
331
- size: __props.size,
332
- beforeDataHandle: __props.beforeDataHandle,
333
- beforeDataListHandle: __props.beforeDataListHandle,
334
- onExpandRowChange: __props.onExpandRowChange,
335
- "submit-handler": __props.submitHandler,
336
- showAddBtn: __props.showAddBtn,
337
- onUploading: onTableUploadingHandler,
338
- onUploaded: onTableUploadedHandler,
339
- onReset: onTableResetHandler,
340
- onValidate: onTableValidateHandler,
341
- onSubmitting: onTableSubmittingHandler,
342
- onSubmit: onTableSubmitHandler
343
- }, createSlots({
344
- _: 2
345
- /* DYNAMIC */
346
- }, [
347
- renderList(_ctx.$slots, (_, slotName) => {
348
- return {
349
- name: slotName,
350
- fn: withCtx((scope) => [
351
- renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
352
- ])
353
- };
354
- })
355
- ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "beforeDataListHandle", "onExpandRowChange", "submit-handler", "showAddBtn"])) : createCommentVNode("v-if", true)
356
- ])
357
- ])
358
- ]),
359
- _: 2
360
- /* DYNAMIC */
361
- }, [
362
- renderList(_ctx.$slots, (_, slotName) => {
363
- return {
364
- name: slotName,
365
- fn: withCtx((scope) => [
366
- renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
367
- ])
368
- };
369
- })
370
- ]), 1040, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "title", "width", "dialog-type", "show-cancel", "ifShrink", "ifDraggable"]);
341
+ default: withCtx(() => [
342
+ createElementVNode("div", { class: "flex flex-col w-full h-full" }, [
343
+ renderSlot(_ctx.$slots, "dialog-head-box", normalizeProps(guardReactiveProps({ currentStep: currentStep.value }))),
344
+ createElementVNode("div", { class: "flex-grow h-0" }, [
345
+ visible.value ? (openBlock(), createBlock(unref(HyBatchTableForm), {
346
+ key: 0,
347
+ ref_key: "batchTableFormRef",
348
+ ref: batchTableFormRef,
349
+ step: currentStep.value,
350
+ "onUpdate:step": ($event) => currentStep.value = $event,
351
+ tableColumns: __props.tableColumns,
352
+ formColumns: __props.formColumns,
353
+ rules: __props.rules,
354
+ emptyText: __props.emptyText,
355
+ fontSize: __props.fontSize,
356
+ rowClickExpand: __props.rowClickExpand,
357
+ columnNum: __props.columnNum,
358
+ size: __props.size,
359
+ beforeDataHandle: __props.beforeDataHandle,
360
+ beforeDataListHandle: __props.beforeDataListHandle,
361
+ onExpandRowChange: __props.onExpandRowChange,
362
+ "submit-handler": __props.submitHandler,
363
+ showAddBtn: __props.showAddBtn,
364
+ onTableDataChange: tableDataChange,
365
+ onUploading: onTableUploadingHandler,
366
+ onUploaded: onTableUploadedHandler,
367
+ onReset: onTableResetHandler,
368
+ onValidate: onTableValidateHandler,
369
+ onSubmitting: onTableSubmittingHandler,
370
+ onSubmit: onTableSubmitHandler,
371
+ onSubmitProgress: onSubmitProgressHandler,
372
+ onOptionsStatus: _ctx.$attrs.onOptionsStatus
373
+ }, createSlots({
374
+ _: 2
375
+ /* DYNAMIC */
376
+ }, [
377
+ renderList(_ctx.$slots, (_, slotName) => {
378
+ return {
379
+ name: slotName,
380
+ fn: withCtx((scope) => [
381
+ renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
382
+ ])
383
+ };
384
+ })
385
+ ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "beforeDataListHandle", "onExpandRowChange", "submit-handler", "showAddBtn", "onOptionsStatus"])) : createCommentVNode("v-if", true)
386
+ ])
387
+ ])
388
+ ]),
389
+ _: 2
390
+ /* DYNAMIC */
391
+ }, [
392
+ renderList(_ctx.$slots, (_, slotName) => {
393
+ return {
394
+ name: slotName,
395
+ fn: withCtx((scope) => [
396
+ renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
397
+ ])
398
+ };
399
+ })
400
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "title", "width", "dialog-type", "show-cancel", "ifShrink", "ifDraggable"])
401
+ ],
402
+ 2112
403
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
404
+ );
371
405
  };
372
406
  }
373
407
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createVNode, unref, withCtx, createBlock } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot, createCommentVNode, normalizeClass, createElementVNode, createVNode, unref, withCtx, createBlock } from 'vue';
2
2
  import { ElIcon } from 'element-plus';
3
3
  import { Loading } from '@element-plus/icons-vue';
4
4
  import '../index.mjs';
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
15
15
  type: {
16
16
  type: String,
17
17
  default: "default"
18
- // default 默认 primary 亮色 success 添加 danger 删除
18
+ // default 默认 primary 亮色 success 添加 danger 删除 operate 操作
19
19
  },
20
20
  disabled: {
21
21
  type: Boolean,
@@ -41,6 +41,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
41
41
  // 链接按钮
42
42
  type: Boolean,
43
43
  default: false
44
+ },
45
+ isDot: {
46
+ // 是否显示小红点
47
+ type: Boolean,
48
+ default: false
44
49
  }
45
50
  },
46
51
  emits: ["click"],
@@ -50,7 +55,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
50
55
  default: "hy-button_default",
51
56
  primary: "hy-button_function",
52
57
  success: "hy-button_addTo",
53
- danger: "hy-button_delete"
58
+ danger: "hy-button_delete",
59
+ operate: "hy-button_operate"
54
60
  };
55
61
  const emit = __emit;
56
62
  const handleClick = (event) => {
@@ -74,7 +80,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
74
80
  }
75
81
  ]]
76
82
  }, _ctx.$attrs, { onClick: handleClick }), [
77
- renderSlot(_ctx.$slots, "default")
83
+ renderSlot(_ctx.$slots, "default"),
84
+ __props.isDot ? (openBlock(), createElementBlock("div", {
85
+ key: 0,
86
+ 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]"
87
+ })) : createCommentVNode("v-if", true)
78
88
  ], 16, ["type", "disabled", "loading"])) : (openBlock(), createElementBlock("button", {
79
89
  key: 1,
80
90
  type: "button",
@@ -155,7 +165,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
155
165
  ],
156
166
  2
157
167
  /* CLASS */
158
- )
168
+ ),
169
+ __props.isDot ? (openBlock(), createElementBlock("div", {
170
+ key: 0,
171
+ 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]"
172
+ })) : createCommentVNode("v-if", true)
159
173
  ], 10, ["disabled"]));
160
174
  };
161
175
  }
@@ -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 {
@@ -295,6 +296,72 @@
295
296
  color: rgba(255, 255, 255, 0.68);
296
297
  }
297
298
  }
299
+
300
+ &.hy-button_operate {
301
+ background: rgba(45, 255, 211, 0.32);
302
+ border: 1px solid rgba(45, 255, 211, 1);
303
+ box-shadow: 0px 0px 0px 2px rgba(45, 255, 211, 0.5);
304
+
305
+ .hy-button__border {
306
+ background: linear-gradient(
307
+ 90deg,
308
+ rgba(45, 255, 211, 0.4) 0%,
309
+ rgba(45, 255, 211, 1) 50%,
310
+ rgba(45, 255, 211, 0.4) 100%
311
+ );
312
+ }
313
+
314
+ .hy-button__inner {
315
+ background: #002932;
316
+ box-shadow:
317
+ inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
318
+ inset 0 0 2px 0 rgba(45, 255, 211, 0.5);
319
+ }
320
+
321
+ .hy-button__text {
322
+ color: #fff;
323
+ }
324
+
325
+ .hy-button__mask {
326
+ background: radial-gradient(
327
+ ellipse at center bottom,
328
+ #2DFFD3 0%,
329
+ #189177 30%,
330
+ transparent 60%
331
+ );
332
+ }
333
+
334
+ &:hover .hy-button__inner {
335
+ box-shadow:
336
+ inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
337
+ inset 0 0 2px 0 rgba(45, 255, 211, 0.5),
338
+ inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
339
+ inset 0 0 2px 0 rgba(45, 255, 211, 0.5);
340
+ }
341
+
342
+ &:disabled .hy-button__border,
343
+ &.is-disabled .hy-button__border {
344
+ background: linear-gradient(
345
+ 90deg,
346
+ rgba(45, 255, 211, 0.18) 0%,
347
+ rgba(45, 255, 211, 0.42) 50%,
348
+ rgba(45, 255, 211, 0.18) 100%
349
+ );
350
+ }
351
+
352
+ &:disabled .hy-button__inner,
353
+ &.is-disabled .hy-button__inner {
354
+ background: #4b0c0c;
355
+ box-shadow:
356
+ inset 0 0 4px 1px rgba(45, 255, 211, 0.2),
357
+ inset 0 0 2px 0 rgba(24, 145, 119, 0.16);
358
+ }
359
+
360
+ &:disabled .hy-button__text,
361
+ &.is-disabled .hy-button__text {
362
+ color: rgba(255, 255, 255, 0.68);
363
+ }
364
+ }
298
365
  }
299
366
 
300
367
 
@@ -310,6 +377,7 @@
310
377
  background: none;
311
378
  border: none;
312
379
  cursor: pointer;
380
+ position: relative;
313
381
 
314
382
  &:not(.is-disabled) {
315
383
  &:active {
@@ -347,6 +415,10 @@
347
415
  --hy-button-text-color: rgba(var(--hy-danger-2));
348
416
  }
349
417
 
418
+ &.hy-button_operate {
419
+ --hy-button-text-color: rgba(var(--hy-success-3));
420
+ }
421
+
350
422
  &.is-disabled {
351
423
  cursor: not-allowed;
352
424
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent, useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createCommentVNode, createVNode, normalizeStyle, normalizeClass, toDisplayString, createElementBlock, createTextVNode, withModifiers, mergeModels } from 'vue';
1
+ import { defineComponent, useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createVNode, normalizeStyle, normalizeClass, toDisplayString, createElementBlock, createTextVNode, createCommentVNode, withModifiers, mergeModels } from 'vue';
2
2
  import { ElDialog } from 'element-plus';
3
3
  import '../../hooks/index.mjs';
4
4
  import '../index.mjs';
@@ -172,7 +172,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
172
172
  default: withCtx(() => [
173
173
  createElementVNode("div", { class: "flex flex-col items-center justify-between pt-[37px] pb-[27px]" }, [
174
174
  createElementVNode("div", { class: "flex flex-col items-center text-main" }, [
175
- createCommentVNode(' <el-icon size="40" :color="iconColor"><Warning /></el-icon> '),
176
175
  createVNode(unref(HyIcon), {
177
176
  "svg-name": "dispatch-share1-prompt",
178
177
  class: "!w-[40px] !h-[40px]",