cloud-ui-cqw 0.0.13 → 0.0.14
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/cloud-ui-cqw.es.js +186 -172
- package/dist/cloud-ui-cqw.umd.js +2 -2
- package/package.json +1 -1
package/dist/cloud-ui-cqw.es.js
CHANGED
|
@@ -62,7 +62,7 @@ const Fe = /* @__PURE__ */ N({
|
|
|
62
62
|
isShowExtra: i = !1,
|
|
63
63
|
extraIcon: w = "",
|
|
64
64
|
extraDisabled: D = !1,
|
|
65
|
-
okText:
|
|
65
|
+
okText: A = "确定",
|
|
66
66
|
extraText: B = "下一步",
|
|
67
67
|
cancelText: _ = "取消",
|
|
68
68
|
className: E = "",
|
|
@@ -70,8 +70,8 @@ const Fe = /* @__PURE__ */ N({
|
|
|
70
70
|
width: U = "default",
|
|
71
71
|
disabled: H = !1,
|
|
72
72
|
size: te = "small",
|
|
73
|
-
okOtherProp:
|
|
74
|
-
extraOtherProp:
|
|
73
|
+
okOtherProp: v = {},
|
|
74
|
+
extraOtherProp: k = {}
|
|
75
75
|
} = this.props;
|
|
76
76
|
return {
|
|
77
77
|
1: l(d("a-modal"), L({
|
|
@@ -88,15 +88,15 @@ const Fe = /* @__PURE__ */ N({
|
|
|
88
88
|
onClick: h,
|
|
89
89
|
disabled: D,
|
|
90
90
|
loading: p
|
|
91
|
-
},
|
|
91
|
+
}, k), {
|
|
92
92
|
default: () => [B, w]
|
|
93
93
|
}), $ && l(d("a-button"), L({
|
|
94
94
|
type: "primary",
|
|
95
95
|
onClick: c,
|
|
96
96
|
loading: s,
|
|
97
97
|
disabled: H
|
|
98
|
-
},
|
|
99
|
-
default: () => [
|
|
98
|
+
}, v), ve(A) ? A : {
|
|
99
|
+
default: () => [A]
|
|
100
100
|
})])
|
|
101
101
|
}, this.props, {
|
|
102
102
|
size: "",
|
|
@@ -136,8 +136,8 @@ const Fe = /* @__PURE__ */ N({
|
|
|
136
136
|
type: "primary",
|
|
137
137
|
onClick: c,
|
|
138
138
|
loading: s
|
|
139
|
-
}, ve(
|
|
140
|
-
default: () => [
|
|
139
|
+
}, ve(A) ? A : {
|
|
140
|
+
default: () => [A]
|
|
141
141
|
})])
|
|
142
142
|
}, this.props, {
|
|
143
143
|
class: `bpy-modal ${e[te]?.[t]} ${E}`,
|
|
@@ -1041,7 +1041,7 @@ function Yn(e, t) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
At(un.primary);
|
|
1043
1043
|
var G = function(t, n) {
|
|
1044
|
-
var r, o = ut({}, t, n.attrs), s = o.class, p = o.icon, u = o.spin, c = o.rotate, h = o.tabindex, a = o.twoToneColor, y = o.onClick, $ = Bn(o, In), i = $t(), w = i.prefixCls, D = i.rootClassName,
|
|
1044
|
+
var r, o = ut({}, t, n.attrs), s = o.class, p = o.icon, u = o.spin, c = o.rotate, h = o.tabindex, a = o.twoToneColor, y = o.onClick, $ = Bn(o, In), i = $t(), w = i.prefixCls, D = i.rootClassName, A = (r = {}, de(r, D.value, !!D.value), de(r, w.value, !0), de(r, "".concat(w.value, "-").concat(p.name), !!p.name), de(r, "".concat(w.value, "-spin"), !!u || p.name === "loading"), r), B = h;
|
|
1045
1045
|
B === void 0 && y && (B = -1);
|
|
1046
1046
|
var _ = c ? {
|
|
1047
1047
|
msTransform: "rotate(".concat(c, "deg)"),
|
|
@@ -1052,7 +1052,7 @@ var G = function(t, n) {
|
|
|
1052
1052
|
"aria-label": p.name
|
|
1053
1053
|
}, $, {
|
|
1054
1054
|
onClick: y,
|
|
1055
|
-
class: [
|
|
1055
|
+
class: [A, s],
|
|
1056
1056
|
tabindex: B
|
|
1057
1057
|
}), [l(ae, {
|
|
1058
1058
|
icon: p,
|
|
@@ -1366,10 +1366,10 @@ const sr = /* @__PURE__ */ N({
|
|
|
1366
1366
|
const y = new ResizeObserver((i) => {
|
|
1367
1367
|
i.forEach((w) => {
|
|
1368
1368
|
const D = w.target, {
|
|
1369
|
-
width:
|
|
1369
|
+
width: A,
|
|
1370
1370
|
height: B
|
|
1371
1371
|
} = D.getBoundingClientRect(), _ = o.labelWidth > 200 ? 200 : o.labelWidth;
|
|
1372
|
-
o.otherContentWidth = o.descriptionsColumn == 3 ? `${Math.floor(
|
|
1372
|
+
o.otherContentWidth = o.descriptionsColumn == 3 ? `${Math.floor(A / 3) - _}px` : null;
|
|
1373
1373
|
});
|
|
1374
1374
|
}), $ = document.querySelector(".defaultDescriptions");
|
|
1375
1375
|
$ && y.observe($);
|
|
@@ -1733,19 +1733,19 @@ function hr() {
|
|
|
1733
1733
|
(function(n, r) {
|
|
1734
1734
|
e.exports = r();
|
|
1735
1735
|
})(fr, (function() {
|
|
1736
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", p = "second", u = "minute", c = "hour", h = "day", a = "week", y = "month", $ = "quarter", i = "year", w = "date", D = "Invalid Date",
|
|
1736
|
+
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", p = "second", u = "minute", c = "hour", h = "day", a = "week", y = "month", $ = "quarter", i = "year", w = "date", D = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, _ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(S) {
|
|
1737
1737
|
var g = ["th", "st", "nd", "rd"], f = S % 100;
|
|
1738
1738
|
return "[" + S + (g[(f - 20) % 10] || g[f] || g[0]) + "]";
|
|
1739
1739
|
} }, E = function(S, g, f) {
|
|
1740
|
-
var
|
|
1741
|
-
return !
|
|
1740
|
+
var m = String(S);
|
|
1741
|
+
return !m || m.length >= g ? S : "" + Array(g + 1 - m.length).join(f) + S;
|
|
1742
1742
|
}, R = { s: E, z: function(S) {
|
|
1743
|
-
var g = -S.utcOffset(), f = Math.abs(g),
|
|
1744
|
-
return (g <= 0 ? "+" : "-") + E(
|
|
1743
|
+
var g = -S.utcOffset(), f = Math.abs(g), m = Math.floor(f / 60), b = f % 60;
|
|
1744
|
+
return (g <= 0 ? "+" : "-") + E(m, 2, "0") + ":" + E(b, 2, "0");
|
|
1745
1745
|
}, m: function S(g, f) {
|
|
1746
1746
|
if (g.date() < f.date()) return -S(f, g);
|
|
1747
|
-
var
|
|
1748
|
-
return +(-(
|
|
1747
|
+
var m = 12 * (f.year() - g.year()) + (f.month() - g.month()), b = g.clone().add(m, y), x = f - b < 0, O = g.clone().add(m + (x ? -1 : 1), y);
|
|
1748
|
+
return +(-(m + (f - b) / (x ? b - O : O - b)) || 0);
|
|
1749
1749
|
}, a: function(S) {
|
|
1750
1750
|
return S < 0 ? Math.ceil(S) || 0 : Math.floor(S);
|
|
1751
1751
|
}, p: function(S) {
|
|
@@ -1754,9 +1754,9 @@ function hr() {
|
|
|
1754
1754
|
return S === void 0;
|
|
1755
1755
|
} }, U = "en", H = {};
|
|
1756
1756
|
H[U] = _;
|
|
1757
|
-
var te = "$isDayjsObject",
|
|
1758
|
-
return S instanceof
|
|
1759
|
-
},
|
|
1757
|
+
var te = "$isDayjsObject", v = function(S) {
|
|
1758
|
+
return S instanceof M || !(!S || !S[te]);
|
|
1759
|
+
}, k = function S(g, f, m) {
|
|
1760
1760
|
var b;
|
|
1761
1761
|
if (!g) return U;
|
|
1762
1762
|
if (typeof g == "string") {
|
|
@@ -1768,31 +1768,31 @@ function hr() {
|
|
|
1768
1768
|
var T = g.name;
|
|
1769
1769
|
H[T] = g, b = T;
|
|
1770
1770
|
}
|
|
1771
|
-
return !
|
|
1772
|
-
},
|
|
1773
|
-
if (
|
|
1771
|
+
return !m && b && (U = b), b || !m && U;
|
|
1772
|
+
}, P = function(S, g) {
|
|
1773
|
+
if (v(S)) return S.clone();
|
|
1774
1774
|
var f = typeof g == "object" ? g : {};
|
|
1775
|
-
return f.date = S, f.args = arguments, new
|
|
1775
|
+
return f.date = S, f.args = arguments, new M(f);
|
|
1776
1776
|
}, C = R;
|
|
1777
|
-
C.l =
|
|
1778
|
-
return
|
|
1777
|
+
C.l = k, C.i = v, C.w = function(S, g) {
|
|
1778
|
+
return P(S, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
1779
1779
|
};
|
|
1780
|
-
var
|
|
1780
|
+
var M = (function() {
|
|
1781
1781
|
function S(f) {
|
|
1782
|
-
this.$L =
|
|
1782
|
+
this.$L = k(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[te] = !0;
|
|
1783
1783
|
}
|
|
1784
1784
|
var g = S.prototype;
|
|
1785
1785
|
return g.parse = function(f) {
|
|
1786
|
-
this.$d = (function(
|
|
1787
|
-
var b =
|
|
1786
|
+
this.$d = (function(m) {
|
|
1787
|
+
var b = m.date, x = m.utc;
|
|
1788
1788
|
if (b === null) return /* @__PURE__ */ new Date(NaN);
|
|
1789
1789
|
if (C.u(b)) return /* @__PURE__ */ new Date();
|
|
1790
1790
|
if (b instanceof Date) return new Date(b);
|
|
1791
1791
|
if (typeof b == "string" && !/Z$/i.test(b)) {
|
|
1792
|
-
var O = b.match(
|
|
1792
|
+
var O = b.match(A);
|
|
1793
1793
|
if (O) {
|
|
1794
|
-
var T = O[2] - 1 || 0,
|
|
1795
|
-
return x ? new Date(Date.UTC(O[1], T, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0,
|
|
1794
|
+
var T = O[2] - 1 || 0, j = (O[7] || "0").substring(0, 3);
|
|
1795
|
+
return x ? new Date(Date.UTC(O[1], T, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, j)) : new Date(O[1], T, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, j);
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
1798
|
return new Date(b);
|
|
@@ -1804,24 +1804,24 @@ function hr() {
|
|
|
1804
1804
|
return C;
|
|
1805
1805
|
}, g.isValid = function() {
|
|
1806
1806
|
return this.$d.toString() !== D;
|
|
1807
|
-
}, g.isSame = function(f,
|
|
1808
|
-
var b =
|
|
1809
|
-
return this.startOf(
|
|
1810
|
-
}, g.isAfter = function(f,
|
|
1811
|
-
return
|
|
1812
|
-
}, g.isBefore = function(f,
|
|
1813
|
-
return this.endOf(
|
|
1814
|
-
}, g.$g = function(f,
|
|
1815
|
-
return C.u(f) ? this[
|
|
1807
|
+
}, g.isSame = function(f, m) {
|
|
1808
|
+
var b = P(f);
|
|
1809
|
+
return this.startOf(m) <= b && b <= this.endOf(m);
|
|
1810
|
+
}, g.isAfter = function(f, m) {
|
|
1811
|
+
return P(f) < this.startOf(m);
|
|
1812
|
+
}, g.isBefore = function(f, m) {
|
|
1813
|
+
return this.endOf(m) < P(f);
|
|
1814
|
+
}, g.$g = function(f, m, b) {
|
|
1815
|
+
return C.u(f) ? this[m] : this.set(b, f);
|
|
1816
1816
|
}, g.unix = function() {
|
|
1817
1817
|
return Math.floor(this.valueOf() / 1e3);
|
|
1818
1818
|
}, g.valueOf = function() {
|
|
1819
1819
|
return this.$d.getTime();
|
|
1820
|
-
}, g.startOf = function(f,
|
|
1821
|
-
var b = this, x = !!C.u(
|
|
1820
|
+
}, g.startOf = function(f, m) {
|
|
1821
|
+
var b = this, x = !!C.u(m) || m, O = C.p(f), T = function(le, Y) {
|
|
1822
1822
|
var ne = C.w(b.$u ? Date.UTC(b.$y, Y, le) : new Date(b.$y, Y, le), b);
|
|
1823
1823
|
return x ? ne : ne.endOf(h);
|
|
1824
|
-
},
|
|
1824
|
+
}, j = function(le, Y) {
|
|
1825
1825
|
return C.w(b.toDate()[le].apply(b.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Y)), b);
|
|
1826
1826
|
}, z = this.$W, W = this.$M, J = this.$D, se = "set" + (this.$u ? "UTC" : "");
|
|
1827
1827
|
switch (O) {
|
|
@@ -1834,49 +1834,49 @@ function hr() {
|
|
|
1834
1834
|
return T(x ? J - ue : J + (6 - ue), W);
|
|
1835
1835
|
case h:
|
|
1836
1836
|
case w:
|
|
1837
|
-
return
|
|
1837
|
+
return j(se + "Hours", 0);
|
|
1838
1838
|
case c:
|
|
1839
|
-
return
|
|
1839
|
+
return j(se + "Minutes", 1);
|
|
1840
1840
|
case u:
|
|
1841
|
-
return
|
|
1841
|
+
return j(se + "Seconds", 2);
|
|
1842
1842
|
case p:
|
|
1843
|
-
return
|
|
1843
|
+
return j(se + "Milliseconds", 3);
|
|
1844
1844
|
default:
|
|
1845
1845
|
return this.clone();
|
|
1846
1846
|
}
|
|
1847
1847
|
}, g.endOf = function(f) {
|
|
1848
1848
|
return this.startOf(f, !1);
|
|
1849
|
-
}, g.$set = function(f,
|
|
1850
|
-
var b, x = C.p(f), O = "set" + (this.$u ? "UTC" : ""), T = (b = {}, b[h] = O + "Date", b[w] = O + "Date", b[y] = O + "Month", b[i] = O + "FullYear", b[c] = O + "Hours", b[u] = O + "Minutes", b[p] = O + "Seconds", b[s] = O + "Milliseconds", b)[x],
|
|
1849
|
+
}, g.$set = function(f, m) {
|
|
1850
|
+
var b, x = C.p(f), O = "set" + (this.$u ? "UTC" : ""), T = (b = {}, b[h] = O + "Date", b[w] = O + "Date", b[y] = O + "Month", b[i] = O + "FullYear", b[c] = O + "Hours", b[u] = O + "Minutes", b[p] = O + "Seconds", b[s] = O + "Milliseconds", b)[x], j = x === h ? this.$D + (m - this.$W) : m;
|
|
1851
1851
|
if (x === y || x === i) {
|
|
1852
1852
|
var z = this.clone().set(w, 1);
|
|
1853
|
-
z.$d[T](
|
|
1854
|
-
} else T && this.$d[T](
|
|
1853
|
+
z.$d[T](j), z.init(), this.$d = z.set(w, Math.min(this.$D, z.daysInMonth())).$d;
|
|
1854
|
+
} else T && this.$d[T](j);
|
|
1855
1855
|
return this.init(), this;
|
|
1856
|
-
}, g.set = function(f,
|
|
1857
|
-
return this.clone().$set(f,
|
|
1856
|
+
}, g.set = function(f, m) {
|
|
1857
|
+
return this.clone().$set(f, m);
|
|
1858
1858
|
}, g.get = function(f) {
|
|
1859
1859
|
return this[C.p(f)]();
|
|
1860
|
-
}, g.add = function(f,
|
|
1860
|
+
}, g.add = function(f, m) {
|
|
1861
1861
|
var b, x = this;
|
|
1862
1862
|
f = Number(f);
|
|
1863
|
-
var O = C.p(
|
|
1864
|
-
var J =
|
|
1863
|
+
var O = C.p(m), T = function(W) {
|
|
1864
|
+
var J = P(x);
|
|
1865
1865
|
return C.w(J.date(J.date() + Math.round(W * f)), x);
|
|
1866
1866
|
};
|
|
1867
1867
|
if (O === y) return this.set(y, this.$M + f);
|
|
1868
1868
|
if (O === i) return this.set(i, this.$y + f);
|
|
1869
1869
|
if (O === h) return T(1);
|
|
1870
1870
|
if (O === a) return T(7);
|
|
1871
|
-
var
|
|
1871
|
+
var j = (b = {}, b[u] = r, b[c] = o, b[p] = n, b)[O] || 1, z = this.$d.getTime() + f * j;
|
|
1872
1872
|
return C.w(z, this);
|
|
1873
|
-
}, g.subtract = function(f,
|
|
1874
|
-
return this.add(-1 * f,
|
|
1873
|
+
}, g.subtract = function(f, m) {
|
|
1874
|
+
return this.add(-1 * f, m);
|
|
1875
1875
|
}, g.format = function(f) {
|
|
1876
|
-
var
|
|
1876
|
+
var m = this, b = this.$locale();
|
|
1877
1877
|
if (!this.isValid()) return b.invalidDate || D;
|
|
1878
|
-
var x = f || "YYYY-MM-DDTHH:mm:ssZ", O = C.z(this), T = this.$H,
|
|
1879
|
-
return Y && (Y[ne] || Y(
|
|
1878
|
+
var x = f || "YYYY-MM-DDTHH:mm:ssZ", O = C.z(this), T = this.$H, j = this.$m, z = this.$M, W = b.weekdays, J = b.months, se = b.meridiem, oe = function(Y, ne, ce, ye) {
|
|
1879
|
+
return Y && (Y[ne] || Y(m, x)) || ce[ne].slice(0, ye);
|
|
1880
1880
|
}, ue = function(Y) {
|
|
1881
1881
|
return C.s(T % 12 || 12, Y, "0");
|
|
1882
1882
|
}, le = se || function(Y, ne, ce) {
|
|
@@ -1887,9 +1887,9 @@ function hr() {
|
|
|
1887
1887
|
return ne || (function(ce) {
|
|
1888
1888
|
switch (ce) {
|
|
1889
1889
|
case "YY":
|
|
1890
|
-
return String(
|
|
1890
|
+
return String(m.$y).slice(-2);
|
|
1891
1891
|
case "YYYY":
|
|
1892
|
-
return C.s(
|
|
1892
|
+
return C.s(m.$y, 4, "0");
|
|
1893
1893
|
case "M":
|
|
1894
1894
|
return z + 1;
|
|
1895
1895
|
case "MM":
|
|
@@ -1899,17 +1899,17 @@ function hr() {
|
|
|
1899
1899
|
case "MMMM":
|
|
1900
1900
|
return oe(J, z);
|
|
1901
1901
|
case "D":
|
|
1902
|
-
return
|
|
1902
|
+
return m.$D;
|
|
1903
1903
|
case "DD":
|
|
1904
|
-
return C.s(
|
|
1904
|
+
return C.s(m.$D, 2, "0");
|
|
1905
1905
|
case "d":
|
|
1906
|
-
return String(
|
|
1906
|
+
return String(m.$W);
|
|
1907
1907
|
case "dd":
|
|
1908
|
-
return oe(b.weekdaysMin,
|
|
1908
|
+
return oe(b.weekdaysMin, m.$W, W, 2);
|
|
1909
1909
|
case "ddd":
|
|
1910
|
-
return oe(b.weekdaysShort,
|
|
1910
|
+
return oe(b.weekdaysShort, m.$W, W, 3);
|
|
1911
1911
|
case "dddd":
|
|
1912
|
-
return W[
|
|
1912
|
+
return W[m.$W];
|
|
1913
1913
|
case "H":
|
|
1914
1914
|
return String(T);
|
|
1915
1915
|
case "HH":
|
|
@@ -1919,19 +1919,19 @@ function hr() {
|
|
|
1919
1919
|
case "hh":
|
|
1920
1920
|
return ue(2);
|
|
1921
1921
|
case "a":
|
|
1922
|
-
return le(T,
|
|
1922
|
+
return le(T, j, !0);
|
|
1923
1923
|
case "A":
|
|
1924
|
-
return le(T,
|
|
1924
|
+
return le(T, j, !1);
|
|
1925
1925
|
case "m":
|
|
1926
|
-
return String(
|
|
1926
|
+
return String(j);
|
|
1927
1927
|
case "mm":
|
|
1928
|
-
return C.s(
|
|
1928
|
+
return C.s(j, 2, "0");
|
|
1929
1929
|
case "s":
|
|
1930
|
-
return String(
|
|
1930
|
+
return String(m.$s);
|
|
1931
1931
|
case "ss":
|
|
1932
|
-
return C.s(
|
|
1932
|
+
return C.s(m.$s, 2, "0");
|
|
1933
1933
|
case "SSS":
|
|
1934
|
-
return C.s(
|
|
1934
|
+
return C.s(m.$ms, 3, "0");
|
|
1935
1935
|
case "Z":
|
|
1936
1936
|
return O;
|
|
1937
1937
|
}
|
|
@@ -1940,9 +1940,9 @@ function hr() {
|
|
|
1940
1940
|
}));
|
|
1941
1941
|
}, g.utcOffset = function() {
|
|
1942
1942
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1943
|
-
}, g.diff = function(f,
|
|
1944
|
-
var x, O = this, T = C.p(
|
|
1945
|
-
return C.m(O,
|
|
1943
|
+
}, g.diff = function(f, m, b) {
|
|
1944
|
+
var x, O = this, T = C.p(m), j = P(f), z = (j.utcOffset() - this.utcOffset()) * r, W = this - j, J = function() {
|
|
1945
|
+
return C.m(O, j);
|
|
1946
1946
|
};
|
|
1947
1947
|
switch (T) {
|
|
1948
1948
|
case i:
|
|
@@ -1977,9 +1977,9 @@ function hr() {
|
|
|
1977
1977
|
return this.endOf(y).$D;
|
|
1978
1978
|
}, g.$locale = function() {
|
|
1979
1979
|
return H[this.$L];
|
|
1980
|
-
}, g.locale = function(f,
|
|
1980
|
+
}, g.locale = function(f, m) {
|
|
1981
1981
|
if (!f) return this.$L;
|
|
1982
|
-
var b = this.clone(), x =
|
|
1982
|
+
var b = this.clone(), x = k(f, m, !0);
|
|
1983
1983
|
return x && (b.$L = x), b;
|
|
1984
1984
|
}, g.clone = function() {
|
|
1985
1985
|
return C.w(this.$d, this);
|
|
@@ -1992,16 +1992,16 @@ function hr() {
|
|
|
1992
1992
|
}, g.toString = function() {
|
|
1993
1993
|
return this.$d.toUTCString();
|
|
1994
1994
|
}, S;
|
|
1995
|
-
})(), Z =
|
|
1996
|
-
return
|
|
1995
|
+
})(), Z = M.prototype;
|
|
1996
|
+
return P.prototype = Z, [["$ms", s], ["$s", p], ["$m", u], ["$H", c], ["$W", h], ["$M", y], ["$y", i], ["$D", w]].forEach((function(S) {
|
|
1997
1997
|
Z[S[1]] = function(g) {
|
|
1998
1998
|
return this.$g(g, S[0], S[1]);
|
|
1999
1999
|
};
|
|
2000
|
-
})),
|
|
2001
|
-
return S.$i || (S(g,
|
|
2002
|
-
},
|
|
2003
|
-
return
|
|
2004
|
-
},
|
|
2000
|
+
})), P.extend = function(S, g) {
|
|
2001
|
+
return S.$i || (S(g, M, P), S.$i = !0), P;
|
|
2002
|
+
}, P.locale = k, P.isDayjs = v, P.unix = function(S) {
|
|
2003
|
+
return P(1e3 * S);
|
|
2004
|
+
}, P.en = H[U], P.Ls = H, P.p = {}, P;
|
|
2005
2005
|
}));
|
|
2006
2006
|
})(Oe)), Oe.exports;
|
|
2007
2007
|
}
|
|
@@ -2033,9 +2033,9 @@ function vr(e) {
|
|
|
2033
2033
|
}));
|
|
2034
2034
|
y = [...$, ...w];
|
|
2035
2035
|
const D = 7 - (y.length % 7 || 7);
|
|
2036
|
-
let
|
|
2036
|
+
let A = ee(h).add(1, "month").format("YYYY-MM");
|
|
2037
2037
|
const B = Pe(D).map((_, E) => ({
|
|
2038
|
-
date:
|
|
2038
|
+
date: A + "-" + String(E + 1).padStart(2, "0"),
|
|
2039
2039
|
type: "next"
|
|
2040
2040
|
}));
|
|
2041
2041
|
return y = y.concat(B), yr(y);
|
|
@@ -2082,7 +2082,7 @@ const mr = /* @__PURE__ */ N({
|
|
|
2082
2082
|
};
|
|
2083
2083
|
ge(() => e.selValue, (i) => {
|
|
2084
2084
|
if (!i) return;
|
|
2085
|
-
const w = o.value.findIndex((
|
|
2085
|
+
const w = o.value.findIndex((A) => A[0].date === i[0] && A[6].date === i[1]), D = i[0].slice(0, 7);
|
|
2086
2086
|
u.value = [D, w];
|
|
2087
2087
|
}, {
|
|
2088
2088
|
immediate: !0
|
|
@@ -2303,8 +2303,8 @@ const mr = /* @__PURE__ */ N({
|
|
|
2303
2303
|
let i = a?.options.map((w) => w.id);
|
|
2304
2304
|
a?.mode === "multiple" && n[a?.prop]?.forEach((w, D) => {
|
|
2305
2305
|
if (!i.includes(w)) {
|
|
2306
|
-
const
|
|
2307
|
-
n[a?.prop].splice(
|
|
2306
|
+
const A = n[a?.prop].findIndex((B) => B == w);
|
|
2307
|
+
n[a?.prop].splice(A, 1);
|
|
2308
2308
|
}
|
|
2309
2309
|
}), a.hasOwnProperty("mode") || i.includes(n[a?.prop]) || (n[a?.prop] = null);
|
|
2310
2310
|
} else if (a.type === "inpSelect")
|
|
@@ -3061,14 +3061,23 @@ const Or = [{
|
|
|
3061
3061
|
}, {
|
|
3062
3062
|
default: () => [e.text],
|
|
3063
3063
|
icon: e.icon ? () => e.icon : null
|
|
3064
|
+
}), s = l(d("a-button"), {
|
|
3065
|
+
style: {
|
|
3066
|
+
marginLeft: "8px"
|
|
3067
|
+
},
|
|
3068
|
+
type: e.type,
|
|
3069
|
+
disabled: e.disabled
|
|
3070
|
+
}, {
|
|
3071
|
+
default: () => [e.text],
|
|
3072
|
+
icon: e.icon ? () => e.icon : null
|
|
3064
3073
|
});
|
|
3065
3074
|
return e.isPopUp ? l(d("a-popconfirm"), {
|
|
3066
3075
|
title: t,
|
|
3067
3076
|
"ok-text": n,
|
|
3068
3077
|
"cancel-text": r,
|
|
3069
3078
|
onConfirm: () => this.setBtnClick(e.id)
|
|
3070
|
-
}, xr(
|
|
3071
|
-
default: () => [
|
|
3079
|
+
}, xr(s) ? s : {
|
|
3080
|
+
default: () => [s]
|
|
3072
3081
|
}) : o;
|
|
3073
3082
|
}
|
|
3074
3083
|
},
|
|
@@ -3174,12 +3183,12 @@ const Ct = [{
|
|
|
3174
3183
|
style: "position: relative !important; background: #fff"
|
|
3175
3184
|
}, [l(d("a-tabs"), {
|
|
3176
3185
|
activeKey: o.activeKey,
|
|
3177
|
-
"onUpdate:activeKey": (
|
|
3178
|
-
onChange: (
|
|
3186
|
+
"onUpdate:activeKey": (v) => o.activeKey = v,
|
|
3187
|
+
onChange: (v) => o.activeKey = v
|
|
3179
3188
|
}, {
|
|
3180
|
-
default: () => [r.tabsConfig?.panes.map((
|
|
3181
|
-
key:
|
|
3182
|
-
tab:
|
|
3189
|
+
default: () => [r.tabsConfig?.panes.map((v) => l(d("a-tab-pane"), {
|
|
3190
|
+
key: v.key,
|
|
3191
|
+
tab: v.title
|
|
3183
3192
|
}, null))]
|
|
3184
3193
|
})]), y = () => l(Sr, {
|
|
3185
3194
|
props: {
|
|
@@ -3187,80 +3196,80 @@ const Ct = [{
|
|
|
3187
3196
|
tagsList: r.tagsSelect?.options,
|
|
3188
3197
|
tagsVal: o.tagsVal,
|
|
3189
3198
|
multiple: r.tagsSelect?.multiple,
|
|
3190
|
-
changeTags: (
|
|
3191
|
-
o.tagsVal =
|
|
3199
|
+
changeTags: (v) => {
|
|
3200
|
+
o.tagsVal = v, u.pagination.current = 1, R();
|
|
3192
3201
|
}
|
|
3193
3202
|
}
|
|
3194
3203
|
}, null), $ = () => l($r, {
|
|
3195
|
-
onChangeColumns: (
|
|
3196
|
-
p.value =
|
|
3204
|
+
onChangeColumns: (v) => {
|
|
3205
|
+
console.log(v), p.value = v;
|
|
3197
3206
|
},
|
|
3198
3207
|
props: r,
|
|
3199
|
-
onBtnClick: (
|
|
3208
|
+
onBtnClick: (v) => i(v, {})
|
|
3200
3209
|
}, {
|
|
3201
3210
|
btnGroupAfter: r?.btnGroupAfter
|
|
3202
|
-
}), i = (
|
|
3203
|
-
switch (
|
|
3211
|
+
}), i = (v, k) => {
|
|
3212
|
+
switch (v) {
|
|
3204
3213
|
case "refresh":
|
|
3205
3214
|
R();
|
|
3206
3215
|
break;
|
|
3207
3216
|
case "delete":
|
|
3208
|
-
U("single",
|
|
3217
|
+
U("single", k);
|
|
3209
3218
|
break;
|
|
3210
3219
|
case "deleteAll":
|
|
3211
|
-
U("batch",
|
|
3220
|
+
U("batch", k);
|
|
3212
3221
|
break;
|
|
3213
3222
|
default:
|
|
3214
3223
|
t("Command", {
|
|
3215
|
-
command:
|
|
3216
|
-
row:
|
|
3224
|
+
command: v,
|
|
3225
|
+
row: k
|
|
3217
3226
|
});
|
|
3218
3227
|
break;
|
|
3219
3228
|
}
|
|
3220
|
-
}, w = (
|
|
3221
|
-
let
|
|
3222
|
-
if (
|
|
3223
|
-
return
|
|
3224
|
-
const
|
|
3225
|
-
return
|
|
3229
|
+
}, w = (v, k) => {
|
|
3230
|
+
let P, C;
|
|
3231
|
+
if (v.customRender)
|
|
3232
|
+
return v.customRender(k);
|
|
3233
|
+
const M = () => v.text ? v.text : Ct.find((m) => m.id === v.id)?.text || "未知操作", Z = v.popConfirmText || "确认执行此操作?", S = v.popSubmitText || "确认", g = v.popCancelText || "取消";
|
|
3234
|
+
return v.isPopUp ? l(d("a-popconfirm"), {
|
|
3226
3235
|
title: Z,
|
|
3227
3236
|
"ok-text": S,
|
|
3228
3237
|
"cancel-text": g,
|
|
3229
|
-
onConfirm: () => i(
|
|
3238
|
+
onConfirm: () => i(v.id, k)
|
|
3230
3239
|
}, {
|
|
3231
3240
|
default: () => [l(d("a-button"), {
|
|
3232
3241
|
type: "text"
|
|
3233
|
-
}, wt(
|
|
3234
|
-
default: () => [
|
|
3242
|
+
}, wt(P = M()) ? P : {
|
|
3243
|
+
default: () => [P]
|
|
3235
3244
|
})]
|
|
3236
3245
|
}) : l(d("a-button"), {
|
|
3237
3246
|
type: "text",
|
|
3238
|
-
onClick: () => i(
|
|
3239
|
-
}, wt(C =
|
|
3247
|
+
onClick: () => i(v.id, k)
|
|
3248
|
+
}, wt(C = M()) ? C : {
|
|
3240
3249
|
default: () => [C]
|
|
3241
3250
|
});
|
|
3242
|
-
}, D = (
|
|
3243
|
-
const
|
|
3244
|
-
for (let
|
|
3245
|
-
const Z =
|
|
3246
|
-
C.has(Z.id) || (C.add(Z.id),
|
|
3251
|
+
}, D = (v) => {
|
|
3252
|
+
const k = [...Ct, ...r.recordBtns || []], P = [], C = /* @__PURE__ */ new Set();
|
|
3253
|
+
for (let M = k.length - 1; M >= 0; M--) {
|
|
3254
|
+
const Z = k[M];
|
|
3255
|
+
C.has(Z.id) || (C.add(Z.id), P.unshift(Z));
|
|
3247
3256
|
}
|
|
3248
|
-
return l("div", null, [
|
|
3249
|
-
},
|
|
3250
|
-
text:
|
|
3251
|
-
record:
|
|
3252
|
-
index:
|
|
3257
|
+
return l("div", null, [P.map((M) => (typeof M.isShow == "function" ? M.isShow(v) : M.isShow ?? !0) ? w(M, v) : null)]);
|
|
3258
|
+
}, A = (v) => (u.pagination.current - 1) * u.pagination.pageSize + v + 1, B = ({
|
|
3259
|
+
text: v,
|
|
3260
|
+
record: k,
|
|
3261
|
+
index: P,
|
|
3253
3262
|
column: C
|
|
3254
3263
|
}) => C ? C.customRender ? C.customRender({
|
|
3255
|
-
text:
|
|
3256
|
-
record:
|
|
3257
|
-
index:
|
|
3264
|
+
text: v,
|
|
3265
|
+
record: k,
|
|
3266
|
+
index: P,
|
|
3258
3267
|
column: C
|
|
3259
|
-
}) : C.dataIndex === "index" || C.title === "序号" ?
|
|
3268
|
+
}) : C.dataIndex === "index" || C.title === "序号" ? A(P) : C.dataIndex === "action" || C.title === "操作" ? D(k) : v : null, _ = () => {
|
|
3260
3269
|
u.pagination.current = 1, R();
|
|
3261
3270
|
}, E = () => {
|
|
3262
3271
|
o.searchForm = {}, o.tagsVal = [], u.pagination.current = 1, u.dataSource = [], R();
|
|
3263
|
-
}, R = async (
|
|
3272
|
+
}, R = async (v) => {
|
|
3264
3273
|
try {
|
|
3265
3274
|
if (!r.servicesApi?.list) {
|
|
3266
3275
|
ie.warning("缺少列表接口配置");
|
|
@@ -3268,60 +3277,62 @@ const Ct = [{
|
|
|
3268
3277
|
}
|
|
3269
3278
|
u.loading = !0;
|
|
3270
3279
|
const {
|
|
3271
|
-
current:
|
|
3272
|
-
pageSize:
|
|
3273
|
-
} = u.pagination, C = kr(o.searchForm), {
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
rows: S,
|
|
3277
|
-
total: g
|
|
3278
|
-
} = await r.servicesApi.list({
|
|
3279
|
-
page: P,
|
|
3280
|
-
pageSize: k,
|
|
3280
|
+
current: k,
|
|
3281
|
+
pageSize: P
|
|
3282
|
+
} = u.pagination, C = kr(o.searchForm), M = {
|
|
3283
|
+
page: k,
|
|
3284
|
+
pageSize: P,
|
|
3281
3285
|
...C,
|
|
3282
3286
|
...r.otherParams,
|
|
3283
|
-
...
|
|
3287
|
+
...v,
|
|
3284
3288
|
tabKey: o.activeKey,
|
|
3285
3289
|
// 传递标签页参数
|
|
3286
3290
|
tags: o.tagsVal
|
|
3287
3291
|
// 传递标签筛选参数
|
|
3288
|
-
}
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
+
};
|
|
3293
|
+
r.tabsConfig || delete M.tabKey, r.tagsSelect || delete M.tags, r.isPagination && (delete M.page, delete M.pageSize);
|
|
3294
|
+
const {
|
|
3295
|
+
code: Z,
|
|
3296
|
+
data: S,
|
|
3297
|
+
rows: g,
|
|
3298
|
+
total: f
|
|
3299
|
+
} = await r.servicesApi.list(M);
|
|
3300
|
+
Z === 200 && (u.dataSource = S || g, u.pagination.total = f);
|
|
3301
|
+
} catch (k) {
|
|
3302
|
+
throw ie.error("列表请求失败"), k;
|
|
3292
3303
|
} finally {
|
|
3293
3304
|
u.loading = !1;
|
|
3294
3305
|
}
|
|
3295
|
-
}, U = async (
|
|
3296
|
-
const
|
|
3306
|
+
}, U = async (v, k) => {
|
|
3307
|
+
const P = async (C) => {
|
|
3297
3308
|
if (!r.servicesApi?.delete) {
|
|
3298
3309
|
ie.warning("缺少删除接口配置");
|
|
3299
3310
|
return;
|
|
3300
3311
|
}
|
|
3301
3312
|
const {
|
|
3302
|
-
code:
|
|
3313
|
+
code: M
|
|
3303
3314
|
} = await r.servicesApi.delete({
|
|
3304
3315
|
ids: C
|
|
3305
3316
|
});
|
|
3306
|
-
|
|
3317
|
+
M === 200 && (ie.success("删除成功"), R());
|
|
3307
3318
|
};
|
|
3308
|
-
if (
|
|
3319
|
+
if (v === "batch") {
|
|
3309
3320
|
if (c.value.length === 0) {
|
|
3310
3321
|
ie.warning("请选择要删除的行");
|
|
3311
3322
|
return;
|
|
3312
3323
|
}
|
|
3313
|
-
await
|
|
3324
|
+
await P(c.value.join(","));
|
|
3314
3325
|
} else {
|
|
3315
|
-
if (!
|
|
3326
|
+
if (!k?.id) {
|
|
3316
3327
|
ie.warning("行数据缺少id,无法删除");
|
|
3317
3328
|
return;
|
|
3318
3329
|
}
|
|
3319
|
-
await k
|
|
3330
|
+
await P(k.id.toString());
|
|
3320
3331
|
}
|
|
3321
|
-
}, H = (
|
|
3322
|
-
c.value =
|
|
3323
|
-
}, te = (
|
|
3324
|
-
u.pagination.current =
|
|
3332
|
+
}, H = (v, k) => {
|
|
3333
|
+
c.value = v, r.rowSelection?.onChange?.(v, k);
|
|
3334
|
+
}, te = (v, k) => {
|
|
3335
|
+
u.pagination.current = v, u.pagination.pageSize = k, R();
|
|
3325
3336
|
};
|
|
3326
3337
|
return n({
|
|
3327
3338
|
AntdTableRef: s,
|
|
@@ -3329,7 +3340,10 @@ const Ct = [{
|
|
|
3329
3340
|
search: _,
|
|
3330
3341
|
reset: E
|
|
3331
3342
|
}), Ee(() => {
|
|
3332
|
-
|
|
3343
|
+
o.searchForm = {
|
|
3344
|
+
...r.searchForm,
|
|
3345
|
+
...r.otherParams
|
|
3346
|
+
}, R();
|
|
3333
3347
|
}), () => l("div", {
|
|
3334
3348
|
class: "bpy-table-box"
|
|
3335
3349
|
}, [l("div", {
|
|
@@ -3377,8 +3391,8 @@ const Ct = [{
|
|
|
3377
3391
|
total: u.pagination.total,
|
|
3378
3392
|
pageSize: u.pagination.pageSize,
|
|
3379
3393
|
current: u.pagination.current,
|
|
3380
|
-
onChange: te,
|
|
3381
|
-
onShowSizeChange: te
|
|
3394
|
+
onChange: (v, k) => te(v, k),
|
|
3395
|
+
onShowSizeChange: (v, k) => te(v, k)
|
|
3382
3396
|
}, null)])])])])]);
|
|
3383
3397
|
}
|
|
3384
3398
|
}), Pr = [
|
package/dist/cloud-ui-cqw.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(D,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],r):(D=typeof globalThis<"u"?globalThis:D||self,r(D.CloudUiCqw={},D.Vue,D.AntDesignVue))})(this,(function(D,r,ne){"use strict";function pe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const ue=r.defineComponent({name:"CloudModal",props:["props"],data(){return{modalTop:this.props.top||100,modalLeft:this.props.left||0}},methods:{onMousedown(e){e.preventDefault();const t=e.clientX,n=e.clientY,o=e.offsetX,l=this.modalTop,s=this.modalLeft;document.body.onmousemove=p=>{const d=document.body.clientWidth-p.clientX;this.$refs.weModal.width-o-24>d||p.clientX-24<p.offsetX||(this.modalTop=p.clientY-n+l,this.modalLeft=p.clientX-t+s)},document.body.onmouseup=()=>document.body.onmousemove=null}},render(){const e={superLarge:{1:"bpy-modal-superLarge-size",2:"bpy-drawer-large-size"},extraLarge:{1:"bpy-modal-extraLarge-size",2:"bpy-drawer-large-size"},large:{1:"bpy-modal-large-size",2:"bpy-drawer-large-size"},small:{1:"bpy-modal-small-size",2:"bpy-drawer-small-size"}},{type:t=1,title:n="标题",open:o=!1,isDrag:l=!1,saveLoading:s=!1,extraLoading:p=!1,style:c={top:"100px",left:"0"},onOk:d=()=>{},onExtra:f=()=>{},onCancel:a=()=>{},url:b,isShowOk:V=!0,isShowExtra:i=!1,extraIcon:C="",extraDisabled:k=!1,okText:P="确定",extraText:F="下一步",cancelText:M="取消",className:z="",wrapClassName:j="",width:E="default",disabled:B=!1,size:Q="small",okOtherProp:y={},extraOtherProp:v={}}=this.props;return{1:r.createVNode(r.resolveComponent("a-modal"),r.mergeProps({ref:"weModal",open:o,maskClosable:!1,footer:r.createVNode(r.Fragment,null,[r.createVNode(r.resolveComponent("a-button"),{type:"default",onClick:a},pe(M)?M:{default:()=>[M]}),i&&r.createVNode(r.resolveComponent("a-button"),r.mergeProps({type:"primary",onClick:f,disabled:k,loading:p},v),{default:()=>[F,C]}),V&&r.createVNode(r.resolveComponent("a-button"),r.mergeProps({type:"primary",onClick:d,loading:s,disabled:B},y),pe(P)?P:{default:()=>[P]})])},this.props,{size:"",wrapClassName:`bpy-modal ${e[Q]?.[t]} ${z} ${j} ${l?"bpy-resize":""} `,mask:!l,style:l?{top:`${this.modalTop}px`,left:`${this.modalLeft}px`}:c,title:l?r.createVNode("div",{style:{width:"100%",cursor:"move"},onMousedown:this.onMousedown},[n]):n,destroyOnClose:!0}),{default:()=>[this.$slots?.default&&this.$slots?.default()]}),2:r.createVNode(r.resolveComponent("a-drawer"),r.mergeProps({title:n,open:o,closable:!0,maskClosable:!1,onClose:()=>a(),footerStyle:{textAlign:"right"},class:[this.props.open?"":"ant-drawer-content-close"],footer:r.createVNode(r.Fragment,null,[r.createVNode(r.resolveComponent("a-button"),{type:"default",onClick:a},{default:()=>[r.createTextVNode("取消")]}),V&&r.createVNode(r.resolveComponent("a-button"),{type:"primary",onClick:d,loading:s},pe(P)?P:{default:()=>[P]})])},this.props,{class:`bpy-modal ${e[Q]?.[t]} ${z}`,destroyOnClose:!0}),{default:()=>[this.$slots?.default&&this.$slots?.default()]}),3:r.createVNode(r.resolveComponent("router-link"),{to:b},pe(n)?n:{default:()=>[n]})}[t]}}),fe=r.defineComponent({name:"CloudPeople",props:["props","onClose","onSure"],data(){return{modal:{type:"人员",open:!1},searchVal:"",selectVal:[],selectedOptions:[],modalLoading:!1}},methods:{onOk(){let e=[];if(this.props.multiple)if(this.props?.multiUnit==="multiplePeople")e=this.selectVal;else{let t=[];this.selectVal.map(n=>{t.includes(n[n.length-1])||(t.push(n[n.length-1]),e.push(n))})}else e=this.selectVal;this.$emit("sure",e,this.selectedOptions)},onCancel(){this.$emit("close",this.selectVal,this.selectedOptions)}},render(){return r.createVNode(ue,{props:{title:`选择${this?.props?.title?this?.props?.title:this.modal.type}`,open:this.modal.open,width:1184,size:"superLarge",onOk:()=>this.onOk(),onCancel:()=>this.onCancel()}},{default:()=>[r.createVNode(r.resolveComponent("a-spin"),{spinning:this.props?.treeList.length===0},{default:()=>[r.createVNode("div",{class:`sel-content-common ${this.searchVal===""?"sel-content":"sel-content-search"}`},[r.createVNode("div",{class:"sel-p"},[r.createVNode("span",{class:"sel-label",style:{width:"56px"}},[r.createTextVNode("已选"),r.createTextVNode(":")]),r.createVNode(r.resolveComponent("a-cascader"),{ref:"cascaderRefs",class:"self-cascader",value:this.selectVal,"onUpdate:value":e=>this.selectVal=e,multiple:this.props.multiple,popupClassName:"selfDropdown",getPopupContainer:e=>e.offsetParent,options:this.props?.treeList||[],placeholder:`请选择${this.props?.title?this.props.title:"人员"}`,open:!0,placement:"bottomLeft",showSearch:(e,t)=>t.some(n=>n.label.toLowerCase().indexOf(e.toLowerCase())>-1),onChange:(e,t)=>{let n=this.searchVal;this.selectedOptions=t,this.searchVal=t.length>0||e.length===0?"":n},onSearch:e=>{this.searchVal=e},showCheckedStrategy:"SHOW_CHILD",changeOnSelect:this.props.changeOnSelect,fieldNames:this.props?.fieldNames},null),r.createVNode("span",{class:"sel-label two"},[r.createTextVNode("请选择"),r.createTextVNode(":")])])])]})]})}});function Y(e,t){Pt(e)&&(e="100%");var n=Tt(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Pt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Tt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Lt(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function he(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ve(e){return e.length===1?"0"+e:String(e)}function Mt(e,t,n){return{r:Y(e,255)*255,g:Y(t,255)*255,b:Y(n,255)*255}}function Oe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function At(e,t,n){var o,l,s;if(e=Y(e,360),t=Y(t,100),n=Y(n,100),t===0)l=n,s=n,o=n;else{var p=n<.5?n*(1+t):n+t-n*t,c=2*n-p;o=Oe(c,p,e+1/3),l=Oe(c,p,e),s=Oe(c,p,e-1/3)}return{r:o*255,g:l*255,b:s*255}}function Dt(e,t,n){e=Y(e,255),t=Y(t,255),n=Y(n,255);var o=Math.max(e,t,n),l=Math.min(e,t,n),s=0,p=o,c=o-l,d=o===0?0:c/o;if(o===l)s=0;else{switch(o){case e:s=(t-n)/c+(t<n?6:0);break;case t:s=(n-e)/c+2;break;case n:s=(e-t)/c+4;break}s/=6}return{h:s,s:d,v:p}}function jt(e,t,n){e=Y(e,360)*6,t=Y(t,100),n=Y(n,100);var o=Math.floor(e),l=e-o,s=n*(1-t),p=n*(1-l*t),c=n*(1-(1-l)*t),d=o%6,f=[n,p,s,s,c,n][d],a=[c,n,n,p,s,s][d],b=[s,s,c,n,n,p][d];return{r:f*255,g:a*255,b:b*255}}function _t(e,t,n,o){var l=[Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(n).toString(16))];return l.join("")}function Ue(e){return R(e)/255}function R(e){return parseInt(e,16)}var He={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function oe(e){var t={r:0,g:0,b:0},n=1,o=null,l=null,s=null,p=!1,c=!1;return typeof e=="string"&&(e=It(e)),typeof e=="object"&&(G(e.r)&&G(e.g)&&G(e.b)?(t=Mt(e.r,e.g,e.b),p=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(o=he(e.s),l=he(e.v),t=jt(e.h,o,l),p=!0,c="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(o=he(e.s),s=he(e.l),t=At(e.h,o,s),p=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Lt(n),{ok:p,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var zt="[-\\+]?\\d+%?",Ft="[-\\+]?\\d*\\.\\d+%?",X="(?:".concat(Ft,")|(?:").concat(zt,")"),ve="[\\s|\\(]+(".concat(X,")[,|\\s]+(").concat(X,")[,|\\s]+(").concat(X,")\\s*\\)?"),$e="[\\s|\\(]+(".concat(X,")[,|\\s]+(").concat(X,")[,|\\s]+(").concat(X,")[,|\\s]+(").concat(X,")\\s*\\)?"),H={CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+ve),rgba:new RegExp("rgba"+$e),hsl:new RegExp("hsl"+ve),hsla:new RegExp("hsla"+$e),hsv:new RegExp("hsv"+ve),hsva:new RegExp("hsva"+$e),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function It(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(He[e])e=He[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=H.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=H.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=H.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=H.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=H.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=H.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=H.hex8.exec(e),n?{r:R(n[1]),g:R(n[2]),b:R(n[3]),a:Ue(n[4]),format:t?"name":"hex8"}:(n=H.hex6.exec(e),n?{r:R(n[1]),g:R(n[2]),b:R(n[3]),format:t?"name":"hex"}:(n=H.hex4.exec(e),n?{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),a:Ue(n[4]+n[4]),format:t?"name":"hex8"}:(n=H.hex3.exec(e),n?{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function G(e){return!!H.CSS_UNIT.exec(String(e))}var ge=2,qe=.16,Rt=.05,Wt=.05,Et=.15,Ge=5,Je=4,Bt=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Xe(e){var t=e.r,n=e.g,o=e.b,l=Dt(t,n,o);return{h:l.h*360,s:l.s,v:l.v}}function be(e){var t=e.r,n=e.g,o=e.b;return"#".concat(_t(t,n,o))}function Yt(e,t,n){var o=n/100,l={r:(t.r-e.r)*o+e.r,g:(t.g-e.g)*o+e.g,b:(t.b-e.b)*o+e.b};return l}function Ze(e,t,n){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-ge*t:Math.round(e.h)+ge*t:o=n?Math.round(e.h)+ge*t:Math.round(e.h)-ge*t,o<0?o+=360:o>=360&&(o-=360),o}function Qe(e,t,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-qe*t:t===Je?o=e.s+qe:o=e.s+Rt*t,o>1&&(o=1),n&&t===Ge&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function Ke(e,t,n){var o;return n?o=e.v+Wt*t:o=e.v-Et*t,o>1&&(o=1),Number(o.toFixed(2))}function ke(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=oe(e),l=Ge;l>0;l-=1){var s=Xe(o),p=be(oe({h:Ze(s,l,!0),s:Qe(s,l,!0),v:Ke(s,l,!0)}));n.push(p)}n.push(be(o));for(var c=1;c<=Je;c+=1){var d=Xe(o),f=be(oe({h:Ze(d,c),s:Qe(d,c),v:Ke(d,c)}));n.push(f)}return t.theme==="dark"?Bt.map(function(a){var b=a.index,V=a.opacity,i=be(Yt(oe(t.backgroundColor||"#141414"),oe(n[b]),V*100));return i}):n}var Pe={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},me={},Te={};Object.keys(Pe).forEach(function(e){me[e]=ke(Pe[e]),me[e].primary=me[e][5],Te[e]=ke(Pe[e],{theme:"dark",backgroundColor:"#141414"}),Te[e].primary=Te[e][5]});var Ut=me.blue,Ht=Symbol("iconContext"),et=function(){return r.inject(Ht,{prefixCls:r.ref("anticon"),rootClassName:r.ref(""),csp:r.ref()})};function Le(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qt(e,t){return e&&e.contains?e.contains(t):!1}var tt="data-vc-order",Gt="vc-icon-key",Me=new Map;function nt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Gt}function Ae(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Jt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function rt(e){return Array.from((Me.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ot(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Le())return null;var n=t.csp,o=t.prepend,l=document.createElement("style");l.setAttribute(tt,Jt(o)),n&&n.nonce&&(l.nonce=n.nonce),l.innerHTML=e;var s=Ae(t),p=s.firstChild;if(o){if(o==="queue"){var c=rt(s).filter(function(d){return["prepend","prependQueue"].includes(d.getAttribute(tt))});if(c.length)return s.insertBefore(l,c[c.length-1].nextSibling),l}s.insertBefore(l,p)}else s.appendChild(l);return l}function Xt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ae(t);return rt(n).find(function(o){return o.getAttribute(nt(t))===e})}function Zt(e,t){var n=Me.get(e);if(!n||!qt(document,n)){var o=ot("",t),l=o.parentNode;Me.set(e,l),e.removeChild(o)}}function Qt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Ae(n);Zt(o,n);var l=Xt(t,n);if(l)return n.csp&&n.csp.nonce&&l.nonce!==n.csp.nonce&&(l.nonce=n.csp.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;var s=ot(e,n);return s.setAttribute(nt(n),t),s}function at(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Kt(e,l,n[l])})}return e}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function en(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(t))}function tn(e,t){en(e,"[@ant-design/icons-vue] ".concat(t))}function lt(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function De(e,t,n){return n?r.h(e.tag,at({key:t},n,e.attrs),(e.children||[]).map(function(o,l){return De(o,"".concat(t,"-").concat(e.tag,"-").concat(l))})):r.h(e.tag,at({key:t},e.attrs),(e.children||[]).map(function(o,l){return De(o,"".concat(t,"-").concat(e.tag,"-").concat(l))}))}function st(e){return ke(e)[0]}function it(e){return e?Array.isArray(e)?e:[e]:[]}var nn=`
|
|
1
|
+
(function(D,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],r):(D=typeof globalThis<"u"?globalThis:D||self,r(D.CloudUiCqw={},D.Vue,D.AntDesignVue))})(this,(function(D,r,ne){"use strict";function pe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const ue=r.defineComponent({name:"CloudModal",props:["props"],data(){return{modalTop:this.props.top||100,modalLeft:this.props.left||0}},methods:{onMousedown(e){e.preventDefault();const t=e.clientX,n=e.clientY,o=e.offsetX,l=this.modalTop,s=this.modalLeft;document.body.onmousemove=p=>{const d=document.body.clientWidth-p.clientX;this.$refs.weModal.width-o-24>d||p.clientX-24<p.offsetX||(this.modalTop=p.clientY-n+l,this.modalLeft=p.clientX-t+s)},document.body.onmouseup=()=>document.body.onmousemove=null}},render(){const e={superLarge:{1:"bpy-modal-superLarge-size",2:"bpy-drawer-large-size"},extraLarge:{1:"bpy-modal-extraLarge-size",2:"bpy-drawer-large-size"},large:{1:"bpy-modal-large-size",2:"bpy-drawer-large-size"},small:{1:"bpy-modal-small-size",2:"bpy-drawer-small-size"}},{type:t=1,title:n="标题",open:o=!1,isDrag:l=!1,saveLoading:s=!1,extraLoading:p=!1,style:c={top:"100px",left:"0"},onOk:d=()=>{},onExtra:f=()=>{},onCancel:a=()=>{},url:b,isShowOk:V=!0,isShowExtra:i=!1,extraIcon:C="",extraDisabled:k=!1,okText:T="确定",extraText:z="下一步",cancelText:M="取消",className:F="",wrapClassName:j="",width:E="default",disabled:B=!1,size:Q="small",okOtherProp:m={},extraOtherProp:O={}}=this.props;return{1:r.createVNode(r.resolveComponent("a-modal"),r.mergeProps({ref:"weModal",open:o,maskClosable:!1,footer:r.createVNode(r.Fragment,null,[r.createVNode(r.resolveComponent("a-button"),{type:"default",onClick:a},pe(M)?M:{default:()=>[M]}),i&&r.createVNode(r.resolveComponent("a-button"),r.mergeProps({type:"primary",onClick:f,disabled:k,loading:p},O),{default:()=>[z,C]}),V&&r.createVNode(r.resolveComponent("a-button"),r.mergeProps({type:"primary",onClick:d,loading:s,disabled:B},m),pe(T)?T:{default:()=>[T]})])},this.props,{size:"",wrapClassName:`bpy-modal ${e[Q]?.[t]} ${F} ${j} ${l?"bpy-resize":""} `,mask:!l,style:l?{top:`${this.modalTop}px`,left:`${this.modalLeft}px`}:c,title:l?r.createVNode("div",{style:{width:"100%",cursor:"move"},onMousedown:this.onMousedown},[n]):n,destroyOnClose:!0}),{default:()=>[this.$slots?.default&&this.$slots?.default()]}),2:r.createVNode(r.resolveComponent("a-drawer"),r.mergeProps({title:n,open:o,closable:!0,maskClosable:!1,onClose:()=>a(),footerStyle:{textAlign:"right"},class:[this.props.open?"":"ant-drawer-content-close"],footer:r.createVNode(r.Fragment,null,[r.createVNode(r.resolveComponent("a-button"),{type:"default",onClick:a},{default:()=>[r.createTextVNode("取消")]}),V&&r.createVNode(r.resolveComponent("a-button"),{type:"primary",onClick:d,loading:s},pe(T)?T:{default:()=>[T]})])},this.props,{class:`bpy-modal ${e[Q]?.[t]} ${F}`,destroyOnClose:!0}),{default:()=>[this.$slots?.default&&this.$slots?.default()]}),3:r.createVNode(r.resolveComponent("router-link"),{to:b},pe(n)?n:{default:()=>[n]})}[t]}}),fe=r.defineComponent({name:"CloudPeople",props:["props","onClose","onSure"],data(){return{modal:{type:"人员",open:!1},searchVal:"",selectVal:[],selectedOptions:[],modalLoading:!1}},methods:{onOk(){let e=[];if(this.props.multiple)if(this.props?.multiUnit==="multiplePeople")e=this.selectVal;else{let t=[];this.selectVal.map(n=>{t.includes(n[n.length-1])||(t.push(n[n.length-1]),e.push(n))})}else e=this.selectVal;this.$emit("sure",e,this.selectedOptions)},onCancel(){this.$emit("close",this.selectVal,this.selectedOptions)}},render(){return r.createVNode(ue,{props:{title:`选择${this?.props?.title?this?.props?.title:this.modal.type}`,open:this.modal.open,width:1184,size:"superLarge",onOk:()=>this.onOk(),onCancel:()=>this.onCancel()}},{default:()=>[r.createVNode(r.resolveComponent("a-spin"),{spinning:this.props?.treeList.length===0},{default:()=>[r.createVNode("div",{class:`sel-content-common ${this.searchVal===""?"sel-content":"sel-content-search"}`},[r.createVNode("div",{class:"sel-p"},[r.createVNode("span",{class:"sel-label",style:{width:"56px"}},[r.createTextVNode("已选"),r.createTextVNode(":")]),r.createVNode(r.resolveComponent("a-cascader"),{ref:"cascaderRefs",class:"self-cascader",value:this.selectVal,"onUpdate:value":e=>this.selectVal=e,multiple:this.props.multiple,popupClassName:"selfDropdown",getPopupContainer:e=>e.offsetParent,options:this.props?.treeList||[],placeholder:`请选择${this.props?.title?this.props.title:"人员"}`,open:!0,placement:"bottomLeft",showSearch:(e,t)=>t.some(n=>n.label.toLowerCase().indexOf(e.toLowerCase())>-1),onChange:(e,t)=>{let n=this.searchVal;this.selectedOptions=t,this.searchVal=t.length>0||e.length===0?"":n},onSearch:e=>{this.searchVal=e},showCheckedStrategy:"SHOW_CHILD",changeOnSelect:this.props.changeOnSelect,fieldNames:this.props?.fieldNames},null),r.createVNode("span",{class:"sel-label two"},[r.createTextVNode("请选择"),r.createTextVNode(":")])])])]})]})}});function Y(e,t){Pt(e)&&(e="100%");var n=Tt(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Pt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Tt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Lt(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function he(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ve(e){return e.length===1?"0"+e:String(e)}function Mt(e,t,n){return{r:Y(e,255)*255,g:Y(t,255)*255,b:Y(n,255)*255}}function Oe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function At(e,t,n){var o,l,s;if(e=Y(e,360),t=Y(t,100),n=Y(n,100),t===0)l=n,s=n,o=n;else{var p=n<.5?n*(1+t):n+t-n*t,c=2*n-p;o=Oe(c,p,e+1/3),l=Oe(c,p,e),s=Oe(c,p,e-1/3)}return{r:o*255,g:l*255,b:s*255}}function Dt(e,t,n){e=Y(e,255),t=Y(t,255),n=Y(n,255);var o=Math.max(e,t,n),l=Math.min(e,t,n),s=0,p=o,c=o-l,d=o===0?0:c/o;if(o===l)s=0;else{switch(o){case e:s=(t-n)/c+(t<n?6:0);break;case t:s=(n-e)/c+2;break;case n:s=(e-t)/c+4;break}s/=6}return{h:s,s:d,v:p}}function jt(e,t,n){e=Y(e,360)*6,t=Y(t,100),n=Y(n,100);var o=Math.floor(e),l=e-o,s=n*(1-t),p=n*(1-l*t),c=n*(1-(1-l)*t),d=o%6,f=[n,p,s,s,c,n][d],a=[c,n,n,p,s,s][d],b=[s,s,c,n,n,p][d];return{r:f*255,g:a*255,b:b*255}}function _t(e,t,n,o){var l=[Ve(Math.round(e).toString(16)),Ve(Math.round(t).toString(16)),Ve(Math.round(n).toString(16))];return l.join("")}function Ue(e){return R(e)/255}function R(e){return parseInt(e,16)}var He={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function oe(e){var t={r:0,g:0,b:0},n=1,o=null,l=null,s=null,p=!1,c=!1;return typeof e=="string"&&(e=It(e)),typeof e=="object"&&(G(e.r)&&G(e.g)&&G(e.b)?(t=Mt(e.r,e.g,e.b),p=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(o=he(e.s),l=he(e.v),t=jt(e.h,o,l),p=!0,c="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(o=he(e.s),s=he(e.l),t=At(e.h,o,s),p=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Lt(n),{ok:p,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Ft="[-\\+]?\\d+%?",zt="[-\\+]?\\d*\\.\\d+%?",X="(?:".concat(zt,")|(?:").concat(Ft,")"),ve="[\\s|\\(]+(".concat(X,")[,|\\s]+(").concat(X,")[,|\\s]+(").concat(X,")\\s*\\)?"),$e="[\\s|\\(]+(".concat(X,")[,|\\s]+(").concat(X,")[,|\\s]+(").concat(X,")[,|\\s]+(").concat(X,")\\s*\\)?"),H={CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+ve),rgba:new RegExp("rgba"+$e),hsl:new RegExp("hsl"+ve),hsla:new RegExp("hsla"+$e),hsv:new RegExp("hsv"+ve),hsva:new RegExp("hsva"+$e),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function It(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(He[e])e=He[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=H.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=H.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=H.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=H.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=H.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=H.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=H.hex8.exec(e),n?{r:R(n[1]),g:R(n[2]),b:R(n[3]),a:Ue(n[4]),format:t?"name":"hex8"}:(n=H.hex6.exec(e),n?{r:R(n[1]),g:R(n[2]),b:R(n[3]),format:t?"name":"hex"}:(n=H.hex4.exec(e),n?{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),a:Ue(n[4]+n[4]),format:t?"name":"hex8"}:(n=H.hex3.exec(e),n?{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function G(e){return!!H.CSS_UNIT.exec(String(e))}var ge=2,qe=.16,Rt=.05,Wt=.05,Et=.15,Ge=5,Je=4,Bt=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Xe(e){var t=e.r,n=e.g,o=e.b,l=Dt(t,n,o);return{h:l.h*360,s:l.s,v:l.v}}function be(e){var t=e.r,n=e.g,o=e.b;return"#".concat(_t(t,n,o))}function Yt(e,t,n){var o=n/100,l={r:(t.r-e.r)*o+e.r,g:(t.g-e.g)*o+e.g,b:(t.b-e.b)*o+e.b};return l}function Ze(e,t,n){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-ge*t:Math.round(e.h)+ge*t:o=n?Math.round(e.h)+ge*t:Math.round(e.h)-ge*t,o<0?o+=360:o>=360&&(o-=360),o}function Qe(e,t,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-qe*t:t===Je?o=e.s+qe:o=e.s+Rt*t,o>1&&(o=1),n&&t===Ge&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function Ke(e,t,n){var o;return n?o=e.v+Wt*t:o=e.v-Et*t,o>1&&(o=1),Number(o.toFixed(2))}function ke(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=oe(e),l=Ge;l>0;l-=1){var s=Xe(o),p=be(oe({h:Ze(s,l,!0),s:Qe(s,l,!0),v:Ke(s,l,!0)}));n.push(p)}n.push(be(o));for(var c=1;c<=Je;c+=1){var d=Xe(o),f=be(oe({h:Ze(d,c),s:Qe(d,c),v:Ke(d,c)}));n.push(f)}return t.theme==="dark"?Bt.map(function(a){var b=a.index,V=a.opacity,i=be(Yt(oe(t.backgroundColor||"#141414"),oe(n[b]),V*100));return i}):n}var Pe={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},me={},Te={};Object.keys(Pe).forEach(function(e){me[e]=ke(Pe[e]),me[e].primary=me[e][5],Te[e]=ke(Pe[e],{theme:"dark",backgroundColor:"#141414"}),Te[e].primary=Te[e][5]});var Ut=me.blue,Ht=Symbol("iconContext"),et=function(){return r.inject(Ht,{prefixCls:r.ref("anticon"),rootClassName:r.ref(""),csp:r.ref()})};function Le(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qt(e,t){return e&&e.contains?e.contains(t):!1}var tt="data-vc-order",Gt="vc-icon-key",Me=new Map;function nt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Gt}function Ae(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Jt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function rt(e){return Array.from((Me.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ot(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Le())return null;var n=t.csp,o=t.prepend,l=document.createElement("style");l.setAttribute(tt,Jt(o)),n&&n.nonce&&(l.nonce=n.nonce),l.innerHTML=e;var s=Ae(t),p=s.firstChild;if(o){if(o==="queue"){var c=rt(s).filter(function(d){return["prepend","prependQueue"].includes(d.getAttribute(tt))});if(c.length)return s.insertBefore(l,c[c.length-1].nextSibling),l}s.insertBefore(l,p)}else s.appendChild(l);return l}function Xt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ae(t);return rt(n).find(function(o){return o.getAttribute(nt(t))===e})}function Zt(e,t){var n=Me.get(e);if(!n||!qt(document,n)){var o=ot("",t),l=o.parentNode;Me.set(e,l),e.removeChild(o)}}function Qt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=Ae(n);Zt(o,n);var l=Xt(t,n);if(l)return n.csp&&n.csp.nonce&&l.nonce!==n.csp.nonce&&(l.nonce=n.csp.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;var s=ot(e,n);return s.setAttribute(nt(n),t),s}function at(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Kt(e,l,n[l])})}return e}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function en(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(t))}function tn(e,t){en(e,"[@ant-design/icons-vue] ".concat(t))}function lt(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function De(e,t,n){return n?r.h(e.tag,at({key:t},n,e.attrs),(e.children||[]).map(function(o,l){return De(o,"".concat(t,"-").concat(e.tag,"-").concat(l))})):r.h(e.tag,at({key:t},e.attrs),(e.children||[]).map(function(o,l){return De(o,"".concat(t,"-").concat(e.tag,"-").concat(l))}))}function st(e){return ke(e)[0]}function it(e){return e?Array.isArray(e)?e:[e]:[]}var nn=`
|
|
2
2
|
.anticon {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
color: inherit;
|
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
}
|
|
55
55
|
`;function ct(e){return e&&e.getRootNode&&e.getRootNode()}function rn(e){return Le()?ct(e)instanceof ShadowRoot:!1}function on(e){return rn(e)?ct(e):null}var an=function(){var t=et(),n=t.prefixCls,o=t.csp,l=r.getCurrentInstance(),s=nn;n&&(s=s.replace(/anticon/g,n.value)),r.nextTick(function(){if(Le()){var p=l.vnode.el,c=on(p);Qt(s,"@ant-design-vue-icons",{prepend:!0,csp:o.value,attachTo:c})}})},ln=["icon","primaryColor","secondaryColor"];function sn(e,t){if(e==null)return{};var n=cn(e,t),o,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)o=s[l],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function cn(e,t){if(e==null)return{};var n={},o=Object.keys(e),l,s;for(s=0;s<o.length;s++)l=o[s],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){dn(e,l,n[l])})}return e}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=r.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function pn(e){var t=e.primaryColor,n=e.secondaryColor;ae.primaryColor=t,ae.secondaryColor=n||st(t),ae.calculated=!!n}function un(){return ye({},ae)}var Z=function(t,n){var o=ye({},t,n.attrs),l=o.icon,s=o.primaryColor,p=o.secondaryColor,c=sn(o,ln),d=ae;if(s&&(d={primaryColor:s,secondaryColor:p||st(s)}),tn(lt(l),"icon should be icon definiton, but got ".concat(l)),!lt(l))return null;var f=l;return f&&typeof f.icon=="function"&&(f=ye({},f,{icon:f.icon(d.primaryColor,d.secondaryColor)})),De(f.icon,"svg-".concat(f.name),ye({},c,{"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Z.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Z.inheritAttrs=!1,Z.displayName="IconBase",Z.getTwoToneColors=un,Z.setTwoToneColors=pn;function fn(e,t){return mn(e)||bn(e,t)||gn(e,t)||hn()}function hn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
56
56
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gn(e,t){if(e){if(typeof e=="string")return dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dt(e,t)}}function dt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function bn(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o=[],l=!0,s=!1,p,c;try{for(n=n.call(e);!(l=(p=n.next()).done)&&(o.push(p.value),!(t&&o.length===t));l=!0);}catch(d){s=!0,c=d}finally{try{!l&&n.return!=null&&n.return()}finally{if(s)throw c}}return o}}function mn(e){if(Array.isArray(e))return e}function pt(e){var t=it(e),n=fn(t,2),o=n[0],l=n[1];return Z.setTwoToneColors({primaryColor:o,secondaryColor:l})}function yn(){var e=Z.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Cn=r.defineComponent({name:"InsertStyles",setup:function(){return an(),function(){return null}}}),wn=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Nn(e,t){return On(e)||Vn(e,t)||Sn(e,t)||xn()}function xn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sn(e,t){if(e){if(typeof e=="string")return ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ut(e,t)}}function ut(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Vn(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o=[],l=!0,s=!1,p,c;try{for(n=n.call(e);!(l=(p=n.next()).done)&&(o.push(p.value),!(t&&o.length===t));l=!0);}catch(d){s=!0,c=d}finally{try{!l&&n.return!=null&&n.return()}finally{if(s)throw c}}return o}}function On(e){if(Array.isArray(e))return e}function ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){le(e,l,n[l])})}return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vn(e,t){if(e==null)return{};var n=$n(e,t),o,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)o=s[l],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function $n(e,t){if(e==null)return{};var n={},o=Object.keys(e),l,s;for(s=0;s<o.length;s++)l=o[s],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}pt(Ut.primary);var W=function(t,n){var o,l=ft({},t,n.attrs),s=l.class,p=l.icon,c=l.spin,d=l.rotate,f=l.tabindex,a=l.twoToneColor,b=l.onClick,V=vn(l,wn),i=et(),C=i.prefixCls,k=i.rootClassName,P=(o={},le(o,k.value,!!k.value),le(o,C.value,!0),le(o,"".concat(C.value,"-").concat(p.name),!!p.name),le(o,"".concat(C.value,"-spin"),!!c||p.name==="loading"),o),F=f;F===void 0&&b&&(F=-1);var M=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,z=it(a),j=Nn(z,2),E=j[0],B=j[1];return r.createVNode("span",ft({role:"img","aria-label":p.name},V,{onClick:b,class:[P,s],tabindex:F}),[r.createVNode(Z,{icon:p,primaryColor:E,secondaryColor:B,style:M},null),r.createVNode(Cn,null,null)])};W.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},W.displayName="AntdIcon",W.inheritAttrs=!1,W.getTwoToneColor=yn,W.setTwoToneColor=pt;var kn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Pn(e,l,n[l])})}return e}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce=function(t,n){var o=ht({},t,n.attrs);return r.createVNode(W,ht({},o,{icon:kn}),null)};Ce.displayName="DoubleLeftOutlined",Ce.inheritAttrs=!1;var Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Ln(e,l,n[l])})}return e}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we=function(t,n){var o=gt({},t,n.attrs);return r.createVNode(W,gt({},o,{icon:Tn}),null)};we.displayName="DoubleRightOutlined",we.inheritAttrs=!1;var Mn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){An(e,l,n[l])})}return e}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var je=function(t,n){var o=bt({},t,n.attrs);return r.createVNode(W,bt({},o,{icon:Mn}),null)};je.displayName="DownOutlined",je.inheritAttrs=!1;var Dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){jn(e,l,n[l])})}return e}function jn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _e=function(t,n){var o=mt({},t,n.attrs);return r.createVNode(W,mt({},o,{icon:Dn}),null)};_e.displayName="PlusOutlined",_e.inheritAttrs=!1;var _n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};function yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){zn(e,l,n[l])})}return e}function zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=function(t,n){var o=yt({},t,n.attrs);return r.createVNode(W,yt({},o,{icon:_n}),null)};ze.displayName="RedoOutlined",ze.inheritAttrs=!1;var Fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"};function Ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){In(e,l,n[l])})}return e}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=function(t,n){var o=Ct({},t,n.attrs);return r.createVNode(W,Ct({},o,{icon:Fn}),null)};se.displayName="RollbackOutlined",se.inheritAttrs=!1;var Rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};function wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Wn(e,l,n[l])})}return e}function Wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fe=function(t,n){var o=wt({},t,n.attrs);return r.createVNode(W,wt({},o,{icon:Rn}),null)};Fe.displayName="SettingOutlined",Fe.inheritAttrs=!1;var En={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function Nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Bn(e,l,n[l])})}return e}function Bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie=function(t,n){var o=Nt({},t,n.attrs);return r.createVNode(W,Nt({},o,{icon:En}),null)};Ie.displayName="UpOutlined",Ie.inheritAttrs=!1;const Yn=r.defineComponent({props:["props"],components:{DownOutlined:je,UpOutlined:Ie},data(){return{showIcon:!1,isOpen:!1,clientWidth:"",setfun:null}},mounted(){},methods:{toggle(){this.isOpen=!this.isOpen}},setup(){return{}},render(){const{text:e,className:t,value:n,label:o,item:l}=this.props;return r.withDirectives(r.createVNode("div",{ref:"text",class:`${t}${this.showIcon?" bpy-formitem-ellipsis":""} bpy-formitem-text-box bpy-formitem-text-ellipsis-box`},[r.createVNode("div",{class:"bpy-formitem-text"},[o,r.createTextVNode(" :"),n]),this.showIcon?r.createVNode(r.resolveComponent("a-popover"),{placement:"bottomRight",trigger:"click",visible:this.isOpen,"onUpdate:visible":s=>this.isOpen=s,content:r.createVNode("div",{class:"bpy-formitem-text-pop-box"},[r.createVNode(r.resolveComponent("a-tag"),{class:"themeTagColor"},{default:()=>[this.props.label]}),r.createVNode("div",{class:"bpy-formitem-text-pop-content"},[this.props.value])]),getPopupContainer:s=>document.getElementsByClassName("bpy-formitem-content")[0]},{default:()=>[r.createVNode(r.resolveComponent("a-button"),{type:"link",onClick:()=>this.toggle()},{default:()=>[this.isOpen?r.createVNode(r.Fragment,null,[r.createTextVNode("折叠"),r.createVNode(r.resolveComponent("up-outlined"),null,null)]):r.createVNode(r.Fragment,null,[r.createTextVNode("展开"),r.createVNode(r.resolveComponent("down-outlined"),null,null)])]})]}):""]),[[r.resolveDirective("resize"),({width:s,height:p})=>{const c=p,d=s;if(c>24){this.showIcon=!0,this.clientWidth=d;return}if(this.clientWidth&&d!=this.clientWidth){d>this.clientWidth?(this.showIcon=!1,this.clientWidth=d,this.setfun&&clearTimeout(this.setfun),this.setfun=setTimeout(()=>{this.$refs.text.clientHeight>22?this.showIcon=!0:(this.showIcon=!1,this.isOpen=!1)})):(this.clientWidth=d,this.$refs.text.clientHeight>22?this.showIcon=!0:(this.showIcon=!1,this.isOpen=!1));return}}]])}}),Un=r.defineComponent({props:["props"],setup(e,t){const n=r.ref(null),o=r.ref(null),l=r.reactive({descriptionsColumn:3,fieldList:[],otherContentWidth:null,otherList:[],labelWidth:null}),s=r.computed(()=>{let b=[];const V=e.props.fieldList.filter(i=>(i.content?.type?.name=="WeUpload"||i.span)&&i.isShow!=!1);return e.props.isSpecial||V.forEach(i=>{const C=e.props.fieldList.findIndex(k=>k.label==i.label);e.props.fieldList.splice(C,1)}),b=e.props.fieldList.filter(i=>i.isShow!=!1).filter(i=>!i.span),c(),[b,V]}),p=()=>{var b=document.body.clientWidth;b>=1920&&(l.descriptionsColumn=3),b<1920&&(l.descriptionsColumn=2),b<950&&(l.descriptionsColumn=1)},c=()=>{r.nextTick(()=>{n.value.querySelectorAll(".ant-descriptions-item-label").forEach(V=>{l.labelWidth=l.labelWidth<V.offsetWidth?V.offsetWidth:l.labelWidth})})};r.onMounted(()=>{p(),window.addEventListener("resize",p),d()}),r.onUnmounted(()=>{window.removeEventListener("resize",p)});const d=()=>{const b=new ResizeObserver(i=>{i.forEach(C=>{const k=C.target,{width:P,height:F}=k.getBoundingClientRect(),M=l.labelWidth>200?200:l.labelWidth;l.otherContentWidth=l.descriptionsColumn==3?`${Math.floor(P/3)-M}px`:null})}),V=document.querySelector(".defaultDescriptions");V&&b.observe(V)},f=b=>{if(l.descriptionsColumn==3)return b%3==0;if(l.descriptionsColumn==2||l.descriptionsColumn==1)return null},a=b=>{if(b.length%3!=0)return b.length%3};return()=>r.createVNode("div",{class:"WeFromView",ref:n},[r.createVNode(r.resolveComponent("a-descriptions"),{ref:o,colon:!1,bordered:!0,column:l.descriptionsColumn,class:"defaultDescriptions"},{default:()=>[s.value?.[0].map((b,V,i)=>r.createVNode(r.resolveComponent("a-descriptions-item"),{labelStyle:{minWidth:`${l.labelWidth}px`},contentStyle:{minWidth:f(V)&&a(s.value?.[0])==2?l.otherContentWidth:null,maxWidth:f(V)&&a(s.value?.[0])==2?l.otherContentWidth:null},label:b.label},{default:()=>[b?.content||e.props.form[b?.prop]||"-"]}))]}),!!s.value?.[1].length&&r.createVNode(r.resolveComponent("a-descriptions"),{class:"imageDescriptions",colon:!1,bordered:!0,column:l.descriptionsColumn},{default:()=>[s.value?.[1].map(b=>r.createVNode(r.resolveComponent("a-descriptions-item"),{labelStyle:{minWidth:`${l.labelWidth}px`},span:3,label:b.label},{default:()=>[b?.content||e.props.form[b?.prop]||"-"]}))]})])}}),Hn=r.defineComponent({props:{data:Object,item:Object,popupContainer:String},components:{RollbackOutlined:se},data(){return{showInput:!1,openSelect:!1}},watch:{selectOptions:{handler(e,t){this.data[this.item?.prop]==-999999?this.showInput=!0:this.data[this.item?.prop]&&(this.selectOptions.find(o=>o[this.item?.fieldNames?.value||this.item?.optVal||"value"]==this.data[this.item?.prop])?this.showInput=!1:this.showInput=!0)},immediate:!0},selectId:{handler(e,t){this.data[this.item?.prop]==-999999?this.showInput=!0:this.data[this.item?.prop]&&(this.selectOptions.find(o=>o[this.item?.fieldNames?.value||this.item?.optVal||"value"]==this.data[this.item?.prop])?this.showInput=!1:this.showInput=!0)},immediate:!0}},computed:{selectId:{set(e){this.data[this.item?.prop]=e},get(){return this.data[this.item?.prop]}},selectOptions(){return[...this.item.options||[],{[this.item?.fieldNames?.value||this.item?.optVal||"value"]:-999999,[this.item?.fieldNames?.label||this.item?.optLabel||"label"]:"其它"}]}},mounted(){},methods:{renderSelect(e,t){const n=this.popupContainer==="body"?document.body:document.getElementsByClassName(this.popupContainer)?.[0];return r.createVNode(r.resolveComponent("a-select"),r.mergeProps({ref:"selectRef",value:this.selectId,"onUpdate:value":o=>this.selectId=o,placeholder:t.placeholder,type:t?.type,maxTagCount:1,showArrow:!0,style:t?.style,size:t?.size?t?.size:this.size,mode:t?.mode?t.mode:"combobox",showSearch:"showSearch"in t?t.showSearch:!0,optionFilterProp:t?.fieldNames&&t.fieldNames?.label||(t?.optLabel?t.optLabel:"label"),allowClear:t?.allowClear?t?.allowClear:!0},t,{defaultOpen:this.openSelect,options:this.selectOptions,onChange:o=>{o==-999999&&(e[t?.prop]=void 0,this.showInput=!0,setTimeout(()=>{this.$refs.inputRef?.focus(),this.openSelect=!1},0)),t.onChange?.(o)},fieldNames:t?.fieldNames?t?.fieldNames:{options:"children",label:t?.optLabel?t.optLabel:"label",value:t?.optVal?t.optVal:"value"},getPopupContainer:o=>this.popupContainer?n:o.offsetParent}),t.slots)},renderInput(e,t){return r.createVNode(r.resolveComponent("a-input"),r.mergeProps({value:e[t.prop],"onUpdate:value":n=>e[t.prop]=n,ref:"inputRef",colon:!0,type:t?.type,style:t?.style,maxlength:50},t,{placeholder:"请输入"+t.label,suffix:r.createVNode(r.resolveComponent("a-tooltip"),{placement:"topLeft",title:"点击重新选择"},{default:()=>[r.createVNode(se,{onClick:()=>{e[t?.prop]=void 0,this.openSelect=!0,this.showInput=!1,t.onChange?.()}},null)]})}),null)}},setup(){return{}},render(){return this.showInput?this.renderInput(this.data,this.item):this.renderSelect(this.data,this.item)}}),qn=r.defineComponent({props:{data:Object,item:Object,className:String,popupContainer:String},data(){return{showInput:!1}},computed:{selectId:{set(e){this.data[this.item?.prop]=e},get(){return this.data[this.item?.prop]}},selectOptions(){return[...this.item.options,{[this.item?.fieldNames?.value||this.item?.optVal||"value"]:-999999,[this.item?.fieldNames?.label||this.item?.optLabel||"label"]:"其它"}]}},mounted(){},methods:{renderSelect(e,t){const n=this.popupContainer==="body"?document.body:document.getElementsByClassName(this.popupContainer)?.[0];return r.createVNode(r.resolveComponent("a-form-item"),{colon:!0,class:this.className,label:t?.label,name:t?.name||t?.prop,extra:t?.extra,rules:t.rules},{default:()=>[r.createVNode(r.resolveComponent("a-select"),r.mergeProps({value:this.selectId,"onUpdate:value":o=>this.selectId=o,placeholder:t.placeholder,type:t?.type,maxTagCount:1,showArrow:!0,style:t?.style,size:t?.size?t?.size:this.size,mode:t?.mode?t.mode:"combobox",showSearch:"showSearch"in t?t.showSearch:!0,optionFilterProp:t?.fieldNames&&t.fieldNames?.label||(t?.optLabel?t.optLabel:"label"),allowClear:t?.allowClear?t?.allowClear:!0},t,{options:this.selectOptions,onChange:o=>{o==-999999?this.showInput=!0:(this.showInput=!1,e[t?.inputProp??t.prop+"_name"]=void 0),t.onChange?.(o)},fieldNames:t?.fieldNames?t?.fieldNames:{options:"children",label:t?.optLabel?t.optLabel:"label",value:t?.optVal?t.optVal:"value"},getPopupContainer:o=>this.popupContainer?n:o.offsetParent}),t.slots)]})},renderInput(e,t){return r.createVNode(r.resolveComponent("a-form-item"),{name:t?.inputProp??t.prop+"_name",label:this.item?.label,extra:t?.extra,rules:t.rules,class:this.className},{default:()=>[r.createVNode(r.resolveComponent("a-input"),r.mergeProps({value:e[t?.inputProp??t.prop+"_name"],"onUpdate:value":n=>e[t?.inputProp??t.prop+"_name"]=n,placeholder:t.placeholder,colon:!0,style:t?.style,maxlength:50},t),null)]})}},setup(){return{}},render(){return r.createVNode(r.Fragment,null,[this.renderSelect(this.data,this.item),this.showInput?this.renderInput(this.data,this.item):""])}}),Gn=r.defineComponent({props:{data:Object,item:Object,popupContainer:String},components:{RollbackOutlined:se},data(){return{showInput:!1,otherOption:""}},computed:{selectId:{set(e){this.data[this.item?.prop]=e},get(){return this.data[this.item?.prop]}},selectOptions(){return this.data[this.item?.prop]&&!this.item.options.find(t=>t[this.item?.fieldNames?.value||this.item?.optVal||"value"]==this.data[this.item?.prop])?[...this.item.options,{[this.item?.fieldNames?.value||this.item?.optVal||"value"]:this.data[this.item?.prop],[this.item?.fieldNames?.label||this.item?.optLabel||"label"]:this.data[this.item?.prop]}]:this.item.options}},mounted(){},methods:{renderSelect(e,t){const n=this.popupContainer==="body"?document.body:document.getElementsByClassName(this.popupContainer)?.[0];return r.createVNode(r.resolveComponent("a-select"),r.mergeProps({value:this.selectId,"onUpdate:value":o=>this.selectId=o,placeholder:t.placeholder,type:t?.type,showArrow:!0,style:t?.style,size:t?.size?t?.size:this.size,mode:t?.mode?t.mode:"combobox",optionFilterProp:t?.fieldNames&&t.fieldNames?.label||(t?.optLabel?t.optLabel:"label"),allowClear:t?.allowClear?t?.allowClear:!0},t,{options:this.selectOptions,onChange:o=>{t.onChange?.(o)},showSearch:!1,fieldNames:t?.fieldNames?t?.fieldNames:{options:"children",label:t?.optLabel?t.optLabel:"label",value:t?.optVal?t.optVal:"value"},dropdownRender:({menuNode:o})=>r.createVNode(r.Fragment,null,[o,r.createVNode(r.resolveComponent("a-divider"),{style:"margin: 4px 0"},null),r.createVNode("div",{onClick:l=>(l.stopPropagation(),!1),style:"display:flex"},[r.createVNode(r.resolveComponent("a-space"),{style:"padding: 4px 8px"},{default:()=>[r.createVNode(r.resolveComponent("a-input"),{ref:"inputRef",value:this.otherOption,"onUpdate:value":l=>this.otherOption=l,placeholder:"请输入其他字段"},null),r.createVNode(r.resolveComponent("a-button"),{type:"text",onClick:this.addItem},{default:()=>[r.createTextVNode("新增")]})]})])]),getPopupContainer:o=>this.popupContainer?n:o.offsetParent}),t.slots)},addItem(e){e.preventDefault(),this.item.options.push({[this.item?.fieldNames?.value||this.item?.optVal||"value"]:this.otherOption,[this.item?.fieldNames?.label||this.item?.optLabel||"label"]:this.otherOption}),this.otherOption="",setTimeout(()=>{this.$refs.inputRef?.focus()},0)}},setup(){return{}},render(){return this.renderSelect(this.data,this.item)}});function Jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ne={exports:{}},Xn=Ne.exports,xt;function Zn(){return xt||(xt=1,(function(e,t){(function(n,o){e.exports=o()})(Xn,(function(){var n=1e3,o=6e4,l=36e5,s="millisecond",p="second",c="minute",d="hour",f="day",a="week",b="month",V="quarter",i="year",C="date",k="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var h=["th","st","nd","rd"],u=N%100;return"["+N+(h[(u-20)%10]||h[u]||h[0])+"]"}},z=function(N,h,u){var m=String(N);return!m||m.length>=h?N:""+Array(h+1-m.length).join(u)+N},j={s:z,z:function(N){var h=-N.utcOffset(),u=Math.abs(h),m=Math.floor(u/60),g=u%60;return(h<=0?"+":"-")+z(m,2,"0")+":"+z(g,2,"0")},m:function N(h,u){if(h.date()<u.date())return-N(u,h);var m=12*(u.year()-h.year())+(u.month()-h.month()),g=h.clone().add(m,b),x=u-g<0,S=h.clone().add(m+(x?-1:1),b);return+(-(m+(u-g)/(x?g-S:S-g))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:b,y:i,w:a,d:f,D:C,h:d,m:c,s:p,ms:s,Q:V}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},E="en",B={};B[E]=M;var Q="$isDayjsObject",y=function(N){return N instanceof L||!(!N||!N[Q])},v=function N(h,u,m){var g;if(!h)return E;if(typeof h=="string"){var x=h.toLowerCase();B[x]&&(g=x),u&&(B[x]=u,g=x);var S=h.split("-");if(!g&&S.length>1)return N(S[0])}else{var $=h.name;B[$]=h,g=$}return!m&&g&&(E=g),g||!m&&E},O=function(N,h){if(y(N))return N.clone();var u=typeof h=="object"?h:{};return u.date=N,u.args=arguments,new L(u)},w=j;w.l=v,w.i=y,w.w=function(N,h){return O(N,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var L=(function(){function N(u){this.$L=v(u.locale,null,!0),this.parse(u),this.$x=this.$x||u.x||{},this[Q]=!0}var h=N.prototype;return h.parse=function(u){this.$d=(function(m){var g=m.date,x=m.utc;if(g===null)return new Date(NaN);if(w.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var S=g.match(P);if(S){var $=S[2]-1||0,T=(S[7]||"0").substring(0,3);return x?new Date(Date.UTC(S[1],$,S[3]||1,S[4]||0,S[5]||0,S[6]||0,T)):new Date(S[1],$,S[3]||1,S[4]||0,S[5]||0,S[6]||0,T)}}return new Date(g)})(u),this.init()},h.init=function(){var u=this.$d;this.$y=u.getFullYear(),this.$M=u.getMonth(),this.$D=u.getDate(),this.$W=u.getDay(),this.$H=u.getHours(),this.$m=u.getMinutes(),this.$s=u.getSeconds(),this.$ms=u.getMilliseconds()},h.$utils=function(){return w},h.isValid=function(){return this.$d.toString()!==k},h.isSame=function(u,m){var g=O(u);return this.startOf(m)<=g&&g<=this.endOf(m)},h.isAfter=function(u,m){return O(u)<this.startOf(m)},h.isBefore=function(u,m){return this.endOf(m)<O(u)},h.$g=function(u,m,g){return w.u(u)?this[m]:this.set(g,u)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(u,m){var g=this,x=!!w.u(m)||m,S=w.p(u),$=function(te,I){var K=w.w(g.$u?Date.UTC(g.$y,I,te):new Date(g.$y,I,te),g);return x?K:K.endOf(f)},T=function(te,I){return w.w(g.toDate()[te].apply(g.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(I)),g)},A=this.$W,_=this.$M,U=this.$D,re="set"+(this.$u?"UTC":"");switch(S){case i:return x?$(1,0):$(31,11);case b:return x?$(1,_):$(0,_+1);case a:var ee=this.$locale().weekStart||0,ce=(A<ee?A+7:A)-ee;return $(x?U-ce:U+(6-ce),_);case f:case C:return T(re+"Hours",0);case d:return T(re+"Minutes",1);case c:return T(re+"Seconds",2);case p:return T(re+"Milliseconds",3);default:return this.clone()}},h.endOf=function(u){return this.startOf(u,!1)},h.$set=function(u,m){var g,x=w.p(u),S="set"+(this.$u?"UTC":""),$=(g={},g[f]=S+"Date",g[C]=S+"Date",g[b]=S+"Month",g[i]=S+"FullYear",g[d]=S+"Hours",g[c]=S+"Minutes",g[p]=S+"Seconds",g[s]=S+"Milliseconds",g)[x],T=x===f?this.$D+(m-this.$W):m;if(x===b||x===i){var A=this.clone().set(C,1);A.$d[$](T),A.init(),this.$d=A.set(C,Math.min(this.$D,A.daysInMonth())).$d}else $&&this.$d[$](T);return this.init(),this},h.set=function(u,m){return this.clone().$set(u,m)},h.get=function(u){return this[w.p(u)]()},h.add=function(u,m){var g,x=this;u=Number(u);var S=w.p(m),$=function(_){var U=O(x);return w.w(U.date(U.date()+Math.round(_*u)),x)};if(S===b)return this.set(b,this.$M+u);if(S===i)return this.set(i,this.$y+u);if(S===f)return $(1);if(S===a)return $(7);var T=(g={},g[c]=o,g[d]=l,g[p]=n,g)[S]||1,A=this.$d.getTime()+u*T;return w.w(A,this)},h.subtract=function(u,m){return this.add(-1*u,m)},h.format=function(u){var m=this,g=this.$locale();if(!this.isValid())return g.invalidDate||k;var x=u||"YYYY-MM-DDTHH:mm:ssZ",S=w.z(this),$=this.$H,T=this.$m,A=this.$M,_=g.weekdays,U=g.months,re=g.meridiem,ee=function(I,K,de,Se){return I&&(I[K]||I(m,x))||de[K].slice(0,Se)},ce=function(I){return w.s($%12||12,I,"0")},te=re||function(I,K,de){var Se=I<12?"AM":"PM";return de?Se.toLowerCase():Se};return x.replace(F,(function(I,K){return K||(function(de){switch(de){case"YY":return String(m.$y).slice(-2);case"YYYY":return w.s(m.$y,4,"0");case"M":return A+1;case"MM":return w.s(A+1,2,"0");case"MMM":return ee(g.monthsShort,A,U,3);case"MMMM":return ee(U,A);case"D":return m.$D;case"DD":return w.s(m.$D,2,"0");case"d":return String(m.$W);case"dd":return ee(g.weekdaysMin,m.$W,_,2);case"ddd":return ee(g.weekdaysShort,m.$W,_,3);case"dddd":return _[m.$W];case"H":return String($);case"HH":return w.s($,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return te($,T,!0);case"A":return te($,T,!1);case"m":return String(T);case"mm":return w.s(T,2,"0");case"s":return String(m.$s);case"ss":return w.s(m.$s,2,"0");case"SSS":return w.s(m.$ms,3,"0");case"Z":return S}return null})(I)||S.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(u,m,g){var x,S=this,$=w.p(m),T=O(u),A=(T.utcOffset()-this.utcOffset())*o,_=this-T,U=function(){return w.m(S,T)};switch($){case i:x=U()/12;break;case b:x=U();break;case V:x=U()/3;break;case a:x=(_-A)/6048e5;break;case f:x=(_-A)/864e5;break;case d:x=_/l;break;case c:x=_/o;break;case p:x=_/n;break;default:x=_}return g?x:w.a(x)},h.daysInMonth=function(){return this.endOf(b).$D},h.$locale=function(){return B[this.$L]},h.locale=function(u,m){if(!u)return this.$L;var g=this.clone(),x=v(u,m,!0);return x&&(g.$L=x),g},h.clone=function(){return w.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},N})(),q=L.prototype;return O.prototype=q,[["$ms",s],["$s",p],["$m",c],["$H",d],["$W",f],["$M",b],["$y",i],["$D",C]].forEach((function(N){q[N[1]]=function(h){return this.$g(h,N[0],N[1])}})),O.extend=function(N,h){return N.$i||(N(h,L,O),N.$i=!0),O},O.locale=v,O.isDayjs=y,O.unix=function(N){return O(1e3*N)},O.en=B[E],O.Ls=B,O.p={},O}))})(Ne)),Ne.exports}var Qn=Zn();const J=Jn(Qn),xe=e=>Array.from(Array.from({length:e}).keys()),Kn=(e,t)=>{const n=e.subtract(1,"month").format("YYYY-MM"),o=e.subtract(1,"month").endOf("month").date();return xe(t).map((l,s)=>n+"-"+(o-(t-s-1)))},er=e=>xe(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),St=["一","二","三","四","五","六","日"];function tr(e){const t=[...St.slice(e.firstDayOfWeek-1),...St.slice(0,e.firstDayOfWeek-1)],n=r.ref(e.month||J().format("YYYY-MM")),o=r.ref([]),l=e.firstDayOfWeek||1,s=d=>{let f=J(d).startOf("month").format("YYYY-MM-DD"),a=J(f).day(),b=[];const V=Kn(J(d+"01"),(a-l+7)%7).map(M=>({date:M,type:"prev"})),C=(M=>{const z=M.daysInMonth();return xe(z).map((j,E)=>E+1)})(J(d+"01")).map(M=>({date:d+"-"+String(M).padStart(2,"0"),type:"current"}));b=[...V,...C];const k=7-(b.length%7||7);let P=J(f).add(1,"month").format("YYYY-MM");const F=xe(k).map((M,z)=>({date:P+"-"+String(z+1).padStart(2,"0"),type:"next"}));return b=b.concat(F),er(b)};return r.watch(n,d=>{o.value=s(d)},{immediate:!0}),{WEEK_DAYS:t,month:n,days:o,selectMonth:(d,f,a)=>{const b=f==="prev"?"subtract":"add";n.value=J(n.value)[b](1,a).format("YYYY-MM")},clickWeek:d=>{const f=d[0],a=d.at(-1);return{start:f.date,end:a.date}}}}const nr=r.defineComponent({emits:["change","update:sel"],props:["sel","firstDayOfWeek","selValue"],setup(e,{emit:t}){const{WEEK_DAYS:n,month:o,days:l,selectMonth:s,clickWeek:p}=tr({firstDayOfWeek:e.firstDayOfWeek}),c=r.ref([]),d=(i,C)=>{let k=p(i);t("change",k),t("update:sel",!1)};r.watch(()=>e.selValue,i=>{if(!i)return;const C=l.value.findIndex(P=>P[0].date===i[0]&&P[6].date===i[1]),k=i[0].slice(0,7);c.value=[k,C]},{immediate:!0});const f=r.computed(()=>i=>c.value[0]===o.value&&c.value[1]===i),a=r.ref(null),b=i=>{!a.value.contains(i.target)&&t("update:sel",!1)},V=i=>{document.body[i]("click",b)};return r.watch(()=>e.sel,i=>{const C=i?"addEventListener":"removeEventListener";setTimeout(()=>{V(C)})},{immediate:!0}),()=>r.createVNode("div",{class:"ant-picker-week-panel",ref:a,style:"width: 100%;"},[r.createVNode("div",{class:"ant-picker-header"},[r.createVNode("button",{class:"ant-picker-header-super-prev-btn",onClick:i=>s(i,"prev","year")},[r.createVNode("span",{class:"ant-picker-super-prev-icon"},null)]),r.createVNode("button",{class:"ant-picker-header-prev-btn",onClick:i=>s(i,"prev","month")},[r.createVNode("span",{class:"ant-picker-prev-icon"},null)]),r.createVNode("div",{class:"ant-picker-header-view cal-month"},[J(o.value).format("YYYY年M月")]),r.createVNode("button",{class:"ant-picker-header-next-btn",onClick:i=>s(i,"next","month")},[r.createVNode("span",{class:"ant-picker-next-icon"},null)]),r.createVNode("button",{class:"ant-picker-header-super-next-btn",onClick:i=>s(i,"next","year")},[r.createVNode("span",{class:"ant-picker-super-next-icon"},null)])]),r.createVNode("div",{class:"ant-picker-body cal-box"},[r.createVNode("table",{class:"ant-picker-content"},[r.createVNode("thead",null,[r.createVNode("tr",null,[n.map((i,C)=>r.createVNode("th",{key:"week"+C},[i]))])]),r.createVNode("tbody",null,[l.value.map((i,C)=>r.createVNode("tr",{key:"row"+C,class:["ant-picker-week-panel-row",f.value(C)&&"ant-picker-week-panel-row-selected"]},[i.map(k=>r.createVNode("td",{key:"day"+k.date,class:["ant-picker-cell ant-picker-cell-in-view",f.value(C)&&"ant-picker-cell-selected"],onClick:()=>d(i)},[r.createVNode("div",{class:["ant-picker-cell-inner","cell-inner-sty",k.type!=="current"&&"out-month"]},[J(k.date).format("D")])]))]))])])])])}}),rr=r.defineComponent({emits:["update:modelValue"],props:["modelValue","firstDayOfWeek","placeholder","size","getPopupContainer"],setup(e,{emit:t,attrs:n}){const o=r.ref(null),l=c=>{let{start:d,end:f}=c;o.value=[d,f],t("update:modelValue",o.value)},s=r.computed(()=>o.value?`${o.value[0]} ~ ${o.value[1]}`:null);r.watch(()=>e.modelValue,c=>{c&&(o.value=c)},{immediate:!0});const p=r.ref(!1);return()=>r.createVNode(r.resolveComponent("a-select"),r.mergeProps({value:s.value,open:p.value,placeholder:e.placeholder,onClick:()=>{p.value=!0}},n),{dropdownRender:()=>r.createVNode(nr,{sel:p.value,"onUpdate:sel":c=>p.value=c,selValue:o.value,firstDayOfWeek:e.firstDayOfWeek,onChange:l},null)})}}),Vt=(e,t)=>{e=JSON.parse(JSON.stringify(e));let n=[];for(let o of e)o.path=o.pid==0?[o.id??o.value]:t.concat([o.id??o.value]),n.push(o),o.children?.length&&(n=n.concat(Vt(o.children,o.path)));return n},ie=r.defineComponent({name:"CloudFormItem",props:["props"],data(){return{specialGrid:"bpy-col-md-16 bpy-col-xl-12",newfieldList:[]}},mounted(){this.watchResize(),this.getnewfieldList(),window.addEventListener("resize",()=>this.watchResize(),!1);const{hideMargin:e=!0}=this.props;this.$refs.viewformcontent?this.$refs.viewformcontent.offsetParent.style.cssText=e?"margin-bottom:-8px !important":"margin-bottom:0px !important":setTimeout(()=>{this.$refs.viewformcontent&&(this.$refs.viewformcontent.offsetParent.style.cssText=e?"margin-bottom:-8px !important":"margin-bottom:0px !important")})},watch:{"props.fieldList"(e){this.getnewfieldList()},"props.form"(e){this.getnewfieldList()}},methods:{watchResize(){let e=window.screenWidth||document.body.clientWidth;e<1200?this.specialGrid="bpy-col-xs-24 bpy-col-sm-24":this.specialGrid="bpy-col-md-16",e<1200&&(this.screenWidth>1200||this.screenWidth<767)?(this.screenWidth=e,this.getnewfieldList()):e<767&&this.screenWidth>=767?(this.screenWidth=e,this.getnewfieldList()):e>=1200&&this.screenWidth<1200&&(this.screenWidth=e,this.getnewfieldList()),this.screenWidth=e},getnewfieldList(){if(this.props.type!="view")this.newfieldList=this.props.fieldList||[];else{let{column:e=3}=this.props;this.screenWidth<767?e=1:this.screenWidth<1200&&(e=2);const t=[];this.props.fieldList?.filter(n=>n.label&&n.isShow!==!1).map((n,o)=>{t[o%e]?t[o%e].push(n):t[o%e]=[n]}),this.newfieldList=t}},formatCascader(e,t){if((t?.type==="cascader"||t.type=="cascaderPeople")&&t.options?.length&&e[t.prop]){if(t.changeOnSelect){const l=(c,d)=>{c=JSON.parse(JSON.stringify(c));let f=[];for(let a of c)a.path=a.pid==0?[a.id??a.value]:d.concat([a.id??a.value]),f.push(a),a.children?.length&&(f=f.concat(l(a.children,a.path)));return f};l(t.options,[]).map(c=>(c.path=c.path.join(","),c.path)).includes(e[t.prop].join(","))||(e[t.prop]=null);return}const o=Vt(t.options,[]).map(l=>(l.path=l.path.join(","),l.path));if(t.multiple){e[t.prop]?.forEach((l,s)=>{const p=l.join(",");o.includes(p)||(e[t.prop]=e[t.prop].filter(c=>c.join(",")!=p))});return}o.includes(e[t.prop].join(","))||(e[t.prop]=null)}},renderForm(e,t){const{form:n,column:o=3,formRules:l=!1,type:s="",hasGrid:p=!0,offset:c="",popupContainer:d}=this.props,f=d==="body"?document.body:document.getElementsByClassName(d)?.[0];return r.createVNode(r.Fragment,null,[e?.length>0&&e.map((a,b)=>{if(s==="view"&&(a.type="text",a.rules=!1),a?.isShow!=!1){const V=a?.column?a?.column:o;if(s=="view"){let i=a?.content||n[a?.prop],C=null;return i===null||i===""||Array.isArray(i)&&i.length===0?C="-":C=a?.content||n[a?.prop],a.isText===!1?r.createVNode("div",{class:p?`${a?.type==="text"?"bpy-form-text bpy-formitem":""} bpy-col bpy-col-24 ${t[V-2]} ${t[V-1]} ${t[V]} ${c}`:"bpy-col bpy-col-24"},[r.createVNode("div",{class:"bpy-formitem-label"},[a.label+" :"]),r.createVNode("div",{class:"bpy-formitem-value"},[a.valType=="number"&&(a?.content||n[a?.prop])*1?r.createVNode(r.resolveComponent("a-statistic"),{precision:2,value:a?.content||n[a?.prop]},null):C])]):r.createVNode("div",{class:p?`bpy-col bpy-col-24 ${t[o-2]} ${t[o-1]} ${t[o]} ${c}`:"bpy-col bpy-col-24"},[r.createVNode(Yn,{props:{className:"bpy-form-text",isPage:f,label:a.label,data:n,item:a,value:a.valType=="number"&&(a?.content||n[a?.prop])*1+1?r.createVNode(r.resolveComponent("a-statistic"),{precision:2,value:a?.content||n[a?.prop]},null):C}},null)])}if(this.formatCascader(n,a),a.type==="select"&&a.hasOwnProperty("selectType")&&a?.selectType==="user"&&a?.options?.length&&n[a.prop]){let i=a?.options.map(C=>C.id);a?.mode==="multiple"&&n[a?.prop]?.forEach((C,k)=>{if(!i.includes(C)){const P=n[a?.prop].findIndex(F=>F==C);n[a?.prop].splice(P,1)}}),a.hasOwnProperty("mode")||i.includes(n[a?.prop])||(n[a?.prop]=null)}else if(a.type==="inpSelect")return r.createVNode(qn,{item:{...a,placeholder:a.placeholder||this.getPlaceholder(a)},data:n,popupContainer:d,className:p?`${a?.type==="text"?"bpy-form-text":""} bpy-col bpy-col-24 ${t[V-2]} ${t[V-1]} ${t[V]} ${c} ${a.column==2?"bpy-col-xl-12":""}`:"bpy-col bpy-col-24"},null);return r.createVNode(r.resolveComponent("a-form-item"),{colon:a?.type==="text",ref:"formItem",class:p?`${a?.type==="text"?"bpy-form-text":""} bpy-col bpy-col-24 ${t[V-2]} ${t[V-1]} ${t[V]} ${c} ${a.column==2?"bpy-col-xl-12":""}`:"bpy-col bpy-col-24",label:a?.label,name:a?.name||a?.prop,extra:a?.extra,rules:l?!1:a.rules,style:a?.type=="textarea"&&a.block!==!1?{display:"block!important"}:{}},{default:()=>[a?.type==="text"?a.valType=="number"&&(a?.content||n[a?.prop])*1?r.createVNode(r.resolveComponent("a-statistic"),{precision:2,value:a?.content||n[a?.prop]},null):a?.content||(n[a?.prop]===null||n[a?.prop]===""?"-":n[a?.prop]):"",a?.type==="input"&&r.createVNode(r.resolveComponent("a-input"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,placeholder:a.placeholder||this.getPlaceholder(a),colon:!0,type:a?.type,style:a?.style,maxlength:50},a),null),a?.type==="inputSearch"&&r.createVNode(r.resolveComponent("a-input-search"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,placeholder:a.placeholder||this.getPlaceholder(a)},a,{style:a?.style,"enter-button":a?.enterButton,enterButton:a?.custEnterButton}),null),a?.type==="password"&&r.createVNode(r.resolveComponent("a-input-password"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,placeholder:a.placeholder||this.getPlaceholder(a)},a),null),a?.type==="inputNumber"&&r.createVNode(r.resolveComponent("a-input-number"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i},a,{style:{width:"100%",...a?.style},placeholder:a.placeholder||this.getPlaceholder(a),"string-mode":a?.stringMode?a?.stringMode:!1}),null),a?.type==="textarea"&&r.createVNode(r.Fragment,null,[r.createVNode(r.resolveComponent("a-textarea"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,placeholder:a.placeholder||this.getPlaceholder(a),maxlength:200,showCount:!0},a,{style:a?.style,size:a?.size?a?.size:this.size}),null),a?.areaExtra]),a?.type==="select"&&r.createVNode(r.resolveComponent("a-select"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,placeholder:a.placeholder||this.getPlaceholder(a),type:a?.type,maxTagCount:1,showArrow:!0,style:a?.style,size:a?.size?a?.size:this.size,mode:a?.mode?a.mode:"combobox",showSearch:"showSearch"in a?a.showSearch:!0,optionFilterProp:a?.fieldNames&&a.fieldNames?.label||(a?.optLabel?a.optLabel:"label"),allowClear:a?.allowClear?a?.allowClear:!0},a,{fieldNames:a?.fieldNames?a?.fieldNames:{options:"children",label:a?.optLabel?a.optLabel:"label",value:a?.optVal?a.optVal:"value"},getPopupContainer:i=>d?f:i.offsetParent}),a.slots),a?.type==="otherSelect"&&r.createVNode(Hn,{item:{...a,placeholder:a.placeholder||this.getPlaceholder(a)},data:n,popupContainer:d},null),a?.type==="addSelect"&&r.createVNode(Gn,{item:{...a,placeholder:a.placeholder||this.getPlaceholder(a)},data:n,popupContainer:d},null),a?.type==="switch"&&r.createVNode(r.resolveComponent("a-switch"),r.mergeProps({checked:n[a?.prop],"onUpdate:checked":i=>n[a?.prop]=i,size:a?.size?a?.size:this.size,style:a?.style},a),null),a?.type==="radio"&&r.createVNode(r.resolveComponent("a-radio-group"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,style:a?.style},a,{buttonStyle:a?.buttonStyle?a?.buttonStyle:"outline",size:a?.size?a?.size:this.size}),{default:()=>[a?.options.map((i,C)=>a?.optType?r.createVNode(r.resolveComponent("a-radio-button"),{key:C,value:a?.optVal?i[a.optVal]:i.id,disabled:i?.disabled},{default:()=>[a?.optLabel?i[a.optLabel]:i.value]}):r.createVNode(r.resolveComponent("a-radio"),{key:C,value:a?.optVal?i[a.optVal]:i.id,disabled:i?.disabled},{default:()=>[a?.optLabel?i[a.optLabel]:i.value]}))]}),a?.type==="checkbox"&&r.createVNode(r.resolveComponent("a-checkbox-group"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,style:a?.style},a),{default:()=>[a?.options.map((i,C)=>r.createVNode(r.resolveComponent("a-checkbox"),{key:C,value:a?.optVal?i[a.optVal]:i.id,disabled:i?.disabled,indeterminate:i?.indeterminate},{default:()=>[a?.optLabel?i[a.optLabel]:i.value]}))]}),a?.type==="treeSelect"&&r.createVNode(r.resolveComponent("a-tree-select"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,maxTagCount:1},a,{style:a?.style,placeholder:a.placeholder||this.getPlaceholder(a),fieldNames:a?.fieldNames?a?.fieldNames:{children:"children",label:"title",value:"key"},treeDefaultExpandAll:a?.treeDefaultExpandAll?a?.treeDefaultExpandAll:!0,treeData:a?.options,getPopupContainer:i=>d?f:i.offsetParent}),null),a?.type==="datePicker"&&r.createVNode(r.resolveComponent("a-date-picker"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i},a,{style:{width:"100%",...a?.style},format:a?.format?a?.format:"YYYY-MM-DD",placeholder:a.placeholder||this.getPlaceholder(a),size:a?.size?a?.size:this.size,valueFormat:a?.valueFormat?a?.valueFormat:"YYYY-MM-DD",getPopupContainer:i=>d?f:i.offsetParent}),null),a?.type==="aloneDate"&&r.createVNode(rr,r.mergeProps({modelValue:n[a?.prop],"onUpdate:modelValue":i=>n[a?.prop]=i},a,{style:{width:"100%",...a?.style},placeholder:a.placeholder||this.getPlaceholder(a),size:a?.size?a?.size:this.size,firstDayOfWeek:a.firstDayOfWeek}),null),a?.type==="rangePicker"&&r.createVNode(r.resolveComponent("a-range-picker"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i},a,{style:{...a?.style,width:"100%"},format:a?.format?a?.format:"YYYY-MM-DD",placeholder:a.placeholder||this.getPlaceholder(a),valueFormat:a?.valueFormat?a?.valueFormat:"YYYY-MM-DD",getPopupContainer:i=>d?f:i.offsetParent}),null),a?.type==="cascader"&&r.createVNode(r.resolveComponent("a-cascader"),r.mergeProps({showArrow:!0,value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,getPopupContainer:i=>d?f:i.offsetParent},a,{style:{...a?.style},placeholder:a.placeholder||this.getPlaceholder(a)}),null),a?.type==="cascaderPeople"&&r.createVNode(r.Fragment,null,[r.createVNode(r.resolveComponent("a-cascader"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i},a,{style:{...a?.style},open:!1,multiple:a?.multiple===!1?a.multiple:!0,showCheckedStrategy:"SHOW_CHILD",showArrow:!0,showSearch:!0,placeholder:a.placeholder||this.getPlaceholder(a),getPopupContainer:i=>d?f:i.offsetParent,onDropdownVisibleChange:i=>{a?.openCascader?.(),this.$refs[`wePeopleRef_${b}`].selectVal=n[a?.prop],this.$refs[`wePeopleRef_${b}`].modal.visible=i}}),null),r.createVNode(fe,{ref:`wePeopleRef_${b}`,props:{treeList:a?.pelOptions||a?.options,fieldNames:a?.fieldNames,multiple:a?.multiple===!1?a.multiple:!0,title:a.title,labelText:a.labelText,labelWidth:a.labelWidth,...a},onClose:i=>{a?.cascaderClose?.(),this.$refs[`wePeopleRef_${b}`].modal.visible=!1},onSure:(i,C)=>{a?.cascaderSuccess?.(),n[a?.prop]=i,this.$refs[`wePeopleRef_${b}`].modal.visible=!1,a?.classify||a.onChange(i,C)}},null)]),a?.type==="other"&&a?.content]})}})])},renderSpecialLog(e,t){const{form:n}=this.props;return r.createVNode(r.Fragment,null,[e.length>0&&e.map((o,l)=>r.createVNode("div",{class:"bpy-form-text bpy-formitem-text-box bpy-special-log-box"},[r.createVNode("div",{class:"bpy-formitem-text bpy-special-log"},[r.createVNode("div",{class:"bpy-special-log-header"},[r.createVNode("span",{class:"bpy-special-log-icon"},null),r.createVNode("span",{class:"bpy-special-log-title"},[o?.label])]),r.createVNode("div",{class:"bpy-special-log-content"},[r.createVNode("div",{class:"bpy-special-log-text"},[n[o?.prop]])])])]))])}},setup({props:e}){return{getPlaceholder:({label:o,type:l,selfPlaceholder:s,prop:p})=>{let c,d=["input","inputSearch","textarea","password","inputNumber"],f=["date","datePicker"],a=["select","treeSelect","cascader","cascaderPeople"];return e?.viewType==="view"?l==="rangePicker"?c=["无","无"]:c="无":s?c=s:d.includes(l)?c="请输入"+o:f.includes(l)?c="请选择"+o:a.includes(l)?c="请选择或输入搜索":l==="rangePicker"?c=["开始日期","结束日期"]:c=o,c},size:"default"}},render(){const{fieldList:e=[],form:t,column:n=3,formRules:o=!1,type:l="",hasGrid:s=!0,offset:p="",popupContainer:c,showType:d="default"}=this.props,f={1:"bpy-col-xs-24 bpy-col-sm-24",2:n===3?this.specialGrid:"bpy-col-md-12",3:"bpy-col-lg-8 bpy-col-xl-6 bpy-col-md-12"};return c==="body"?document.body:document.getElementsByClassName(c)?.[0],e?.length>0&&l!="view"?this.renderForm(e,f):l=="view"?r.createVNode(Un,{props:this.props},null):l=="view"?r.createVNode("div",{class:"bpy-formitem-content",ref:"viewformcontent"},[d==="default"&&this.renderForm(e?.filter(a=>a.label&&a.isShow!=!1),f),d==="specialLog"&&this.newfieldList.map((a,b)=>r.createVNode("div",{class:s?`bpy-col bpy-col-24 ${f[n-2]} ${f[n-1]} ${f[n]} ${p}`:"bpy-col bpy-col-24"},[this.renderSpecialLog(a,f)]))]):""}}),Re=r.defineComponent({name:"CloudForm",props:["props"],setup({props:e}){const t=r.ref();let n=r.reactive({rules:{}});const o=()=>{n.rules=e?.fieldList.reduce((l,s)=>(s.type==="select"&&s.rules&&s.rules.length>0?(s.rules=[{...s.rules[0],message:"请选择或输入搜索"}],l[s.prop]=s.rules):s.rules&&s.rules.length>0&&(s.selfRules=[{...s.rules[0],message:"selfLabel"in s?s.rules[0].message+s.selfLabel:s.rules[0].message+s.label}],l[s.prop]=s.selfRules),l),{})};return r.watch(e.fieldList,()=>o),o(),{weForm:t,getRules:o,formRules:n}},render(){const{type:e,form:t,layout:n="horizontal",labelAlign:o="right",labelWrap:l=!1,wrapperCol:s,showBtn:p=!1,formRules:c=!0}=this.props,{rules:d}=this.formRules,f={style:{width:`${this.props?.labelWidth}px`,textAlign:o}};return r.createVNode(r.resolveComponent("a-form"),{ref:"weForm",model:t,rules:d,layout:n,labelCol:f,labelWrap:l,wrapperCol:s,onFinish:this.onFinish,onFinishFailed:this.onFinishFailed},{default:()=>[r.createVNode(ie,{props:{...this.props,formRules:c}},null)]})}}),We=r.defineComponent({name:"CloudFooterToolbar",data(){return{}},props:["props"],mounted(){},methods:{},setup(){return{}},render(){const{props:e}=this;return r.createVNode(r.resolveComponent("a-card"),r.mergeProps({class:"bpy-toolbar",bodyStyle:e?.card?.bodyStyle||{padding:"8px 8px"}},e?.card?.restProps),{default:()=>[r.createVNode("div",{class:"bpy-toolbar-flex-end"},[r.createVNode(r.resolveComponent("a-space"),null,{default:()=>[r.createVNode(r.resolveComponent("a-button"),{onClick:()=>{if(e?.selfClose){e?.selfClose();return}e?.onClose?e?.onClose():window.close()}},{default:()=>[e?.cancelText||"取消"]}),r.createVNode(r.Fragment,null,[e?.onFinish&&e?.routeType!=="view"&&r.createVNode(r.resolveComponent("a-button"),{type:e?.saveType||"default",loading:e?.saveLoading||!1,onClick:()=>{e?.onFinish(),setTimeout(()=>{document.querySelectorAll(".ant-form-item-has-error")?.[0]?.scrollIntoView({block:"center",behavior:"smooth"})})}},{default:()=>[e?.saveText||"暂存"]}),e?.onSubmit&&e?.routeType!=="view"&&r.createVNode(r.resolveComponent("a-button"),{type:e?.submitType||"primary",loading:e?.submitLoading,onClick:()=>{e?.onSubmit(),setTimeout(()=>{document.querySelectorAll(".ant-form-item-has-error")?.[0]?.scrollIntoView({block:"center",behavior:"smooth"})})}},{default:()=>[e?.submitText||"提交"]})])]})])]})}}),Ee=r.defineComponent({name:"CloudLoading",render(){return r.createVNode("div",{class:"bpy-data-loading"},[r.createVNode("div",{class:"bpy-data-loading-dot"},[r.createVNode("div",null,null),r.createVNode("div",null,null),r.createVNode("div",null,null),r.createVNode("div",null,null),r.createVNode("div",null,null)]),r.createVNode("div",{class:"bpy-data-loading-msg"},[r.createTextVNode("努力加载中")])])}}),Be=r.defineComponent({name:"CloudLights",props:{type:{default:"success",type:String,validator:e=>["success","info","primary","warning","danger"].includes(e)},size:{type:String,default:"small"},name:{default:"",type:String},color:{default:"",type:String}},setup(e){return()=>r.createVNode("div",{class:"bpy-lights"},[r.createVNode("span",{class:[e.type,"light"],style:{background:e.color,width:e.size,height:e.size}},null),r.createVNode("span",null,[e.name])])}}),or=r.defineComponent({name:"search",components:{DoubleRightOutlined:we,DoubleLeftOutlined:Ce},props:["props"],data(){return{isOpen:void 0,hasToggle:!1,screenWidth:document.body.clientWidth,fieldListLength:0,formData:{},stop:null,searchRef:null,noAnimation:!0}},mounted(){this.searchRef=this.$refs.search,window.addEventListener("resize",()=>this.watchResize(),!1),this.observerHeight()},beforeUpdate(){this.noAnimation=!0},methods:{uuid(e="-"){const t=[],n="0123456789abcdef";for(let o=0;o<36;o++)t[o]=n.substr(Math.floor(Math.random()*16),1);return t[14]="4",t[19]=n.substr(t[19]&3|8,1),t[8]=t[13]=t[18]=t[23]=e,t.join("")},toggle(){this.isOpen=!this.isOpen,this.noAnimation=!1},watchResize(){this.$refs.search?.clientHeight>48?this.hasToggle=!0:this.$refs.search&&(this.hasToggle=!1)},observerHeight(){const e=this.searchRef;window&&"ResizeObserver"in window&&e&&(this.stop=new ResizeObserver(t=>{for(const n of t)n.target.clientHeight>48?this.hasToggle=!0:this.hasToggle=!1}),this.stop?.observe(e))}},unmounted(){this.stop?.unobserve(this.searchRef)},render(){const e={style:{width:`${this.props?.labelWidth}px`}},t={style:{marginLeft:`${this.props?.labelWidth}px`}},n=this.$slots.part()[0];return n.props.props.popupContainer||(n.props.props.popupContainer="body"),n.props.props&&n.props.props.fieldList.forEach(o=>{o.type==="select"&&(o.placeholder="请选择或输入搜索")}),this.$slots.part&&r.createVNode("div",{class:"search-wrapper"},[r.createVNode(r.resolveComponent("a-form"),{labelCol:e,wrapperCol:t,name:this.uuid()},{default:()=>[r.createVNode("div",{class:`search-input ${this.noAnimation?"noAnimation":""} ${this.isOpen?"search-collapse":this.isOpen===!1?"search-line":"default-search"}`},[r.createVNode("div",{class:"search-form-box",ref:"search"},[n])]),r.createVNode("div",{class:"search-button"},[r.createVNode(r.resolveComponent("a-button"),{onClick:()=>this.props?.reset()},{default:()=>[r.createTextVNode("重置")]}),r.createVNode(r.resolveComponent("a-button"),{onClick:()=>this.props?.search()},{default:()=>[this.props.searchText?this.props.searchText:"搜索"]}),r.createVNode(r.resolveComponent("a-button"),{type:"link",onClick:this.toggle,style:{display:this.hasToggle?"inline-block":"none"}},{default:()=>[this.isOpen?r.createVNode(r.Fragment,null,[r.createVNode("span",{style:{fontSize:"13px"}},[r.createTextVNode("折叠")]),r.createVNode(we,{style:"transform: rotate(-90deg);margin-top: -2px;"},null)]):r.createVNode(r.Fragment,null,[r.createVNode("span",{style:{fontSize:"13px"}},[r.createTextVNode("展开")]),r.createVNode(Ce,{style:"transform: rotate(-90deg);margin-top: -2px;"},null)])]})])]})])}}),ar=r.defineComponent({name:"TagsSelect",data(){return{}},props:["props"],methods:{},setup({props:e},t){const n=r.ref(!1),o=r.ref([]),l=(s,p)=>{if(e?.multiple){let c=p?[...o.value,s]:o.value.filter(d=>d!==s);o.value=c,e.changeTags(c)}else o.value=[],o.value=[s],e.changeTags([s])};return r.onMounted(()=>{e?.tagsVal&&(o.value=e?.tagsVal)}),{handleChange:l,checked:n,selectedTags:o}},render(){return r.createVNode("div",{class:"bpy-unit-list"},[r.createVNode("div",{class:"bpy-unit-list-label"},[this.props?.tagsLabel,r.createTextVNode(":")]),r.createVNode("div",{class:"bpy-unit-list-value"},[this.props?.tagsList.map(e=>{let t=this.selectedTags?.indexOf(e.id)>-1;return r.createVNode(r.Fragment,null,[r.createVNode(r.resolveComponent("a-checkable-tag"),{key:e.id,class:t?"ant-tag-checkable-after":"ant-tag-checkable-before",checked:t,"onUpdate:checked":n=>t=n,onChange:n=>this.handleChange(e.id,n)},{default:()=>[e.name]})])})]),r.createVNode("div",{class:"bpy-unit-list-control"},null)])}});function lr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const sr=[{id:"import",text:"导入",type:"default"},{id:"export",text:"导出",type:"default"},{id:"upload",text:"上传",type:"default"},{id:"download",text:"下载",type:"default"},{id:"template",text:"模板",type:"default"},{id:"add",text:"新增",type:"primary",icon:r.createVNode(_e,null,null)}],Ot=(e,t="")=>{let n=[];return e.forEach(o=>{if(o.children&&o.children.length){const l=t?`${t}-`:"";n=n.concat(Ot(o.children,`${l}${o.title}`))}else{const l=t?`${t}-${o.title}`:o.selfTitle||o.title,s=t?`${t} > ${o.title}`:o.selfTitle||o.title;n.push({value:l,label:s,disabled:o.disabled,dataIndex:o.dataIndex,originCol:o,parentTitle:t})}}),n},vt=(e,t,n="")=>e.filter(o=>{const l=n?`${n}-${o.title}`:o.selfTitle||o.title;if(o.children&&o.children.length){const s=vt(o.children,t,l);return s.length>0?(o.children=s,!0):!1}return t.has(l)}),ir=r.defineComponent({name:"TopButton",props:["props"],emits:["BtnClick","changeColumns"],data(){return{checkAll:!0,indeterminate:!1,options:[],checkedList:[]}},inject:["parent"],mounted(){this.options=Ot(this.props.columns||[]),this.checkedList=this.options.map(e=>e.value)},watch:{checkedList(e){this.indeterminate=!!e.length&&e.length<this.options.length,this.checkAll=e.length===this.options.length;const t=new Set(e),n=vt(this.props.columns||[],t);this.$emit("changeColumns",n)},"props.columns":{handler(e,t){if(t!=e){const n=e.map(o=>({value:o?.selfTitle?o.selfTitle:o.title,label:o?.selfTitle?o.selfTitle:o.title,disabled:o.disabled,dataIndex:o.dataIndex,width:o.width}));JSON.stringify(this.options)!=JSON.stringify(n)?(this.options=n,this.checkedList=n.map(o=>o.value)):this.$emit("changeColumns",e.filter(o=>{if(this.checkedList.includes(o?.selfTitle?o.selfTitle:o.title)){if(o.dataIndex=="operation"){const l=this.parent.columns?.find(s=>s.dataIndex==o.dataIndex);l&&(o.width=l.width)}return!0}}))}},deep:!0}},methods:{onCheckAllChange(e){this.checkedList=e.target.checked?this.options.map(t=>t.value):this.options.filter(t=>t.disabled).map(t=>t.value)||[],this.indeterminate=!1},setBtnClick(e){this.$emit("BtnClick",e)},getBtn(e){const t=e.popConfirmText||"确认执行此操作吗?",n=e.popSubmitText||"确认",o=e.popCancelText||"取消",l=r.createVNode(r.resolveComponent("a-button"),{style:{marginLeft:"8px"},type:e.type,disabled:e.disabled,onClick:()=>this.setBtnClick(e.id)},{default:()=>[e.text],icon:e.icon?()=>e.icon:null});return e.isPopUp?r.createVNode(r.resolveComponent("a-popconfirm"),{title:t,"ok-text":n,"cancel-text":o,onConfirm:()=>this.setBtnClick(e.id)},lr(l)?l:{default:()=>[l]}):l}},render(){const{isShowColumnsSetting:e=!0,isShowRefresh:t=!0}=this.props;return r.createVNode(r.Fragment,null,[this.props.btnGroupBefore?.map(n=>{if(!(n.isShow??!0))return null;const o=sr.find(s=>s.id===n.id),l=o?{...o,...n}:n;return this.getBtn(l)}),t&&r.createVNode(r.resolveComponent("a-tooltip"),{title:"刷新"},{default:()=>[r.createVNode("span",{class:"bpy-operate-icon",onClick:()=>this.setBtnClick("refresh")},[r.createVNode(ze,null,null)])]}),e&&r.createVNode(r.resolveComponent("a-popover"),{overlayClassName:"bpy-column-operate",getPopupContainer:n=>n.offsetParent||document.body,title:r.createVNode("div",null,[r.createVNode(r.resolveComponent("a-checkbox"),{checked:this.checkAll,indeterminate:this.indeterminate,onChange:n=>this.onCheckAllChange(n)},{default:()=>[r.createTextVNode("列展示")]})]),content:r.createVNode(r.resolveComponent("a-checkbox-group"),{options:this.options,value:this.checkedList,onChange:n=>this.checkedList=n},null),placement:"bottomRight",trigger:"click"},{default:()=>[r.createVNode(r.resolveComponent("a-tooltip"),{title:"列设置"},{default:()=>[r.createVNode("span",{class:"bpy-operate-icon"},[r.createVNode(Fe,null,null)])]})]}),this.$slots.btnGroupAfter?.()])}}),cr=e=>{const t={};for(let n in e)if(n.includes("date")){const o=n.replace("date","");t[`${o}start_date`]=e[n]?.[0],t[`${o}end_date`]=e[n]?.[1]}else if(Array.isArray(e[n])){const o=e[n]?.join(",");e[n]=o||null}return{...e,...t}};function $t(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const kt=[{id:"view",text:"查看",isShow:!0},{id:"delete",text:"删除",isShow:!0},{id:"edit",text:"编辑",isShow:!0}],Ye=r.defineComponent({name:"CloudTable",props:["props"],setup(e,{emit:t,expose:n}){const o=e.props,l=r.reactive({searchForm:{},activeKey:o.tabsConfig?.activeKey,tagsVal:o.tagsSelect?.tagValue||[]}),s=r.ref(null),p=r.ref([...o.columns]),c=r.reactive({loading:!1,pagination:{total:0,pageSize:10,current:1},dataSource:[]}),d=r.ref(o.rowSelection?.selectedRowKeys||[]),f=()=>r.createVNode(ie,{props:{fieldList:o.fieldList,form:l.searchForm}},null),a=()=>r.createVNode("div",{class:"bpy-table-tabs",style:"position: relative !important; background: #fff"},[r.createVNode(r.resolveComponent("a-tabs"),{activeKey:l.activeKey,"onUpdate:activeKey":y=>l.activeKey=y,onChange:y=>l.activeKey=y},{default:()=>[o.tabsConfig?.panes.map(y=>r.createVNode(r.resolveComponent("a-tab-pane"),{key:y.key,tab:y.title},null))]})]),b=()=>r.createVNode(ar,{props:{tagsLabel:o.tagsSelect?.label,tagsList:o.tagsSelect?.options,tagsVal:l.tagsVal,multiple:o.tagsSelect?.multiple,changeTags:y=>{l.tagsVal=y,c.pagination.current=1,j()}}},null),V=()=>r.createVNode(ir,{onChangeColumns:y=>{p.value=y},props:o,onBtnClick:y=>i(y,{})},{btnGroupAfter:o?.btnGroupAfter}),i=(y,v)=>{switch(y){case"refresh":j();break;case"delete":E("single",v);break;case"deleteAll":E("batch",v);break;default:t("Command",{command:y,row:v});break}},C=(y,v)=>{let O,w;if(y.customRender)return y.customRender(v);const L=()=>y.text?y.text:kt.find(m=>m.id===y.id)?.text||"未知操作",q=y.popConfirmText||"确认执行此操作?",N=y.popSubmitText||"确认",h=y.popCancelText||"取消";return y.isPopUp?r.createVNode(r.resolveComponent("a-popconfirm"),{title:q,"ok-text":N,"cancel-text":h,onConfirm:()=>i(y.id,v)},{default:()=>[r.createVNode(r.resolveComponent("a-button"),{type:"text"},$t(O=L())?O:{default:()=>[O]})]}):r.createVNode(r.resolveComponent("a-button"),{type:"text",onClick:()=>i(y.id,v)},$t(w=L())?w:{default:()=>[w]})},k=y=>{const v=[...kt,...o.recordBtns||[]],O=[],w=new Set;for(let L=v.length-1;L>=0;L--){const q=v[L];w.has(q.id)||(w.add(q.id),O.unshift(q))}return r.createVNode("div",null,[O.map(L=>(typeof L.isShow=="function"?L.isShow(y):L.isShow??!0)?C(L,y):null)])},P=y=>(c.pagination.current-1)*c.pagination.pageSize+y+1,F=({text:y,record:v,index:O,column:w})=>w?w.customRender?w.customRender({text:y,record:v,index:O,column:w}):w.dataIndex==="index"||w.title==="序号"?P(O):w.dataIndex==="action"||w.title==="操作"?k(v):y:null,M=()=>{c.pagination.current=1,j()},z=()=>{l.searchForm={},l.tagsVal=[],c.pagination.current=1,c.dataSource=[],j()},j=async y=>{try{if(!o.servicesApi?.list){ne.message.warning("缺少列表接口配置");return}c.loading=!0;const{current:v,pageSize:O}=c.pagination,w=cr(l.searchForm),{code:L,data:q,rows:N,total:h}=await o.servicesApi.list({page:v,pageSize:O,...w,...o.otherParams,...y,tabKey:l.activeKey,tags:l.tagsVal});L===200&&(c.dataSource=q||N,c.pagination.total=h)}catch(v){throw ne.message.error("列表请求失败"),v}finally{c.loading=!1}},E=async(y,v)=>{const O=async w=>{if(!o.servicesApi?.delete){ne.message.warning("缺少删除接口配置");return}const{code:L}=await o.servicesApi.delete({ids:w});L===200&&(ne.message.success("删除成功"),j())};if(y==="batch"){if(d.value.length===0){ne.message.warning("请选择要删除的行");return}await O(d.value.join(","))}else{if(!v?.id){ne.message.warning("行数据缺少id,无法删除");return}await O(v.id.toString())}},B=(y,v)=>{d.value=y,o.rowSelection?.onChange?.(y,v)},Q=y=>{c.pagination.current=y.current,c.pagination.pageSize=y.pageSize,j()};return n({AntdTableRef:s,getList:j,search:M,reset:z}),r.onMounted(()=>{j()}),()=>r.createVNode("div",{class:"bpy-table-box"},[r.createVNode("div",{class:["bpy-table-header"]},[o.tabsConfig?.panes?.length&&a(),o?.tagsSelect&&b(),r.createVNode(or,{props:{...o,search:M,reset:z}},{part:f()})]),r.createVNode("div",{class:["we-table"]},[r.createVNode("div",{class:"bpy-title"},[r.createVNode("div",{class:{"bpy-table-title-left":typeof o.name=="string"}},[o.name||""]),r.createVNode("div",null,[V()])]),r.createVNode("div",null,[r.createVNode(r.resolveComponent("a-table"),{ref:s,rowKey:o.rowKey,loading:c.loading,dataSource:c.dataSource,columns:p.value.length>0?p.value:o.columns,pagination:!1,scroll:o.scroll,rowSelection:o.rowSelection?{columnWidth:48,...o.rowSelection,selectedRowKeys:d.value,onChange:B}:null},{bodyCell:o.bodyCell||F}),c.pagination.total>0&&r.createVNode("div",{class:"bpy-table-footer"},[r.createVNode("div",null,null),r.createVNode("div",{class:"bpy-table-pagination"},[r.createVNode(r.resolveComponent("a-pagination"),{showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:["10","20","50","100"],total:c.pagination.total,pageSize:c.pagination.pageSize,current:c.pagination.current,onChange:Q,onShowSizeChange:Q},null)])])])])])}}),dr=[Re,ie,fe,ue,We,Ee,Be,Ye],pr={install:function(e){dr.forEach(t=>{e.component(t.name,t)})},CloudForm:Re,CloudFormItem:ie,CloudPeople:fe,CloudModal:ue,CloudFooterToolbar:We,CloudLoading:Ee,CloudLights:Be,CloudTable:Ye};D.CloudFooterToolbar=We,D.CloudForm=Re,D.CloudFormItem=ie,D.CloudLights=Be,D.CloudLoading=Ee,D.CloudModal=ue,D.CloudPeople=fe,D.CloudTable=Ye,D.default=pr,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sn(e,t){if(e){if(typeof e=="string")return ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ut(e,t)}}function ut(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Vn(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o=[],l=!0,s=!1,p,c;try{for(n=n.call(e);!(l=(p=n.next()).done)&&(o.push(p.value),!(t&&o.length===t));l=!0);}catch(d){s=!0,c=d}finally{try{!l&&n.return!=null&&n.return()}finally{if(s)throw c}}return o}}function On(e){if(Array.isArray(e))return e}function ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){le(e,l,n[l])})}return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vn(e,t){if(e==null)return{};var n=$n(e,t),o,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)o=s[l],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function $n(e,t){if(e==null)return{};var n={},o=Object.keys(e),l,s;for(s=0;s<o.length;s++)l=o[s],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}pt(Ut.primary);var W=function(t,n){var o,l=ft({},t,n.attrs),s=l.class,p=l.icon,c=l.spin,d=l.rotate,f=l.tabindex,a=l.twoToneColor,b=l.onClick,V=vn(l,wn),i=et(),C=i.prefixCls,k=i.rootClassName,T=(o={},le(o,k.value,!!k.value),le(o,C.value,!0),le(o,"".concat(C.value,"-").concat(p.name),!!p.name),le(o,"".concat(C.value,"-spin"),!!c||p.name==="loading"),o),z=f;z===void 0&&b&&(z=-1);var M=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,F=it(a),j=Nn(F,2),E=j[0],B=j[1];return r.createVNode("span",ft({role:"img","aria-label":p.name},V,{onClick:b,class:[T,s],tabindex:z}),[r.createVNode(Z,{icon:p,primaryColor:E,secondaryColor:B,style:M},null),r.createVNode(Cn,null,null)])};W.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},W.displayName="AntdIcon",W.inheritAttrs=!1,W.getTwoToneColor=yn,W.setTwoToneColor=pt;var kn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Pn(e,l,n[l])})}return e}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce=function(t,n){var o=ht({},t,n.attrs);return r.createVNode(W,ht({},o,{icon:kn}),null)};Ce.displayName="DoubleLeftOutlined",Ce.inheritAttrs=!1;var Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Ln(e,l,n[l])})}return e}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var we=function(t,n){var o=gt({},t,n.attrs);return r.createVNode(W,gt({},o,{icon:Tn}),null)};we.displayName="DoubleRightOutlined",we.inheritAttrs=!1;var Mn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){An(e,l,n[l])})}return e}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var je=function(t,n){var o=bt({},t,n.attrs);return r.createVNode(W,bt({},o,{icon:Mn}),null)};je.displayName="DownOutlined",je.inheritAttrs=!1;var Dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){jn(e,l,n[l])})}return e}function jn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _e=function(t,n){var o=mt({},t,n.attrs);return r.createVNode(W,mt({},o,{icon:Dn}),null)};_e.displayName="PlusOutlined",_e.inheritAttrs=!1;var _n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};function yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Fn(e,l,n[l])})}return e}function Fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fe=function(t,n){var o=yt({},t,n.attrs);return r.createVNode(W,yt({},o,{icon:_n}),null)};Fe.displayName="RedoOutlined",Fe.inheritAttrs=!1;var zn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"};function Ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){In(e,l,n[l])})}return e}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=function(t,n){var o=Ct({},t,n.attrs);return r.createVNode(W,Ct({},o,{icon:zn}),null)};se.displayName="RollbackOutlined",se.inheritAttrs=!1;var Rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};function wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Wn(e,l,n[l])})}return e}function Wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=function(t,n){var o=wt({},t,n.attrs);return r.createVNode(W,wt({},o,{icon:Rn}),null)};ze.displayName="SettingOutlined",ze.inheritAttrs=!1;var En={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function Nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),o.forEach(function(l){Bn(e,l,n[l])})}return e}function Bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie=function(t,n){var o=Nt({},t,n.attrs);return r.createVNode(W,Nt({},o,{icon:En}),null)};Ie.displayName="UpOutlined",Ie.inheritAttrs=!1;const Yn=r.defineComponent({props:["props"],components:{DownOutlined:je,UpOutlined:Ie},data(){return{showIcon:!1,isOpen:!1,clientWidth:"",setfun:null}},mounted(){},methods:{toggle(){this.isOpen=!this.isOpen}},setup(){return{}},render(){const{text:e,className:t,value:n,label:o,item:l}=this.props;return r.withDirectives(r.createVNode("div",{ref:"text",class:`${t}${this.showIcon?" bpy-formitem-ellipsis":""} bpy-formitem-text-box bpy-formitem-text-ellipsis-box`},[r.createVNode("div",{class:"bpy-formitem-text"},[o,r.createTextVNode(" :"),n]),this.showIcon?r.createVNode(r.resolveComponent("a-popover"),{placement:"bottomRight",trigger:"click",visible:this.isOpen,"onUpdate:visible":s=>this.isOpen=s,content:r.createVNode("div",{class:"bpy-formitem-text-pop-box"},[r.createVNode(r.resolveComponent("a-tag"),{class:"themeTagColor"},{default:()=>[this.props.label]}),r.createVNode("div",{class:"bpy-formitem-text-pop-content"},[this.props.value])]),getPopupContainer:s=>document.getElementsByClassName("bpy-formitem-content")[0]},{default:()=>[r.createVNode(r.resolveComponent("a-button"),{type:"link",onClick:()=>this.toggle()},{default:()=>[this.isOpen?r.createVNode(r.Fragment,null,[r.createTextVNode("折叠"),r.createVNode(r.resolveComponent("up-outlined"),null,null)]):r.createVNode(r.Fragment,null,[r.createTextVNode("展开"),r.createVNode(r.resolveComponent("down-outlined"),null,null)])]})]}):""]),[[r.resolveDirective("resize"),({width:s,height:p})=>{const c=p,d=s;if(c>24){this.showIcon=!0,this.clientWidth=d;return}if(this.clientWidth&&d!=this.clientWidth){d>this.clientWidth?(this.showIcon=!1,this.clientWidth=d,this.setfun&&clearTimeout(this.setfun),this.setfun=setTimeout(()=>{this.$refs.text.clientHeight>22?this.showIcon=!0:(this.showIcon=!1,this.isOpen=!1)})):(this.clientWidth=d,this.$refs.text.clientHeight>22?this.showIcon=!0:(this.showIcon=!1,this.isOpen=!1));return}}]])}}),Un=r.defineComponent({props:["props"],setup(e,t){const n=r.ref(null),o=r.ref(null),l=r.reactive({descriptionsColumn:3,fieldList:[],otherContentWidth:null,otherList:[],labelWidth:null}),s=r.computed(()=>{let b=[];const V=e.props.fieldList.filter(i=>(i.content?.type?.name=="WeUpload"||i.span)&&i.isShow!=!1);return e.props.isSpecial||V.forEach(i=>{const C=e.props.fieldList.findIndex(k=>k.label==i.label);e.props.fieldList.splice(C,1)}),b=e.props.fieldList.filter(i=>i.isShow!=!1).filter(i=>!i.span),c(),[b,V]}),p=()=>{var b=document.body.clientWidth;b>=1920&&(l.descriptionsColumn=3),b<1920&&(l.descriptionsColumn=2),b<950&&(l.descriptionsColumn=1)},c=()=>{r.nextTick(()=>{n.value.querySelectorAll(".ant-descriptions-item-label").forEach(V=>{l.labelWidth=l.labelWidth<V.offsetWidth?V.offsetWidth:l.labelWidth})})};r.onMounted(()=>{p(),window.addEventListener("resize",p),d()}),r.onUnmounted(()=>{window.removeEventListener("resize",p)});const d=()=>{const b=new ResizeObserver(i=>{i.forEach(C=>{const k=C.target,{width:T,height:z}=k.getBoundingClientRect(),M=l.labelWidth>200?200:l.labelWidth;l.otherContentWidth=l.descriptionsColumn==3?`${Math.floor(T/3)-M}px`:null})}),V=document.querySelector(".defaultDescriptions");V&&b.observe(V)},f=b=>{if(l.descriptionsColumn==3)return b%3==0;if(l.descriptionsColumn==2||l.descriptionsColumn==1)return null},a=b=>{if(b.length%3!=0)return b.length%3};return()=>r.createVNode("div",{class:"WeFromView",ref:n},[r.createVNode(r.resolveComponent("a-descriptions"),{ref:o,colon:!1,bordered:!0,column:l.descriptionsColumn,class:"defaultDescriptions"},{default:()=>[s.value?.[0].map((b,V,i)=>r.createVNode(r.resolveComponent("a-descriptions-item"),{labelStyle:{minWidth:`${l.labelWidth}px`},contentStyle:{minWidth:f(V)&&a(s.value?.[0])==2?l.otherContentWidth:null,maxWidth:f(V)&&a(s.value?.[0])==2?l.otherContentWidth:null},label:b.label},{default:()=>[b?.content||e.props.form[b?.prop]||"-"]}))]}),!!s.value?.[1].length&&r.createVNode(r.resolveComponent("a-descriptions"),{class:"imageDescriptions",colon:!1,bordered:!0,column:l.descriptionsColumn},{default:()=>[s.value?.[1].map(b=>r.createVNode(r.resolveComponent("a-descriptions-item"),{labelStyle:{minWidth:`${l.labelWidth}px`},span:3,label:b.label},{default:()=>[b?.content||e.props.form[b?.prop]||"-"]}))]})])}}),Hn=r.defineComponent({props:{data:Object,item:Object,popupContainer:String},components:{RollbackOutlined:se},data(){return{showInput:!1,openSelect:!1}},watch:{selectOptions:{handler(e,t){this.data[this.item?.prop]==-999999?this.showInput=!0:this.data[this.item?.prop]&&(this.selectOptions.find(o=>o[this.item?.fieldNames?.value||this.item?.optVal||"value"]==this.data[this.item?.prop])?this.showInput=!1:this.showInput=!0)},immediate:!0},selectId:{handler(e,t){this.data[this.item?.prop]==-999999?this.showInput=!0:this.data[this.item?.prop]&&(this.selectOptions.find(o=>o[this.item?.fieldNames?.value||this.item?.optVal||"value"]==this.data[this.item?.prop])?this.showInput=!1:this.showInput=!0)},immediate:!0}},computed:{selectId:{set(e){this.data[this.item?.prop]=e},get(){return this.data[this.item?.prop]}},selectOptions(){return[...this.item.options||[],{[this.item?.fieldNames?.value||this.item?.optVal||"value"]:-999999,[this.item?.fieldNames?.label||this.item?.optLabel||"label"]:"其它"}]}},mounted(){},methods:{renderSelect(e,t){const n=this.popupContainer==="body"?document.body:document.getElementsByClassName(this.popupContainer)?.[0];return r.createVNode(r.resolveComponent("a-select"),r.mergeProps({ref:"selectRef",value:this.selectId,"onUpdate:value":o=>this.selectId=o,placeholder:t.placeholder,type:t?.type,maxTagCount:1,showArrow:!0,style:t?.style,size:t?.size?t?.size:this.size,mode:t?.mode?t.mode:"combobox",showSearch:"showSearch"in t?t.showSearch:!0,optionFilterProp:t?.fieldNames&&t.fieldNames?.label||(t?.optLabel?t.optLabel:"label"),allowClear:t?.allowClear?t?.allowClear:!0},t,{defaultOpen:this.openSelect,options:this.selectOptions,onChange:o=>{o==-999999&&(e[t?.prop]=void 0,this.showInput=!0,setTimeout(()=>{this.$refs.inputRef?.focus(),this.openSelect=!1},0)),t.onChange?.(o)},fieldNames:t?.fieldNames?t?.fieldNames:{options:"children",label:t?.optLabel?t.optLabel:"label",value:t?.optVal?t.optVal:"value"},getPopupContainer:o=>this.popupContainer?n:o.offsetParent}),t.slots)},renderInput(e,t){return r.createVNode(r.resolveComponent("a-input"),r.mergeProps({value:e[t.prop],"onUpdate:value":n=>e[t.prop]=n,ref:"inputRef",colon:!0,type:t?.type,style:t?.style,maxlength:50},t,{placeholder:"请输入"+t.label,suffix:r.createVNode(r.resolveComponent("a-tooltip"),{placement:"topLeft",title:"点击重新选择"},{default:()=>[r.createVNode(se,{onClick:()=>{e[t?.prop]=void 0,this.openSelect=!0,this.showInput=!1,t.onChange?.()}},null)]})}),null)}},setup(){return{}},render(){return this.showInput?this.renderInput(this.data,this.item):this.renderSelect(this.data,this.item)}}),qn=r.defineComponent({props:{data:Object,item:Object,className:String,popupContainer:String},data(){return{showInput:!1}},computed:{selectId:{set(e){this.data[this.item?.prop]=e},get(){return this.data[this.item?.prop]}},selectOptions(){return[...this.item.options,{[this.item?.fieldNames?.value||this.item?.optVal||"value"]:-999999,[this.item?.fieldNames?.label||this.item?.optLabel||"label"]:"其它"}]}},mounted(){},methods:{renderSelect(e,t){const n=this.popupContainer==="body"?document.body:document.getElementsByClassName(this.popupContainer)?.[0];return r.createVNode(r.resolveComponent("a-form-item"),{colon:!0,class:this.className,label:t?.label,name:t?.name||t?.prop,extra:t?.extra,rules:t.rules},{default:()=>[r.createVNode(r.resolveComponent("a-select"),r.mergeProps({value:this.selectId,"onUpdate:value":o=>this.selectId=o,placeholder:t.placeholder,type:t?.type,maxTagCount:1,showArrow:!0,style:t?.style,size:t?.size?t?.size:this.size,mode:t?.mode?t.mode:"combobox",showSearch:"showSearch"in t?t.showSearch:!0,optionFilterProp:t?.fieldNames&&t.fieldNames?.label||(t?.optLabel?t.optLabel:"label"),allowClear:t?.allowClear?t?.allowClear:!0},t,{options:this.selectOptions,onChange:o=>{o==-999999?this.showInput=!0:(this.showInput=!1,e[t?.inputProp??t.prop+"_name"]=void 0),t.onChange?.(o)},fieldNames:t?.fieldNames?t?.fieldNames:{options:"children",label:t?.optLabel?t.optLabel:"label",value:t?.optVal?t.optVal:"value"},getPopupContainer:o=>this.popupContainer?n:o.offsetParent}),t.slots)]})},renderInput(e,t){return r.createVNode(r.resolveComponent("a-form-item"),{name:t?.inputProp??t.prop+"_name",label:this.item?.label,extra:t?.extra,rules:t.rules,class:this.className},{default:()=>[r.createVNode(r.resolveComponent("a-input"),r.mergeProps({value:e[t?.inputProp??t.prop+"_name"],"onUpdate:value":n=>e[t?.inputProp??t.prop+"_name"]=n,placeholder:t.placeholder,colon:!0,style:t?.style,maxlength:50},t),null)]})}},setup(){return{}},render(){return r.createVNode(r.Fragment,null,[this.renderSelect(this.data,this.item),this.showInput?this.renderInput(this.data,this.item):""])}}),Gn=r.defineComponent({props:{data:Object,item:Object,popupContainer:String},components:{RollbackOutlined:se},data(){return{showInput:!1,otherOption:""}},computed:{selectId:{set(e){this.data[this.item?.prop]=e},get(){return this.data[this.item?.prop]}},selectOptions(){return this.data[this.item?.prop]&&!this.item.options.find(t=>t[this.item?.fieldNames?.value||this.item?.optVal||"value"]==this.data[this.item?.prop])?[...this.item.options,{[this.item?.fieldNames?.value||this.item?.optVal||"value"]:this.data[this.item?.prop],[this.item?.fieldNames?.label||this.item?.optLabel||"label"]:this.data[this.item?.prop]}]:this.item.options}},mounted(){},methods:{renderSelect(e,t){const n=this.popupContainer==="body"?document.body:document.getElementsByClassName(this.popupContainer)?.[0];return r.createVNode(r.resolveComponent("a-select"),r.mergeProps({value:this.selectId,"onUpdate:value":o=>this.selectId=o,placeholder:t.placeholder,type:t?.type,showArrow:!0,style:t?.style,size:t?.size?t?.size:this.size,mode:t?.mode?t.mode:"combobox",optionFilterProp:t?.fieldNames&&t.fieldNames?.label||(t?.optLabel?t.optLabel:"label"),allowClear:t?.allowClear?t?.allowClear:!0},t,{options:this.selectOptions,onChange:o=>{t.onChange?.(o)},showSearch:!1,fieldNames:t?.fieldNames?t?.fieldNames:{options:"children",label:t?.optLabel?t.optLabel:"label",value:t?.optVal?t.optVal:"value"},dropdownRender:({menuNode:o})=>r.createVNode(r.Fragment,null,[o,r.createVNode(r.resolveComponent("a-divider"),{style:"margin: 4px 0"},null),r.createVNode("div",{onClick:l=>(l.stopPropagation(),!1),style:"display:flex"},[r.createVNode(r.resolveComponent("a-space"),{style:"padding: 4px 8px"},{default:()=>[r.createVNode(r.resolveComponent("a-input"),{ref:"inputRef",value:this.otherOption,"onUpdate:value":l=>this.otherOption=l,placeholder:"请输入其他字段"},null),r.createVNode(r.resolveComponent("a-button"),{type:"text",onClick:this.addItem},{default:()=>[r.createTextVNode("新增")]})]})])]),getPopupContainer:o=>this.popupContainer?n:o.offsetParent}),t.slots)},addItem(e){e.preventDefault(),this.item.options.push({[this.item?.fieldNames?.value||this.item?.optVal||"value"]:this.otherOption,[this.item?.fieldNames?.label||this.item?.optLabel||"label"]:this.otherOption}),this.otherOption="",setTimeout(()=>{this.$refs.inputRef?.focus()},0)}},setup(){return{}},render(){return this.renderSelect(this.data,this.item)}});function Jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ne={exports:{}},Xn=Ne.exports,xt;function Zn(){return xt||(xt=1,(function(e,t){(function(n,o){e.exports=o()})(Xn,(function(){var n=1e3,o=6e4,l=36e5,s="millisecond",p="second",c="minute",d="hour",f="day",a="week",b="month",V="quarter",i="year",C="date",k="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var h=["th","st","nd","rd"],u=N%100;return"["+N+(h[(u-20)%10]||h[u]||h[0])+"]"}},F=function(N,h,u){var y=String(N);return!y||y.length>=h?N:""+Array(h+1-y.length).join(u)+N},j={s:F,z:function(N){var h=-N.utcOffset(),u=Math.abs(h),y=Math.floor(u/60),g=u%60;return(h<=0?"+":"-")+F(y,2,"0")+":"+F(g,2,"0")},m:function N(h,u){if(h.date()<u.date())return-N(u,h);var y=12*(u.year()-h.year())+(u.month()-h.month()),g=h.clone().add(y,b),x=u-g<0,S=h.clone().add(y+(x?-1:1),b);return+(-(y+(u-g)/(x?g-S:S-g))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:b,y:i,w:a,d:f,D:C,h:d,m:c,s:p,ms:s,Q:V}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},E="en",B={};B[E]=M;var Q="$isDayjsObject",m=function(N){return N instanceof P||!(!N||!N[Q])},O=function N(h,u,y){var g;if(!h)return E;if(typeof h=="string"){var x=h.toLowerCase();B[x]&&(g=x),u&&(B[x]=u,g=x);var S=h.split("-");if(!g&&S.length>1)return N(S[0])}else{var $=h.name;B[$]=h,g=$}return!y&&g&&(E=g),g||!y&&E},v=function(N,h){if(m(N))return N.clone();var u=typeof h=="object"?h:{};return u.date=N,u.args=arguments,new P(u)},w=j;w.l=O,w.i=m,w.w=function(N,h){return v(N,{locale:h.$L,utc:h.$u,x:h.$x,$offset:h.$offset})};var P=(function(){function N(u){this.$L=O(u.locale,null,!0),this.parse(u),this.$x=this.$x||u.x||{},this[Q]=!0}var h=N.prototype;return h.parse=function(u){this.$d=(function(y){var g=y.date,x=y.utc;if(g===null)return new Date(NaN);if(w.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var S=g.match(T);if(S){var $=S[2]-1||0,L=(S[7]||"0").substring(0,3);return x?new Date(Date.UTC(S[1],$,S[3]||1,S[4]||0,S[5]||0,S[6]||0,L)):new Date(S[1],$,S[3]||1,S[4]||0,S[5]||0,S[6]||0,L)}}return new Date(g)})(u),this.init()},h.init=function(){var u=this.$d;this.$y=u.getFullYear(),this.$M=u.getMonth(),this.$D=u.getDate(),this.$W=u.getDay(),this.$H=u.getHours(),this.$m=u.getMinutes(),this.$s=u.getSeconds(),this.$ms=u.getMilliseconds()},h.$utils=function(){return w},h.isValid=function(){return this.$d.toString()!==k},h.isSame=function(u,y){var g=v(u);return this.startOf(y)<=g&&g<=this.endOf(y)},h.isAfter=function(u,y){return v(u)<this.startOf(y)},h.isBefore=function(u,y){return this.endOf(y)<v(u)},h.$g=function(u,y,g){return w.u(u)?this[y]:this.set(g,u)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(u,y){var g=this,x=!!w.u(y)||y,S=w.p(u),$=function(te,I){var K=w.w(g.$u?Date.UTC(g.$y,I,te):new Date(g.$y,I,te),g);return x?K:K.endOf(f)},L=function(te,I){return w.w(g.toDate()[te].apply(g.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(I)),g)},A=this.$W,_=this.$M,U=this.$D,re="set"+(this.$u?"UTC":"");switch(S){case i:return x?$(1,0):$(31,11);case b:return x?$(1,_):$(0,_+1);case a:var ee=this.$locale().weekStart||0,ce=(A<ee?A+7:A)-ee;return $(x?U-ce:U+(6-ce),_);case f:case C:return L(re+"Hours",0);case d:return L(re+"Minutes",1);case c:return L(re+"Seconds",2);case p:return L(re+"Milliseconds",3);default:return this.clone()}},h.endOf=function(u){return this.startOf(u,!1)},h.$set=function(u,y){var g,x=w.p(u),S="set"+(this.$u?"UTC":""),$=(g={},g[f]=S+"Date",g[C]=S+"Date",g[b]=S+"Month",g[i]=S+"FullYear",g[d]=S+"Hours",g[c]=S+"Minutes",g[p]=S+"Seconds",g[s]=S+"Milliseconds",g)[x],L=x===f?this.$D+(y-this.$W):y;if(x===b||x===i){var A=this.clone().set(C,1);A.$d[$](L),A.init(),this.$d=A.set(C,Math.min(this.$D,A.daysInMonth())).$d}else $&&this.$d[$](L);return this.init(),this},h.set=function(u,y){return this.clone().$set(u,y)},h.get=function(u){return this[w.p(u)]()},h.add=function(u,y){var g,x=this;u=Number(u);var S=w.p(y),$=function(_){var U=v(x);return w.w(U.date(U.date()+Math.round(_*u)),x)};if(S===b)return this.set(b,this.$M+u);if(S===i)return this.set(i,this.$y+u);if(S===f)return $(1);if(S===a)return $(7);var L=(g={},g[c]=o,g[d]=l,g[p]=n,g)[S]||1,A=this.$d.getTime()+u*L;return w.w(A,this)},h.subtract=function(u,y){return this.add(-1*u,y)},h.format=function(u){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||k;var x=u||"YYYY-MM-DDTHH:mm:ssZ",S=w.z(this),$=this.$H,L=this.$m,A=this.$M,_=g.weekdays,U=g.months,re=g.meridiem,ee=function(I,K,de,Se){return I&&(I[K]||I(y,x))||de[K].slice(0,Se)},ce=function(I){return w.s($%12||12,I,"0")},te=re||function(I,K,de){var Se=I<12?"AM":"PM";return de?Se.toLowerCase():Se};return x.replace(z,(function(I,K){return K||(function(de){switch(de){case"YY":return String(y.$y).slice(-2);case"YYYY":return w.s(y.$y,4,"0");case"M":return A+1;case"MM":return w.s(A+1,2,"0");case"MMM":return ee(g.monthsShort,A,U,3);case"MMMM":return ee(U,A);case"D":return y.$D;case"DD":return w.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ee(g.weekdaysMin,y.$W,_,2);case"ddd":return ee(g.weekdaysShort,y.$W,_,3);case"dddd":return _[y.$W];case"H":return String($);case"HH":return w.s($,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return te($,L,!0);case"A":return te($,L,!1);case"m":return String(L);case"mm":return w.s(L,2,"0");case"s":return String(y.$s);case"ss":return w.s(y.$s,2,"0");case"SSS":return w.s(y.$ms,3,"0");case"Z":return S}return null})(I)||S.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(u,y,g){var x,S=this,$=w.p(y),L=v(u),A=(L.utcOffset()-this.utcOffset())*o,_=this-L,U=function(){return w.m(S,L)};switch($){case i:x=U()/12;break;case b:x=U();break;case V:x=U()/3;break;case a:x=(_-A)/6048e5;break;case f:x=(_-A)/864e5;break;case d:x=_/l;break;case c:x=_/o;break;case p:x=_/n;break;default:x=_}return g?x:w.a(x)},h.daysInMonth=function(){return this.endOf(b).$D},h.$locale=function(){return B[this.$L]},h.locale=function(u,y){if(!u)return this.$L;var g=this.clone(),x=O(u,y,!0);return x&&(g.$L=x),g},h.clone=function(){return w.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},N})(),q=P.prototype;return v.prototype=q,[["$ms",s],["$s",p],["$m",c],["$H",d],["$W",f],["$M",b],["$y",i],["$D",C]].forEach((function(N){q[N[1]]=function(h){return this.$g(h,N[0],N[1])}})),v.extend=function(N,h){return N.$i||(N(h,P,v),N.$i=!0),v},v.locale=O,v.isDayjs=m,v.unix=function(N){return v(1e3*N)},v.en=B[E],v.Ls=B,v.p={},v}))})(Ne)),Ne.exports}var Qn=Zn();const J=Jn(Qn),xe=e=>Array.from(Array.from({length:e}).keys()),Kn=(e,t)=>{const n=e.subtract(1,"month").format("YYYY-MM"),o=e.subtract(1,"month").endOf("month").date();return xe(t).map((l,s)=>n+"-"+(o-(t-s-1)))},er=e=>xe(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),St=["一","二","三","四","五","六","日"];function tr(e){const t=[...St.slice(e.firstDayOfWeek-1),...St.slice(0,e.firstDayOfWeek-1)],n=r.ref(e.month||J().format("YYYY-MM")),o=r.ref([]),l=e.firstDayOfWeek||1,s=d=>{let f=J(d).startOf("month").format("YYYY-MM-DD"),a=J(f).day(),b=[];const V=Kn(J(d+"01"),(a-l+7)%7).map(M=>({date:M,type:"prev"})),C=(M=>{const F=M.daysInMonth();return xe(F).map((j,E)=>E+1)})(J(d+"01")).map(M=>({date:d+"-"+String(M).padStart(2,"0"),type:"current"}));b=[...V,...C];const k=7-(b.length%7||7);let T=J(f).add(1,"month").format("YYYY-MM");const z=xe(k).map((M,F)=>({date:T+"-"+String(F+1).padStart(2,"0"),type:"next"}));return b=b.concat(z),er(b)};return r.watch(n,d=>{o.value=s(d)},{immediate:!0}),{WEEK_DAYS:t,month:n,days:o,selectMonth:(d,f,a)=>{const b=f==="prev"?"subtract":"add";n.value=J(n.value)[b](1,a).format("YYYY-MM")},clickWeek:d=>{const f=d[0],a=d.at(-1);return{start:f.date,end:a.date}}}}const nr=r.defineComponent({emits:["change","update:sel"],props:["sel","firstDayOfWeek","selValue"],setup(e,{emit:t}){const{WEEK_DAYS:n,month:o,days:l,selectMonth:s,clickWeek:p}=tr({firstDayOfWeek:e.firstDayOfWeek}),c=r.ref([]),d=(i,C)=>{let k=p(i);t("change",k),t("update:sel",!1)};r.watch(()=>e.selValue,i=>{if(!i)return;const C=l.value.findIndex(T=>T[0].date===i[0]&&T[6].date===i[1]),k=i[0].slice(0,7);c.value=[k,C]},{immediate:!0});const f=r.computed(()=>i=>c.value[0]===o.value&&c.value[1]===i),a=r.ref(null),b=i=>{!a.value.contains(i.target)&&t("update:sel",!1)},V=i=>{document.body[i]("click",b)};return r.watch(()=>e.sel,i=>{const C=i?"addEventListener":"removeEventListener";setTimeout(()=>{V(C)})},{immediate:!0}),()=>r.createVNode("div",{class:"ant-picker-week-panel",ref:a,style:"width: 100%;"},[r.createVNode("div",{class:"ant-picker-header"},[r.createVNode("button",{class:"ant-picker-header-super-prev-btn",onClick:i=>s(i,"prev","year")},[r.createVNode("span",{class:"ant-picker-super-prev-icon"},null)]),r.createVNode("button",{class:"ant-picker-header-prev-btn",onClick:i=>s(i,"prev","month")},[r.createVNode("span",{class:"ant-picker-prev-icon"},null)]),r.createVNode("div",{class:"ant-picker-header-view cal-month"},[J(o.value).format("YYYY年M月")]),r.createVNode("button",{class:"ant-picker-header-next-btn",onClick:i=>s(i,"next","month")},[r.createVNode("span",{class:"ant-picker-next-icon"},null)]),r.createVNode("button",{class:"ant-picker-header-super-next-btn",onClick:i=>s(i,"next","year")},[r.createVNode("span",{class:"ant-picker-super-next-icon"},null)])]),r.createVNode("div",{class:"ant-picker-body cal-box"},[r.createVNode("table",{class:"ant-picker-content"},[r.createVNode("thead",null,[r.createVNode("tr",null,[n.map((i,C)=>r.createVNode("th",{key:"week"+C},[i]))])]),r.createVNode("tbody",null,[l.value.map((i,C)=>r.createVNode("tr",{key:"row"+C,class:["ant-picker-week-panel-row",f.value(C)&&"ant-picker-week-panel-row-selected"]},[i.map(k=>r.createVNode("td",{key:"day"+k.date,class:["ant-picker-cell ant-picker-cell-in-view",f.value(C)&&"ant-picker-cell-selected"],onClick:()=>d(i)},[r.createVNode("div",{class:["ant-picker-cell-inner","cell-inner-sty",k.type!=="current"&&"out-month"]},[J(k.date).format("D")])]))]))])])])])}}),rr=r.defineComponent({emits:["update:modelValue"],props:["modelValue","firstDayOfWeek","placeholder","size","getPopupContainer"],setup(e,{emit:t,attrs:n}){const o=r.ref(null),l=c=>{let{start:d,end:f}=c;o.value=[d,f],t("update:modelValue",o.value)},s=r.computed(()=>o.value?`${o.value[0]} ~ ${o.value[1]}`:null);r.watch(()=>e.modelValue,c=>{c&&(o.value=c)},{immediate:!0});const p=r.ref(!1);return()=>r.createVNode(r.resolveComponent("a-select"),r.mergeProps({value:s.value,open:p.value,placeholder:e.placeholder,onClick:()=>{p.value=!0}},n),{dropdownRender:()=>r.createVNode(nr,{sel:p.value,"onUpdate:sel":c=>p.value=c,selValue:o.value,firstDayOfWeek:e.firstDayOfWeek,onChange:l},null)})}}),Vt=(e,t)=>{e=JSON.parse(JSON.stringify(e));let n=[];for(let o of e)o.path=o.pid==0?[o.id??o.value]:t.concat([o.id??o.value]),n.push(o),o.children?.length&&(n=n.concat(Vt(o.children,o.path)));return n},ie=r.defineComponent({name:"CloudFormItem",props:["props"],data(){return{specialGrid:"bpy-col-md-16 bpy-col-xl-12",newfieldList:[]}},mounted(){this.watchResize(),this.getnewfieldList(),window.addEventListener("resize",()=>this.watchResize(),!1);const{hideMargin:e=!0}=this.props;this.$refs.viewformcontent?this.$refs.viewformcontent.offsetParent.style.cssText=e?"margin-bottom:-8px !important":"margin-bottom:0px !important":setTimeout(()=>{this.$refs.viewformcontent&&(this.$refs.viewformcontent.offsetParent.style.cssText=e?"margin-bottom:-8px !important":"margin-bottom:0px !important")})},watch:{"props.fieldList"(e){this.getnewfieldList()},"props.form"(e){this.getnewfieldList()}},methods:{watchResize(){let e=window.screenWidth||document.body.clientWidth;e<1200?this.specialGrid="bpy-col-xs-24 bpy-col-sm-24":this.specialGrid="bpy-col-md-16",e<1200&&(this.screenWidth>1200||this.screenWidth<767)?(this.screenWidth=e,this.getnewfieldList()):e<767&&this.screenWidth>=767?(this.screenWidth=e,this.getnewfieldList()):e>=1200&&this.screenWidth<1200&&(this.screenWidth=e,this.getnewfieldList()),this.screenWidth=e},getnewfieldList(){if(this.props.type!="view")this.newfieldList=this.props.fieldList||[];else{let{column:e=3}=this.props;this.screenWidth<767?e=1:this.screenWidth<1200&&(e=2);const t=[];this.props.fieldList?.filter(n=>n.label&&n.isShow!==!1).map((n,o)=>{t[o%e]?t[o%e].push(n):t[o%e]=[n]}),this.newfieldList=t}},formatCascader(e,t){if((t?.type==="cascader"||t.type=="cascaderPeople")&&t.options?.length&&e[t.prop]){if(t.changeOnSelect){const l=(c,d)=>{c=JSON.parse(JSON.stringify(c));let f=[];for(let a of c)a.path=a.pid==0?[a.id??a.value]:d.concat([a.id??a.value]),f.push(a),a.children?.length&&(f=f.concat(l(a.children,a.path)));return f};l(t.options,[]).map(c=>(c.path=c.path.join(","),c.path)).includes(e[t.prop].join(","))||(e[t.prop]=null);return}const o=Vt(t.options,[]).map(l=>(l.path=l.path.join(","),l.path));if(t.multiple){e[t.prop]?.forEach((l,s)=>{const p=l.join(",");o.includes(p)||(e[t.prop]=e[t.prop].filter(c=>c.join(",")!=p))});return}o.includes(e[t.prop].join(","))||(e[t.prop]=null)}},renderForm(e,t){const{form:n,column:o=3,formRules:l=!1,type:s="",hasGrid:p=!0,offset:c="",popupContainer:d}=this.props,f=d==="body"?document.body:document.getElementsByClassName(d)?.[0];return r.createVNode(r.Fragment,null,[e?.length>0&&e.map((a,b)=>{if(s==="view"&&(a.type="text",a.rules=!1),a?.isShow!=!1){const V=a?.column?a?.column:o;if(s=="view"){let i=a?.content||n[a?.prop],C=null;return i===null||i===""||Array.isArray(i)&&i.length===0?C="-":C=a?.content||n[a?.prop],a.isText===!1?r.createVNode("div",{class:p?`${a?.type==="text"?"bpy-form-text bpy-formitem":""} bpy-col bpy-col-24 ${t[V-2]} ${t[V-1]} ${t[V]} ${c}`:"bpy-col bpy-col-24"},[r.createVNode("div",{class:"bpy-formitem-label"},[a.label+" :"]),r.createVNode("div",{class:"bpy-formitem-value"},[a.valType=="number"&&(a?.content||n[a?.prop])*1?r.createVNode(r.resolveComponent("a-statistic"),{precision:2,value:a?.content||n[a?.prop]},null):C])]):r.createVNode("div",{class:p?`bpy-col bpy-col-24 ${t[o-2]} ${t[o-1]} ${t[o]} ${c}`:"bpy-col bpy-col-24"},[r.createVNode(Yn,{props:{className:"bpy-form-text",isPage:f,label:a.label,data:n,item:a,value:a.valType=="number"&&(a?.content||n[a?.prop])*1+1?r.createVNode(r.resolveComponent("a-statistic"),{precision:2,value:a?.content||n[a?.prop]},null):C}},null)])}if(this.formatCascader(n,a),a.type==="select"&&a.hasOwnProperty("selectType")&&a?.selectType==="user"&&a?.options?.length&&n[a.prop]){let i=a?.options.map(C=>C.id);a?.mode==="multiple"&&n[a?.prop]?.forEach((C,k)=>{if(!i.includes(C)){const T=n[a?.prop].findIndex(z=>z==C);n[a?.prop].splice(T,1)}}),a.hasOwnProperty("mode")||i.includes(n[a?.prop])||(n[a?.prop]=null)}else if(a.type==="inpSelect")return r.createVNode(qn,{item:{...a,placeholder:a.placeholder||this.getPlaceholder(a)},data:n,popupContainer:d,className:p?`${a?.type==="text"?"bpy-form-text":""} bpy-col bpy-col-24 ${t[V-2]} ${t[V-1]} ${t[V]} ${c} ${a.column==2?"bpy-col-xl-12":""}`:"bpy-col bpy-col-24"},null);return r.createVNode(r.resolveComponent("a-form-item"),{colon:a?.type==="text",ref:"formItem",class:p?`${a?.type==="text"?"bpy-form-text":""} bpy-col bpy-col-24 ${t[V-2]} ${t[V-1]} ${t[V]} ${c} ${a.column==2?"bpy-col-xl-12":""}`:"bpy-col bpy-col-24",label:a?.label,name:a?.name||a?.prop,extra:a?.extra,rules:l?!1:a.rules,style:a?.type=="textarea"&&a.block!==!1?{display:"block!important"}:{}},{default:()=>[a?.type==="text"?a.valType=="number"&&(a?.content||n[a?.prop])*1?r.createVNode(r.resolveComponent("a-statistic"),{precision:2,value:a?.content||n[a?.prop]},null):a?.content||(n[a?.prop]===null||n[a?.prop]===""?"-":n[a?.prop]):"",a?.type==="input"&&r.createVNode(r.resolveComponent("a-input"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,placeholder:a.placeholder||this.getPlaceholder(a),colon:!0,type:a?.type,style:a?.style,maxlength:50},a),null),a?.type==="inputSearch"&&r.createVNode(r.resolveComponent("a-input-search"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,placeholder:a.placeholder||this.getPlaceholder(a)},a,{style:a?.style,"enter-button":a?.enterButton,enterButton:a?.custEnterButton}),null),a?.type==="password"&&r.createVNode(r.resolveComponent("a-input-password"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,placeholder:a.placeholder||this.getPlaceholder(a)},a),null),a?.type==="inputNumber"&&r.createVNode(r.resolveComponent("a-input-number"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i},a,{style:{width:"100%",...a?.style},placeholder:a.placeholder||this.getPlaceholder(a),"string-mode":a?.stringMode?a?.stringMode:!1}),null),a?.type==="textarea"&&r.createVNode(r.Fragment,null,[r.createVNode(r.resolveComponent("a-textarea"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,placeholder:a.placeholder||this.getPlaceholder(a),maxlength:200,showCount:!0},a,{style:a?.style,size:a?.size?a?.size:this.size}),null),a?.areaExtra]),a?.type==="select"&&r.createVNode(r.resolveComponent("a-select"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,placeholder:a.placeholder||this.getPlaceholder(a),type:a?.type,maxTagCount:1,showArrow:!0,style:a?.style,size:a?.size?a?.size:this.size,mode:a?.mode?a.mode:"combobox",showSearch:"showSearch"in a?a.showSearch:!0,optionFilterProp:a?.fieldNames&&a.fieldNames?.label||(a?.optLabel?a.optLabel:"label"),allowClear:a?.allowClear?a?.allowClear:!0},a,{fieldNames:a?.fieldNames?a?.fieldNames:{options:"children",label:a?.optLabel?a.optLabel:"label",value:a?.optVal?a.optVal:"value"},getPopupContainer:i=>d?f:i.offsetParent}),a.slots),a?.type==="otherSelect"&&r.createVNode(Hn,{item:{...a,placeholder:a.placeholder||this.getPlaceholder(a)},data:n,popupContainer:d},null),a?.type==="addSelect"&&r.createVNode(Gn,{item:{...a,placeholder:a.placeholder||this.getPlaceholder(a)},data:n,popupContainer:d},null),a?.type==="switch"&&r.createVNode(r.resolveComponent("a-switch"),r.mergeProps({checked:n[a?.prop],"onUpdate:checked":i=>n[a?.prop]=i,size:a?.size?a?.size:this.size,style:a?.style},a),null),a?.type==="radio"&&r.createVNode(r.resolveComponent("a-radio-group"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,style:a?.style},a,{buttonStyle:a?.buttonStyle?a?.buttonStyle:"outline",size:a?.size?a?.size:this.size}),{default:()=>[a?.options.map((i,C)=>a?.optType?r.createVNode(r.resolveComponent("a-radio-button"),{key:C,value:a?.optVal?i[a.optVal]:i.id,disabled:i?.disabled},{default:()=>[a?.optLabel?i[a.optLabel]:i.value]}):r.createVNode(r.resolveComponent("a-radio"),{key:C,value:a?.optVal?i[a.optVal]:i.id,disabled:i?.disabled},{default:()=>[a?.optLabel?i[a.optLabel]:i.value]}))]}),a?.type==="checkbox"&&r.createVNode(r.resolveComponent("a-checkbox-group"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,style:a?.style},a),{default:()=>[a?.options.map((i,C)=>r.createVNode(r.resolveComponent("a-checkbox"),{key:C,value:a?.optVal?i[a.optVal]:i.id,disabled:i?.disabled,indeterminate:i?.indeterminate},{default:()=>[a?.optLabel?i[a.optLabel]:i.value]}))]}),a?.type==="treeSelect"&&r.createVNode(r.resolveComponent("a-tree-select"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,maxTagCount:1},a,{style:a?.style,placeholder:a.placeholder||this.getPlaceholder(a),fieldNames:a?.fieldNames?a?.fieldNames:{children:"children",label:"title",value:"key"},treeDefaultExpandAll:a?.treeDefaultExpandAll?a?.treeDefaultExpandAll:!0,treeData:a?.options,getPopupContainer:i=>d?f:i.offsetParent}),null),a?.type==="datePicker"&&r.createVNode(r.resolveComponent("a-date-picker"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i},a,{style:{width:"100%",...a?.style},format:a?.format?a?.format:"YYYY-MM-DD",placeholder:a.placeholder||this.getPlaceholder(a),size:a?.size?a?.size:this.size,valueFormat:a?.valueFormat?a?.valueFormat:"YYYY-MM-DD",getPopupContainer:i=>d?f:i.offsetParent}),null),a?.type==="aloneDate"&&r.createVNode(rr,r.mergeProps({modelValue:n[a?.prop],"onUpdate:modelValue":i=>n[a?.prop]=i},a,{style:{width:"100%",...a?.style},placeholder:a.placeholder||this.getPlaceholder(a),size:a?.size?a?.size:this.size,firstDayOfWeek:a.firstDayOfWeek}),null),a?.type==="rangePicker"&&r.createVNode(r.resolveComponent("a-range-picker"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i},a,{style:{...a?.style,width:"100%"},format:a?.format?a?.format:"YYYY-MM-DD",placeholder:a.placeholder||this.getPlaceholder(a),valueFormat:a?.valueFormat?a?.valueFormat:"YYYY-MM-DD",getPopupContainer:i=>d?f:i.offsetParent}),null),a?.type==="cascader"&&r.createVNode(r.resolveComponent("a-cascader"),r.mergeProps({showArrow:!0,value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i,getPopupContainer:i=>d?f:i.offsetParent},a,{style:{...a?.style},placeholder:a.placeholder||this.getPlaceholder(a)}),null),a?.type==="cascaderPeople"&&r.createVNode(r.Fragment,null,[r.createVNode(r.resolveComponent("a-cascader"),r.mergeProps({value:n[a?.prop],"onUpdate:value":i=>n[a?.prop]=i},a,{style:{...a?.style},open:!1,multiple:a?.multiple===!1?a.multiple:!0,showCheckedStrategy:"SHOW_CHILD",showArrow:!0,showSearch:!0,placeholder:a.placeholder||this.getPlaceholder(a),getPopupContainer:i=>d?f:i.offsetParent,onDropdownVisibleChange:i=>{a?.openCascader?.(),this.$refs[`wePeopleRef_${b}`].selectVal=n[a?.prop],this.$refs[`wePeopleRef_${b}`].modal.visible=i}}),null),r.createVNode(fe,{ref:`wePeopleRef_${b}`,props:{treeList:a?.pelOptions||a?.options,fieldNames:a?.fieldNames,multiple:a?.multiple===!1?a.multiple:!0,title:a.title,labelText:a.labelText,labelWidth:a.labelWidth,...a},onClose:i=>{a?.cascaderClose?.(),this.$refs[`wePeopleRef_${b}`].modal.visible=!1},onSure:(i,C)=>{a?.cascaderSuccess?.(),n[a?.prop]=i,this.$refs[`wePeopleRef_${b}`].modal.visible=!1,a?.classify||a.onChange(i,C)}},null)]),a?.type==="other"&&a?.content]})}})])},renderSpecialLog(e,t){const{form:n}=this.props;return r.createVNode(r.Fragment,null,[e.length>0&&e.map((o,l)=>r.createVNode("div",{class:"bpy-form-text bpy-formitem-text-box bpy-special-log-box"},[r.createVNode("div",{class:"bpy-formitem-text bpy-special-log"},[r.createVNode("div",{class:"bpy-special-log-header"},[r.createVNode("span",{class:"bpy-special-log-icon"},null),r.createVNode("span",{class:"bpy-special-log-title"},[o?.label])]),r.createVNode("div",{class:"bpy-special-log-content"},[r.createVNode("div",{class:"bpy-special-log-text"},[n[o?.prop]])])])]))])}},setup({props:e}){return{getPlaceholder:({label:o,type:l,selfPlaceholder:s,prop:p})=>{let c,d=["input","inputSearch","textarea","password","inputNumber"],f=["date","datePicker"],a=["select","treeSelect","cascader","cascaderPeople"];return e?.viewType==="view"?l==="rangePicker"?c=["无","无"]:c="无":s?c=s:d.includes(l)?c="请输入"+o:f.includes(l)?c="请选择"+o:a.includes(l)?c="请选择或输入搜索":l==="rangePicker"?c=["开始日期","结束日期"]:c=o,c},size:"default"}},render(){const{fieldList:e=[],form:t,column:n=3,formRules:o=!1,type:l="",hasGrid:s=!0,offset:p="",popupContainer:c,showType:d="default"}=this.props,f={1:"bpy-col-xs-24 bpy-col-sm-24",2:n===3?this.specialGrid:"bpy-col-md-12",3:"bpy-col-lg-8 bpy-col-xl-6 bpy-col-md-12"};return c==="body"?document.body:document.getElementsByClassName(c)?.[0],e?.length>0&&l!="view"?this.renderForm(e,f):l=="view"?r.createVNode(Un,{props:this.props},null):l=="view"?r.createVNode("div",{class:"bpy-formitem-content",ref:"viewformcontent"},[d==="default"&&this.renderForm(e?.filter(a=>a.label&&a.isShow!=!1),f),d==="specialLog"&&this.newfieldList.map((a,b)=>r.createVNode("div",{class:s?`bpy-col bpy-col-24 ${f[n-2]} ${f[n-1]} ${f[n]} ${p}`:"bpy-col bpy-col-24"},[this.renderSpecialLog(a,f)]))]):""}}),Re=r.defineComponent({name:"CloudForm",props:["props"],setup({props:e}){const t=r.ref();let n=r.reactive({rules:{}});const o=()=>{n.rules=e?.fieldList.reduce((l,s)=>(s.type==="select"&&s.rules&&s.rules.length>0?(s.rules=[{...s.rules[0],message:"请选择或输入搜索"}],l[s.prop]=s.rules):s.rules&&s.rules.length>0&&(s.selfRules=[{...s.rules[0],message:"selfLabel"in s?s.rules[0].message+s.selfLabel:s.rules[0].message+s.label}],l[s.prop]=s.selfRules),l),{})};return r.watch(e.fieldList,()=>o),o(),{weForm:t,getRules:o,formRules:n}},render(){const{type:e,form:t,layout:n="horizontal",labelAlign:o="right",labelWrap:l=!1,wrapperCol:s,showBtn:p=!1,formRules:c=!0}=this.props,{rules:d}=this.formRules,f={style:{width:`${this.props?.labelWidth}px`,textAlign:o}};return r.createVNode(r.resolveComponent("a-form"),{ref:"weForm",model:t,rules:d,layout:n,labelCol:f,labelWrap:l,wrapperCol:s,onFinish:this.onFinish,onFinishFailed:this.onFinishFailed},{default:()=>[r.createVNode(ie,{props:{...this.props,formRules:c}},null)]})}}),We=r.defineComponent({name:"CloudFooterToolbar",data(){return{}},props:["props"],mounted(){},methods:{},setup(){return{}},render(){const{props:e}=this;return r.createVNode(r.resolveComponent("a-card"),r.mergeProps({class:"bpy-toolbar",bodyStyle:e?.card?.bodyStyle||{padding:"8px 8px"}},e?.card?.restProps),{default:()=>[r.createVNode("div",{class:"bpy-toolbar-flex-end"},[r.createVNode(r.resolveComponent("a-space"),null,{default:()=>[r.createVNode(r.resolveComponent("a-button"),{onClick:()=>{if(e?.selfClose){e?.selfClose();return}e?.onClose?e?.onClose():window.close()}},{default:()=>[e?.cancelText||"取消"]}),r.createVNode(r.Fragment,null,[e?.onFinish&&e?.routeType!=="view"&&r.createVNode(r.resolveComponent("a-button"),{type:e?.saveType||"default",loading:e?.saveLoading||!1,onClick:()=>{e?.onFinish(),setTimeout(()=>{document.querySelectorAll(".ant-form-item-has-error")?.[0]?.scrollIntoView({block:"center",behavior:"smooth"})})}},{default:()=>[e?.saveText||"暂存"]}),e?.onSubmit&&e?.routeType!=="view"&&r.createVNode(r.resolveComponent("a-button"),{type:e?.submitType||"primary",loading:e?.submitLoading,onClick:()=>{e?.onSubmit(),setTimeout(()=>{document.querySelectorAll(".ant-form-item-has-error")?.[0]?.scrollIntoView({block:"center",behavior:"smooth"})})}},{default:()=>[e?.submitText||"提交"]})])]})])]})}}),Ee=r.defineComponent({name:"CloudLoading",render(){return r.createVNode("div",{class:"bpy-data-loading"},[r.createVNode("div",{class:"bpy-data-loading-dot"},[r.createVNode("div",null,null),r.createVNode("div",null,null),r.createVNode("div",null,null),r.createVNode("div",null,null),r.createVNode("div",null,null)]),r.createVNode("div",{class:"bpy-data-loading-msg"},[r.createTextVNode("努力加载中")])])}}),Be=r.defineComponent({name:"CloudLights",props:{type:{default:"success",type:String,validator:e=>["success","info","primary","warning","danger"].includes(e)},size:{type:String,default:"small"},name:{default:"",type:String},color:{default:"",type:String}},setup(e){return()=>r.createVNode("div",{class:"bpy-lights"},[r.createVNode("span",{class:[e.type,"light"],style:{background:e.color,width:e.size,height:e.size}},null),r.createVNode("span",null,[e.name])])}}),or=r.defineComponent({name:"search",components:{DoubleRightOutlined:we,DoubleLeftOutlined:Ce},props:["props"],data(){return{isOpen:void 0,hasToggle:!1,screenWidth:document.body.clientWidth,fieldListLength:0,formData:{},stop:null,searchRef:null,noAnimation:!0}},mounted(){this.searchRef=this.$refs.search,window.addEventListener("resize",()=>this.watchResize(),!1),this.observerHeight()},beforeUpdate(){this.noAnimation=!0},methods:{uuid(e="-"){const t=[],n="0123456789abcdef";for(let o=0;o<36;o++)t[o]=n.substr(Math.floor(Math.random()*16),1);return t[14]="4",t[19]=n.substr(t[19]&3|8,1),t[8]=t[13]=t[18]=t[23]=e,t.join("")},toggle(){this.isOpen=!this.isOpen,this.noAnimation=!1},watchResize(){this.$refs.search?.clientHeight>48?this.hasToggle=!0:this.$refs.search&&(this.hasToggle=!1)},observerHeight(){const e=this.searchRef;window&&"ResizeObserver"in window&&e&&(this.stop=new ResizeObserver(t=>{for(const n of t)n.target.clientHeight>48?this.hasToggle=!0:this.hasToggle=!1}),this.stop?.observe(e))}},unmounted(){this.stop?.unobserve(this.searchRef)},render(){const e={style:{width:`${this.props?.labelWidth}px`}},t={style:{marginLeft:`${this.props?.labelWidth}px`}},n=this.$slots.part()[0];return n.props.props.popupContainer||(n.props.props.popupContainer="body"),n.props.props&&n.props.props.fieldList.forEach(o=>{o.type==="select"&&(o.placeholder="请选择或输入搜索")}),this.$slots.part&&r.createVNode("div",{class:"search-wrapper"},[r.createVNode(r.resolveComponent("a-form"),{labelCol:e,wrapperCol:t,name:this.uuid()},{default:()=>[r.createVNode("div",{class:`search-input ${this.noAnimation?"noAnimation":""} ${this.isOpen?"search-collapse":this.isOpen===!1?"search-line":"default-search"}`},[r.createVNode("div",{class:"search-form-box",ref:"search"},[n])]),r.createVNode("div",{class:"search-button"},[r.createVNode(r.resolveComponent("a-button"),{onClick:()=>this.props?.reset()},{default:()=>[r.createTextVNode("重置")]}),r.createVNode(r.resolveComponent("a-button"),{onClick:()=>this.props?.search()},{default:()=>[this.props.searchText?this.props.searchText:"搜索"]}),r.createVNode(r.resolveComponent("a-button"),{type:"link",onClick:this.toggle,style:{display:this.hasToggle?"inline-block":"none"}},{default:()=>[this.isOpen?r.createVNode(r.Fragment,null,[r.createVNode("span",{style:{fontSize:"13px"}},[r.createTextVNode("折叠")]),r.createVNode(we,{style:"transform: rotate(-90deg);margin-top: -2px;"},null)]):r.createVNode(r.Fragment,null,[r.createVNode("span",{style:{fontSize:"13px"}},[r.createTextVNode("展开")]),r.createVNode(Ce,{style:"transform: rotate(-90deg);margin-top: -2px;"},null)])]})])]})])}}),ar=r.defineComponent({name:"TagsSelect",data(){return{}},props:["props"],methods:{},setup({props:e},t){const n=r.ref(!1),o=r.ref([]),l=(s,p)=>{if(e?.multiple){let c=p?[...o.value,s]:o.value.filter(d=>d!==s);o.value=c,e.changeTags(c)}else o.value=[],o.value=[s],e.changeTags([s])};return r.onMounted(()=>{e?.tagsVal&&(o.value=e?.tagsVal)}),{handleChange:l,checked:n,selectedTags:o}},render(){return r.createVNode("div",{class:"bpy-unit-list"},[r.createVNode("div",{class:"bpy-unit-list-label"},[this.props?.tagsLabel,r.createTextVNode(":")]),r.createVNode("div",{class:"bpy-unit-list-value"},[this.props?.tagsList.map(e=>{let t=this.selectedTags?.indexOf(e.id)>-1;return r.createVNode(r.Fragment,null,[r.createVNode(r.resolveComponent("a-checkable-tag"),{key:e.id,class:t?"ant-tag-checkable-after":"ant-tag-checkable-before",checked:t,"onUpdate:checked":n=>t=n,onChange:n=>this.handleChange(e.id,n)},{default:()=>[e.name]})])})]),r.createVNode("div",{class:"bpy-unit-list-control"},null)])}});function lr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const sr=[{id:"import",text:"导入",type:"default"},{id:"export",text:"导出",type:"default"},{id:"upload",text:"上传",type:"default"},{id:"download",text:"下载",type:"default"},{id:"template",text:"模板",type:"default"},{id:"add",text:"新增",type:"primary",icon:r.createVNode(_e,null,null)}],Ot=(e,t="")=>{let n=[];return e.forEach(o=>{if(o.children&&o.children.length){const l=t?`${t}-`:"";n=n.concat(Ot(o.children,`${l}${o.title}`))}else{const l=t?`${t}-${o.title}`:o.selfTitle||o.title,s=t?`${t} > ${o.title}`:o.selfTitle||o.title;n.push({value:l,label:s,disabled:o.disabled,dataIndex:o.dataIndex,originCol:o,parentTitle:t})}}),n},vt=(e,t,n="")=>e.filter(o=>{const l=n?`${n}-${o.title}`:o.selfTitle||o.title;if(o.children&&o.children.length){const s=vt(o.children,t,l);return s.length>0?(o.children=s,!0):!1}return t.has(l)}),ir=r.defineComponent({name:"TopButton",props:["props"],emits:["BtnClick","changeColumns"],data(){return{checkAll:!0,indeterminate:!1,options:[],checkedList:[]}},inject:["parent"],mounted(){this.options=Ot(this.props.columns||[]),this.checkedList=this.options.map(e=>e.value)},watch:{checkedList(e){this.indeterminate=!!e.length&&e.length<this.options.length,this.checkAll=e.length===this.options.length;const t=new Set(e),n=vt(this.props.columns||[],t);this.$emit("changeColumns",n)},"props.columns":{handler(e,t){if(t!=e){const n=e.map(o=>({value:o?.selfTitle?o.selfTitle:o.title,label:o?.selfTitle?o.selfTitle:o.title,disabled:o.disabled,dataIndex:o.dataIndex,width:o.width}));JSON.stringify(this.options)!=JSON.stringify(n)?(this.options=n,this.checkedList=n.map(o=>o.value)):this.$emit("changeColumns",e.filter(o=>{if(this.checkedList.includes(o?.selfTitle?o.selfTitle:o.title)){if(o.dataIndex=="operation"){const l=this.parent.columns?.find(s=>s.dataIndex==o.dataIndex);l&&(o.width=l.width)}return!0}}))}},deep:!0}},methods:{onCheckAllChange(e){this.checkedList=e.target.checked?this.options.map(t=>t.value):this.options.filter(t=>t.disabled).map(t=>t.value)||[],this.indeterminate=!1},setBtnClick(e){this.$emit("BtnClick",e)},getBtn(e){const t=e.popConfirmText||"确认执行此操作吗?",n=e.popSubmitText||"确认",o=e.popCancelText||"取消",l=r.createVNode(r.resolveComponent("a-button"),{style:{marginLeft:"8px"},type:e.type,disabled:e.disabled,onClick:()=>this.setBtnClick(e.id)},{default:()=>[e.text],icon:e.icon?()=>e.icon:null}),s=r.createVNode(r.resolveComponent("a-button"),{style:{marginLeft:"8px"},type:e.type,disabled:e.disabled},{default:()=>[e.text],icon:e.icon?()=>e.icon:null});return e.isPopUp?r.createVNode(r.resolveComponent("a-popconfirm"),{title:t,"ok-text":n,"cancel-text":o,onConfirm:()=>this.setBtnClick(e.id)},lr(s)?s:{default:()=>[s]}):l}},render(){const{isShowColumnsSetting:e=!0,isShowRefresh:t=!0}=this.props;return r.createVNode(r.Fragment,null,[this.props.btnGroupBefore?.map(n=>{if(!(n.isShow??!0))return null;const o=sr.find(s=>s.id===n.id),l=o?{...o,...n}:n;return this.getBtn(l)}),t&&r.createVNode(r.resolveComponent("a-tooltip"),{title:"刷新"},{default:()=>[r.createVNode("span",{class:"bpy-operate-icon",onClick:()=>this.setBtnClick("refresh")},[r.createVNode(Fe,null,null)])]}),e&&r.createVNode(r.resolveComponent("a-popover"),{overlayClassName:"bpy-column-operate",getPopupContainer:n=>n.offsetParent||document.body,title:r.createVNode("div",null,[r.createVNode(r.resolveComponent("a-checkbox"),{checked:this.checkAll,indeterminate:this.indeterminate,onChange:n=>this.onCheckAllChange(n)},{default:()=>[r.createTextVNode("列展示")]})]),content:r.createVNode(r.resolveComponent("a-checkbox-group"),{options:this.options,value:this.checkedList,onChange:n=>this.checkedList=n},null),placement:"bottomRight",trigger:"click"},{default:()=>[r.createVNode(r.resolveComponent("a-tooltip"),{title:"列设置"},{default:()=>[r.createVNode("span",{class:"bpy-operate-icon"},[r.createVNode(ze,null,null)])]})]}),this.$slots.btnGroupAfter?.()])}}),cr=e=>{const t={};for(let n in e)if(n.includes("date")){const o=n.replace("date","");t[`${o}start_date`]=e[n]?.[0],t[`${o}end_date`]=e[n]?.[1]}else if(Array.isArray(e[n])){const o=e[n]?.join(",");e[n]=o||null}return{...e,...t}};function $t(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const kt=[{id:"view",text:"查看",isShow:!0},{id:"delete",text:"删除",isShow:!0},{id:"edit",text:"编辑",isShow:!0}],Ye=r.defineComponent({name:"CloudTable",props:["props"],setup(e,{emit:t,expose:n}){const o=e.props,l=r.reactive({searchForm:{},activeKey:o.tabsConfig?.activeKey,tagsVal:o.tagsSelect?.tagValue||[]}),s=r.ref(null),p=r.ref([...o.columns]),c=r.reactive({loading:!1,pagination:{total:0,pageSize:10,current:1},dataSource:[]}),d=r.ref(o.rowSelection?.selectedRowKeys||[]),f=()=>r.createVNode(ie,{props:{fieldList:o.fieldList,form:l.searchForm}},null),a=()=>r.createVNode("div",{class:"bpy-table-tabs",style:"position: relative !important; background: #fff"},[r.createVNode(r.resolveComponent("a-tabs"),{activeKey:l.activeKey,"onUpdate:activeKey":m=>l.activeKey=m,onChange:m=>l.activeKey=m},{default:()=>[o.tabsConfig?.panes.map(m=>r.createVNode(r.resolveComponent("a-tab-pane"),{key:m.key,tab:m.title},null))]})]),b=()=>r.createVNode(ar,{props:{tagsLabel:o.tagsSelect?.label,tagsList:o.tagsSelect?.options,tagsVal:l.tagsVal,multiple:o.tagsSelect?.multiple,changeTags:m=>{l.tagsVal=m,c.pagination.current=1,j()}}},null),V=()=>r.createVNode(ir,{onChangeColumns:m=>{console.log(m),p.value=m},props:o,onBtnClick:m=>i(m,{})},{btnGroupAfter:o?.btnGroupAfter}),i=(m,O)=>{switch(m){case"refresh":j();break;case"delete":E("single",O);break;case"deleteAll":E("batch",O);break;default:t("Command",{command:m,row:O});break}},C=(m,O)=>{let v,w;if(m.customRender)return m.customRender(O);const P=()=>m.text?m.text:kt.find(y=>y.id===m.id)?.text||"未知操作",q=m.popConfirmText||"确认执行此操作?",N=m.popSubmitText||"确认",h=m.popCancelText||"取消";return m.isPopUp?r.createVNode(r.resolveComponent("a-popconfirm"),{title:q,"ok-text":N,"cancel-text":h,onConfirm:()=>i(m.id,O)},{default:()=>[r.createVNode(r.resolveComponent("a-button"),{type:"text"},$t(v=P())?v:{default:()=>[v]})]}):r.createVNode(r.resolveComponent("a-button"),{type:"text",onClick:()=>i(m.id,O)},$t(w=P())?w:{default:()=>[w]})},k=m=>{const O=[...kt,...o.recordBtns||[]],v=[],w=new Set;for(let P=O.length-1;P>=0;P--){const q=O[P];w.has(q.id)||(w.add(q.id),v.unshift(q))}return r.createVNode("div",null,[v.map(P=>(typeof P.isShow=="function"?P.isShow(m):P.isShow??!0)?C(P,m):null)])},T=m=>(c.pagination.current-1)*c.pagination.pageSize+m+1,z=({text:m,record:O,index:v,column:w})=>w?w.customRender?w.customRender({text:m,record:O,index:v,column:w}):w.dataIndex==="index"||w.title==="序号"?T(v):w.dataIndex==="action"||w.title==="操作"?k(O):m:null,M=()=>{c.pagination.current=1,j()},F=()=>{l.searchForm={},l.tagsVal=[],c.pagination.current=1,c.dataSource=[],j()},j=async m=>{try{if(!o.servicesApi?.list){ne.message.warning("缺少列表接口配置");return}c.loading=!0;const{current:O,pageSize:v}=c.pagination,w=cr(l.searchForm),P={page:O,pageSize:v,...w,...o.otherParams,...m,tabKey:l.activeKey,tags:l.tagsVal};o.tabsConfig||delete P.tabKey,o.tagsSelect||delete P.tags,o.isPagination&&(delete P.page,delete P.pageSize);const{code:q,data:N,rows:h,total:u}=await o.servicesApi.list(P);q===200&&(c.dataSource=N||h,c.pagination.total=u)}catch(O){throw ne.message.error("列表请求失败"),O}finally{c.loading=!1}},E=async(m,O)=>{const v=async w=>{if(!o.servicesApi?.delete){ne.message.warning("缺少删除接口配置");return}const{code:P}=await o.servicesApi.delete({ids:w});P===200&&(ne.message.success("删除成功"),j())};if(m==="batch"){if(d.value.length===0){ne.message.warning("请选择要删除的行");return}await v(d.value.join(","))}else{if(!O?.id){ne.message.warning("行数据缺少id,无法删除");return}await v(O.id.toString())}},B=(m,O)=>{d.value=m,o.rowSelection?.onChange?.(m,O)},Q=(m,O)=>{c.pagination.current=m,c.pagination.pageSize=O,j()};return n({AntdTableRef:s,getList:j,search:M,reset:F}),r.onMounted(()=>{l.searchForm={...o.searchForm,...o.otherParams},j()}),()=>r.createVNode("div",{class:"bpy-table-box"},[r.createVNode("div",{class:["bpy-table-header"]},[o.tabsConfig?.panes?.length&&a(),o?.tagsSelect&&b(),r.createVNode(or,{props:{...o,search:M,reset:F}},{part:f()})]),r.createVNode("div",{class:["we-table"]},[r.createVNode("div",{class:"bpy-title"},[r.createVNode("div",{class:{"bpy-table-title-left":typeof o.name=="string"}},[o.name||""]),r.createVNode("div",null,[V()])]),r.createVNode("div",null,[r.createVNode(r.resolveComponent("a-table"),{ref:s,rowKey:o.rowKey,loading:c.loading,dataSource:c.dataSource,columns:p.value.length>0?p.value:o.columns,pagination:!1,scroll:o.scroll,rowSelection:o.rowSelection?{columnWidth:48,...o.rowSelection,selectedRowKeys:d.value,onChange:B}:null},{bodyCell:o.bodyCell||z}),c.pagination.total>0&&r.createVNode("div",{class:"bpy-table-footer"},[r.createVNode("div",null,null),r.createVNode("div",{class:"bpy-table-pagination"},[r.createVNode(r.resolveComponent("a-pagination"),{showSizeChanger:!0,showQuickJumper:!0,pageSizeOptions:["10","20","50","100"],total:c.pagination.total,pageSize:c.pagination.pageSize,current:c.pagination.current,onChange:(m,O)=>Q(m,O),onShowSizeChange:(m,O)=>Q(m,O)},null)])])])])])}}),dr=[Re,ie,fe,ue,We,Ee,Be,Ye],pr={install:function(e){dr.forEach(t=>{e.component(t.name,t)})},CloudForm:Re,CloudFormItem:ie,CloudPeople:fe,CloudModal:ue,CloudFooterToolbar:We,CloudLoading:Ee,CloudLights:Be,CloudTable:Ye};D.CloudFooterToolbar=We,D.CloudForm=Re,D.CloudFormItem=ie,D.CloudLights=Be,D.CloudLoading=Ee,D.CloudModal=ue,D.CloudPeople=fe,D.CloudTable=Ye,D.default=pr,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|