@das-fed/ui 6.4.0-dev.22 → 6.4.0-dev.24

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 (25) hide show
  1. package/esm-map.json +3 -1
  2. package/package.json +5 -5
  3. package/packages/business-components/index.d.ts +1 -0
  4. package/packages/business-components/index.js +1 -0
  5. package/packages/business-components/process-form/App.vue.d.ts +1 -0
  6. package/packages/business-components/process-form/index.d.ts +1 -0
  7. package/packages/business-components/process-form/index.js +991 -943
  8. package/packages/business-components/process-form/index.js.gz +0 -0
  9. package/packages/business-components/process-form/src/hooks/useSelector.d.ts +1 -1
  10. package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
  11. package/packages/business-components/process-form/style.css +1 -1
  12. package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +1 -172
  13. package/packages/business-components/process-search-form/index.js +236 -337
  14. package/packages/business-components/process-search-form/index.js.gz +0 -0
  15. package/packages/business-components/process-table/index.js +52 -52
  16. package/packages/business-components/process-table/index.js.gz +0 -0
  17. package/packages/business-components/process-table/src/App.vue.d.ts +1 -1
  18. package/packages/business-components/process-table/style.css +1 -1
  19. package/packages/business-components/upload-file/index.d.ts +87 -0
  20. package/packages/business-components/upload-file/index.js +111 -0
  21. package/packages/business-components/upload-file/index.js.gz +0 -0
  22. package/packages/business-components/upload-file/src/App.vue.d.ts +16 -0
  23. package/packages/business-components/upload-file/src/hooks/use-upload.d.ts +7 -0
  24. package/packages/business-components/upload-file/src/type.d.ts +51 -0
  25. package/packages/business-components/upload-file/style.css +1 -0
@@ -14,7 +14,7 @@ qt.post("/value/report/page");
14
14
  const Qt = Jt.get(""), kt = (e, t) => ({
15
15
  reportTableList: we(e)[t]("")
16
16
  });
