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
@@ -3,13 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
- var elementPlus = require('element-plus');
7
- var iconsVue = require('@element-plus/icons-vue');
8
6
  require('../index.js');
9
7
  var index = require('../hyDialog/index.js');
10
8
  var index$1 = require('../hyTableForm/index.js');
11
9
  var index$2 = require('../hyButton/index.js');
12
10
  var index$3 = require('../hyTooltip/index.js');
11
+ var index$4 = require('../hyIcon/index.js');
13
12
 
14
13
  import "./style/batchUploadDialog.scss";
15
14
 
@@ -109,6 +108,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
109
108
  "validate",
110
109
  "submitting",
111
110
  "submit",
111
+ "submitProgress",
112
+ "tableDataChange",
112
113
  "onMinimized",
113
114
  "onDialogMousedown"
114
115
  ], ["update:modelValue"]),
@@ -124,6 +125,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
124
125
  const totalElements = vue.ref(0);
125
126
  const failedCount = vue.ref(0);
126
127
  const failedStatus = vue.ref(null);
128
+ function tableDataChange(e) {
129
+ emits("tableDataChange", e);
130
+ }
127
131
  function setDragLevelIndex(dragLevel) {
128
132
  HyDialogRef.value.setDragLevelIndex(dragLevel);
129
133
  }
@@ -166,6 +170,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
166
170
  isSubmitting.value = true;
167
171
  emits("submitting", ...args);
168
172
  }
173
+ function onSubmitProgressHandler(submitProgress) {
174
+ emits("submitProgress", submitProgress);
175
+ }
169
176
  function onTableSubmitHandler(params) {
170
177
  const { total, success, failed, result } = params;
171
178
  if (result) {
@@ -195,9 +202,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
195
202
  batchTableFormRef.value.submitDataSource();
196
203
  }
197
204
  }
205
+ function getIsSubmitting() {
206
+ return isSubmitting.value;
207
+ }
198
208
  __expose({
199
209
  show,
200
- setDragLevelIndex,
210
+ getIsSubmitting,
201
211
  getTableDataSource: () => {
202
212
  return batchTableFormRef.value.getTableDataSource();
203
213
  },
@@ -215,163 +225,187 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
215
225
  },
216
226
  setDragLevelIndex: (dragLevel) => {
217
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
+ }
218
248
  }
219
249
  });
