hy-dispatch-ui-v3 0.2.51 → 0.2.53

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.
@@ -25,6 +25,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
25
25
  type: String,
26
26
  default: "right"
27
27
  },
28
+ uploadType: {
29
+ type: String,
30
+ default: "default"
31
+ // default-内部上传,custom-自定义上传
32
+ },
28
33
  // 是否可缩小化
29
34
  ifShrink: { type: Boolean, default: false },
30
35
  // 是否拖拽
@@ -91,6 +96,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
91
96
  "onDialogMousedown"
92
97
  ], ["update:modelValue"]),
93
98
  setup(__props, { expose: __expose, emit: __emit }) {
99
+ const props = __props;
94
100
  const emits = __emit;
95
101
  const batchTableFormRef = useTemplateRef("batchTableFormRef");
96
102
  const visible = useModel(__props, "modelValue");
@@ -151,8 +157,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
151
157
  emits("submit", params);
152
158
  }
153
159
  async function onSubmitHandler() {
154
- await batchTableFormRef.value.validate();
155
- batchTableFormRef.value.submitDataSource();
160
+ const res = await batchTableFormRef.value.validate();
161
+ if (props.uploadType === "custom") {
162
+ const dataSource = batchTableFormRef.value.getTableDataSource();
163
+ onTableSubmitHandler({
164
+ ...res,
165
+ result: res.total === res.success,
166
+ dataSource
167
+ });
168
+ } else {
169
+ batchTableFormRef.value.submitDataSource();
170
+ }
156
171
  }