17
- var pt = typeof global == "object" && global && global.Object === Object && global, Wt = typeof self == "object" && self && self.Object === Object && self, x = pt || Wt || Function("return this")(), R = x.Symbol, dt = Object.prototype, Yt = dt.hasOwnProperty, Xt = dt.toString, Y = R ? R.toStringTag : void 0;
17
+ var ft = typeof global == "object" && global && global.Object === Object && global, Wt = typeof self == "object" && self && self.Object === Object && self, x = ft || Wt || Function("return this")(), R = x.Symbol, dt = Object.prototype, Yt = dt.hasOwnProperty, Xt = dt.toString, Y = R ? R.toStringTag : void 0;
18
18
  function Zt(e) {
19
19
  var t = Yt.call(e, Y), r = e[Y];
20
20
  try {
@@ -55,11 +55,11 @@ var me = x["__core-js_shared__"], Ve = function() {
55
55
  function lr(e) {
56
56
  return !!Ve && Ve in e;
57
57
  }
58
- var ur = Function.prototype, fr = ur.toString;
58
+ var ur = Function.prototype, pr = ur.toString;
59
59
  function L(e) {
60
60
  if (e != null) {
61
61
  try {
62
- return fr.call(e);
62
+ return pr.call(e);
63
63
  } catch {
64
64
  }
65
65
  try {
@@ -69,8 +69,8 @@ function L(e) {
69
69
  }
70
70
  return "";
71
71
  }
72
- var pr = /[\\^$.*+?()[\]{}|]/g, dr = /^\[object .+?Constructor\]$/, gr = Function.prototype, br = Object.prototype, hr = gr.toString, yr = br.hasOwnProperty, vr = RegExp(
73
- "^" + hr.call(yr).replace(pr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
72
+ var fr = /[\\^$.*+?()[\]{}|]/g, dr = /^\[object .+?Constructor\]$/, gr = Function.prototype, br = Object.prototype, hr = gr.toString, yr = br.hasOwnProperty, vr = RegExp(
73
+ "^" + hr.call(yr).replace(fr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
74
74
  );
75
75
  function mr(e) {
76
76
  if (!ne(e) || lr(e))
@@ -175,26 +175,26 @@ var Tt = Object.prototype, Fr = Tt.hasOwnProperty, Ir = Tt.propertyIsEnumerable,
175
175
  function Mr() {
176
176
  return !1;
177
177
  }
178
- var _t = typeof exports == "object" && exports && !exports.nodeType && exports, qe = _t && typeof module == "object" && module && !module.nodeType && module, Br = qe && qe.exports === _t, Je = Br ? x.Buffer : void 0, Lr = Je ? Je.isBuffer : void 0, St = Lr || Mr, zr = "[object Arguments]", Ur = "[object Array]", Rr = "[object Boolean]", Vr = "[object Date]", Gr = "[object Error]", Hr = "[object Function]", Kr = "[object Map]", qr = "[object Number]", Jr = "[object Object]", Qr = "[object RegExp]", kr = "[object Set]", Wr = "[object String]", Yr = "[object WeakMap]", Xr = "[object ArrayBuffer]", Zr = "[object DataView]", en = "[object Float32Array]", tn = "[object Float64Array]", rn = "[object Int8Array]", nn = "[object Int16Array]", an = "[object Int32Array]", on = "[object Uint8Array]", sn = "[object Uint8ClampedArray]", cn = "[object Uint16Array]", ln = "[object Uint32Array]", p = {};
179
- p[en] = p[tn] = p[rn] = p[nn] = p[an] = p[on] = p[sn] = p[cn] = p[ln] = !0;
180
- p[zr] = p[Ur] = p[Xr] = p[Rr] = p[Zr] = p[Vr] = p[Gr] = p[Hr] = p[Kr] = p[qr] = p[Jr] = p[Qr] = p[kr] = p[Wr] = p[Yr] = !1;
178
+ var _t = typeof exports == "object" && exports && !exports.nodeType && exports, qe = _t && typeof module == "object" && module && !module.nodeType && module, Br = qe && qe.exports === _t, Je = Br ? x.Buffer : void 0, Lr = Je ? Je.isBuffer : void 0, St = Lr || Mr, zr = "[object Arguments]", Ur = "[object Array]", Rr = "[object Boolean]", Vr = "[object Date]", Gr = "[object Error]", Hr = "[object Function]", Kr = "[object Map]", qr = "[object Number]", Jr = "[object Object]", Qr = "[object RegExp]", kr = "[object Set]", Wr = "[object String]", Yr = "[object WeakMap]", Xr = "[object ArrayBuffer]", Zr = "[object DataView]", en = "[object Float32Array]", tn = "[object Float64Array]", rn = "[object Int8Array]", nn = "[object Int16Array]", an = "[object Int32Array]", on = "[object Uint8Array]", sn = "[object Uint8ClampedArray]", cn = "[object Uint16Array]", ln = "[object Uint32Array]", f = {};
179
+ f[en] = f[tn] = f[rn] = f[nn] = f[an] = f[on] = f[sn] = f[cn] = f[ln] = !0;
180
+ f[zr] = f[Ur] = f[Xr] = f[Rr] = f[Zr] = f[Vr] = f[Gr] = f[Hr] = f[Kr] = f[qr] = f[Jr] = f[Qr] = f[kr] = f[Wr] = f[Yr] = !1;
181
181
  function un(e) {
182
- return re(e) && vt(e.length) && !!p[te(e)];
182
+ return re(e) && vt(e.length) && !!f[te(e)];
183
183
  }
184
184
  function Ce(e) {
185
185
  return function(t) {
186
186
  return e(t);
187
187
  };
188
188
  }
189
- var jt = typeof exports == "object" && exports && !exports.nodeType && exports, X = jt && typeof module == "object" && module && !module.nodeType && module, fn = X && X.exports === jt, Te = fn && pt.process, V = function() {
189
+ var jt = typeof exports == "object" && exports && !exports.nodeType && exports, X = jt && typeof module == "object" && module && !module.nodeType && module, pn = X && X.exports === jt, Te = pn && ft.process, V = function() {
190
190
  try {
191
191
  var e = X && X.require && X.require("util").types;
192
192
  return e || Te && Te.binding && Te.binding("util");
193
193
  } catch {
194
194
  }
195
- }(), Qe = V && V.isTypedArray, pn = Qe ? Ce(Qe) : un, dn = Object.prototype, gn = dn.hasOwnProperty;
195
+ }(), Qe = V && V.isTypedArray, fn = Qe ? Ce(Qe) : un, dn = Object.prototype, gn = dn.hasOwnProperty;
196
196
  function Ot(e, t) {
197
- var r = $e(e), n = !r && Nr(e), c = !r && !n && St(e), s = !r && !n && !c && pn(e), a = r || n || c || s, y = a ? Dr(e.length, String) : [], l = y.length;
197
+ var r = $e(e), n = !r && Nr(e), c = !r && !n && St(e), s = !r && !n && !c && fn(e), a = r || n || c || s, y = a ? Dr(e.length, String) : [], l = y.length;
198
198
  for (var g in e)
199
199
  (t || gn.call(e, g)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
200
200
  (g == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -330,22 +330,22 @@ function Vn(e) {
330
330
  var t = typeof e;
331
331
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
332
332
  }
333
- function fe(e, t) {
333
+ function pe(e, t) {
334
334
  var r = e.__data__;
335
335
  return Vn(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
336
336
  }
337
337
  function Gn(e) {
338
- var t = fe(this, e).delete(e);
338
+ var t = pe(this, e).delete(e);
339
339
  return this.size -= t ? 1 : 0, t;
340
340
  }
341
341
  function Hn(e) {
342
- return fe(this, e).get(e);
342
+ return pe(this, e).get(e);
343
343
  }
344
344
  function Kn(e) {
345
- return fe(this, e).has(e);
345
+ return pe(this, e).has(e);
346
346
  }
347
347
  function qn(e, t) {
348
- var r = fe(this, e), n = r.size;
348
+ var r = pe(this, e), n = r.size;
349
349
  return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
350
350
  }
351
351
  function G(e) {
@@ -448,12 +448,12 @@ function la(e) {
448
448
  function ua(e) {
449
449
  return Dt(e, Pe, Pt);
450
450
  }
451
- var Se = z(x, "DataView"), je = z(x, "Promise"), Oe = z(x, "Set"), Ze = "[object Map]", fa = "[object Object]", et = "[object Promise]", tt = "[object Set]", rt = "[object WeakMap]", nt = "[object DataView]", pa = L(Se), da = L(ee), ga = L(je), ba = L(Oe), ha = L(_e), E = te;
451
+ var Se = z(x, "DataView"), je = z(x, "Promise"), Oe = z(x, "Set"), Ze = "[object Map]", pa = "[object Object]", et = "[object Promise]", tt = "[object Set]", rt = "[object WeakMap]", nt = "[object DataView]", fa = L(Se), da = L(ee), ga = L(je), ba = L(Oe), ha = L(_e), E = te;
452
452
  (Se && E(new Se(new ArrayBuffer(1))) != nt || ee && E(new ee()) != Ze || je && E(je.resolve()) != et || Oe && E(new Oe()) != tt || _e && E(new _e()) != rt) && (E = function(e) {
453
- var t = te(e), r = t == fa ? e.constructor : void 0, n = r ? L(r) : "";
453
+ var t = te(e), r = t == pa ? e.constructor : void 0, n = r ? L(r) : "";
454
454
  if (n)
455
455
  switch (n) {
456
- case pa:
456
+ case fa:
457
457
  return nt;
458
458
  case da:
459
459
  return Ze;
@@ -538,9 +538,9 @@ var it = V && V.isMap, Qa = it ? Ce(it) : Ja, ka = "[object Set]";
538
538
  function Wa(e) {
539
539
  return re(e) && E(e) == ka;
540
540
  }
541
- var ct = V && V.isSet, Ya = ct ? Ce(ct) : Wa, Xa = 1, Za = 2, eo = 4, Et = "[object Arguments]", to = "[object Array]", ro = "[object Boolean]", no = "[object Date]", ao = "[object Error]", Ft = "[object Function]", oo = "[object GeneratorFunction]", so = "[object Map]", io = "[object Number]", It = "[object Object]", co = "[object RegExp]", lo = "[object Set]", uo = "[object String]", fo = "[object Symbol]", po = "[object WeakMap]", go = "[object ArrayBuffer]", bo = "[object DataView]", ho = "[object Float32Array]", yo = "[object Float64Array]", vo = "[object Int8Array]", mo = "[object Int16Array]", To = "[object Int32Array]", _o = "[object Uint8Array]", So = "[object Uint8ClampedArray]", jo = "[object Uint16Array]", Oo = "[object Uint32Array]", u = {};
542
- u[Et] = u[to] = u[go] = u[bo] = u[ro] = u[no] = u[ho] = u[yo] = u[vo] = u[mo] = u[To] = u[so] = u[io] = u[It] = u[co] = u[lo] = u[uo] = u[fo] = u[_o] = u[So] = u[jo] = u[Oo] = !0;
543
- u[ao] = u[Ft] = u[po] = !1;
541
+ var ct = V && V.isSet, Ya = ct ? Ce(ct) : Wa, Xa = 1, Za = 2, eo = 4, Et = "[object Arguments]", to = "[object Array]", ro = "[object Boolean]", no = "[object Date]", ao = "[object Error]", Ft = "[object Function]", oo = "[object GeneratorFunction]", so = "[object Map]", io = "[object Number]", It = "[object Object]", co = "[object RegExp]", lo = "[object Set]", uo = "[object String]", po = "[object Symbol]", fo = "[object WeakMap]", go = "[object ArrayBuffer]", bo = "[object DataView]", ho = "[object Float32Array]", yo = "[object Float64Array]", vo = "[object Int8Array]", mo = "[object Int16Array]", To = "[object Int32Array]", _o = "[object Uint8Array]", So = "[object Uint8ClampedArray]", jo = "[object Uint16Array]", Oo = "[object Uint32Array]", u = {};
542
+ u[Et] = u[to] = u[go] = u[bo] = u[ro] = u[no] = u[ho] = u[yo] = u[vo] = u[mo] = u[To] = u[so] = u[io] = u[It] = u[co] = u[lo] = u[uo] = u[po] = u[_o] = u[So] = u[jo] = u[Oo] = !0;
543
+ u[ao] = u[Ft] = u[fo] = !1;
544
544
  function se(e, t, r, n, c, s) {
545
545
  var a, y = t & Xa, l = t & Za, g = t & eo;
546
546
  if (a !== void 0)
@@ -603,8 +603,8 @@ const Ao = (e, t) => {
603
603
  });
604
604
  oe(
605
605
  () => e.searchQuerys,
606
- (f) => {
607
- m.value.querys = f, t("getSearchQuery", m.value);
606
+ (p) => {
607
+ m.value.querys = p, t("getSearchQuery", m.value);
608
608
  },
609
609
  {
610
610
  deep: !0,
@@ -612,8 +612,8 @@ const Ao = (e, t) => {
612
612
  }
613
613
  ), oe(
614
614
  () => e.permissionQuery,
615
- (f) => {
616
- m.value.permissionFilterTypes = f, t("getSearchQuery", m.value);
615
+ (p) => {
616
+ m.value.permissionFilterTypes = p, t("getSearchQuery", m.value);
617
617
  },
618
618
  {
619
619
  deep: !0,
@@ -621,15 +621,15 @@ const Ao = (e, t) => {
621
621
  }
622
622
  );
623
623
  const O = async () => {
624
- const [f, C] = await y(m.value, { params: { project: r } }).run();
625
- f || (v.value = C.data, S.value = C.totalCount);
624
+ const [p, C] = await y(m.value, { params: { project: r } }).run();
625
+ p || (v.value = C.data, S.value = C.totalCount);
626
626
  }, w = async () => {
627
627
  var I;
628
- const f = {
628
+ const p = {
629
629
  flowKey: e.flowKey,
630
630
  needDisplayFileds: e.needDisplayFileds,
631
631
  project: r
632
- }, [C, M] = await Qt(f).run();
632
+ }, [C, M] = await Qt(p).run();
633
633
  if (C) return;
634
634
  const h = M.value;
635
635
  if (!h) return;
@@ -668,31 +668,31 @@ const Ao = (e, t) => {
668
668
  } else
669
669
  c.value = ie(n.value), a.value = ie(s.value);
670
670
  }
671
- }, A = (f) => {
672
- j.value = f, m.value.pageBean.page = f, O();
673
- }, pe = (f) => {
674
- b.value = f, m.value.pageBean.pageSize = f, O();
675
- }, de = (f) => {
676
- const C = f.order === "ascending" ? "ASC" : "DESC", M = l.value.find((h) => {
677
- if (h.property === f.prop)
671
+ }, A = (p) => {
672
+ j.value = p, m.value.pageBean.page = p, O();
673
+ }, fe = (p) => {
674
+ b.value = p, m.value.pageBean.pageSize = p, O();
675
+ }, de = (p) => {
676
+ const C = p.order === "ascending" ? "ASC" : "DESC", M = l.value.find((h) => {
677
+ if (h.property === p.prop)
678
678
  return h.direction = C, h;
679
679
  });
680
680
  m.value.sorter = [M], t("getSearchQuery", m.value), O();
681
- }, K = T(!0), ge = (f, C, M) => {
682
- const h = f.button_list ? JSON.parse(f.button_list) : [], d = T([]);
681
+ }, K = T(!0), ge = (p, C, M) => {
682
+ const h = p.button_list ? JSON.parse(p.button_list) : [], d = T([]);
683
683
  if (h && h.length > 0 ? d.value = h.map((i) => ({
684
684
  label: i.name,
685
685
  value: i.alias
686
686
  })) : d.value = [], e.customOperation) {
687
- const i = typeof e.customOperation == "function" ? e.customOperation(f, C, M) || [] : e.customOperation || [];
687
+ const i = typeof e.customOperation == "function" ? e.customOperation(p, C, M) || [] : e.customOperation || [];
688
688
  d.value.unshift(...i);
689
689
  }
690
690
  return d.value;
691
691
  }, N = T(!0);
692
692
  return oe(
693
693
  () => c.value,
694
- (f) => {
695
- f.length > 0 ? (K.value = !0, N.value = e.selection) : (K.value = !1, N.value = !1);
694
+ (p) => {
695
+ p.length > 0 ? (K.value = !0, N.value = e.selection) : (K.value = !1, N.value = !1);
696
696
  },
697
697
  {
698
698
  immediate: !0,
@@ -713,7 +713,7 @@ const Ao = (e, t) => {
713
713
  pageIndex: j,
714
714
  pageSize: b,
715
715
  handleCurrentPageChange: A,
716
- handlePageSizeChange: pe,
716
+ handlePageSizeChange: fe,
717
717
  sortChange: de,
718
718
  customSelectionOptions: N,
719
719
  showOperationColumn: K
@@ -792,9 +792,9 @@ const Ao = (e, t) => {
792
792
  __proto__: null,
793
793
  default: xo
794
794
  }, Symbol.toStringTag, { value: "Module" })), ce = {}, Do = /^\.\/(.+)\/index\.ts$/, lt = /* @__PURE__ */ Object.assign({ "./phone/index.ts": Po });
795
- var ft;
795
+ var pt;
796
796
  for (const e in lt) {
797
- const t = lt[e], r = (ft = e.match(Do)) == null ? void 0 : ft[1];
797
+ const t = lt[e], r = (pt = e.match(Do)) == null ? void 0 : pt[1];
798
798
  ce[r] = t.default;
799
799
  }
800
800
  const Eo = (e, t) => {
@@ -841,11 +841,11 @@ const Eo = (e, t) => {
841
841
  pageIndex: O,
842
842
  pageSize: w,
843
843
  handleCurrentPageChange: A,
844
- handlePageSizeChange: pe,
844
+ handlePageSizeChange: fe,
845
845
  sortChange: de,
846
846
  customSelectionOptions: K,
847
847
  showOperationColumn: ge
848
- } = Ao(n, c), { showSettingDialog: N, cancelTabel: q, resetDefault: J, showAll: f, setTable: C, tableSetting: M } = Co(
848
+ } = Ao(n, c), { showSettingDialog: N, cancelTabel: q, resetDefault: J, showAll: p, setTable: C, tableSetting: M } = Co(
849
849
  n,
850
850
  v,
851
851
  j,
@@ -853,7 +853,7 @@ const Eo = (e, t) => {
853
853
  s
854
854
  );
855
855
  return Bt(async () => {
856
- await b(), await g();
856
+ await b();
857
857
  }), t({
858
858
  reqTableList: g
859
859
  }), (h, d) => (W(), be(
@@ -873,7 +873,7 @@ const Eo = (e, t) => {
873
873
  "page-size": o(w),
874
874
  "onUpdate:pageSize": d[1] || (d[1] = (i) => he(w) ? w.value = i : null),
875
875
  onCurrentPageChange: o(A),
876
- onSizeChange: o(pe),
876
+ onSizeChange: o(fe),
877
877
  onTableSetting: o(M),
878
878
  onSortChange: o(de)
879
879
  }), {
@@ -976,7 +976,7 @@ const Eo = (e, t) => {
976
976
  U("div", {
977
977
  class: "text-btn",
978
978
  onClick: d[3] || (d[3] = //@ts-ignore
979
- (...i) => o(f) && o(f)(...i)),
979
+ (...i) => o(p) && o(p)(...i)),
980
980
  style: { "padding-left": "20px" }
981
981
  }, "全部隐藏")
982
982
  ]),
@@ -1026,7 +1026,7 @@ const Eo = (e, t) => {
1026
1026
  for (const [n, c] of t)
1027
1027
  r[n] = c;
1028
1028
  return r;
1029
- }, zo = /* @__PURE__ */ Lo(Bo, [["__scopeId", "data-v-4886f62d"]]), Wo = Nt(zo), Yo = () => T(null);
1029
+ }, zo = /* @__PURE__ */ Lo(Bo, [["__scopeId", "data-v-310a2310"]]), Wo = Nt(zo), Yo = () => T(null);
1030
1030
  export {
1031
1031
  Wo as DasProcessTable,
1032
1032
  Yo as DasProcessTableRef,
@@ -179,7 +179,7 @@ declare function __VLS_template(): {
179
179
  default: string;
180
180
  };
181
181
  tableLayout: {
182
- type: import("vue").PropType<"auto" | "fixed">;
182
+ type: import("vue" /**__VLS_emit,__VLS_3,tableSetting*/).PropType<"auto" | "fixed">;
183
183
  default: string;
184
184
  };
185
185
  scrollbarAlwaysOn: {
@@ -1 +1 @@
1
- .das-process-table[data-v-4886f62d]{width:100%;height:100%}.das-process-table .setting-top[data-v-4886f62d]{border-bottom:1px solid #e5e5e5}.das-process-table .setting-top .setting-top-content[data-v-4886f62d]{width:88px;height:32px;line-height:32px;text-align:center;background:#fff;font-size:12px;color:#5582f3;letter-spacing:0;font-weight:400;border-bottom:2px solid #5582f3}.das-process-table .operate[data-v-4886f62d]{display:flex;justify-content:flex-end;align-items:center;height:40px}.das-process-table .operate .text-btn[data-v-4886f62d]{font-size:14px;color:#5582f3;letter-spacing:0;line-height:21px;font-weight:400;cursor:pointer}.das-process-table[data-v-4886f62d] .das-ui-switch{display:block}.no-header-column[data-v-4886f62d] .el-table td.el-table__cell,.no-header-column[data-v-4886f62d] .el-table th.el-table__cell.is-leaf{border-bottom:none}
1
+ .das-process-table[data-v-310a2310]{width:100%;height:100%}.das-process-table .setting-top[data-v-310a2310]{border-bottom:1px solid #e5e5e5}.das-process-table .setting-top .setting-top-content[data-v-310a2310]{width:88px;height:32px;line-height:32px;text-align:center;background:#fff;font-size:12px;color:#5582f3;letter-spacing:0;font-weight:400;border-bottom:2px solid #5582f3}.das-process-table .operate[data-v-310a2310]{display:flex;justify-content:flex-end;align-items:center;height:40px}.das-process-table .operate .text-btn[data-v-310a2310]{font-size:14px;color:#5582f3;letter-spacing:0;line-height:21px;font-weight:400;cursor:pointer}.das-process-table[data-v-310a2310] .das-ui-switch{display:block}.no-header-column[data-v-310a2310] .el-table td.el-table__cell,.no-header-column[data-v-310a2310] .el-table th.el-table__cell.is-leaf{border-bottom:none}
@@ -0,0 +1,87 @@
1
+ declare const DasBusinessUploadFile: import("@das-fed/utils").SFCWithInstall<import("vue").DefineComponent<import("./src/type.js").Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
2
+ "update:modelValue": (val: string) => any;
3
+ "upload-success": (file: import("ant-design-vue").UploadFile<any>, url: string) => any;
4
+ }, string, import("vue").PublicProps, Readonly<import("./src/type.js").Props> & Readonly<{
5
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
6
+ "onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
7
+ }>, {
8
+ type: "input" | "image";
9
+ minioTokenApi: string;
10
+ imageWidth: string;
11
+ imageHeight: string;
12
+ inputProps: Record<any, any>;
13
+ imageProps: Record<any, any>;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>>;
15
+ /** 获取组件实例 */
16
+ declare const DasBusinessUploadFileRef: () => import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./src/type.js").Props> & Readonly<{
17
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
18
+ "onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
19
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
+ "update:modelValue": (val: string) => any;
21
+ "upload-success": (file: import("ant-design-vue").UploadFile<any>, url: string) => any;
22
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("./src/type.js").Props> & Readonly<{
23
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
24
+ "onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
25
+ }>, {
26
+ type: "input" | "image";
27
+ minioTokenApi: string;
28
+ imageWidth: string;
29
+ imageHeight: string;
30
+ inputProps: Record<any, any>;
31
+ imageProps: Record<any, any>;
32
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
33
+ P: {};
34
+ B: {};
35
+ D: {};
36
+ C: {};
37
+ M: {};
38
+ Defaults: {};
39
+ }, Readonly<import("./src/type.js").Props> & Readonly<{
40
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
41
+ "onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
42
+ }>, {}, {}, {}, {}, {
43
+ type: "input" | "image";
44
+ minioTokenApi: string;
45
+ imageWidth: string;
46
+ imageHeight: string;
47
+ inputProps: Record<any, any>;
48
+ imageProps: Record<any, any>;
49
+ }> | null, import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./src/type.js").Props> & Readonly<{
50
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
51
+ "onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
52
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
53
+ "update:modelValue": (val: string) => any;
54
+ "upload-success": (file: import("ant-design-vue").UploadFile<any>, url: string) => any;
55
+ }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("./src/type.js").Props> & Readonly<{
56
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
57
+ "onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
58
+ }>, {
59
+ type: "input" | "image";
60
+ minioTokenApi: string;
61
+ imageWidth: string;
62
+ imageHeight: string;
63
+ inputProps: Record<any, any>;
64
+ imageProps: Record<any, any>;
65
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
66
+ P: {};
67
+ B: {};
68
+ D: {};
69
+ C: {};
70
+ M: {};
71
+ Defaults: {};
72
+ }, Readonly<import("./src/type.js").Props> & Readonly<{
73
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
74
+ "onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
75
+ }>, {}, {}, {}, {}, {
76
+ type: "input" | "image";
77
+ minioTokenApi: string;
78
+ imageWidth: string;
79
+ imageHeight: string;
80
+ inputProps: Record<any, any>;
81
+ imageProps: Record<any, any>;
82
+ }> | null>;
83
+ export { DasBusinessUploadFile, DasBusinessUploadFileRef };
84
+ declare const _default: {
85
+ name: string;
86
+ };
87
+ export default _default;
@@ -0,0 +1,111 @@
1
+ import '@das-fed/ui/packages/business-components/upload-file/style.css';
2
+ import { ref as V, computed as h, defineComponent as z, useCssVars as y, openBlock as f, createElementBlock as c, createVNode as g, unref as d, mergeProps as v, isRef as w, createCommentVNode as U, normalizeClass as k, createElementVNode as F } from "vue";
3
+ import { withInstall as b } from "@das-fed/utils/with-install/index";
4
+ import { DasInput as B } from "@das-fed/ui/packages/components/input/index";
5
+ import { DasUpload as S } from "@das-fed/ui/packages/components/upload/index";
6
+ import { useCalculateSize as D, minioUpload as P, DasImageViewer as x } from "@das-fed/ui/packages/components/image-viewer/index";
7
+ import { i18n as C } from "@das-fed/web/packages/i18n/index";
8
+ import { DasMessage as N } from "@das-fed/ui/packages/components/message/index";
9
+ const I = (i, n) => {
10
+ const a = V(!1), { size2B: r } = D(), { upload: u } = P(i), m = (s) => {
11
+ if (i.maxSize) {
12
+ const { finalSize: e, sizeText: t } = r(i.maxSize);
13
+ if (s.size > e) {
14
+ const o = C(`上传的文件大小不能超过${t}`).value;
15
+ return N.warning(o), !1;
16
+ }
17
+ }
18
+ return !0;
19
+ }, p = h({
20
+ get: () => i.modelValue,
21
+ set: (s) => n("update:modelValue", s)
22
+ });
23
+ return {
24
+ loading: a,
25
+ imgUrl: p,
26
+ uploadFile: async (s) => {
27
+ if (a.value = !0, m(s)) {
28
+ const e = await u(s);
29
+ p.value = e, n("upload-success", s, e);
30
+ }
31
+ a.value = !1;
32
+ }
33
+ };
34
+ }, A = { class: "das-business-file-upload" }, H = {
35
+ key: 0,
36
+ class: "input-box"
37
+ }, W = { class: "upload-box" }, E = /* @__PURE__ */ z({
38
+ inheritAttrs: !1,
39
+ __name: "App",
40
+ props: {
41
+ modelValue: {},
42
+ width: {},
43
+ isView: { type: Boolean },
44
+ type: { default: "input" },
45
+ imageWidth: { default: "100px" },
46
+ imageHeight: { default: "100px" },
47
+ maxSize: {},
48
+ baseUrl: {},
49
+ serviceName: {},
50
+ pathPrefix: {},
51
+ bucketName: {},
52
+ minioTokenApi: { default: "token" },
53
+ inputProps: { default: () => ({}) },
54
+ imageProps: { default: () => ({}) }
55
+ },
56
+ emits: ["update:modelValue", "upload-success"],
57
+ setup(i, { emit: n }) {
58
+ y((e) => ({
59
+ "66b28a84": m.value,
60
+ "52afe674": e.imageHeight
61
+ }));
62
+ const a = i, r = n, u = V([]), m = h(() => (a == null ? void 0 : a.width) ?? "100%"), { loading: p, imgUrl: l, uploadFile: s } = I(a, r);
63
+ return (e, t) => (f(), c("div", A, [
64
+ e.type === "input" ? (f(), c("div", H, [
65
+ g(d(B), v({
66
+ width: "100%",
67
+ modelValue: d(l),
68
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => w(l) ? l.value = o : null),
69
+ "is-view": e.isView
70
+ }, e.inputProps), null, 16, ["modelValue", "is-view"])
71
+ ])) : U("v-if", !0),
72
+ e.type === "image" ? (f(), c(
73
+ "div",
74
+ {
75
+ key: 1,
76
+ class: k(["image-box", e.isView ? "is-view" : ""])
77
+ },
78
+ [
79
+ g(d(x), v({
80
+ style: { width: e.imageWidth, height: e.imageHeight },
81
+ modelValue: d(l),
82
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => w(l) ? l.value = o : null),
83
+ status: "info",
84
+ "is-view": !0
85
+ }, e.imageProps), null, 16, ["style", "modelValue"])
86
+ ],
87
+ 2
88
+ /* CLASS */
89
+ )) : U("v-if", !0),
90
+ F("div", W, [
91
+ g(d(S), v({
92
+ modelValue: u.value,
93
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => u.value = o),
94
+ draggle: !1,
95
+ onFileUpload: d(s),
96
+ "is-view": e.isView
97
+ }, e.$attrs), null, 16, ["modelValue", "onFileUpload", "is-view"])
98
+ ])
99
+ ]));
100
+ }
101
+ }), M = (i, n) => {
102
+ const a = i.__vccOpts || i;
103
+ for (const [r, u] of n)
104
+ a[r] = u;
105
+ return a;
106
+ }, R = /* @__PURE__ */ M(E, [["__scopeId", "data-v-57c87228"]]), G = b(R), J = () => V(null), K = { name: "复合型文件上传 upload-file" };
107
+ export {
108
+ G as DasBusinessUploadFile,
109
+ J as DasBusinessUploadFileRef,
110
+ K as default
111
+ };
@@ -0,0 +1,16 @@
1
+ import type { Props } from './type';
2
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "update:modelValue": (val: string) => any;
4
+ "upload-success": (file: import("ant-design-vue").UploadFile<any>, url: string) => any;
5
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
6
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
7
+ "onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
8
+ }>, {
9
+ type: "input" | "image";
10
+ minioTokenApi: string;
11
+ imageWidth: string;
12
+ imageHeight: string;
13
+ inputProps: Record<any, any>;
14
+ imageProps: Record<any, any>;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import type { Props, Emits } from '../type';
2
+ import type { UploadFile } from 'ant-design-vue';
3
+ export declare const useUpload: (props: Props, emit: Emits) => {
4
+ loading: import("vue").Ref<boolean, boolean>;
5
+ imgUrl: import("vue").WritableComputedRef<string, string>;
6
+ uploadFile: (file: UploadFile) => Promise<void>;
7
+ };
@@ -0,0 +1,51 @@
1
+ import type { UploadFile } from 'ant-design-vue'
2
+
3
+ export interface Props {
4
+ modelValue: string
5
+
6
+
7
+ width?: string
8
+
9
+
10
+ isView?: boolean
11
+
12
+
13
+ type?: 'input' | 'image'
14
+
15
+
16
+ imageWidth?: string
17
+
18
+
19
+ imageHeight?: string
20
+
21
+
22
+ maxSize?: number | string
23
+
24
+
25
+ baseUrl?: string
26
+
27
+
28
+ serviceName?: string
29
+
30
+
31
+ pathPrefix?: string
32
+
33
+
34
+ bucketName?: string
35
+
36
+
37
+ minioTokenApi?: string
38
+
39
+
40
+ inputProps?: Record<any, any>
41
+
42
+
43
+ imageProps?: Record<any, any>
44
+ }
45
+
46
+ export interface Emits {
47
+ (e: 'update:modelValue', val: string): void
48
+
49
+
50
+ (e: 'upload-success', file: UploadFile, url: string): void
51
+ }
@@ -0,0 +1 @@
1
+ .das-business-file-upload[data-v-57c87228]{display:flex;align-items:center;width:var(--66b28a84)}.das-business-file-upload .input-box[data-v-57c87228]{flex:1;min-width:0;padding-right:20px;box-sizing:border-box}.das-business-file-upload .image-box[data-v-57c87228]{position:relative;padding-right:60px}.das-business-file-upload .image-box[data-v-57c87228]:not(.is-view):after{position:absolute;display:block;content:"";height:calc(var(--52afe674) - 10px);width:1px;right:30px;top:50%;transform:translateY(-50%);background-color:#d9d9d9}