220
250
  return (_ctx, _cache) => {
221
- return vue.openBlock(), vue.createBlock(vue.unref(index.HyDialog), vue.mergeProps({
222
- ref_key: "HyDialogRef",
223
- ref: HyDialogRef,
224
- modelValue: visible.value,
225
- "onUpdate:modelValue": ($event) => visible.value = $event,
226
- loading: isSubmitting.value,
227
- "onUpdate:loading": ($event) => isSubmitting.value = $event,
228
- title: __props.title,
229
- width: __props.width,
230
- "dialog-type": __props.dialogType,
231
- "show-operate": true,
232
- "show-submit": false,
233
- "show-cancel": !isSubmitting.value,
234
- ifShrink: __props.ifShrink,
235
- ifDraggable: __props.ifDraggable
236
- }, _ctx.$attrs, {
237
- onOnMinimized: onMinimized,
238
- onOnDialogMousedown: onDialogMousedown
239
- }), vue.createSlots({
240
- "operate-left-box": vue.withCtx(() => [
241
- failedCount.value ? (vue.openBlock(), vue.createElementBlock("div", {
242
- key: 0,
243
- class: "flex items-center gap-1.5 text-xs text-warning"
244
- }, [
245
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
246
- default: vue.withCtx(() => [
247
- vue.createVNode(vue.unref(iconsVue.Warning))
248
- ]),
249
- _: 1
250
- /* STABLE */
251
- }),
252
- failedStatus.value === "validate" ? (vue.openBlock(), vue.createElementBlock(
253
- "span",
254
- { key: 0 },
255
- "\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",
256
- 1
257
- /* TEXT */
258
- )) : (vue.openBlock(), vue.createElementBlock(
259
- "span",
260
- { key: 1 },
261
- "\u5F53\u524D " + vue.toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u8BF7\u4FEE\u6B63\u5185\u5BB9",
262
- 1
263
- /* TEXT */
264
- ))
265
- ])) : currentStep.value === 2 && !totalElements.value ? (vue.openBlock(), vue.createElementBlock("div", {
266
- key: 1,
267
- class: "flex items-center gap-1.5 text-xs text-warning"
268
- }, [
269
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
270
- default: vue.withCtx(() => [
271
- vue.createVNode(vue.unref(iconsVue.Warning))
272
- ]),
273
- _: 1
274
- /* STABLE */
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
- onUploading: onTableUploadingHandler,
342
- onUploaded: onTableUploadedHandler,
343
- onReset: onTableResetHandler,
344
- onValidate: onTableValidateHandler,
345
- onSubmitting: onTableSubmittingHandler,
346
- onSubmit: onTableSubmitHandler
347
- }, vue.createSlots({
348
- _: 2
349
- /* DYNAMIC */
350
- }, [
351
- vue.renderList(_ctx.$slots, (_, slotName) => {
352
- return {
353
- name: slotName,
354
- fn: vue.withCtx((scope) => [
355
- vue.renderSlot(_ctx.$slots, slotName, vue.normalizeProps(vue.guardReactiveProps(scope)))
356
- ])
357
- };
358
- })
359
- ]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "beforeDataListHandle", "onExpandRowChange", "submit-handler", "showAddBtn"])) : vue.createCommentVNode("v-if", true)
360
- ])
361
- ])
362
- ]),
363
- _: 2
364
- /* DYNAMIC */
365
- }, [
366
- vue.renderList(_ctx.$slots, (_, slotName) => {
367
- return {
368
- name: slotName,
369
- fn: vue.withCtx((scope) => [
370
- vue.renderSlot(_ctx.$slots, slotName, vue.normalizeProps(vue.guardReactiveProps(scope)))
371
- ])
372
- };
373
- })
374
- ]), 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
+ );
375
409
  };
376
410
  }
377
411
  });
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
19
19
  type: {
20
20
  type: String,
21
21
  default: "default"
22
- // default 默认 primary 亮色 success 添加 danger 删除
22
+ // default 默认 primary 亮色 success 添加 danger 删除 operate 操作
23
23
  },
24
24
  disabled: {
25
25
  type: Boolean,
@@ -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"],
@@ -54,7 +59,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
54
59
  default: "hy-button_default",
55
60
  primary: "hy-button_function",
56
61
  success: "hy-button_addTo",
57
- danger: "hy-button_delete"
62
+ danger: "hy-button_delete",
63
+ operate: "hy-button_operate"
58
64
  };
59
65
  const emit = __emit;
60
66
  const handleClick = (event) => {
@@ -78,7 +84,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
78
84
  }
79
85
  ]]
80
86
  }, _ctx.$attrs, { onClick: handleClick }), [
81
- 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)
82
92
  ], 16, ["type", "disabled", "loading"])) : (vue.openBlock(), vue.createElementBlock("button", {
83
93
  key: 1,
84
94
  type: "button",
@@ -159,7 +169,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
159
169
  ],
160
170
  2
161
171
  /* CLASS */
162
- )
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)
163
177
  ], 10, ["disabled"]));
164
178
  };
165
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 {
@@ -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
  }
@@ -176,7 +176,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
176
176
  default: vue.withCtx(() => [
177
177
  vue.createElementVNode("div", { class: "flex flex-col items-center justify-between pt-[37px] pb-[27px]" }, [
178
178
  vue.createElementVNode("div", { class: "flex flex-col items-center text-main" }, [
179
- vue.createCommentVNode(' <el-icon size="40" :color="iconColor"><Warning /></el-icon> '),
180
179
  vue.createVNode(vue.unref(index.HyIcon), {
181
180
  "svg-name": "dispatch-share1-prompt",
182
181
  class: "!w-[40px] !h-[40px]",