157
172
  __expose({
158
173
  show,
@@ -163,6 +178,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
163
178
  validate: async () => {
164
179
  return await batchTableFormRef.value.validate();
165
180
  },
181
+ clearData: () => {
182
+ batchTableFormRef.value.clearData();
183
+ },
166
184
  submitDataSource: () => {
167
185
  return batchTableFormRef.value.submitDataSource();
168
186
  }
@@ -31,6 +31,7 @@ const useAppTreeWrapper = (hy) => {
31
31
  const selectedDataList = ref([]);
32
32
  const selectFilterType = ref(null);
33
33
  const selectFilterList = ref([]);
34
+ const loading = ref(true);
34
35
  watch(
35
36
  () => props.showCheckbox,
36
37
  (newVal) => {
@@ -41,6 +42,7 @@ const useAppTreeWrapper = (hy) => {
41
42
  );
42
43
  function getData(dataList) {
43
44
  return new Promise((resolve) => {
45
+ hy.loading.value = true;
44
46
  if (props.disableSelection?.length) {
45
47
  setDisAbleSelectionMap();
46
48
  }
@@ -226,6 +228,9 @@ const useAppTreeWrapper = (hy) => {
226
228
  if (hy.filterValue.value) {
227
229
  getFilterValue();
228
230
  }
231
+ setTimeout(() => {
232
+ hy.loading.value = false;
233
+ });
229
234
  resolve(200);
230
235
  }
231
236
  });
@@ -246,6 +251,9 @@ const useAppTreeWrapper = (hy) => {
246
251
  if (hy.filterValue.value) {
247
252
  getFilterValue();
248
253
  }
254
+ setTimeout(() => {
255
+ hy.loading.value = false;
256
+ });
249
257
  resolve(200);
250
258
  }
251
259
  );
@@ -289,6 +297,7 @@ const useAppTreeWrapper = (hy) => {
289
297
  hy.disableSelectionMap.value = map;
290
298
  }
291
299
  function refreshData() {
300
+ hy.loading.value = true;
292
301
  emits("on-refreshData");
293
302
  }
294
303
  function setRenderStatus(data) {
@@ -509,7 +518,8 @@ const useAppTreeWrapper = (hy) => {
509
518
  selectFilterList,
510
519
  selectFilterType,
511
520
  selectedDataList,
512
- getSelectedDataList
521
+ getSelectedDataList,
522
+ loading
513
523
  };
514
524
  };
515
525
  function filterNodeMethod(data, value, { selectFilterType, treeFilterParam = [] }) {
@@ -1,4 +1,4 @@
1
- import { defineComponent, useSlots, ref, onMounted, openBlock, createElementBlock, normalizeStyle, unref, createVNode, withCtx, createElementVNode, isRef, withKeys, Fragment, renderList, createBlock, createCommentVNode, renderSlot } from 'vue';
1
+ import { defineComponent, useSlots, ref, onMounted, resolveDirective, openBlock, createElementBlock, normalizeStyle, unref, createVNode, withCtx, createElementVNode, isRef, withKeys, Fragment, renderList, createBlock, createCommentVNode, renderSlot, withDirectives } from 'vue';
2
2
  import { ElTooltip, ElInput, ElSelect, ElOption } from 'element-plus';
3
3
  import { VirtualTree } from 'hy-virtual-tree';
4
4
  import { useAppTreeWrapper } from './js/index.mjs';
@@ -170,7 +170,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
170
170
  setFilterListType,
171
171
  getInputPlaceholder,
172
172
  onChange,
173
- getSelectedDataList
173
+ getSelectedDataList,
174
+ loading
174
175
  } = useMixins(
175
176
  {
176
177
  props,
@@ -190,9 +191,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
190
191
  singleRemovalFn,
191
192
  setCheckedKeys,
192
193
  setChecked,
193
- getSelectedDataList
194
+ getSelectedDataList,
195
+ refreshData
194
196
  });
195
197
  return (_ctx, _cache) => {
198
+ const _directive_loading = resolveDirective("loading");
196
199
  return openBlock(), createElementBlock(
197
200
  "div",
198
201
  {
@@ -299,9 +302,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
299
302
  }, 8, ["content"])
300
303
  ])) : createCommentVNode("v-if", true),
301
304
  renderSlot(_ctx.$slots, "input-bottom-bottom"),
302
- createElementVNode(
305
+ withDirectives(createElementVNode(
303
306
  "div",
304
307
  {
308
+ "element-loading-text": "\u52A0\u8F7D\u4E2D...",
309
+ "element-loading-spinner": "el-icon-loading",
310
+ "element-loading-background": "rgba(0, 0, 0, 0.8)",
305
311
  ref_key: "treeRef",
306
312
  ref: treeRef,
307
313
  style: { "width": "100%" },
@@ -310,7 +316,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
310
316
  null,
311
317
  512
312
318
  /* NEED_PATCH */
313
- )
319
+ ), [
320
+ [_directive_loading, unref(loading)]
321
+ ])
314
322
  ],
315
323
  4
316
324
  /* STYLE */
@@ -0,0 +1,10 @@
1
+ export default {
2
+ id: 'hy-icon-ops-file-apk',
3
+ symbol: `<symbol id="hy-icon-ops-file-apk" viewBox="0 0 58 66">
4
+ <g id="hy-icon-ops-file-apk-wenjian/apk" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M6,-1.42108547e-14 L38.1788775,-1.0658141e-14 C39.2676382,-1.0658141e-14 40.3093555,0.443813394 41.0635932,1.2290046 L56.8542683,17.6677211 C57.5692562,18.4120517 57.968862,19.4039411 57.9695518,20.4360435 L57.9999987,59.9999987 C58.0022131,63.3137064 55.3177173,66.0017924 52.0040095,66.0040068 C52.002673,66.0040077 52.0013365,66.0040082 52,66.0040082 L6,66 C2.6862915,66 0,63.3137085 0,60 L8.8817842e-16,6 C8.8817842e-16,2.6862915 2.6862915,-1.42108547e-14 6,-1.42108547e-14 Z" id="hy-icon-ops-file-apk-矩形" fill-opacity="0.2" fill="#2DF2FF"></path>
6
+ <path d="M38.926,0.127454462 C38.9178745,0.135392444 38.9160286,4.06602284 38.9204623,11.9193456 L38.9204618,11.9193456 C38.9223232,16.314297 42.4692305,19.8847808 46.8640731,19.9157585 C54.2527726,19.966763 57.9465892,19.9945856 57.9455228,19.9992348 C57.9455228,17.1873618 53.0398112,13.6172005 49.3001134,9.74199573 C45.5604156,5.86679093 40.4684134,-0.230938485 38.926,0.127454462 Z" id="hy-icon-ops-file-apk-路径-2" fill-opacity="0.2" fill="#2DF2FF"></path>
7
+ <path d="M46.6428571,29 C47.3923864,29 48,29.6199134 48,30.3846154 L48,45.6153846 C48,46.3800866 47.3923864,47 46.6428571,47 L11.3571429,47 C10.6076136,47 10,46.3800866 10,45.6153846 L10,30.3846154 C10,29.6199134 10.6076136,29 11.3571429,29 L46.6428571,29 Z M20.4461538,32.5 L16.0615385,32.5 L13,43.5 L15.6307692,43.5 L16.3076923,40.9192308 L19.9846154,40.9192308 L20.6769231,43.5 L23.5230769,43.5 L20.4461538,32.5 Z M28.8461538,32.5 L24.9076923,32.5 L24.9076923,43.5 L27.6,43.5 L27.6,40.0166667 L28.5538462,40.0166667 C31.2923077,40.0166667 33.2307692,38.8320513 33.2307692,36.124359 C33.2307692,33.6564103 31.6923077,32.5 28.8461538,32.5 Z M37.7230769,32.5 L34.9230769,32.5 L34.9230769,43.5 L37.7230769,43.5 L37.7230769,39.8333333 L38.6153846,38.9307692 L41.5692308,43.5 L45,43.5 L40.4769231,37.0692308 L44.9846154,32.5 L41.5230769,32.5 L38.9692308,35.4615385 C38.5076923,36.0115385 38.0615385,36.6461538 37.6769231,37.2525641 L37.6153846,37.2525641 C37.6769231,36.6320513 37.7230769,36.0820513 37.7230769,35.4615385 L37.7230769,32.5 Z M18.2,33.9525641 C18.2769231,34.4602564 18.4,34.9679487 18.5384615,35.4615385 L19.4615385,38.9448718 L16.8307692,38.9448718 L17.7692308,35.4615385 C17.9076923,34.9679487 18.0307692,34.4602564 18.1230769,33.9525641 L18.2,33.9525641 Z M28.7076923,34.3333333 C29.6923077,34.3333333 30.3846154,34.9397436 30.3846154,36.2653846 C30.3846154,37.6192308 29.6923077,38.1833333 28.7076923,38.1833333 L27.6,38.1833333 L27.6,34.3333333 L28.7076923,34.3333333 Z M11.5,51 L46.5,51 C47.3284271,51 48,51.6715729 48,52.5 C48,53.3284271 47.3284271,54 46.5,54 L11.5,54 C10.6715729,54 10,53.3284271 10,52.5 C10,51.6715729 10.6715729,51 11.5,51 Z" id="hy-icon-ops-file-apk-形状结合" fill="#2DF2FF" fill-rule="nonzero"></path>
8
+ </g>
9
+ </symbol>`,
10
+ };
@@ -0,0 +1,13 @@
1
+ export default {
2
+ id: 'hy-icon-ops-file-shiping',
3
+ symbol: `<symbol id="hy-icon-ops-file-shiping" viewBox="0 0 58 66">
4
+ <g id="hy-icon-ops-file-shiping-wenjian/shiping" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M6,-1.42108547e-14 L38.1964704,-1.0658141e-14 C39.2748781,-1.0658141e-14 40.3075989,0.43543833 41.0604431,1.20757089 L56.8335533,17.384797 C57.5612654,18.1311535 57.9688726,19.1321059 57.9695797,20.1745129 L57.9999986,59.0224662 C58.0022463,62.336174 55.3177775,65.024287 52.0040698,65.0265346 C52.0027132,65.0265356 52.0013566,65.026536 52,65.026536 L6,65.0224676 C2.6862915,65.0224676 0,62.3361761 0,59.0224676 L0,6 C0,2.6862915 2.6862915,-1.42108547e-14 6,-1.42108547e-14 Z" id="hy-icon-ops-file-shiping-矩形备份" fill-opacity="0.2" fill="#2DF2FF"></path>
6
+ <path d="M38.926,0.127454462 C38.9178745,0.135392444 38.9160286,4.06602284 38.9204623,11.9193456 L38.9204618,11.9193456 C38.9223232,16.314297 42.4692305,19.8847808 46.8640731,19.9157585 C54.2527726,19.966763 57.9465892,19.9945856 57.9455228,19.9992348 C57.9455228,17.1873618 53.0398112,13.6172005 49.3001134,9.74199573 C45.5604156,5.86679093 40.4684134,-0.230938485 38.926,0.127454462 Z" id="hy-icon-ops-file-shiping-路径-2备份" fill-opacity="0.2" fill="#2DF2FF"></path>
7
+ <g id="hy-icon-ops-file-shiping-符号-视频" transform="translate(11, 26)" fill="#2DF2FF" fill-rule="nonzero">
8
+ <path d="M31.45,0 L2.55,0 C1.82142857,0 1.21428571,0.241666667 0.728571429,0.845833333 C0.242857143,1.32916667 0,2.05416667 0,2.9 L0,25.9791667 C0,27.6708333 1.09285714,29 2.55,29 L31.45,29 C32.1785714,29 32.7857143,28.7583333 33.2714286,28.1541667 C33.7571429,27.55 34,26.825 34,26.1 L34,2.9 C34,1.32916667 32.7857143,0 31.45,0 Z M6.07142857,26.5833333 L4.12857143,26.5833333 C3.15714286,26.5833333 2.42857143,25.7375 2.42857143,24.65 L2.42857143,19.3333333 L6.07142857,19.3333333 L6.07142857,26.5833333 Z M6.07142857,16.9166667 L2.42857143,16.9166667 L2.42857143,12.0833333 L6.07142857,12.0833333 L6.07142857,16.9166667 Z M6.07142857,9.66666667 L2.42857143,9.66666667 L2.42857143,4.35 C2.42857143,3.2625 3.15714286,2.41666667 4.12857143,2.41666667 L6.07142857,2.41666667 L6.07142857,9.66666667 Z M25.5,10.875 L25.5,26.5833333 L8.5,26.5833333 L8.5,2.41666667 L25.5,2.41666667 L25.5,10.875 Z M31.5714286,24.65 C31.5714286,25.7375 30.8428571,26.5833333 29.8714286,26.5833333 L27.9285714,26.5833333 L27.9285714,19.3333333 L31.5714286,19.3333333 L31.5714286,24.65 Z M31.5714286,16.9166667 L27.9285714,16.9166667 L27.9285714,12.0833333 L31.5714286,12.0833333 L31.5714286,16.9166667 Z M31.5714286,9.66666667 L27.9285714,9.66666667 L27.9285714,2.41666667 L29.9928571,2.41666667 C30.8428571,2.41666667 31.5714286,3.2625 31.5714286,4.35 L31.5714286,9.66666667 Z" id="hy-icon-ops-file-shiping-形状"></path>
9
+ <path d="M14.45,18.85 L19.9142857,16.0708333 L20.8857143,15.5875 C22.1,14.9833333 22.1,14.0166667 20.8857143,13.4125 L14.45,10.15 C13.8428571,9.90833333 13.3571429,10.15 13.3571429,10.7541667 L13.3571429,18.0041667 C13.3571429,18.85 13.8428571,19.0916667 14.45,18.85 L14.45,18.85 Z" id="hy-icon-ops-file-shiping-路径"></path>
10
+ </g>
11
+ </g>
12
+ </symbol>`,
13
+ };
@@ -0,0 +1,10 @@
1
+ export default {
2
+ id: 'hy-icon-ops-file-xls',
3
+ symbol: `<symbol id="hy-icon-ops-file-xls" viewBox="0 0 58 66">
4
+ <g id="hy-icon-ops-file-xls-wenjian/xls" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M6,-1.42108547e-14 L38.1788775,-1.0658141e-14 C39.2676382,-1.0658141e-14 40.3093555,0.443813394 41.0635932,1.2290046 L56.8542683,17.6677211 C57.5692562,18.4120517 57.968862,19.4039411 57.9695518,20.4360435 L57.9999987,59.9999987 C58.0022131,63.3137064 55.3177173,66.0017924 52.0040095,66.0040068 C52.002673,66.0040077 52.0013365,66.0040082 52,66.0040082 L6,66 C2.6862915,66 0,63.3137085 0,60 L8.8817842e-16,6 C8.8817842e-16,2.6862915 2.6862915,-1.42108547e-14 6,-1.42108547e-14 Z" id="hy-icon-ops-file-xls-矩形" fill-opacity="0.2" fill="#2DF2FF"></path>
6
+ <path d="M38.926,0.127454462 C38.9178745,0.135392444 38.9160286,4.06602284 38.9204623,11.9193456 L38.9204618,11.9193456 C38.9223232,16.314297 42.4692305,19.8847808 46.8640731,19.9157585 C54.2527726,19.966763 57.9465892,19.9945856 57.9455228,19.9992348 C57.9455228,17.1873618 53.0398112,13.6172005 49.3001134,9.74199573 C45.5604156,5.86679093 40.4684134,-0.230938485 38.926,0.127454462 Z" id="hy-icon-ops-file-xls-路径-2" fill-opacity="0.2" fill="#2DF2FF"></path>
7
+ <path d="M46.6428571,29 C47.3923864,29 48,29.6199134 48,30.3846154 L48,45.6153846 C48,46.3800866 47.3923864,47 46.6428571,47 L11.3571429,47 C10.6076136,47 10,46.3800866 10,45.6153846 L10,30.3846154 C10,29.6199134 10.6076136,29 11.3571429,29 L46.6428571,29 Z M28.3214286,32.4615385 L25.6071429,32.4615385 L25.6071429,43.5384615 L33.75,43.5384615 L33.75,40.7692308 L28.3214286,40.7692308 L28.3214286,32.4615385 Z M43.25,32.4615385 L36.6,32.4615385 C35.7755178,32.4615385 35.1071429,33.1434432 35.1071429,33.9846154 L35.1071429,37.8615385 L35.1152857,38.0276923 C35.1983852,38.8002206 35.8382535,39.3850146 36.6,39.3846154 L40.5357143,39.3846154 L40.5357143,40.7692308 L35.1071429,40.7692308 L35.1071429,43.5384615 L41.7571429,43.5384615 C42.1530732,43.5384615 42.5327872,43.377995 42.8127523,43.0923626 C43.0927173,42.8067303 43.25,42.4193297 43.25,42.0153846 L43.25,38.1384615 L43.2418571,37.9723077 C43.1587576,37.1997794 42.5188893,36.6149854 41.7571429,36.6153846 L37.8214286,36.6153846 L37.8214286,35.2307692 L43.25,35.2307692 L43.25,32.4615385 Z M18.0342857,32.4615385 L14.9305,32.4615385 L17.9474286,38 L14.9318571,43.5384615 L18.0356429,43.5384615 L19.5,40.8481538 L20.9616429,43.5356923 L24.0681429,43.5356923 L21.0525714,38 L24.0695,32.4615385 L20.963,32.4615385 L19.5,35.1476923 L18.0342857,32.4615385 Z M11.5,51 L46.5,51 C47.3284271,51 48,51.6715729 48,52.5 C48,53.3284271 47.3284271,54 46.5,54 L11.5,54 C10.6715729,54 10,53.3284271 10,52.5 C10,51.6715729 10.6715729,51 11.5,51 Z" id="hy-icon-ops-file-xls-形状结合" fill="#2DF2FF" fill-rule="nonzero"></path>
8
+ </g>
9
+ </symbol>`,
10
+ };
@@ -0,0 +1,10 @@
1
+ export default {
2
+ id: 'hy-icon-ops-file-yingping',
3
+ symbol: `<symbol id="hy-icon-ops-file-yingping" viewBox="0 0 58 66">
4
+ <g id="hy-icon-ops-file-yingping-wenjian/yingping" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M6,-1.42108547e-14 L38.1964704,-1.0658141e-14 C39.2748781,-1.0658141e-14 40.3075989,0.43543833 41.0604431,1.20757089 L56.8335533,17.384797 C57.5612654,18.1311535 57.9688726,19.1321059 57.9695797,20.1745129 L57.9999986,59.0224662 C58.0022463,62.336174 55.3177775,65.024287 52.0040698,65.0265346 C52.0027132,65.0265356 52.0013566,65.026536 52,65.026536 L6,65.0224676 C2.6862915,65.0224676 0,62.3361761 0,59.0224676 L0,6 C0,2.6862915 2.6862915,-1.42108547e-14 6,-1.42108547e-14 Z" id="hy-icon-ops-file-yingping-矩形" fill-opacity="0.2" fill="#2DF2FF"></path>
6
+ <path d="M42.8330714,24.7924895 C42.0826429,24.1570769 41.0577857,23.8879175 40.0280714,24.0427763 L22.3990714,26.74666 C20.3906429,27.0539195 18.8145,28.8581474 18.8145,30.8541051 L18.8145,44.7375324 C17.8788999,44.118355 16.7849162,43.7894193 15.6670714,43.7911731 C12.5366429,43.7924021 10,46.3008688 10,49.3968156 C10,52.4915334 12.5378571,55 15.6670714,55 C18.7962857,55 21.8701161,52.4927624 21.8701161,49.3968156 L21.8701161,36.9046594 L22.1195346,36.8640271 L41.1033481,33.7714067 L41.1033481,41.5059566 C40.1674022,40.8865495 39.1926895,40.5256796 38.0744315,40.5276732 C34.9452172,40.5276732 32.3587475,43.111515 32.3587475,46.2062328 C32.3587475,49.3009506 35.2464379,52.2220595 38.3756522,52.2220595 C41.5060808,52.2220595 44,49.3009506 44,46.2062328 L44,27.3771565 C44,26.3632001 43.575,25.420528 42.8330714,24.7924895 Z M15.6670714,52.5099689 C13.9306429,52.5099689 12.5184286,51.1137817 12.5184286,49.3968156 C12.5184286,47.6786204 13.9306429,46.2836622 15.6670714,46.2836622 C17.4035,46.2836622 18.8145,47.6786204 18.8145,49.3968156 C18.8145,51.1137817 17.4035,52.5099689 15.6670714,52.5099689 Z M21.9151548,33.9089888 L21.9151548,30.7123447 C21.9151548,29.9540282 22.5951548,29.1846504 23.3674405,29.0654337 L39.776102,26.5493209 C40.0881734,26.5026175 40.362602,26.5665275 40.5532449,26.7299895 C40.7426734,26.8897645 40.8422449,27.1294269 40.8422449,27.423167 L40.8422449,31.0069581 L21.9151548,33.9089888 Z M38.3329286,49.3181571 C36.5965,49.3181571 35.1855,47.9219699 35.1855,46.2050038 C35.1855,44.4880377 36.5965,43.0918504 38.3329286,43.0918504 C40.0693571,43.0918504 41.4815714,44.4880377 41.4815714,46.2050038 C41.4815714,47.9219699 40.0693571,49.3181571 38.3329286,49.3181571 Z" id="hy-icon-ops-file-yingping-形状" fill="#2DF2FF" fill-rule="nonzero"></path>
7
+ <path d="M38.926,0.127454462 C38.9178745,0.135392444 38.9160286,4.06602284 38.9204623,11.9193456 L38.9204618,11.9193456 C38.9223232,16.314297 42.4692305,19.8847808 46.8640731,19.9157585 C54.2527726,19.966763 57.9465892,19.9945856 57.9455228,19.9992348 C57.9455228,17.1873618 53.0398112,13.6172005 49.3001134,9.74199573 C45.5604156,5.86679093 40.4684134,-0.230938485 38.926,0.127454462 Z" id="hy-icon-ops-file-yingping-路径-2" fill-opacity="0.2" fill="#2DF2FF"></path>
8
+ </g>
9
+ </symbol>`,
10
+ };
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.2.50";
1
+ const version = "0.2.52";
2
2
 
3
3
  export { version };
@@ -29,6 +29,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
29
29
  type: String,
30
30
  default: "right"
31
31
  },
32
+ uploadType: {
33
+ type: String,
34
+ default: "default"
35
+ // default-内部上传,custom-自定义上传
36
+ },
32
37
  // 是否可缩小化
33
38
  ifShrink: { type: Boolean, default: false },
34
39
  // 是否拖拽
@@ -95,6 +100,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
95
100
  "onDialogMousedown"
96
101
  ], ["update:modelValue"]),
