@ecan-bi/datav 1.1.78 → 1.1.79
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.
- package/dist/index.es.js +74 -74
- package/dist/index.umd.js +6 -6
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/table/table/Table.vue.d.ts +1 -1
- package/types/table/table/index.d.ts +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
1
|
+
/*! @ecan-bi/datav@1.1.79 */
|
|
2
2
|
import { watch as X, inject as U, computed as q, unref as A, watchEffect as uo, defineComponent as ee, shallowRef as vt, toRefs as Dn, onMounted as Ue, onUnmounted as ft, h as dt, nextTick as mt, createVNode as G, resolveComponent as V, openBlock as E, createElementBlock as O, createBlock as Re, renderSlot as gt, withCtx as Y, ref as M, normalizeStyle as B, createCommentVNode as pe, provide as $e, onBeforeUnmount as Tt, toDisplayString as he, Fragment as Me, renderList as De, createElementVNode as K, normalizeClass as Lt, pushScopeId as fo, popScopeId as mo, createSlots as On, resolveDynamicComponent as Rn, mergeProps as Fn, withModifiers as go, reactive as $n, createTextVNode as Ot, withDirectives as zn, vShow as Pn } from "vue";
|
|
3
3
|
import { throttle as Nn, init as Bn, use as qe, registerMap as Un } from "echarts/core";
|
|
4
4
|
import { addListener as Gn, removeListener as qn } from "resize-detector";
|
|
@@ -1519,13 +1519,13 @@ const Al = (e) => e.replace(/\\n/g, `
|
|
|
1519
1519
|
if (Array.isArray(f) && f.length > 0) {
|
|
1520
1520
|
const k = f.length;
|
|
1521
1521
|
for (let J = 0; J < k; J++) {
|
|
1522
|
-
const H = f[J] || {}, { label: z = "", name: P = "", show: F = !1, sort:
|
|
1522
|
+
const H = f[J] || {}, { label: z = "", name: P = "", show: F = !1, sort: W, customGroup: Q, conditions: se } = H;
|
|
1523
1523
|
if (F || k === 1) {
|
|
1524
1524
|
v = {
|
|
1525
1525
|
label: z,
|
|
1526
1526
|
columnName: P,
|
|
1527
1527
|
show: F,
|
|
1528
|
-
sort:
|
|
1528
|
+
sort: W,
|
|
1529
1529
|
customGroup: Q,
|
|
1530
1530
|
conditions: se
|
|
1531
1531
|
};
|
|
@@ -1537,13 +1537,13 @@ const Al = (e) => e.replace(/\\n/g, `
|
|
|
1537
1537
|
if (Array.isArray(s) && s.length > 0) {
|
|
1538
1538
|
const k = s.length;
|
|
1539
1539
|
for (let J = 0; J < k; J++) {
|
|
1540
|
-
const H = s[J] || {}, { label: z = "", name: P = "", show: F = !1, sort:
|
|
1540
|
+
const H = s[J] || {}, { label: z = "", name: P = "", show: F = !1, sort: W, customGroup: Q, conditions: se } = H;
|
|
1541
1541
|
if (F || k === 1) {
|
|
1542
1542
|
d = {
|
|
1543
1543
|
label: z,
|
|
1544
1544
|
columnName: P,
|
|
1545
1545
|
show: F,
|
|
1546
|
-
sort:
|
|
1546
|
+
sort: W,
|
|
1547
1547
|
customGroup: Q,
|
|
1548
1548
|
conditions: se
|
|
1549
1549
|
};
|
|
@@ -1747,14 +1747,14 @@ const El = /* @__PURE__ */ te(Ll, [["render", Ml], ["__scopeId", "data-v-242d350
|
|
|
1747
1747
|
emitEvent: (z, P) => {
|
|
1748
1748
|
if (z === "PAGE") {
|
|
1749
1749
|
const F = h.length;
|
|
1750
|
-
let
|
|
1750
|
+
let W = [];
|
|
1751
1751
|
if (F === 0)
|
|
1752
|
-
|
|
1752
|
+
W = [...C];
|
|
1753
1753
|
else {
|
|
1754
1754
|
const Q = h[F - 1];
|
|
1755
|
-
|
|
1755
|
+
W = [...m(Q)];
|
|
1756
1756
|
}
|
|
1757
|
-
|
|
1757
|
+
W.forEach((Q) => {
|
|
1758
1758
|
p.emit(Q, P);
|
|
1759
1759
|
});
|
|
1760
1760
|
} else
|
|
@@ -1770,14 +1770,14 @@ const El = /* @__PURE__ */ te(Ll, [["render", Ml], ["__scopeId", "data-v-242d350
|
|
|
1770
1770
|
const d = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), w = ({ requestFn: z = () => {
|
|
1771
1771
|
}, sortNum: P = 0, id: F = "" }) => {
|
|
1772
1772
|
if (d.has(P)) {
|
|
1773
|
-
const
|
|
1774
|
-
|
|
1773
|
+
const W = d.get(P);
|
|
1774
|
+
W == null || W.push(z);
|
|
1775
1775
|
} else
|
|
1776
1776
|
d.set(P, [z]);
|
|
1777
1777
|
g.set(F, z);
|
|
1778
1778
|
}, $ = (z) => new Promise((P, F) => {
|
|
1779
|
-
const
|
|
1780
|
-
Promise.all(
|
|
1779
|
+
const W = z.map((Q) => Q());
|
|
1780
|
+
Promise.all(W).then((Q) => {
|
|
1781
1781
|
P(Q);
|
|
1782
1782
|
}).catch((Q) => {
|
|
1783
1783
|
F(Q);
|
|
@@ -1795,20 +1795,20 @@ const El = /* @__PURE__ */ te(Ll, [["render", Ml], ["__scopeId", "data-v-242d350
|
|
|
1795
1795
|
}, k = (z) => new Promise(async (P, F) => {
|
|
1796
1796
|
if (z) {
|
|
1797
1797
|
if (typeof z == "string") {
|
|
1798
|
-
const
|
|
1799
|
-
if (typeof
|
|
1798
|
+
const W = g.get(z);
|
|
1799
|
+
if (typeof W == "function") {
|
|
1800
1800
|
const Q = Fe.interceptors.response.use((se) => (P(se), se), (se) => (F(se), Promise.reject(se)));
|
|
1801
|
-
|
|
1801
|
+
W(), Fe.interceptors.response.eject(Q);
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
1804
|
} else {
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1807
|
-
const Q =
|
|
1805
|
+
const W = Array.from(d);
|
|
1806
|
+
W.sort((se, He) => He[0] - se[0]);
|
|
1807
|
+
const Q = W.length;
|
|
1808
1808
|
try {
|
|
1809
1809
|
e.pageMode !== "design" && A(y) > 0 && await L();
|
|
1810
1810
|
for (let se = 0; se < Q; se++) {
|
|
1811
|
-
const He =
|
|
1811
|
+
const He = W[se][1];
|
|
1812
1812
|
await $(He);
|
|
1813
1813
|
}
|
|
1814
1814
|
} catch (se) {
|
|
@@ -3947,7 +3947,7 @@ const rr = ee({
|
|
|
3947
3947
|
let L = "", k = e.tooltipFormatter;
|
|
3948
3948
|
k === "" && (k = "{marker} {a} {c}");
|
|
3949
3949
|
for (let J = 0; J < $; J++) {
|
|
3950
|
-
const { marker: H, seriesName: z, name: P, value: F, data:
|
|
3950
|
+
const { marker: H, seriesName: z, name: P, value: F, data: W } = w[J] || {};
|
|
3951
3951
|
J === 0 && (L += `${P}<br/>`), L += de(
|
|
3952
3952
|
k,
|
|
3953
3953
|
{
|
|
@@ -3958,7 +3958,7 @@ const rr = ee({
|
|
|
3958
3958
|
a: z,
|
|
3959
3959
|
b: P,
|
|
3960
3960
|
c: F,
|
|
3961
|
-
...
|
|
3961
|
+
...W
|
|
3962
3962
|
}
|
|
3963
3963
|
},
|
|
3964
3964
|
{
|
|
@@ -4757,7 +4757,7 @@ const Sr = ee({
|
|
|
4757
4757
|
$ === "" && ($ = "{marker} {a} {c}");
|
|
4758
4758
|
const L = e.seriesTypes;
|
|
4759
4759
|
for (let k = 0; k < g; k++) {
|
|
4760
|
-
const J = L[k], { tooltipFormatter: H } = J || {}, { marker: z, seriesName: P, name: F, value:
|
|
4760
|
+
const J = L[k], { tooltipFormatter: H } = J || {}, { marker: z, seriesName: P, name: F, value: W, data: Q } = d[k] || {};
|
|
4761
4761
|
k === 0 && (w += `${F}<br/>`), w += de(
|
|
4762
4762
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
4763
4763
|
H || $,
|
|
@@ -4765,11 +4765,11 @@ const Sr = ee({
|
|
|
4765
4765
|
textData: {
|
|
4766
4766
|
marker: z,
|
|
4767
4767
|
name: F,
|
|
4768
|
-
value:
|
|
4768
|
+
value: W,
|
|
4769
4769
|
seriesName: P,
|
|
4770
4770
|
a: P,
|
|
4771
4771
|
b: F,
|
|
4772
|
-
c:
|
|
4772
|
+
c: W,
|
|
4773
4773
|
...Q
|
|
4774
4774
|
}
|
|
4775
4775
|
},
|
|
@@ -4828,13 +4828,13 @@ const Sr = ee({
|
|
|
4828
4828
|
const $ = w.dataset, L = [], k = $.length, J = e.seriesTypes;
|
|
4829
4829
|
for (let H = 0; H < k; H++) {
|
|
4830
4830
|
const z = J[H], { type: P, axisIndex: F } = z || {};
|
|
4831
|
-
let
|
|
4831
|
+
let W = {
|
|
4832
4832
|
type: P,
|
|
4833
4833
|
yAxisIndex: F,
|
|
4834
4834
|
...$[H]
|
|
4835
4835
|
};
|
|
4836
|
-
P === "line" && (
|
|
4837
|
-
...
|
|
4836
|
+
P === "line" && (W = {
|
|
4837
|
+
...W,
|
|
4838
4838
|
symbolSize: e.symbolSize,
|
|
4839
4839
|
smooth: e.smooth,
|
|
4840
4840
|
areaStyle: {
|
|
@@ -4843,10 +4843,10 @@ const Sr = ee({
|
|
|
4843
4843
|
lineStyle: {
|
|
4844
4844
|
width: e.lineStyleWidth
|
|
4845
4845
|
}
|
|
4846
|
-
}), P === "bar" && (
|
|
4847
|
-
...
|
|
4846
|
+
}), P === "bar" && (W = {
|
|
4847
|
+
...W,
|
|
4848
4848
|
barWidth: e.barWidth
|
|
4849
|
-
}), L.push(
|
|
4849
|
+
}), L.push(W);
|
|
4850
4850
|
}
|
|
4851
4851
|
n.value = L;
|
|
4852
4852
|
}, b = (d = [], g, w = !1) => {
|
|
@@ -5169,8 +5169,8 @@ const Wr = /* @__PURE__ */ te(_r, [["render", jr], ["__scopeId", "data-v-1550b11
|
|
|
5169
5169
|
let x;
|
|
5170
5170
|
const p = () => {
|
|
5171
5171
|
u.value = parseFloat(n) / parseFloat(l);
|
|
5172
|
-
const F = parseFloat(a) / parseFloat(i),
|
|
5173
|
-
c.value =
|
|
5172
|
+
const F = parseFloat(a) / parseFloat(i), W = document.body.offsetWidth, Q = document.body.offsetHeight;
|
|
5173
|
+
c.value = W * A(u), b.value = Q * F, r.value = `${A(u) * 100}%`, h.value = {
|
|
5174
5174
|
width: `${A(c)}px`,
|
|
5175
5175
|
height: `${A(b)}px`
|
|
5176
5176
|
}, f.value = {
|
|
@@ -5207,13 +5207,13 @@ const Wr = /* @__PURE__ */ te(_r, [["render", jr], ["__scopeId", "data-v-1550b11
|
|
|
5207
5207
|
},
|
|
5208
5208
|
popUseModalIds: () => {
|
|
5209
5209
|
},
|
|
5210
|
-
setModalModel: (F,
|
|
5210
|
+
setModalModel: (F, W) => {
|
|
5211
5211
|
}
|
|
5212
5212
|
}), J = () => {
|
|
5213
5213
|
const F = e.id;
|
|
5214
|
-
let
|
|
5214
|
+
let W = [];
|
|
5215
5215
|
const Q = e.componentList;
|
|
5216
|
-
console.log("componentList", Q), Array.isArray(Q) && (
|
|
5216
|
+
console.log("componentList", Q), Array.isArray(Q) && (W = Q.map((se) => se.id), $(F, [...new Set(W)]));
|
|
5217
5217
|
};
|
|
5218
5218
|
X(() => R.value, async (F) => {
|
|
5219
5219
|
F ? (s.value = !1, L(e.id), J(), await mt(() => {
|
|
@@ -5624,10 +5624,10 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5624
5624
|
}
|
|
5625
5625
|
}), a = q(() => e.scrollX), l = q(() => parseFloat(e.height) - A(n)), i = M([]), r = M([]), c = M([]), u = M([]), b = M(0), h = M(1), S = q(() => e.paginationPageSize), f = $n([]), s = (I = []) => {
|
|
5626
5626
|
if (Array.isArray(I) && I.length > 0) {
|
|
5627
|
-
const D = I.length,
|
|
5627
|
+
const D = I.length, j = e.columnsFixedNum;
|
|
5628
5628
|
for (let Z = 0; Z < D; Z++) {
|
|
5629
5629
|
const N = I[Z];
|
|
5630
|
-
Z <
|
|
5630
|
+
Z < j ? N.fixed = "left" : N.fixed = !1;
|
|
5631
5631
|
const {
|
|
5632
5632
|
cellAlign: oe = "center",
|
|
5633
5633
|
cellColor: ne,
|
|
@@ -5697,11 +5697,11 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5697
5697
|
});
|
|
5698
5698
|
const x = M({}), p = (I) => {
|
|
5699
5699
|
if (Array.isArray(I)) {
|
|
5700
|
-
const D = I.length,
|
|
5700
|
+
const D = I.length, j = f, Z = j.length, N = {};
|
|
5701
5701
|
for (let ne = 0; ne < D; ne++) {
|
|
5702
5702
|
const ue = I[ne];
|
|
5703
5703
|
for (let ge = 0; ge < Z; ge++) {
|
|
5704
|
-
const ce =
|
|
5704
|
+
const ce = j[ge];
|
|
5705
5705
|
if (N[ce])
|
|
5706
5706
|
N[ce].add(ue[ce]);
|
|
5707
5707
|
else {
|
|
@@ -5722,16 +5722,16 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5722
5722
|
X(() => [e.isReverse, i.value, r.value], () => {
|
|
5723
5723
|
const I = A(i), D = A(r);
|
|
5724
5724
|
if (p(D), e.isReverse) {
|
|
5725
|
-
const { columns:
|
|
5726
|
-
c.value =
|
|
5725
|
+
const { columns: j, dataSource: Z } = C(pt(I), pt(D));
|
|
5726
|
+
c.value = j, u.value = Z;
|
|
5727
5727
|
} else
|
|
5728
5728
|
c.value = I, u.value = D;
|
|
5729
5729
|
}, {
|
|
5730
5730
|
immediate: !0
|
|
5731
5731
|
});
|
|
5732
5732
|
const C = (I, D) => {
|
|
5733
|
-
const
|
|
5734
|
-
title:
|
|
5733
|
+
const j = I[0], Z = [{
|
|
5734
|
+
title: j.title,
|
|
5735
5735
|
dataIndex: "col0",
|
|
5736
5736
|
key: "col0",
|
|
5737
5737
|
align: "center"
|
|
@@ -5739,7 +5739,7 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5739
5739
|
for (let oe = 0; oe < D.length; oe++) {
|
|
5740
5740
|
const ne = D[oe], ue = "col" + (oe + 1);
|
|
5741
5741
|
Z.push({
|
|
5742
|
-
title: ne[
|
|
5742
|
+
title: ne[j.dataIndex],
|
|
5743
5743
|
dataIndex: ue,
|
|
5744
5744
|
key: ue,
|
|
5745
5745
|
align: "center"
|
|
@@ -5759,7 +5759,7 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5759
5759
|
dataSource: N
|
|
5760
5760
|
};
|
|
5761
5761
|
}, T = M(""), _ = _e(e), R = M(!1), y = async (I = !0, D = {}) => {
|
|
5762
|
-
var
|
|
5762
|
+
var j;
|
|
5763
5763
|
try {
|
|
5764
5764
|
I && (R.value = !0), A(T) && (D.orderCondition = A(T)), e.paginationShow && (D = {
|
|
5765
5765
|
pageNum: A(h),
|
|
@@ -5767,16 +5767,16 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5767
5767
|
layer: "1",
|
|
5768
5768
|
...D
|
|
5769
5769
|
});
|
|
5770
|
-
const Z = await _(D), { rows: N = [], total: oe = 0 } = ((
|
|
5770
|
+
const Z = await _(D), { rows: N = [], total: oe = 0 } = ((j = Z == null ? void 0 : Z.data) == null ? void 0 : j.data) || {};
|
|
5771
5771
|
b.value = oe, Array.isArray(N) && (r.value = N);
|
|
5772
5772
|
} catch (Z) {
|
|
5773
5773
|
console.error(Z);
|
|
5774
5774
|
} finally {
|
|
5775
5775
|
R.value = !1;
|
|
5776
5776
|
}
|
|
5777
|
-
}, v = ({ current: I }, D,
|
|
5778
|
-
if (h.value = I,
|
|
5779
|
-
const { field: Z, order: N } =
|
|
5777
|
+
}, v = ({ current: I }, D, j) => {
|
|
5778
|
+
if (h.value = I, j && Object.keys(j).length > 0) {
|
|
5779
|
+
const { field: Z, order: N } = j, ne = {
|
|
5780
5780
|
ascend: "asc",
|
|
5781
5781
|
descend: "desc"
|
|
5782
5782
|
}[N];
|
|
@@ -5799,13 +5799,13 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5799
5799
|
contrast: ut,
|
|
5800
5800
|
boolean: g
|
|
5801
5801
|
}[D](I) || "", $ = (I, D) => {
|
|
5802
|
-
const
|
|
5802
|
+
const j = parseFloat(I + "");
|
|
5803
5803
|
if (D !== "contrast")
|
|
5804
5804
|
return "";
|
|
5805
5805
|
switch (!0) {
|
|
5806
|
-
case
|
|
5806
|
+
case j >= 0:
|
|
5807
5807
|
return "goUp";
|
|
5808
|
-
case
|
|
5808
|
+
case j < 0:
|
|
5809
5809
|
return "goDown";
|
|
5810
5810
|
}
|
|
5811
5811
|
}, L = fe(e), { getGlobalModel: k, setGlobalModel: J } = U(ye, {
|
|
@@ -5818,23 +5818,23 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5818
5818
|
setGlobalModel: (I, D) => {
|
|
5819
5819
|
}
|
|
5820
5820
|
}), H = (I = [], D = []) => {
|
|
5821
|
-
const
|
|
5822
|
-
i.value = m(
|
|
5821
|
+
const j = I.map((Z) => ({ title: Z, dataIndex: Z, key: Z }));
|
|
5822
|
+
i.value = m(j), r.value = D;
|
|
5823
5823
|
}, z = nt(e), P = async () => {
|
|
5824
|
-
var I, D,
|
|
5824
|
+
var I, D, j, Z;
|
|
5825
5825
|
try {
|
|
5826
5826
|
R.value = !0;
|
|
5827
5827
|
const N = await z();
|
|
5828
|
-
H((D = (I = N == null ? void 0 : N.data) == null ? void 0 : I.data) == null ? void 0 : D.columns, (Z = (
|
|
5828
|
+
H((D = (I = N == null ? void 0 : N.data) == null ? void 0 : I.data) == null ? void 0 : D.columns, (Z = (j = N == null ? void 0 : N.data) == null ? void 0 : j.data) == null ? void 0 : Z.rows);
|
|
5829
5829
|
} catch (N) {
|
|
5830
5830
|
console.error(N);
|
|
5831
5831
|
} finally {
|
|
5832
5832
|
R.value = !1;
|
|
5833
5833
|
}
|
|
5834
|
-
}, F = M(-1),
|
|
5834
|
+
}, F = M(-1), W = (I, D) => ({
|
|
5835
5835
|
onClick: L("rowClick", () => {
|
|
5836
|
-
const
|
|
5837
|
-
J(
|
|
5836
|
+
const j = e.id, Z = k(j);
|
|
5837
|
+
J(j, { ...Z, RECORD: I }), F.value = D;
|
|
5838
5838
|
})
|
|
5839
5839
|
}), Q = (I = !0) => {
|
|
5840
5840
|
switch (e.dataType) {
|
|
@@ -5855,7 +5855,7 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5855
5855
|
});
|
|
5856
5856
|
const He = q(() => {
|
|
5857
5857
|
const I = A(c), D = [];
|
|
5858
|
-
let
|
|
5858
|
+
let j = 0;
|
|
5859
5859
|
for (let N = 0; N < I.length; N++) {
|
|
5860
5860
|
const oe = I[N], { isCalcTotal: ne } = oe;
|
|
5861
5861
|
e.isUseSeq && N === 0 ? D.push({
|
|
@@ -5865,11 +5865,11 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5865
5865
|
...oe,
|
|
5866
5866
|
index: N,
|
|
5867
5867
|
total: 0
|
|
5868
|
-
}),
|
|
5868
|
+
}), j++) : D.push({
|
|
5869
5869
|
...oe
|
|
5870
5870
|
});
|
|
5871
5871
|
}
|
|
5872
|
-
if (
|
|
5872
|
+
if (j === 0)
|
|
5873
5873
|
return [];
|
|
5874
5874
|
const Z = A(u);
|
|
5875
5875
|
for (let N = 0; N < D.length; N++) {
|
|
@@ -5899,7 +5899,7 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5899
5899
|
x: a,
|
|
5900
5900
|
y: l,
|
|
5901
5901
|
style: t,
|
|
5902
|
-
customRow:
|
|
5902
|
+
customRow: W,
|
|
5903
5903
|
pagination: d,
|
|
5904
5904
|
formatFn: w,
|
|
5905
5905
|
contrastClass: $,
|
|
@@ -5926,9 +5926,9 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5926
5926
|
useFilterOptions: (I) => {
|
|
5927
5927
|
const D = I.dataIndex;
|
|
5928
5928
|
if (typeof D == "string") {
|
|
5929
|
-
let
|
|
5929
|
+
let j = A(x)[D];
|
|
5930
5930
|
const Z = A(I.filterOptionsInputValue).trim();
|
|
5931
|
-
return Array.isArray(
|
|
5931
|
+
return Array.isArray(j) ? (j = j.filter((N) => typeof N.label == "string" ? N.label.toLowerCase().includes(Z.toLowerCase()) : !0), j) : [];
|
|
5932
5932
|
}
|
|
5933
5933
|
return [];
|
|
5934
5934
|
},
|
|
@@ -5957,16 +5957,16 @@ const fs = /* @__PURE__ */ te(cs, [["render", us], ["__scopeId", "data-v-19bc100
|
|
|
5957
5957
|
const Le = await _(Se);
|
|
5958
5958
|
D = ((Ee = (ce = Le == null ? void 0 : Le.data) == null ? void 0 : ce.data) == null ? void 0 : Ee.rows) || {};
|
|
5959
5959
|
}
|
|
5960
|
-
const
|
|
5961
|
-
|
|
5960
|
+
const j = A(c), Z = [], N = [];
|
|
5961
|
+
j == null || j.forEach((Se) => {
|
|
5962
5962
|
Z.push(Se.dataIndex), N.push(Se.title);
|
|
5963
5963
|
});
|
|
5964
5964
|
const oe = D.map((Se) => vo(Se, Z)), ne = lt.book_new(), ue = lt.aoa_to_sheet([N]), ge = lt.sheet_add_json(ue, oe, { skipHeader: !0, origin: "A2" });
|
|
5965
5965
|
lt.book_append_sheet(ne, ge, "sheet"), ra(ne, "表格数据.xlsx"), Be.success({ key: I, content: "导出成功" });
|
|
5966
5966
|
},
|
|
5967
|
-
handleProgressText: (I) => {
|
|
5968
|
-
const
|
|
5969
|
-
return isNaN(
|
|
5967
|
+
handleProgressText: (I, D = 2) => {
|
|
5968
|
+
const j = +I * 100;
|
|
5969
|
+
return isNaN(j) || j <= 0 ? 0 : j >= 100 ? 100 : j.toFixed(D);
|
|
5970
5970
|
}
|
|
5971
5971
|
};
|
|
5972
5972
|
}
|
|
@@ -6083,7 +6083,7 @@ function ks(e, o, t, n, a, l) {
|
|
|
6083
6083
|
style: B({
|
|
6084
6084
|
background: s.progressColor || "#1890ff",
|
|
6085
6085
|
height: s.progressWidth || "18px",
|
|
6086
|
-
width: `${e.handleProgressText(x)}%`
|
|
6086
|
+
width: `${e.handleProgressText(x, s.progressTextDecimalPlaces)}%`
|
|
6087
6087
|
})
|
|
6088
6088
|
}, null, 4),
|
|
6089
6089
|
K("div", {
|
|
@@ -6091,7 +6091,7 @@ function ks(e, o, t, n, a, l) {
|
|
|
6091
6091
|
style: B({
|
|
6092
6092
|
color: e.handleProgressText(x) < 100 ? s.progressTextColor || "#333" : s.progressFinishedTextColor || "#fff"
|
|
6093
6093
|
})
|
|
6094
|
-
}, he(e.handleProgressText(x)) + "% ", 5)
|
|
6094
|
+
}, he(e.handleProgressText(x, s.progressTextDecimalPlaces)) + "% ", 5)
|
|
6095
6095
|
])) : (E(), O("div", {
|
|
6096
6096
|
key: 3,
|
|
6097
6097
|
class: Lt([e.contrastClass(x, s.format)]),
|
|
@@ -6141,7 +6141,7 @@ function ks(e, o, t, n, a, l) {
|
|
|
6141
6141
|
}, 8, ["loading"])
|
|
6142
6142
|
], 4);
|
|
6143
6143
|
}
|
|
6144
|
-
const As = /* @__PURE__ */ te(hs, [["render", ks], ["__scopeId", "data-v-
|
|
6144
|
+
const As = /* @__PURE__ */ te(hs, [["render", ks], ["__scopeId", "data-v-a690fd8e"]]), _s = ae(As), In = {
|
|
6145
6145
|
...re,
|
|
6146
6146
|
mapJson: null,
|
|
6147
6147
|
data: [],
|