97
102
  setup(__props, { expose: __expose, emit: __emit }) {
103
+ const props = __props;
98
104
  const emits = __emit;
99
105
  const batchTableFormRef = vue.useTemplateRef("batchTableFormRef");
100
106
  const visible = vue.useModel(__props, "modelValue");
@@ -155,8 +161,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
155
161
  emits("submit", params);
156
162
  }
157
163
  async function onSubmitHandler() {
158
- await batchTableFormRef.value.validate();
159
- batchTableFormRef.value.submitDataSource();
164
+ const res = await batchTableFormRef.value.validate();
165
+ if (props.uploadType === "custom") {
166
+ const dataSource = batchTableFormRef.value.getTableDataSource();
167
+ onTableSubmitHandler({
168
+ ...res,
169
+ result: res.total === res.success,
170
+ dataSource
171
+ });
172
+ } else {
173
+ batchTableFormRef.value.submitDataSource();
174
+ }
160
175
  }
161
176
  __expose({
162
177
  show,
@@ -167,6 +182,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
167
182
  validate: async () => {
168
183
  return await batchTableFormRef.value.validate();
169
184
  },
185
+ clearData: () => {
186
+ batchTableFormRef.value.clearData();
187
+ },
170
188
  submitDataSource: () => {
171
189
  return batchTableFormRef.value.submitDataSource();
172
190
  }
@@ -33,6 +33,7 @@ const useAppTreeWrapper = (hy) => {
33
33
  const selectedDataList = vue.ref([]);
34
34
  const selectFilterType = vue.ref(null);
35
35
  const selectFilterList = vue.ref([]);
36
+ const loading = vue.ref(true);
36
37
  vue.watch(
37
38
  () => props.showCheckbox,
38
39
  (newVal) => {
@@ -43,6 +44,7 @@ const useAppTreeWrapper = (hy) => {
43
44
  );
44
45
  function getData(dataList) {
45
46
  return new Promise((resolve) => {
47
+ hy.loading.value = true;
46
48
  if (props.disableSelection?.length) {
47
49
  setDisAbleSelectionMap();
48
50
  }
@@ -228,6 +230,9 @@ const useAppTreeWrapper = (hy) => {
228
230
  if (hy.filterValue.value) {
229
231
  getFilterValue();
230
232
  }
233
+ setTimeout(() => {
234
+ hy.loading.value = false;
235
+ });
231
236
  resolve(200);
232
237
  }
233
238
  });
@@ -248,6 +253,9 @@ const useAppTreeWrapper = (hy) => {
248
253
  if (hy.filterValue.value) {
249
254
  getFilterValue();
250
255
  }
256
+ setTimeout(() => {
257
+ hy.loading.value = false;
258
+ });
251
259
  resolve(200);
252
260
  }
253
261
  );
@@ -291,6 +299,7 @@ const useAppTreeWrapper = (hy) => {
291
299
  hy.disableSelectionMap.value = map;
292
300
  }
293
301
  function refreshData() {
302
+ hy.loading.value = true;
294
303
  emits("on-refreshData");
295
304
  }
296
305
  function setRenderStatus(data) {
@@ -511,7 +520,8 @@ const useAppTreeWrapper = (hy) => {
511
520
  selectFilterList,
512
521
  selectFilterType,
513
522
  selectedDataList,
514
- getSelectedDataList
523
+ getSelectedDataList,
524
+ loading
515
525
  };
516
526
  };
517
527
  function filterNodeMethod(data, value, { selectFilterType, treeFilterParam = [] }) {
@@ -174,7 +174,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
174
174
  setFilterListType,
175
175
  getInputPlaceholder,
176
176
  onChange,
177
- getSelectedDataList
177
+ getSelectedDataList,
178
+ loading
178
179
  } = useMixins.useMixins(
179
180
  {
180
181
  props,
@@ -194,9 +195,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
194
195
  singleRemovalFn,
195
196
  setCheckedKeys,
196
197
  setChecked,
197
- getSelectedDataList
198
+ getSelectedDataList,
199
+ refreshData
198
200
  });
199
201
  return (_ctx, _cache) => {
202
+ const _directive_loading = vue.resolveDirective("loading");
200
203
  return vue.openBlock(), vue.createElementBlock(
201
204
  "div",
202
205
  {
@@ -303,9 +306,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
303
306
  }, 8, ["content"])
304
307
  ])) : vue.createCommentVNode("v-if", true),
305
308
  vue.renderSlot(_ctx.$slots, "input-bottom-bottom"),
306
- vue.createElementVNode(
309
+ vue.withDirectives(vue.createElementVNode(
307
310
  "div",
308
311
  {
312
+ "element-loading-text": "\u52A0\u8F7D\u4E2D...",
313
+ "element-loading-spinner": "el-icon-loading",
314
+ "element-loading-background": "rgba(0, 0, 0, 0.8)",
309
315
  ref_key: "treeRef",
310
316
  ref: treeRef,
311
317
  style: { "width": "100%" },
@@ -314,7 +320,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
314
320
  null,
315
321
  512
316
322
  /* NEED_PATCH */
317
- )
323
+ ), [
324
+ [_directive_loading, vue.unref(loading)]
325
+ ])
318
326
  ],
319
327
  4
320
328
  /* STYLE */
@@ -0,0 +1,10 @@
1
+ export default {
2
+ id: 'hy-icon-ops-file-apk',
3
+ symbol: `<symbol id="hy-icon-ops-file-apk" viewBox="0 0 58 66">
4
+ <g id="hy-icon-ops-file-apk-wenjian/apk" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M6,-1.42108547e-14 L38.1788775,-1.0658141e-14 C39.2676382,-1.0658141e-14 40.3093555,0.443813394 41.0635932,1.2290046 L56.8542683,17.6677211 C57.5692562,18.4120517 57.968862,19.4039411 57.9695518,20.4360435 L57.9999987,59.9999987 C58.0022131,63.3137064 55.3177173,66.0017924 52.0040095,66.0040068 C52.002673,66.0040077 52.0013365,66.0040082 52,66.0040082 L6,66 C2.6862915,66 0,63.3137085 0,60 L8.8817842e-16,6 C8.8817842e-16,2.6862915 2.6862915,-1.42108547e-14 6,-1.42108547e-14 Z" id="hy-icon-ops-file-apk-矩形" fill-opacity="0.2" fill="#2DF2FF"></path>
6
+ <path d="M38.926,0.127454462 C38.9178745,0.135392444 38.9160286,4.06602284 38.9204623,11.9193456 L38.9204618,11.9193456 C38.9223232,16.314297 42.4692305,19.8847808 46.8640731,19.9157585 C54.2527726,19.966763 57.9465892,19.9945856 57.9455228,19.9992348 C57.9455228,17.1873618 53.0398112,13.6172005 49.3001134,9.74199573 C45.5604156,5.86679093 40.4684134,-0.230938485 38.926,0.127454462 Z" id="hy-icon-ops-file-apk-路径-2" fill-opacity="0.2" fill="#2DF2FF"></path>
7
+ <path d="M46.6428571,29 C47.3923864,29 48,29.6199134 48,30.3846154 L48,45.6153846 C48,46.3800866 47.3923864,47 46.6428571,47 L11.3571429,47 C10.6076136,47 10,46.3800866 10,45.6153846 L10,30.3846154 C10,29.6199134 10.6076136,29 11.3571429,29 L46.6428571,29 Z M20.4461538,32.5 L16.0615385,32.5 L13,43.5 L15.6307692,43.5 L16.3076923,40.9192308 L19.9846154,40.9192308 L20.6769231,43.5 L23.5230769,43.5 L20.4461538,32.5 Z M28.8461538,32.5 L24.9076923,32.5 L24.9076923,43.5 L27.6,43.5 L27.6,40.0166667 L28.5538462,40.0166667 C31.2923077,40.0166667 33.2307692,38.8320513 33.2307692,36.124359 C33.2307692,33.6564103 31.6923077,32.5 28.8461538,32.5 Z M37.7230769,32.5 L34.9230769,32.5 L34.9230769,43.5 L37.7230769,43.5 L37.7230769,39.8333333 L38.6153846,38.9307692 L41.5692308,43.5 L45,43.5 L40.4769231,37.0692308 L44.9846154,32.5 L41.5230769,32.5 L38.9692308,35.4615385 C38.5076923,36.0115385 38.0615385,36.6461538 37.6769231,37.2525641 L37.6153846,37.2525641 C37.6769231,36.6320513 37.7230769,36.0820513 37.7230769,35.4615385 L37.7230769,32.5 Z M18.2,33.9525641 C18.2769231,34.4602564 18.4,34.9679487 18.5384615,35.4615385 L19.4615385,38.9448718 L16.8307692,38.9448718 L17.7692308,35.4615385 C17.9076923,34.9679487 18.0307692,34.4602564 18.1230769,33.9525641 L18.2,33.9525641 Z M28.7076923,34.3333333 C29.6923077,34.3333333 30.3846154,34.9397436 30.3846154,36.2653846 C30.3846154,37.6192308 29.6923077,38.1833333 28.7076923,38.1833333 L27.6,38.1833333 L27.6,34.3333333 L28.7076923,34.3333333 Z M11.5,51 L46.5,51 C47.3284271,51 48,51.6715729 48,52.5 C48,53.3284271 47.3284271,54 46.5,54 L11.5,54 C10.6715729,54 10,53.3284271 10,52.5 C10,51.6715729 10.6715729,51 11.5,51 Z" id="hy-icon-ops-file-apk-形状结合" fill="#2DF2FF" fill-rule="nonzero"></path>
8
+ </g>
9
+ </symbol>`,
10
+ };
@@ -0,0 +1,13 @@
1
+ export default {
2
+ id: 'hy-icon-ops-file-shiping',
3
+ symbol: `<symbol id="hy-icon-ops-file-shiping" viewBox="0 0 58 66">
4
+ <g id="hy-icon-ops-file-shiping-wenjian/shiping" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M6,-1.42108547e-14 L38.1964704,-1.0658141e-14 C39.2748781,-1.0658141e-14 40.3075989,0.43543833 41.0604431,1.20757089 L56.8335533,17.384797 C57.5612654,18.1311535 57.9688726,19.1321059 57.9695797,20.1745129 L57.9999986,59.0224662 C58.0022463,62.336174 55.3177775,65.024287 52.0040698,65.0265346 C52.0027132,65.0265356 52.0013566,65.026536 52,65.026536 L6,65.0224676 C2.6862915,65.0224676 0,62.3361761 0,59.0224676 L0,6 C0,2.6862915 2.6862915,-1.42108547e-14 6,-1.42108547e-14 Z" id="hy-icon-ops-file-shiping-矩形备份" fill-opacity="0.2" fill="#2DF2FF"></path>
6
+ <path d="M38.926,0.127454462 C38.9178745,0.135392444 38.9160286,4.06602284 38.9204623,11.9193456 L38.9204618,11.9193456 C38.9223232,16.314297 42.4692305,19.8847808 46.8640731,19.9157585 C54.2527726,19.966763 57.9465892,19.9945856 57.9455228,19.9992348 C57.9455228,17.1873618 53.0398112,13.6172005 49.3001134,9.74199573 C45.5604156,5.86679093 40.4684134,-0.230938485 38.926,0.127454462 Z" id="hy-icon-ops-file-shiping-路径-2备份" fill-opacity="0.2" fill="#2DF2FF"></path>
7
+ <g id="hy-icon-ops-file-shiping-符号-视频" transform="translate(11, 26)" fill="#2DF2FF" fill-rule="nonzero">
8
+ <path d="M31.45,0 L2.55,0 C1.82142857,0 1.21428571,0.241666667 0.728571429,0.845833333 C0.242857143,1.32916667 0,2.05416667 0,2.9 L0,25.9791667 C0,27.6708333 1.09285714,29 2.55,29 L31.45,29 C32.1785714,29 32.7857143,28.7583333 33.2714286,28.1541667 C33.7571429,27.55 34,26.825 34,26.1 L34,2.9 C34,1.32916667 32.7857143,0 31.45,0 Z M6.07142857,26.5833333 L4.12857143,26.5833333 C3.15714286,26.5833333 2.42857143,25.7375 2.42857143,24.65 L2.42857143,19.3333333 L6.07142857,19.3333333 L6.07142857,26.5833333 Z M6.07142857,16.9166667 L2.42857143,16.9166667 L2.42857143,12.0833333 L6.07142857,12.0833333 L6.07142857,16.9166667 Z M6.07142857,9.66666667 L2.42857143,9.66666667 L2.42857143,4.35 C2.42857143,3.2625 3.15714286,2.41666667 4.12857143,2.41666667 L6.07142857,2.41666667 L6.07142857,9.66666667 Z M25.5,10.875 L25.5,26.5833333 L8.5,26.5833333 L8.5,2.41666667 L25.5,2.41666667 L25.5,10.875 Z M31.5714286,24.65 C31.5714286,25.7375 30.8428571,26.5833333 29.8714286,26.5833333 L27.9285714,26.5833333 L27.9285714,19.3333333 L31.5714286,19.3333333 L31.5714286,24.65 Z M31.5714286,16.9166667 L27.9285714,16.9166667 L27.9285714,12.0833333 L31.5714286,12.0833333 L31.5714286,16.9166667 Z M31.5714286,9.66666667 L27.9285714,9.66666667 L27.9285714,2.41666667 L29.9928571,2.41666667 C30.8428571,2.41666667 31.5714286,3.2625 31.5714286,4.35 L31.5714286,9.66666667 Z" id="hy-icon-ops-file-shiping-形状"></path>
9
+ <path d="M14.45,18.85 L19.9142857,16.0708333 L20.8857143,15.5875 C22.1,14.9833333 22.1,14.0166667 20.8857143,13.4125 L14.45,10.15 C13.8428571,9.90833333 13.3571429,10.15 13.3571429,10.7541667 L13.3571429,18.0041667 C13.3571429,18.85 13.8428571,19.0916667 14.45,18.85 L14.45,18.85 Z" id="hy-icon-ops-file-shiping-路径"></path>
10
+ </g>
11
+ </g>
12
+ </symbol>`,
13
+ };
@@ -0,0 +1,10 @@
1
+ export default {
2
+ id: 'hy-icon-ops-file-xls',
3
+ symbol: `<symbol id="hy-icon-ops-file-xls" viewBox="0 0 58 66">
4
+ <g id="hy-icon-ops-file-xls-wenjian/xls" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M6,-1.42108547e-14 L38.1788775,-1.0658141e-14 C39.2676382,-1.0658141e-14 40.3093555,0.443813394 41.0635932,1.2290046 L56.8542683,17.6677211 C57.5692562,18.4120517 57.968862,19.4039411 57.9695518,20.4360435 L57.9999987,59.9999987 C58.0022131,63.3137064 55.3177173,66.0017924 52.0040095,66.0040068 C52.002673,66.0040077 52.0013365,66.0040082 52,66.0040082 L6,66 C2.6862915,66 0,63.3137085 0,60 L8.8817842e-16,6 C8.8817842e-16,2.6862915 2.6862915,-1.42108547e-14 6,-1.42108547e-14 Z" id="hy-icon-ops-file-xls-矩形" fill-opacity="0.2" fill="#2DF2FF"></path>
6
+ <path d="M38.926,0.127454462 C38.9178745,0.135392444 38.9160286,4.06602284 38.9204623,11.9193456 L38.9204618,11.9193456 C38.9223232,16.314297 42.4692305,19.8847808 46.8640731,19.9157585 C54.2527726,19.966763 57.9465892,19.9945856 57.9455228,19.9992348 C57.9455228,17.1873618 53.0398112,13.6172005 49.3001134,9.74199573 C45.5604156,5.86679093 40.4684134,-0.230938485 38.926,0.127454462 Z" id="hy-icon-ops-file-xls-路径-2" fill-opacity="0.2" fill="#2DF2FF"></path>
7
+ <path d="M46.6428571,29 C47.3923864,29 48,29.6199134 48,30.3846154 L48,45.6153846 C48,46.3800866 47.3923864,47 46.6428571,47 L11.3571429,47 C10.6076136,47 10,46.3800866 10,45.6153846 L10,30.3846154 C10,29.6199134 10.6076136,29 11.3571429,29 L46.6428571,29 Z M28.3214286,32.4615385 L25.6071429,32.4615385 L25.6071429,43.5384615 L33.75,43.5384615 L33.75,40.7692308 L28.3214286,40.7692308 L28.3214286,32.4615385 Z M43.25,32.4615385 L36.6,32.4615385 C35.7755178,32.4615385 35.1071429,33.1434432 35.1071429,33.9846154 L35.1071429,37.8615385 L35.1152857,38.0276923 C35.1983852,38.8002206 35.8382535,39.3850146 36.6,39.3846154 L40.5357143,39.3846154 L40.5357143,40.7692308 L35.1071429,40.7692308 L35.1071429,43.5384615 L41.7571429,43.5384615 C42.1530732,43.5384615 42.5327872,43.377995 42.8127523,43.0923626 C43.0927173,42.8067303 43.25,42.4193297 43.25,42.0153846 L43.25,38.1384615 L43.2418571,37.9723077 C43.1587576,37.1997794 42.5188893,36.6149854 41.7571429,36.6153846 L37.8214286,36.6153846 L37.8214286,35.2307692 L43.25,35.2307692 L43.25,32.4615385 Z M18.0342857,32.4615385 L14.9305,32.4615385 L17.9474286,38 L14.9318571,43.5384615 L18.0356429,43.5384615 L19.5,40.8481538 L20.9616429,43.5356923 L24.0681429,43.5356923 L21.0525714,38 L24.0695,32.4615385 L20.963,32.4615385 L19.5,35.1476923 L18.0342857,32.4615385 Z M11.5,51 L46.5,51 C47.3284271,51 48,51.6715729 48,52.5 C48,53.3284271 47.3284271,54 46.5,54 L11.5,54 C10.6715729,54 10,53.3284271 10,52.5 C10,51.6715729 10.6715729,51 11.5,51 Z" id="hy-icon-ops-file-xls-形状结合" fill="#2DF2FF" fill-rule="nonzero"></path>
8
+ </g>
9
+ </symbol>`,
10
+ };
@@ -0,0 +1,10 @@
1
+ export default {
2
+ id: 'hy-icon-ops-file-yingping',
3
+ symbol: `<symbol id="hy-icon-ops-file-yingping" viewBox="0 0 58 66">
4
+ <g id="hy-icon-ops-file-yingping-wenjian/yingping" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M6,-1.42108547e-14 L38.1964704,-1.0658141e-14 C39.2748781,-1.0658141e-14 40.3075989,0.43543833 41.0604431,1.20757089 L56.8335533,17.384797 C57.5612654,18.1311535 57.9688726,19.1321059 57.9695797,20.1745129 L57.9999986,59.0224662 C58.0022463,62.336174 55.3177775,65.024287 52.0040698,65.0265346 C52.0027132,65.0265356 52.0013566,65.026536 52,65.026536 L6,65.0224676 C2.6862915,65.0224676 0,62.3361761 0,59.0224676 L0,6 C0,2.6862915 2.6862915,-1.42108547e-14 6,-1.42108547e-14 Z" id="hy-icon-ops-file-yingping-矩形" fill-opacity="0.2" fill="#2DF2FF"></path>
6
+ <path d="M42.8330714,24.7924895 C42.0826429,24.1570769 41.0577857,23.8879175 40.0280714,24.0427763 L22.3990714,26.74666 C20.3906429,27.0539195 18.8145,28.8581474 18.8145,30.8541051 L18.8145,44.7375324 C17.8788999,44.118355 16.7849162,43.7894193 15.6670714,43.7911731 C12.5366429,43.7924021 10,46.3008688 10,49.3968156 C10,52.4915334 12.5378571,55 15.6670714,55 C18.7962857,55 21.8701161,52.4927624 21.8701161,49.3968156 L21.8701161,36.9046594 L22.1195346,36.8640271 L41.1033481,33.7714067 L41.1033481,41.5059566 C40.1674022,40.8865495 39.1926895,40.5256796 38.0744315,40.5276732 C34.9452172,40.5276732 32.3587475,43.111515 32.3587475,46.2062328 C32.3587475,49.3009506 35.2464379,52.2220595 38.3756522,52.2220595 C41.5060808,52.2220595 44,49.3009506 44,46.2062328 L44,27.3771565 C44,26.3632001 43.575,25.420528 42.8330714,24.7924895 Z M15.6670714,52.5099689 C13.9306429,52.5099689 12.5184286,51.1137817 12.5184286,49.3968156 C12.5184286,47.6786204 13.9306429,46.2836622 15.6670714,46.2836622 C17.4035,46.2836622 18.8145,47.6786204 18.8145,49.3968156 C18.8145,51.1137817 17.4035,52.5099689 15.6670714,52.5099689 Z M21.9151548,33.9089888 L21.9151548,30.7123447 C21.9151548,29.9540282 22.5951548,29.1846504 23.3674405,29.0654337 L39.776102,26.5493209 C40.0881734,26.5026175 40.362602,26.5665275 40.5532449,26.7299895 C40.7426734,26.8897645 40.8422449,27.1294269 40.8422449,27.423167 L40.8422449,31.0069581 L21.9151548,33.9089888 Z M38.3329286,49.3181571 C36.5965,49.3181571 35.1855,47.9219699 35.1855,46.2050038 C35.1855,44.4880377 36.5965,43.0918504 38.3329286,43.0918504 C40.0693571,43.0918504 41.4815714,44.4880377 41.4815714,46.2050038 C41.4815714,47.9219699 40.0693571,49.3181571 38.3329286,49.3181571 Z" id="hy-icon-ops-file-yingping-形状" fill="#2DF2FF" fill-rule="nonzero"></path>
7
+ <path d="M38.926,0.127454462 C38.9178745,0.135392444 38.9160286,4.06602284 38.9204623,11.9193456 L38.9204618,11.9193456 C38.9223232,16.314297 42.4692305,19.8847808 46.8640731,19.9157585 C54.2527726,19.966763 57.9465892,19.9945856 57.9455228,19.9992348 C57.9455228,17.1873618 53.0398112,13.6172005 49.3001134,9.74199573 C45.5604156,5.86679093 40.4684134,-0.230938485 38.926,0.127454462 Z" id="hy-icon-ops-file-yingping-路径-2" fill-opacity="0.2" fill="#2DF2FF"></path>
8
+ </g>
9
+ </symbol>`,
10
+ };
package/lib/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.2.50";
3
+ const version = "0.2.52";
4
4
 
5
5
  exports.version = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-dispatch-ui-v3",
3
- "version": "0.2.51",
3
+ "version": "0.2.53",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "scripts": {