liyu-pc-base 1.0.52 → 1.0.54
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as q, k as Q, m as U, o as X, x as pl, t as fl, y as ml, z as _l } from "../../init-plugin-57ca649d.js";
|
|
2
|
-
import { reactive as O, createVNode as
|
|
2
|
+
import { reactive as O, createVNode as w, defineComponent as G, provide as gl, watch as de, computed as A, onMounted as vt, onUnmounted as hl, Teleport as yl, ref as Ct, TransitionGroup as xt, shallowRef as le, render as Je, toRaw as bl, watchEffect as De } from "vue";
|
|
3
3
|
import { m as F, q as vl, av as Xe, aw as Cl, a6 as ie, _ as $, a8 as Ke, a5 as xl, H as wt, i as z, h as R, a9 as $t, Q as wl, g as Pt, e as It, a0 as Z, a1 as Tt, ad as _e, af as ge, ae as he, ag as ze, ax as Ot, f as Ee, E as $l, ay as Pl, az as ee, d as Il, L as Tl, aA as Ce, aB as Qe, u as Ol, aC as Sl, aD as Ml, aE as kl, aF as Al, aG as St, aH as Vl, aI as jl, aJ as Dl, aK as Kl, ap as zl, aq as El, aL as ql, aM as Nl, aN as Ll, b as Fl, aO as Rl, aP as Hl, aQ as Gl, aR as Bl, ab as Ul } from "../../modal-tools-9929bde3.js";
|
|
4
4
|
import { Modal as Ye, message as H, notification as te } from "ant-design-vue";
|
|
5
5
|
import { ExclamationCircleOutlined as Ze } from "@ant-design/icons-vue";
|
|
@@ -490,7 +490,7 @@ const Mt = [
|
|
|
490
490
|
cb: ({ record: e, current_org: t }) => {
|
|
491
491
|
Ye.confirm({
|
|
492
492
|
title: "是否设为需要授权?",
|
|
493
|
-
icon:
|
|
493
|
+
icon: w(Ze),
|
|
494
494
|
onOk() {
|
|
495
495
|
return new Promise((l) => {
|
|
496
496
|
et({
|
|
@@ -515,7 +515,7 @@ const Mt = [
|
|
|
515
515
|
cb: ({ record: e, current_org: t }) => {
|
|
516
516
|
Ye.confirm({
|
|
517
517
|
title: "是否设为无需授权?",
|
|
518
|
-
icon:
|
|
518
|
+
icon: w(Ze),
|
|
519
519
|
onOk() {
|
|
520
520
|
return new Promise((l) => {
|
|
521
521
|
et({
|
|
@@ -1257,22 +1257,22 @@ const Mt = [
|
|
|
1257
1257
|
type: "dropdown",
|
|
1258
1258
|
is_show: ({ record: e }) => e.is_active,
|
|
1259
1259
|
cb: ({ record: e }) => {
|
|
1260
|
-
var
|
|
1260
|
+
var d, m, _, y;
|
|
1261
1261
|
const t = U(), l = [], a = [];
|
|
1262
|
-
e.org_id_list && e.org_id_list.length > 0 && e.org_id_list.forEach((
|
|
1263
|
-
l.push(
|
|
1264
|
-
}), e.url_id_list && e.url_id_list.length > 0 && e.url_id_list.forEach((
|
|
1265
|
-
a.push(
|
|
1262
|
+
e.org_id_list && e.org_id_list.length > 0 && e.org_id_list.forEach((f) => {
|
|
1263
|
+
l.push(f.id);
|
|
1264
|
+
}), e.url_id_list && e.url_id_list.length > 0 && e.url_id_list.forEach((f) => {
|
|
1265
|
+
a.push(f.id);
|
|
1266
1266
|
});
|
|
1267
1267
|
let n, o;
|
|
1268
1268
|
e.is_menu ? e.component ? (e.component == "@/components/remotePages/index.vue" ? o = 0 : o = 1, n = 0) : n = 1 : n = 2;
|
|
1269
|
-
let i = null,
|
|
1270
|
-
if (e.state && ((
|
|
1271
|
-
const
|
|
1272
|
-
|
|
1269
|
+
let i = null, c = null;
|
|
1270
|
+
if (e.state && ((d = e.state) != null && d.split("-")) && ((_ = (m = e.state) == null ? void 0 : m.split("-")) == null ? void 0 : _.length) > 0) {
|
|
1271
|
+
const f = (y = e.state) == null ? void 0 : y.split("-");
|
|
1272
|
+
f.length == 3 ? (i = f[f.length - 1], f.pop(), c = f.join("-")) : c = e.state;
|
|
1273
1273
|
} else
|
|
1274
|
-
|
|
1275
|
-
const
|
|
1274
|
+
c = e.state;
|
|
1275
|
+
const s = O({
|
|
1276
1276
|
open: !0,
|
|
1277
1277
|
loading: !1,
|
|
1278
1278
|
title: "修改菜单",
|
|
@@ -1509,7 +1509,7 @@ const Mt = [
|
|
|
1509
1509
|
menu_id: e.id,
|
|
1510
1510
|
platform: e.platform,
|
|
1511
1511
|
icon: e.icon,
|
|
1512
|
-
state:
|
|
1512
|
+
state: c,
|
|
1513
1513
|
sort: e.sort,
|
|
1514
1514
|
parent_id: e.parent_id,
|
|
1515
1515
|
component: e.component,
|
|
@@ -1537,9 +1537,9 @@ const Mt = [
|
|
|
1537
1537
|
]
|
|
1538
1538
|
}),
|
|
1539
1539
|
watch: {
|
|
1540
|
-
type: (
|
|
1541
|
-
|
|
1542
|
-
|
|
1540
|
+
type: (f) => {
|
|
1541
|
+
f.type == 0 && setTimeout(() => {
|
|
1542
|
+
f.component_type = 0;
|
|
1543
1543
|
}, 500);
|
|
1544
1544
|
}
|
|
1545
1545
|
},
|
|
@@ -1559,33 +1559,33 @@ const Mt = [
|
|
|
1559
1559
|
]
|
|
1560
1560
|
}
|
|
1561
1561
|
},
|
|
1562
|
-
ok: (
|
|
1563
|
-
var u,
|
|
1564
|
-
let
|
|
1565
|
-
|
|
1566
|
-
let P =
|
|
1567
|
-
|
|
1562
|
+
ok: (f) => new Promise((C) => {
|
|
1563
|
+
var u, v, p;
|
|
1564
|
+
let x = "", T = "";
|
|
1565
|
+
f.org_ids && f.org_ids.length > 0 && (x = f.org_ids.join(",")), f.url_ids && f.url_ids.length > 0 && (T = f.url_ids.join(","));
|
|
1566
|
+
let P = f.state;
|
|
1567
|
+
f.suffix && (P = P + "-" + f.suffix);
|
|
1568
1568
|
let k = null, j = null;
|
|
1569
|
-
if (
|
|
1569
|
+
if (f.type == 0 && f.state && ((u = f.state) != null && u.split("-")) && ((v = f.state) == null ? void 0 : v.split("-").length) != 2) {
|
|
1570
1570
|
te.info({
|
|
1571
1571
|
message: "温馨提示",
|
|
1572
1572
|
description: "路由 格式不正确!应为 <app_flag>-<model_name>"
|
|
1573
1573
|
});
|
|
1574
1574
|
return;
|
|
1575
1575
|
} else
|
|
1576
|
-
|
|
1577
|
-
if (e.state == P && (k = null, j = null),
|
|
1576
|
+
f.type == 2 ? (k = null, j = null) : (k = "/" + ((p = f.state) == null ? void 0 : p.split("-")[0]) + "/" + P, j = P);
|
|
1577
|
+
if (e.state == P && (k = null, j = null), f.type == 0 && f.component_type == 0 && (f.component = "@/components/remotePages/index.vue"), f.type == 0 && !f.component) {
|
|
1578
1578
|
te.info({
|
|
1579
1579
|
message: "温馨提示",
|
|
1580
1580
|
description: "请填写组件地址!"
|
|
1581
1581
|
});
|
|
1582
1582
|
return;
|
|
1583
1583
|
}
|
|
1584
|
-
const S =
|
|
1585
|
-
|
|
1584
|
+
const S = f.type != 2;
|
|
1585
|
+
s.loading = !0, B(
|
|
1586
1586
|
{
|
|
1587
|
-
...
|
|
1588
|
-
org_ids:
|
|
1587
|
+
...f,
|
|
1588
|
+
org_ids: x,
|
|
1589
1589
|
is_menu: S,
|
|
1590
1590
|
state: P,
|
|
1591
1591
|
menu_name: j,
|
|
@@ -1594,13 +1594,13 @@ const Mt = [
|
|
|
1594
1594
|
},
|
|
1595
1595
|
"/permission/update_menu"
|
|
1596
1596
|
).then(() => {
|
|
1597
|
-
H.success("修改成功"), q().emit("refresh"),
|
|
1597
|
+
H.success("修改成功"), q().emit("refresh"), C(null);
|
|
1598
1598
|
}).finally(() => {
|
|
1599
|
-
|
|
1599
|
+
s.loading = !1;
|
|
1600
1600
|
});
|
|
1601
1601
|
})
|
|
1602
1602
|
});
|
|
1603
|
-
t.VITE_APP_HAS_PROJECT &&
|
|
1603
|
+
t.VITE_APP_HAS_PROJECT && s.form.dynamicFieldList[0].children.push({
|
|
1604
1604
|
type: "remoteselectpro",
|
|
1605
1605
|
name: "menu_project",
|
|
1606
1606
|
label: "模块",
|
|
@@ -1616,7 +1616,7 @@ const Mt = [
|
|
|
1616
1616
|
valueKey: "project",
|
|
1617
1617
|
postUrl: "/i18n/query_language_project_list",
|
|
1618
1618
|
span: 12
|
|
1619
|
-
}), F(
|
|
1619
|
+
}), F(s);
|
|
1620
1620
|
}
|
|
1621
1621
|
},
|
|
1622
1622
|
{
|
|
@@ -2003,20 +2003,20 @@ const Mt = [
|
|
|
2003
2003
|
}
|
|
2004
2004
|
},
|
|
2005
2005
|
ok: (o) => {
|
|
2006
|
-
var
|
|
2007
|
-
let i = "",
|
|
2008
|
-
o.org_ids && o.org_ids.length > 0 && (i = o.org_ids.join(",")), o.org_type == 0 && (i = a.join(",")), o.url_ids && o.url_ids.length > 0 && (
|
|
2009
|
-
let
|
|
2010
|
-
o.suffix && (
|
|
2011
|
-
let
|
|
2012
|
-
if (o.type == 0 && o.state && ((
|
|
2006
|
+
var y, f, C;
|
|
2007
|
+
let i = "", c = "";
|
|
2008
|
+
o.org_ids && o.org_ids.length > 0 && (i = o.org_ids.join(",")), o.org_type == 0 && (i = a.join(",")), o.url_ids && o.url_ids.length > 0 && (c = o.url_ids.join(","));
|
|
2009
|
+
let s = o.state;
|
|
2010
|
+
o.suffix && (s = s + "-" + o.suffix);
|
|
2011
|
+
let d, m;
|
|
2012
|
+
if (o.type == 0 && o.state && ((y = o.state) != null && y.split("-")) && ((f = o.state) == null ? void 0 : f.split("-").length) != 2) {
|
|
2013
2013
|
te.info({
|
|
2014
2014
|
message: "温馨提示",
|
|
2015
2015
|
description: "路由 格式不正确!应为 <app_flag>-<model_name>"
|
|
2016
2016
|
});
|
|
2017
2017
|
return;
|
|
2018
2018
|
} else
|
|
2019
|
-
o.type == 2 ? (
|
|
2019
|
+
o.type == 2 ? (d = null, m = null) : (d = "/" + ((C = o.state) == null ? void 0 : C.split("-")[0]) + "/" + s, m = s);
|
|
2020
2020
|
if (o.type == 0 && o.component_type == 0 && (o.component = "@/components/remotePages/index.vue"), o.type == 0 && !o.component) {
|
|
2021
2021
|
te.info({
|
|
2022
2022
|
message: "温馨提示",
|
|
@@ -2025,14 +2025,14 @@ const Mt = [
|
|
|
2025
2025
|
return;
|
|
2026
2026
|
}
|
|
2027
2027
|
const _ = o.type != 2;
|
|
2028
|
-
n.loading = !0, o.is_all_org ? vl().then((
|
|
2029
|
-
i =
|
|
2028
|
+
n.loading = !0, o.is_all_org ? vl().then((x) => {
|
|
2029
|
+
i = x.data.map((T) => T.id).join(","), Xe({
|
|
2030
2030
|
...o,
|
|
2031
2031
|
org_ids: i,
|
|
2032
|
-
url_ids:
|
|
2033
|
-
state:
|
|
2034
|
-
menu_name:
|
|
2035
|
-
menu_path:
|
|
2032
|
+
url_ids: c,
|
|
2033
|
+
state: s,
|
|
2034
|
+
menu_name: m,
|
|
2035
|
+
menu_path: d,
|
|
2036
2036
|
is_menu: _
|
|
2037
2037
|
}).then(() => {
|
|
2038
2038
|
H.success("新增菜单成功"), q().emit("refresh");
|
|
@@ -2042,10 +2042,10 @@ const Mt = [
|
|
|
2042
2042
|
}) : Xe({
|
|
2043
2043
|
...o,
|
|
2044
2044
|
org_ids: i,
|
|
2045
|
-
url_ids:
|
|
2046
|
-
state:
|
|
2047
|
-
menu_name:
|
|
2048
|
-
menu_path:
|
|
2045
|
+
url_ids: c,
|
|
2046
|
+
state: s,
|
|
2047
|
+
menu_name: m,
|
|
2048
|
+
menu_path: d,
|
|
2049
2049
|
is_menu: _
|
|
2050
2050
|
}).then(() => {
|
|
2051
2051
|
H.success("新增菜单成功"), q().emit("refresh");
|
|
@@ -2533,20 +2533,20 @@ const Mt = [
|
|
|
2533
2533
|
}
|
|
2534
2534
|
},
|
|
2535
2535
|
ok: (o) => new Promise((i) => {
|
|
2536
|
-
var
|
|
2537
|
-
let
|
|
2538
|
-
o.org_ids && o.org_ids.length > 0 && (
|
|
2539
|
-
let
|
|
2540
|
-
o.suffix && (
|
|
2541
|
-
let
|
|
2542
|
-
if (o.type == 0 && o.state && ((
|
|
2536
|
+
var f, C, x;
|
|
2537
|
+
let c = "", s = "";
|
|
2538
|
+
o.org_ids && o.org_ids.length > 0 && (c = o.org_ids.join(",")), o.org_type == 0 && (c = a.join(",")), o.url_ids && o.url_ids.length > 0 && (s = o.url_ids.join(","));
|
|
2539
|
+
let d = o.state;
|
|
2540
|
+
o.suffix && (d = d + "-" + o.suffix);
|
|
2541
|
+
let m, _;
|
|
2542
|
+
if (o.type == 0 && o.state && ((f = o.state) != null && f.split("-")) && ((C = o.state) == null ? void 0 : C.split("-").length) != 2) {
|
|
2543
2543
|
te.info({
|
|
2544
2544
|
message: "温馨提示",
|
|
2545
2545
|
description: "路由 格式不正确!应为 <app_flag>-<model_name>"
|
|
2546
2546
|
});
|
|
2547
2547
|
return;
|
|
2548
2548
|
} else
|
|
2549
|
-
o.type == 2 ? (
|
|
2549
|
+
o.type == 2 ? (m = null, _ = null) : (m = "/" + ((x = o.state) == null ? void 0 : x.split("-")[0]) + "/" + d, _ = d);
|
|
2550
2550
|
if (o.type == 0 && o.component_type == 0 && (o.component = "@/components/remotePages/index.vue"), o.type == 0 && !o.component) {
|
|
2551
2551
|
te.info({
|
|
2552
2552
|
message: "温馨提示",
|
|
@@ -2554,17 +2554,17 @@ const Mt = [
|
|
|
2554
2554
|
});
|
|
2555
2555
|
return;
|
|
2556
2556
|
}
|
|
2557
|
-
const
|
|
2557
|
+
const y = o.type != 2;
|
|
2558
2558
|
n.loading = !0, B(
|
|
2559
2559
|
{
|
|
2560
2560
|
...o,
|
|
2561
2561
|
org_id: l.id,
|
|
2562
|
-
is_menu:
|
|
2563
|
-
state:
|
|
2562
|
+
is_menu: y,
|
|
2563
|
+
state: d,
|
|
2564
2564
|
menu_name: _,
|
|
2565
|
-
menu_path:
|
|
2566
|
-
org_ids:
|
|
2567
|
-
url_ids:
|
|
2565
|
+
menu_path: m,
|
|
2566
|
+
org_ids: c,
|
|
2567
|
+
url_ids: s
|
|
2568
2568
|
},
|
|
2569
2569
|
"/permission/create_menu"
|
|
2570
2570
|
).then(() => {
|
|
@@ -3664,7 +3664,7 @@ function va(e, t, l) {
|
|
|
3664
3664
|
}
|
|
3665
3665
|
var qe = function(t, l) {
|
|
3666
3666
|
var a = tt({}, t, l.attrs);
|
|
3667
|
-
return
|
|
3667
|
+
return w(ie, tt({}, a, {
|
|
3668
3668
|
icon: ba
|
|
3669
3669
|
}), null);
|
|
3670
3670
|
};
|
|
@@ -3689,7 +3689,7 @@ function wa(e, t, l) {
|
|
|
3689
3689
|
}
|
|
3690
3690
|
var Le = function(t, l) {
|
|
3691
3691
|
var a = lt({}, t, l.attrs);
|
|
3692
|
-
return
|
|
3692
|
+
return w(ie, lt({}, a, {
|
|
3693
3693
|
icon: xa
|
|
3694
3694
|
}), null);
|
|
3695
3695
|
};
|
|
@@ -3714,7 +3714,7 @@ function Ta(e, t, l) {
|
|
|
3714
3714
|
}
|
|
3715
3715
|
var Fe = function(t, l) {
|
|
3716
3716
|
var a = at({}, t, l.attrs);
|
|
3717
|
-
return
|
|
3717
|
+
return w(ie, at({}, a, {
|
|
3718
3718
|
icon: Ia
|
|
3719
3719
|
}), null);
|
|
3720
3720
|
};
|
|
@@ -3739,7 +3739,7 @@ function ka(e, t, l) {
|
|
|
3739
3739
|
}
|
|
3740
3740
|
var Re = function(t, l) {
|
|
3741
3741
|
var a = nt({}, t, l.attrs);
|
|
3742
|
-
return
|
|
3742
|
+
return w(ie, nt({}, a, {
|
|
3743
3743
|
icon: Ma
|
|
3744
3744
|
}), null);
|
|
3745
3745
|
};
|
|
@@ -3764,7 +3764,7 @@ function Da(e, t, l) {
|
|
|
3764
3764
|
}
|
|
3765
3765
|
var He = function(t, l) {
|
|
3766
3766
|
var a = ot({}, t, l.attrs);
|
|
3767
|
-
return
|
|
3767
|
+
return w(ie, ot({}, a, {
|
|
3768
3768
|
icon: ja
|
|
3769
3769
|
}), null);
|
|
3770
3770
|
};
|
|
@@ -3789,7 +3789,7 @@ function qa(e, t, l) {
|
|
|
3789
3789
|
}
|
|
3790
3790
|
var Ge = function(t, l) {
|
|
3791
3791
|
var a = it({}, t, l.attrs);
|
|
3792
|
-
return
|
|
3792
|
+
return w(ie, it({}, a, {
|
|
3793
3793
|
icon: Ea
|
|
3794
3794
|
}), null);
|
|
3795
3795
|
};
|
|
@@ -3846,64 +3846,64 @@ const La = xl(fe), be = G({
|
|
|
3846
3846
|
attrs: l,
|
|
3847
3847
|
slots: a
|
|
3848
3848
|
} = t, n, o = !1;
|
|
3849
|
-
const i =
|
|
3849
|
+
const i = A(() => e.duration === void 0 ? 4.5 : e.duration), c = () => {
|
|
3850
3850
|
i.value && !o && (n = setTimeout(() => {
|
|
3851
|
-
|
|
3851
|
+
d();
|
|
3852
3852
|
}, i.value * 1e3));
|
|
3853
|
-
},
|
|
3853
|
+
}, s = () => {
|
|
3854
3854
|
n && (clearTimeout(n), n = null);
|
|
3855
|
-
},
|
|
3856
|
-
_ && _.stopPropagation(),
|
|
3855
|
+
}, d = (_) => {
|
|
3856
|
+
_ && _.stopPropagation(), s();
|
|
3857
3857
|
const {
|
|
3858
|
-
onClose:
|
|
3859
|
-
noticeKey:
|
|
3858
|
+
onClose: y,
|
|
3859
|
+
noticeKey: f
|
|
3860
3860
|
} = e;
|
|
3861
|
-
|
|
3862
|
-
},
|
|
3863
|
-
|
|
3861
|
+
y && y(f);
|
|
3862
|
+
}, m = () => {
|
|
3863
|
+
s(), c();
|
|
3864
3864
|
};
|
|
3865
3865
|
return vt(() => {
|
|
3866
|
-
|
|
3866
|
+
c();
|
|
3867
3867
|
}), hl(() => {
|
|
3868
|
-
o = !0,
|
|
3869
|
-
}), de([i, () => e.updateMark, () => e.visible], (_,
|
|
3870
|
-
let [
|
|
3871
|
-
(
|
|
3868
|
+
o = !0, s();
|
|
3869
|
+
}), de([i, () => e.updateMark, () => e.visible], (_, y) => {
|
|
3870
|
+
let [f, C, x] = _, [T, P, k] = y;
|
|
3871
|
+
(f !== T || C !== P || x !== k && k) && m();
|
|
3872
3872
|
}, {
|
|
3873
3873
|
flush: "post"
|
|
3874
3874
|
}), () => {
|
|
3875
|
-
var _,
|
|
3875
|
+
var _, y;
|
|
3876
3876
|
const {
|
|
3877
|
-
prefixCls:
|
|
3878
|
-
closable:
|
|
3879
|
-
closeIcon:
|
|
3877
|
+
prefixCls: f,
|
|
3878
|
+
closable: C,
|
|
3879
|
+
closeIcon: x = (_ = a.closeIcon) === null || _ === void 0 ? void 0 : _.call(a),
|
|
3880
3880
|
onClick: T,
|
|
3881
3881
|
holder: P
|
|
3882
3882
|
} = e, {
|
|
3883
3883
|
class: k,
|
|
3884
3884
|
style: j
|
|
3885
|
-
} = l, S = `${
|
|
3885
|
+
} = l, S = `${f}-notice`, u = Object.keys(l).reduce((p, I) => ((I.startsWith("data-") || I.startsWith("aria-") || I === "role") && (p[I] = l[I]), p), {}), v = w("div", z({
|
|
3886
3886
|
class: R(S, k, {
|
|
3887
|
-
[`${S}-closable`]:
|
|
3887
|
+
[`${S}-closable`]: C
|
|
3888
3888
|
}),
|
|
3889
3889
|
style: j,
|
|
3890
|
-
onMouseenter:
|
|
3891
|
-
onMouseleave:
|
|
3890
|
+
onMouseenter: s,
|
|
3891
|
+
onMouseleave: c,
|
|
3892
3892
|
onClick: T
|
|
3893
|
-
}, u), [
|
|
3893
|
+
}, u), [w("div", {
|
|
3894
3894
|
class: `${S}-content`
|
|
3895
|
-
}, [(
|
|
3895
|
+
}, [(y = a.default) === null || y === void 0 ? void 0 : y.call(a)]), C ? w("a", {
|
|
3896
3896
|
tabindex: 0,
|
|
3897
|
-
onClick:
|
|
3897
|
+
onClick: d,
|
|
3898
3898
|
class: `${S}-close`
|
|
3899
|
-
}, [
|
|
3899
|
+
}, [x || w("span", {
|
|
3900
3900
|
class: `${S}-close-x`
|
|
3901
3901
|
}, null)]) : null]);
|
|
3902
|
-
return P ?
|
|
3902
|
+
return P ? w(yl, {
|
|
3903
3903
|
to: P
|
|
3904
3904
|
}, {
|
|
3905
|
-
default: () =>
|
|
3906
|
-
}) :
|
|
3905
|
+
default: () => v
|
|
3906
|
+
}) : v;
|
|
3907
3907
|
};
|
|
3908
3908
|
}
|
|
3909
3909
|
});
|
|
@@ -3932,101 +3932,101 @@ const Oe = G({
|
|
|
3932
3932
|
expose: a,
|
|
3933
3933
|
slots: n
|
|
3934
3934
|
} = t;
|
|
3935
|
-
const o = /* @__PURE__ */ new Map(), i = Ct([]),
|
|
3935
|
+
const o = /* @__PURE__ */ new Map(), i = Ct([]), c = A(() => {
|
|
3936
3936
|
const {
|
|
3937
|
-
prefixCls:
|
|
3937
|
+
prefixCls: m,
|
|
3938
3938
|
animation: _ = "fade"
|
|
3939
3939
|
} = e;
|
|
3940
|
-
let
|
|
3941
|
-
return !
|
|
3942
|
-
}),
|
|
3943
|
-
const
|
|
3944
|
-
key:
|
|
3940
|
+
let y = e.transitionName;
|
|
3941
|
+
return !y && _ && (y = `${m}-${_}`), $t(y);
|
|
3942
|
+
}), s = (m, _) => {
|
|
3943
|
+
const y = m.key || st(), f = $($({}, m), {
|
|
3944
|
+
key: y
|
|
3945
3945
|
}), {
|
|
3946
|
-
maxCount:
|
|
3947
|
-
} = e,
|
|
3948
|
-
|
|
3949
|
-
notice:
|
|
3946
|
+
maxCount: C
|
|
3947
|
+
} = e, x = i.value.map((P) => P.notice.key).indexOf(y), T = i.value.concat();
|
|
3948
|
+
x !== -1 ? T.splice(x, 1, {
|
|
3949
|
+
notice: f,
|
|
3950
3950
|
holderCallback: _
|
|
3951
|
-
}) : (
|
|
3952
|
-
notice:
|
|
3951
|
+
}) : (C && i.value.length >= C && (f.key = T[0].notice.key, f.updateMark = st(), f.userPassKey = y, T.shift()), T.push({
|
|
3952
|
+
notice: f,
|
|
3953
3953
|
holderCallback: _
|
|
3954
3954
|
})), i.value = T;
|
|
3955
|
-
},
|
|
3955
|
+
}, d = (m) => {
|
|
3956
3956
|
i.value = bl(i.value).filter((_) => {
|
|
3957
3957
|
let {
|
|
3958
3958
|
notice: {
|
|
3959
|
-
key:
|
|
3960
|
-
userPassKey:
|
|
3959
|
+
key: y,
|
|
3960
|
+
userPassKey: f
|
|
3961
3961
|
}
|
|
3962
3962
|
} = _;
|
|
3963
|
-
return (
|
|
3963
|
+
return (f || y) !== m;
|
|
3964
3964
|
});
|
|
3965
3965
|
};
|
|
3966
3966
|
return a({
|
|
3967
|
-
add:
|
|
3968
|
-
remove:
|
|
3967
|
+
add: s,
|
|
3968
|
+
remove: d,
|
|
3969
3969
|
notices: i
|
|
3970
3970
|
}), () => {
|
|
3971
|
-
var
|
|
3971
|
+
var m;
|
|
3972
3972
|
const {
|
|
3973
3973
|
prefixCls: _,
|
|
3974
|
-
closeIcon:
|
|
3974
|
+
closeIcon: y = (m = n.closeIcon) === null || m === void 0 ? void 0 : m.call(n, {
|
|
3975
3975
|
prefixCls: _
|
|
3976
3976
|
})
|
|
3977
|
-
} = e,
|
|
3977
|
+
} = e, f = i.value.map((x, T) => {
|
|
3978
3978
|
let {
|
|
3979
3979
|
notice: P,
|
|
3980
3980
|
holderCallback: k
|
|
3981
|
-
} =
|
|
3981
|
+
} = x;
|
|
3982
3982
|
const j = T === i.value.length - 1 ? P.updateMark : void 0, {
|
|
3983
3983
|
key: S,
|
|
3984
3984
|
userPassKey: u
|
|
3985
3985
|
} = P, {
|
|
3986
|
-
content:
|
|
3987
|
-
} = P,
|
|
3986
|
+
content: v
|
|
3987
|
+
} = P, p = $($($({
|
|
3988
3988
|
prefixCls: _,
|
|
3989
|
-
closeIcon: typeof
|
|
3989
|
+
closeIcon: typeof y == "function" ? y({
|
|
3990
3990
|
prefixCls: _
|
|
3991
|
-
}) :
|
|
3991
|
+
}) : y
|
|
3992
3992
|
}, P), P.props), {
|
|
3993
3993
|
key: S,
|
|
3994
3994
|
noticeKey: u || S,
|
|
3995
3995
|
updateMark: j,
|
|
3996
3996
|
onClose: (I) => {
|
|
3997
|
-
var
|
|
3998
|
-
|
|
3997
|
+
var V;
|
|
3998
|
+
d(I), (V = P.onClose) === null || V === void 0 || V.call(P);
|
|
3999
3999
|
},
|
|
4000
4000
|
onClick: P.onClick
|
|
4001
4001
|
});
|
|
4002
|
-
return k ?
|
|
4002
|
+
return k ? w("div", {
|
|
4003
4003
|
key: S,
|
|
4004
4004
|
class: `${_}-hook-holder`,
|
|
4005
4005
|
ref: (I) => {
|
|
4006
|
-
typeof S > "u" || (I ? (o.set(S, I), k(I,
|
|
4006
|
+
typeof S > "u" || (I ? (o.set(S, I), k(I, p)) : o.delete(S));
|
|
4007
4007
|
}
|
|
4008
|
-
}, null) :
|
|
4009
|
-
class: R(
|
|
4008
|
+
}, null) : w(be, z(z({}, p), {}, {
|
|
4009
|
+
class: R(p.class, e.hashId)
|
|
4010
4010
|
}), {
|
|
4011
|
-
default: () => [typeof
|
|
4011
|
+
default: () => [typeof v == "function" ? v({
|
|
4012
4012
|
prefixCls: _
|
|
4013
|
-
}) :
|
|
4013
|
+
}) : v]
|
|
4014
4014
|
});
|
|
4015
|
-
}),
|
|
4015
|
+
}), C = {
|
|
4016
4016
|
[_]: 1,
|
|
4017
4017
|
[l.class]: !!l.class,
|
|
4018
4018
|
[e.hashId]: !0
|
|
4019
4019
|
};
|
|
4020
|
-
return
|
|
4021
|
-
class:
|
|
4020
|
+
return w("div", {
|
|
4021
|
+
class: C,
|
|
4022
4022
|
style: l.style || {
|
|
4023
4023
|
top: "65px",
|
|
4024
4024
|
left: "50%"
|
|
4025
4025
|
}
|
|
4026
|
-
}, [
|
|
4026
|
+
}, [w(xt, z({
|
|
4027
4027
|
tag: "div"
|
|
4028
|
-
},
|
|
4029
|
-
default: () => [
|
|
4028
|
+
}, c.value), {
|
|
4029
|
+
default: () => [f]
|
|
4030
4030
|
})]);
|
|
4031
4031
|
};
|
|
4032
4032
|
}
|
|
@@ -4036,14 +4036,14 @@ Oe.newInstance = function(t, l) {
|
|
|
4036
4036
|
name: n = "notification",
|
|
4037
4037
|
getContainer: o,
|
|
4038
4038
|
appContext: i,
|
|
4039
|
-
prefixCls:
|
|
4040
|
-
rootPrefixCls:
|
|
4041
|
-
transitionName:
|
|
4042
|
-
hasTransitionName:
|
|
4039
|
+
prefixCls: c,
|
|
4040
|
+
rootPrefixCls: s,
|
|
4041
|
+
transitionName: d,
|
|
4042
|
+
hasTransitionName: m,
|
|
4043
4043
|
useStyle: _
|
|
4044
|
-
} = a,
|
|
4045
|
-
o ? o().appendChild(
|
|
4046
|
-
const
|
|
4044
|
+
} = a, y = Fa(a, ["name", "getContainer", "appContext", "prefixCls", "rootPrefixCls", "transitionName", "hasTransitionName", "useStyle"]), f = document.createElement("div");
|
|
4045
|
+
o ? o().appendChild(f) : document.body.appendChild(f);
|
|
4046
|
+
const C = G({
|
|
4047
4047
|
compatConfig: {
|
|
4048
4048
|
MODE: 3
|
|
4049
4049
|
},
|
|
@@ -4052,28 +4052,28 @@ Oe.newInstance = function(t, l) {
|
|
|
4052
4052
|
let {
|
|
4053
4053
|
attrs: k
|
|
4054
4054
|
} = P;
|
|
4055
|
-
const j = le(), S =
|
|
4055
|
+
const j = le(), S = A(() => N.getPrefixCls(n, c)), [, u] = _(S);
|
|
4056
4056
|
return vt(() => {
|
|
4057
4057
|
l({
|
|
4058
|
-
notice(
|
|
4059
|
-
var
|
|
4060
|
-
(
|
|
4058
|
+
notice(v) {
|
|
4059
|
+
var p;
|
|
4060
|
+
(p = j.value) === null || p === void 0 || p.add(v);
|
|
4061
4061
|
},
|
|
4062
|
-
removeNotice(
|
|
4063
|
-
var
|
|
4064
|
-
(
|
|
4062
|
+
removeNotice(v) {
|
|
4063
|
+
var p;
|
|
4064
|
+
(p = j.value) === null || p === void 0 || p.remove(v);
|
|
4065
4065
|
},
|
|
4066
4066
|
destroy() {
|
|
4067
|
-
Je(null,
|
|
4067
|
+
Je(null, f), f.parentNode && f.parentNode.removeChild(f);
|
|
4068
4068
|
},
|
|
4069
4069
|
component: j
|
|
4070
4070
|
});
|
|
4071
4071
|
}), () => {
|
|
4072
|
-
const
|
|
4073
|
-
return
|
|
4074
|
-
prefixCls:
|
|
4072
|
+
const v = N, p = v.getRootPrefixCls(s, S.value), I = m ? d : `${S.value}-${d}`;
|
|
4073
|
+
return w(qn, z(z({}, v), {}, {
|
|
4074
|
+
prefixCls: p
|
|
4075
4075
|
}), {
|
|
4076
|
-
default: () => [
|
|
4076
|
+
default: () => [w(Oe, z(z({
|
|
4077
4077
|
ref: j
|
|
4078
4078
|
}, k), {}, {
|
|
4079
4079
|
prefixCls: S.value,
|
|
@@ -4083,8 +4083,8 @@ Oe.newInstance = function(t, l) {
|
|
|
4083
4083
|
});
|
|
4084
4084
|
};
|
|
4085
4085
|
}
|
|
4086
|
-
}),
|
|
4087
|
-
|
|
4086
|
+
}), x = w(C, y);
|
|
4087
|
+
x.appContext = i || x.appContext, Je(x, f);
|
|
4088
4088
|
};
|
|
4089
4089
|
const Kt = Oe;
|
|
4090
4090
|
let ut = 0;
|
|
@@ -4102,79 +4102,79 @@ const Ga = G({
|
|
|
4102
4102
|
attrs: l,
|
|
4103
4103
|
slots: a
|
|
4104
4104
|
} = t;
|
|
4105
|
-
const n = /* @__PURE__ */ new Map(), o =
|
|
4106
|
-
let
|
|
4107
|
-
if (!
|
|
4105
|
+
const n = /* @__PURE__ */ new Map(), o = A(() => e.notices), i = A(() => {
|
|
4106
|
+
let m = e.transitionName;
|
|
4107
|
+
if (!m && e.animation)
|
|
4108
4108
|
switch (typeof e.animation) {
|
|
4109
4109
|
case "string":
|
|
4110
|
-
|
|
4110
|
+
m = e.animation;
|
|
4111
4111
|
break;
|
|
4112
4112
|
case "function":
|
|
4113
|
-
|
|
4113
|
+
m = e.animation().name;
|
|
4114
4114
|
break;
|
|
4115
4115
|
case "object":
|
|
4116
|
-
|
|
4116
|
+
m = e.animation.name;
|
|
4117
4117
|
break;
|
|
4118
4118
|
default:
|
|
4119
|
-
|
|
4119
|
+
m = `${e.prefixCls}-fade`;
|
|
4120
4120
|
break;
|
|
4121
4121
|
}
|
|
4122
|
-
return $t(
|
|
4123
|
-
}),
|
|
4122
|
+
return $t(m);
|
|
4123
|
+
}), c = (m) => e.remove(m), s = Ct({});
|
|
4124
4124
|
de(o, () => {
|
|
4125
|
-
const
|
|
4126
|
-
Object.keys(
|
|
4127
|
-
|
|
4125
|
+
const m = {};
|
|
4126
|
+
Object.keys(s.value).forEach((_) => {
|
|
4127
|
+
m[_] = [];
|
|
4128
4128
|
}), e.notices.forEach((_) => {
|
|
4129
4129
|
const {
|
|
4130
|
-
placement:
|
|
4130
|
+
placement: y = "topRight"
|
|
4131
4131
|
} = _.notice;
|
|
4132
|
-
|
|
4133
|
-
}),
|
|
4132
|
+
y && (m[y] = m[y] || [], m[y].push(_));
|
|
4133
|
+
}), s.value = m;
|
|
4134
4134
|
});
|
|
4135
|
-
const
|
|
4135
|
+
const d = A(() => Object.keys(s.value));
|
|
4136
4136
|
return () => {
|
|
4137
|
-
var
|
|
4137
|
+
var m;
|
|
4138
4138
|
const {
|
|
4139
4139
|
prefixCls: _,
|
|
4140
|
-
closeIcon:
|
|
4140
|
+
closeIcon: y = (m = a.closeIcon) === null || m === void 0 ? void 0 : m.call(a, {
|
|
4141
4141
|
prefixCls: _
|
|
4142
4142
|
})
|
|
4143
|
-
} = e,
|
|
4144
|
-
var
|
|
4145
|
-
const P =
|
|
4143
|
+
} = e, f = d.value.map((C) => {
|
|
4144
|
+
var x, T;
|
|
4145
|
+
const P = s.value[C], k = (x = e.getClassName) === null || x === void 0 ? void 0 : x.call(e, C), j = (T = e.getStyles) === null || T === void 0 ? void 0 : T.call(e, C), S = P.map((p, I) => {
|
|
4146
4146
|
let {
|
|
4147
|
-
notice:
|
|
4147
|
+
notice: V,
|
|
4148
4148
|
holderCallback: D
|
|
4149
|
-
} =
|
|
4150
|
-
const K = I === o.value.length - 1 ?
|
|
4151
|
-
key:
|
|
4152
|
-
userPassKey:
|
|
4153
|
-
} =
|
|
4149
|
+
} = p;
|
|
4150
|
+
const K = I === o.value.length - 1 ? V.updateMark : void 0, {
|
|
4151
|
+
key: g,
|
|
4152
|
+
userPassKey: h
|
|
4153
|
+
} = V, {
|
|
4154
4154
|
content: b
|
|
4155
|
-
} =
|
|
4155
|
+
} = V, r = $($($({
|
|
4156
4156
|
prefixCls: _,
|
|
4157
|
-
closeIcon: typeof
|
|
4157
|
+
closeIcon: typeof y == "function" ? y({
|
|
4158
4158
|
prefixCls: _
|
|
4159
|
-
}) :
|
|
4160
|
-
},
|
|
4161
|
-
key:
|
|
4162
|
-
noticeKey:
|
|
4159
|
+
}) : y
|
|
4160
|
+
}, V), V.props), {
|
|
4161
|
+
key: g,
|
|
4162
|
+
noticeKey: h || g,
|
|
4163
4163
|
updateMark: K,
|
|
4164
4164
|
onClose: (M) => {
|
|
4165
4165
|
var E;
|
|
4166
|
-
|
|
4166
|
+
c(M), (E = V.onClose) === null || E === void 0 || E.call(V);
|
|
4167
4167
|
},
|
|
4168
|
-
onClick:
|
|
4168
|
+
onClick: V.onClick
|
|
4169
4169
|
});
|
|
4170
|
-
return D ?
|
|
4171
|
-
key:
|
|
4170
|
+
return D ? w("div", {
|
|
4171
|
+
key: g,
|
|
4172
4172
|
class: `${_}-hook-holder`,
|
|
4173
4173
|
ref: (M) => {
|
|
4174
|
-
typeof
|
|
4174
|
+
typeof g > "u" || (M ? (n.set(g, M), D(M, r)) : n.delete(g));
|
|
4175
4175
|
}
|
|
4176
|
-
}, null) :
|
|
4177
|
-
class: R(
|
|
4176
|
+
}, null) : w(be, z(z({}, r), {}, {
|
|
4177
|
+
class: R(r.class, e.hashId)
|
|
4178
4178
|
}), {
|
|
4179
4179
|
default: () => [typeof b == "function" ? b({
|
|
4180
4180
|
prefixCls: _
|
|
@@ -4182,34 +4182,34 @@ const Ga = G({
|
|
|
4182
4182
|
});
|
|
4183
4183
|
}), u = {
|
|
4184
4184
|
[_]: 1,
|
|
4185
|
-
[`${_}-${
|
|
4185
|
+
[`${_}-${C}`]: 1,
|
|
4186
4186
|
[l.class]: !!l.class,
|
|
4187
4187
|
[e.hashId]: !0,
|
|
4188
4188
|
[k]: !!k
|
|
4189
4189
|
};
|
|
4190
|
-
function
|
|
4191
|
-
var
|
|
4192
|
-
P.length > 0 || (Reflect.deleteProperty(
|
|
4190
|
+
function v() {
|
|
4191
|
+
var p;
|
|
4192
|
+
P.length > 0 || (Reflect.deleteProperty(s.value, C), (p = e.onAllRemoved) === null || p === void 0 || p.call(e));
|
|
4193
4193
|
}
|
|
4194
|
-
return
|
|
4195
|
-
key:
|
|
4194
|
+
return w("div", {
|
|
4195
|
+
key: C,
|
|
4196
4196
|
class: u,
|
|
4197
4197
|
style: l.style || j || {
|
|
4198
4198
|
top: "65px",
|
|
4199
4199
|
left: "50%"
|
|
4200
4200
|
}
|
|
4201
|
-
}, [
|
|
4201
|
+
}, [w(xt, z(z({
|
|
4202
4202
|
tag: "div"
|
|
4203
4203
|
}, i.value), {}, {
|
|
4204
|
-
onAfterLeave:
|
|
4204
|
+
onAfterLeave: v
|
|
4205
4205
|
}), {
|
|
4206
4206
|
default: () => [S]
|
|
4207
4207
|
})]);
|
|
4208
4208
|
});
|
|
4209
|
-
return
|
|
4209
|
+
return w(wl, {
|
|
4210
4210
|
getContainer: e.getContainer
|
|
4211
4211
|
}, {
|
|
4212
|
-
default: () => [
|
|
4212
|
+
default: () => [f]
|
|
4213
4213
|
});
|
|
4214
4214
|
};
|
|
4215
4215
|
}
|
|
@@ -4245,20 +4245,20 @@ function zt() {
|
|
|
4245
4245
|
maxCount: n,
|
|
4246
4246
|
getClassName: o,
|
|
4247
4247
|
getStyles: i,
|
|
4248
|
-
onAllRemoved:
|
|
4249
|
-
} = e,
|
|
4248
|
+
onAllRemoved: c
|
|
4249
|
+
} = e, s = Ua(e, ["getContainer", "motion", "prefixCls", "maxCount", "getClassName", "getStyles", "onAllRemoved"]), d = le([]), m = le(), _ = (P, k) => {
|
|
4250
4250
|
const j = P.key || ct(), S = $($({}, P), {
|
|
4251
4251
|
key: j
|
|
4252
|
-
}), u =
|
|
4253
|
-
u !== -1 ?
|
|
4252
|
+
}), u = d.value.map((p) => p.notice.key).indexOf(j), v = d.value.concat();
|
|
4253
|
+
u !== -1 ? v.splice(u, 1, {
|
|
4254
4254
|
notice: S,
|
|
4255
4255
|
holderCallback: k
|
|
4256
|
-
}) : (n &&
|
|
4256
|
+
}) : (n && d.value.length >= n && (S.key = v[0].notice.key, S.updateMark = ct(), S.userPassKey = j, v.shift()), v.push({
|
|
4257
4257
|
notice: S,
|
|
4258
4258
|
holderCallback: k
|
|
4259
|
-
})),
|
|
4260
|
-
},
|
|
4261
|
-
|
|
4259
|
+
})), d.value = v;
|
|
4260
|
+
}, y = (P) => {
|
|
4261
|
+
d.value = d.value.filter((k) => {
|
|
4262
4262
|
let {
|
|
4263
4263
|
notice: {
|
|
4264
4264
|
key: j,
|
|
@@ -4267,55 +4267,55 @@ function zt() {
|
|
|
4267
4267
|
} = k;
|
|
4268
4268
|
return (S || j) !== P;
|
|
4269
4269
|
});
|
|
4270
|
-
},
|
|
4271
|
-
|
|
4272
|
-
},
|
|
4273
|
-
ref:
|
|
4270
|
+
}, f = () => {
|
|
4271
|
+
d.value = [];
|
|
4272
|
+
}, C = () => w(Ba, {
|
|
4273
|
+
ref: m,
|
|
4274
4274
|
prefixCls: a,
|
|
4275
4275
|
maxCount: n,
|
|
4276
|
-
notices:
|
|
4277
|
-
remove:
|
|
4276
|
+
notices: d.value,
|
|
4277
|
+
remove: y,
|
|
4278
4278
|
getClassName: o,
|
|
4279
4279
|
getStyles: i,
|
|
4280
4280
|
animation: l,
|
|
4281
4281
|
hashId: e.hashId,
|
|
4282
|
-
onAllRemoved:
|
|
4282
|
+
onAllRemoved: c,
|
|
4283
4283
|
getContainer: t
|
|
4284
|
-
}, null),
|
|
4284
|
+
}, null), x = le([]), T = {
|
|
4285
4285
|
open: (P) => {
|
|
4286
|
-
const k = Ja(
|
|
4287
|
-
(k.key === null || k.key === void 0) && (k.key = `vc-notification-${dt}`, dt += 1),
|
|
4286
|
+
const k = Ja(s, P);
|
|
4287
|
+
(k.key === null || k.key === void 0) && (k.key = `vc-notification-${dt}`, dt += 1), x.value = [...x.value, {
|
|
4288
4288
|
type: "open",
|
|
4289
4289
|
config: k
|
|
4290
4290
|
}];
|
|
4291
4291
|
},
|
|
4292
4292
|
close: (P) => {
|
|
4293
|
-
|
|
4293
|
+
x.value = [...x.value, {
|
|
4294
4294
|
type: "close",
|
|
4295
4295
|
key: P
|
|
4296
4296
|
}];
|
|
4297
4297
|
},
|
|
4298
4298
|
destroy: () => {
|
|
4299
|
-
|
|
4299
|
+
x.value = [...x.value, {
|
|
4300
4300
|
type: "destroy"
|
|
4301
4301
|
}];
|
|
4302
4302
|
}
|
|
4303
4303
|
};
|
|
4304
|
-
return de(
|
|
4305
|
-
|
|
4304
|
+
return de(x, () => {
|
|
4305
|
+
x.value.length && (x.value.forEach((P) => {
|
|
4306
4306
|
switch (P.type) {
|
|
4307
4307
|
case "open":
|
|
4308
4308
|
_(P.config);
|
|
4309
4309
|
break;
|
|
4310
4310
|
case "close":
|
|
4311
|
-
|
|
4311
|
+
y(P.key);
|
|
4312
4312
|
break;
|
|
4313
4313
|
case "destroy":
|
|
4314
|
-
|
|
4314
|
+
f();
|
|
4315
4315
|
break;
|
|
4316
4316
|
}
|
|
4317
|
-
}),
|
|
4318
|
-
}), [T,
|
|
4317
|
+
}), x.value = []);
|
|
4318
|
+
}), [T, C];
|
|
4319
4319
|
}
|
|
4320
4320
|
const Xa = (e) => {
|
|
4321
4321
|
const {
|
|
@@ -4325,15 +4325,15 @@ const Xa = (e) => {
|
|
|
4325
4325
|
colorBgElevated: n,
|
|
4326
4326
|
colorSuccess: o,
|
|
4327
4327
|
colorError: i,
|
|
4328
|
-
colorWarning:
|
|
4329
|
-
colorInfo:
|
|
4330
|
-
fontSizeLG:
|
|
4331
|
-
motionEaseInOutCirc:
|
|
4328
|
+
colorWarning: c,
|
|
4329
|
+
colorInfo: s,
|
|
4330
|
+
fontSizeLG: d,
|
|
4331
|
+
motionEaseInOutCirc: m,
|
|
4332
4332
|
motionDurationSlow: _,
|
|
4333
|
-
marginXS:
|
|
4334
|
-
paddingXS:
|
|
4335
|
-
borderRadiusLG:
|
|
4336
|
-
zIndexPopup:
|
|
4333
|
+
marginXS: y,
|
|
4334
|
+
paddingXS: f,
|
|
4335
|
+
borderRadiusLG: C,
|
|
4336
|
+
zIndexPopup: x,
|
|
4337
4337
|
// Custom token
|
|
4338
4338
|
messageNoticeContentPadding: T
|
|
4339
4339
|
} = e, P = new Z("MessageMoveIn", {
|
|
@@ -4343,14 +4343,14 @@ const Xa = (e) => {
|
|
|
4343
4343
|
opacity: 0
|
|
4344
4344
|
},
|
|
4345
4345
|
"100%": {
|
|
4346
|
-
padding:
|
|
4346
|
+
padding: f,
|
|
4347
4347
|
transform: "translateY(0)",
|
|
4348
4348
|
opacity: 1
|
|
4349
4349
|
}
|
|
4350
4350
|
}), k = new Z("MessageMoveOut", {
|
|
4351
4351
|
"0%": {
|
|
4352
4352
|
maxHeight: e.height,
|
|
4353
|
-
padding:
|
|
4353
|
+
padding: f,
|
|
4354
4354
|
opacity: 1
|
|
4355
4355
|
},
|
|
4356
4356
|
"100%": {
|
|
@@ -4364,12 +4364,12 @@ const Xa = (e) => {
|
|
|
4364
4364
|
{
|
|
4365
4365
|
[t]: $($({}, Tt(e)), {
|
|
4366
4366
|
position: "fixed",
|
|
4367
|
-
top:
|
|
4367
|
+
top: y,
|
|
4368
4368
|
left: "50%",
|
|
4369
4369
|
transform: "translateX(-50%)",
|
|
4370
4370
|
width: "100%",
|
|
4371
4371
|
pointerEvents: "none",
|
|
4372
|
-
zIndex:
|
|
4372
|
+
zIndex: x,
|
|
4373
4373
|
[`${t}-move-up`]: {
|
|
4374
4374
|
animationFillMode: "forwards"
|
|
4375
4375
|
},
|
|
@@ -4380,7 +4380,7 @@ const Xa = (e) => {
|
|
|
4380
4380
|
animationName: P,
|
|
4381
4381
|
animationDuration: _,
|
|
4382
4382
|
animationPlayState: "paused",
|
|
4383
|
-
animationTimingFunction:
|
|
4383
|
+
animationTimingFunction: m
|
|
4384
4384
|
},
|
|
4385
4385
|
[`
|
|
4386
4386
|
${t}-move-up-appear${t}-move-up-appear-active,
|
|
@@ -4392,7 +4392,7 @@ const Xa = (e) => {
|
|
|
4392
4392
|
animationName: k,
|
|
4393
4393
|
animationDuration: _,
|
|
4394
4394
|
animationPlayState: "paused",
|
|
4395
|
-
animationTimingFunction:
|
|
4395
|
+
animationTimingFunction: m
|
|
4396
4396
|
},
|
|
4397
4397
|
[`${t}-move-up-leave${t}-move-up-leave-active`]: {
|
|
4398
4398
|
animationPlayState: "running"
|
|
@@ -4408,18 +4408,18 @@ const Xa = (e) => {
|
|
|
4408
4408
|
// ============================ Notice ============================
|
|
4409
4409
|
{
|
|
4410
4410
|
[`${t}-notice`]: {
|
|
4411
|
-
padding:
|
|
4411
|
+
padding: f,
|
|
4412
4412
|
textAlign: "center",
|
|
4413
4413
|
[l]: {
|
|
4414
4414
|
verticalAlign: "text-bottom",
|
|
4415
|
-
marginInlineEnd:
|
|
4416
|
-
fontSize:
|
|
4415
|
+
marginInlineEnd: y,
|
|
4416
|
+
fontSize: d
|
|
4417
4417
|
},
|
|
4418
4418
|
[`${t}-notice-content`]: {
|
|
4419
4419
|
display: "inline-block",
|
|
4420
4420
|
padding: T,
|
|
4421
4421
|
background: n,
|
|
4422
|
-
borderRadius:
|
|
4422
|
+
borderRadius: C,
|
|
4423
4423
|
boxShadow: a,
|
|
4424
4424
|
pointerEvents: "all"
|
|
4425
4425
|
},
|
|
@@ -4430,12 +4430,12 @@ const Xa = (e) => {
|
|
|
4430
4430
|
color: i
|
|
4431
4431
|
},
|
|
4432
4432
|
[`${t}-warning ${l}`]: {
|
|
4433
|
-
color:
|
|
4433
|
+
color: c
|
|
4434
4434
|
},
|
|
4435
4435
|
[`
|
|
4436
4436
|
${t}-info ${l},
|
|
4437
4437
|
${t}-loading ${l}`]: {
|
|
4438
|
-
color:
|
|
4438
|
+
color: s
|
|
4439
4439
|
}
|
|
4440
4440
|
}
|
|
4441
4441
|
},
|
|
@@ -4456,11 +4456,11 @@ const Xa = (e) => {
|
|
|
4456
4456
|
height: 150,
|
|
4457
4457
|
zIndexPopup: e.zIndexPopupBase + 10
|
|
4458
4458
|
})), Qa = {
|
|
4459
|
-
info:
|
|
4460
|
-
success:
|
|
4461
|
-
error:
|
|
4462
|
-
warning:
|
|
4463
|
-
loading:
|
|
4459
|
+
info: w(ye, null, null),
|
|
4460
|
+
success: w(_e, null, null),
|
|
4461
|
+
error: w(ge, null, null),
|
|
4462
|
+
warning: w(he, null, null),
|
|
4463
|
+
loading: w(ze, null, null)
|
|
4464
4464
|
}, Et = G({
|
|
4465
4465
|
name: "PureContent",
|
|
4466
4466
|
inheritAttrs: !1,
|
|
@@ -4471,9 +4471,9 @@ const Xa = (e) => {
|
|
|
4471
4471
|
} = t;
|
|
4472
4472
|
return () => {
|
|
4473
4473
|
var a;
|
|
4474
|
-
return
|
|
4474
|
+
return w("div", {
|
|
4475
4475
|
class: R(`${e.prefixCls}-custom-content`, `${e.prefixCls}-${e.type}`)
|
|
4476
|
-
}, [e.icon || Qa[e.type],
|
|
4476
|
+
}, [e.icon || Qa[e.type], w("span", null, [(a = l.default) === null || a === void 0 ? void 0 : a.call(l)])]);
|
|
4477
4477
|
};
|
|
4478
4478
|
}
|
|
4479
4479
|
});
|
|
@@ -4489,14 +4489,14 @@ G({
|
|
|
4489
4489
|
var n;
|
|
4490
4490
|
const {
|
|
4491
4491
|
getPrefixCls: o
|
|
4492
|
-
} = Ot(), i =
|
|
4493
|
-
return
|
|
4492
|
+
} = Ot(), i = A(() => e.prefixCls || o("message")), [, c] = Be(i);
|
|
4493
|
+
return w(be, z(z({}, a), {}, {
|
|
4494
4494
|
prefixCls: i.value,
|
|
4495
|
-
class: R(
|
|
4495
|
+
class: R(c.value, `${i.value}-notice-pure-panel`),
|
|
4496
4496
|
noticeKey: "pure",
|
|
4497
4497
|
duration: null
|
|
4498
4498
|
}), {
|
|
4499
|
-
default: () => [
|
|
4499
|
+
default: () => [w(Et, {
|
|
4500
4500
|
prefixCls: i.value,
|
|
4501
4501
|
type: e.type,
|
|
4502
4502
|
icon: e.icon
|
|
@@ -4527,50 +4527,50 @@ const Za = 8, en = 3, tn = G({
|
|
|
4527
4527
|
const {
|
|
4528
4528
|
getPrefixCls: o,
|
|
4529
4529
|
getPopupContainer: i
|
|
4530
|
-
} = Ee("message", e),
|
|
4531
|
-
var
|
|
4532
|
-
const T = (
|
|
4530
|
+
} = Ee("message", e), c = A(() => o("message", e.prefixCls)), [, s] = Be(c), d = () => {
|
|
4531
|
+
var x;
|
|
4532
|
+
const T = (x = e.top) !== null && x !== void 0 ? x : Za;
|
|
4533
4533
|
return {
|
|
4534
4534
|
left: "50%",
|
|
4535
4535
|
transform: "translateX(-50%)",
|
|
4536
4536
|
top: typeof T == "number" ? `${T}px` : T
|
|
4537
4537
|
};
|
|
4538
|
-
},
|
|
4539
|
-
var
|
|
4538
|
+
}, m = () => R(s.value, e.rtl ? `${c.value}-rtl` : ""), _ = () => {
|
|
4539
|
+
var x;
|
|
4540
4540
|
return $l({
|
|
4541
|
-
prefixCls:
|
|
4542
|
-
animation: (
|
|
4541
|
+
prefixCls: c.value,
|
|
4542
|
+
animation: (x = e.animation) !== null && x !== void 0 ? x : "move-up",
|
|
4543
4543
|
transitionName: e.transitionName
|
|
4544
4544
|
});
|
|
4545
|
-
},
|
|
4546
|
-
class: `${
|
|
4547
|
-
}, [
|
|
4548
|
-
class: `${
|
|
4549
|
-
}, null)]), [
|
|
4545
|
+
}, y = w("span", {
|
|
4546
|
+
class: `${c.value}-close-x`
|
|
4547
|
+
}, [w(Ne, {
|
|
4548
|
+
class: `${c.value}-close-icon`
|
|
4549
|
+
}, null)]), [f, C] = zt({
|
|
4550
4550
|
//@ts-ignore
|
|
4551
|
-
getStyles:
|
|
4552
|
-
prefixCls:
|
|
4553
|
-
getClassName:
|
|
4551
|
+
getStyles: d,
|
|
4552
|
+
prefixCls: c.value,
|
|
4553
|
+
getClassName: m,
|
|
4554
4554
|
motion: _,
|
|
4555
4555
|
closable: !1,
|
|
4556
|
-
closeIcon:
|
|
4556
|
+
closeIcon: y,
|
|
4557
4557
|
duration: (a = e.duration) !== null && a !== void 0 ? a : en,
|
|
4558
4558
|
getContainer: (n = e.staticGetContainer) !== null && n !== void 0 ? n : i.value,
|
|
4559
4559
|
maxCount: e.maxCount,
|
|
4560
4560
|
onAllRemoved: e.onAllRemoved
|
|
4561
4561
|
});
|
|
4562
|
-
return l($($({},
|
|
4563
|
-
prefixCls:
|
|
4564
|
-
hashId:
|
|
4565
|
-
})),
|
|
4562
|
+
return l($($({}, f), {
|
|
4563
|
+
prefixCls: c,
|
|
4564
|
+
hashId: s
|
|
4565
|
+
})), C;
|
|
4566
4566
|
}
|
|
4567
4567
|
});
|
|
4568
4568
|
let pt = 0;
|
|
4569
4569
|
function ln(e) {
|
|
4570
|
-
const t = le(null), l = Symbol("messageHolderKey"), a = (
|
|
4571
|
-
var
|
|
4572
|
-
(
|
|
4573
|
-
}, n = (
|
|
4570
|
+
const t = le(null), l = Symbol("messageHolderKey"), a = (s) => {
|
|
4571
|
+
var d;
|
|
4572
|
+
(d = t.value) === null || d === void 0 || d.close(s);
|
|
4573
|
+
}, n = (s) => {
|
|
4574
4574
|
if (!t.value) {
|
|
4575
4575
|
const u = () => {
|
|
4576
4576
|
};
|
|
@@ -4578,30 +4578,30 @@ function ln(e) {
|
|
|
4578
4578
|
}, u;
|
|
4579
4579
|
}
|
|
4580
4580
|
const {
|
|
4581
|
-
open:
|
|
4582
|
-
prefixCls:
|
|
4581
|
+
open: d,
|
|
4582
|
+
prefixCls: m,
|
|
4583
4583
|
hashId: _
|
|
4584
|
-
} = t.value,
|
|
4585
|
-
content:
|
|
4586
|
-
icon:
|
|
4587
|
-
type:
|
|
4584
|
+
} = t.value, y = `${m}-notice`, {
|
|
4585
|
+
content: f,
|
|
4586
|
+
icon: C,
|
|
4587
|
+
type: x,
|
|
4588
4588
|
key: T,
|
|
4589
4589
|
class: P,
|
|
4590
4590
|
onClose: k
|
|
4591
|
-
} =
|
|
4591
|
+
} = s, j = Ya(s, ["content", "icon", "type", "key", "class", "onClose"]);
|
|
4592
4592
|
let S = T;
|
|
4593
|
-
return S == null && (pt += 1, S = `antd-message-${pt}`), Pl((u) => (
|
|
4593
|
+
return S == null && (pt += 1, S = `antd-message-${pt}`), Pl((u) => (d($($({}, j), {
|
|
4594
4594
|
key: S,
|
|
4595
|
-
content: () =>
|
|
4596
|
-
prefixCls:
|
|
4597
|
-
type:
|
|
4598
|
-
icon: typeof
|
|
4595
|
+
content: () => w(Et, {
|
|
4596
|
+
prefixCls: m,
|
|
4597
|
+
type: x,
|
|
4598
|
+
icon: typeof C == "function" ? C() : C
|
|
4599
4599
|
}, {
|
|
4600
|
-
default: () => [typeof
|
|
4600
|
+
default: () => [typeof f == "function" ? f() : f]
|
|
4601
4601
|
}),
|
|
4602
4602
|
placement: "top",
|
|
4603
4603
|
// @ts-ignore
|
|
4604
|
-
class: R(
|
|
4604
|
+
class: R(x && `${y}-${x}`, _, P),
|
|
4605
4605
|
onClose: () => {
|
|
4606
4606
|
k == null || k(), u();
|
|
4607
4607
|
}
|
|
@@ -4610,29 +4610,29 @@ function ln(e) {
|
|
|
4610
4610
|
}));
|
|
4611
4611
|
}, i = {
|
|
4612
4612
|
open: n,
|
|
4613
|
-
destroy: (
|
|
4614
|
-
var
|
|
4615
|
-
|
|
4613
|
+
destroy: (s) => {
|
|
4614
|
+
var d;
|
|
4615
|
+
s !== void 0 ? a(s) : (d = t.value) === null || d === void 0 || d.destroy();
|
|
4616
4616
|
}
|
|
4617
4617
|
};
|
|
4618
|
-
return ["info", "success", "warning", "error", "loading"].forEach((
|
|
4619
|
-
const
|
|
4620
|
-
let
|
|
4621
|
-
|
|
4622
|
-
content:
|
|
4618
|
+
return ["info", "success", "warning", "error", "loading"].forEach((s) => {
|
|
4619
|
+
const d = (m, _, y) => {
|
|
4620
|
+
let f;
|
|
4621
|
+
m && typeof m == "object" && "content" in m ? f = m : f = {
|
|
4622
|
+
content: m
|
|
4623
4623
|
};
|
|
4624
|
-
let
|
|
4625
|
-
typeof _ == "function" ?
|
|
4624
|
+
let C, x;
|
|
4625
|
+
typeof _ == "function" ? x = _ : (C = _, x = y);
|
|
4626
4626
|
const T = $($({
|
|
4627
|
-
onClose:
|
|
4628
|
-
duration:
|
|
4629
|
-
},
|
|
4630
|
-
type:
|
|
4627
|
+
onClose: x,
|
|
4628
|
+
duration: C
|
|
4629
|
+
}, f), {
|
|
4630
|
+
type: s
|
|
4631
4631
|
});
|
|
4632
4632
|
return n(T);
|
|
4633
4633
|
};
|
|
4634
|
-
i[
|
|
4635
|
-
}), [i, () =>
|
|
4634
|
+
i[s] = d;
|
|
4635
|
+
}), [i, () => w(tn, z(z({
|
|
4636
4636
|
key: l
|
|
4637
4637
|
}, e), {}, {
|
|
4638
4638
|
ref: t
|
|
@@ -4684,23 +4684,23 @@ const Ut = {
|
|
|
4684
4684
|
function cn(e) {
|
|
4685
4685
|
const t = e.duration !== void 0 ? e.duration : qt, l = e.key || on(), a = new Promise((o) => {
|
|
4686
4686
|
const i = () => (typeof e.onClose == "function" && e.onClose(), o(!0));
|
|
4687
|
-
sn(e, (
|
|
4688
|
-
|
|
4687
|
+
sn(e, (c) => {
|
|
4688
|
+
c.notice({
|
|
4689
4689
|
key: l,
|
|
4690
4690
|
duration: t,
|
|
4691
4691
|
style: e.style || {},
|
|
4692
4692
|
class: e.class,
|
|
4693
|
-
content: (
|
|
4693
|
+
content: (s) => {
|
|
4694
4694
|
let {
|
|
4695
|
-
prefixCls:
|
|
4696
|
-
} =
|
|
4697
|
-
const
|
|
4698
|
-
[`${
|
|
4699
|
-
[`${
|
|
4695
|
+
prefixCls: d
|
|
4696
|
+
} = s;
|
|
4697
|
+
const m = Ut[e.type], _ = m ? w(m, null, null) : "", y = R(`${d}-custom-content`, {
|
|
4698
|
+
[`${d}-${e.type}`]: e.type,
|
|
4699
|
+
[`${d}-rtl`]: Bt === !0
|
|
4700
4700
|
});
|
|
4701
|
-
return
|
|
4702
|
-
class:
|
|
4703
|
-
}, [typeof e.icon == "function" ? e.icon() : e.icon || _,
|
|
4701
|
+
return w("div", {
|
|
4702
|
+
class: y
|
|
4703
|
+
}, [typeof e.icon == "function" ? e.icon() : e.icon || _, w("span", null, [typeof e.content == "function" ? e.content() : e.content])]);
|
|
4704
4704
|
},
|
|
4705
4705
|
onClose: i,
|
|
4706
4706
|
onClick: e.onClick
|
|
@@ -4815,21 +4815,21 @@ const re = ce, fn = (e) => {
|
|
|
4815
4815
|
fontSizeLG: n,
|
|
4816
4816
|
notificationMarginBottom: o,
|
|
4817
4817
|
borderRadiusLG: i,
|
|
4818
|
-
colorSuccess:
|
|
4819
|
-
colorInfo:
|
|
4820
|
-
colorWarning:
|
|
4821
|
-
colorError:
|
|
4818
|
+
colorSuccess: c,
|
|
4819
|
+
colorInfo: s,
|
|
4820
|
+
colorWarning: d,
|
|
4821
|
+
colorError: m,
|
|
4822
4822
|
colorTextHeading: _,
|
|
4823
|
-
notificationBg:
|
|
4824
|
-
notificationPadding:
|
|
4825
|
-
notificationMarginEdge:
|
|
4826
|
-
motionDurationMid:
|
|
4823
|
+
notificationBg: y,
|
|
4824
|
+
notificationPadding: f,
|
|
4825
|
+
notificationMarginEdge: C,
|
|
4826
|
+
motionDurationMid: x,
|
|
4827
4827
|
motionEaseInOut: T,
|
|
4828
4828
|
fontSize: P,
|
|
4829
4829
|
lineHeight: k,
|
|
4830
4830
|
width: j,
|
|
4831
4831
|
notificationIconSize: S
|
|
4832
|
-
} = e, u = `${l}-notice`,
|
|
4832
|
+
} = e, u = `${l}-notice`, v = new Z("antNotificationFadeIn", {
|
|
4833
4833
|
"0%": {
|
|
4834
4834
|
left: {
|
|
4835
4835
|
_skip_check_: !0,
|
|
@@ -4844,7 +4844,7 @@ const re = ce, fn = (e) => {
|
|
|
4844
4844
|
},
|
|
4845
4845
|
opacity: 1
|
|
4846
4846
|
}
|
|
4847
|
-
}),
|
|
4847
|
+
}), p = new Z("antNotificationFadeOut", {
|
|
4848
4848
|
"0%": {
|
|
4849
4849
|
maxHeight: e.animationMaxHeight,
|
|
4850
4850
|
marginBottom: o,
|
|
@@ -4864,7 +4864,7 @@ const re = ce, fn = (e) => {
|
|
|
4864
4864
|
[l]: $($($($({}, Tt(e)), {
|
|
4865
4865
|
position: "fixed",
|
|
4866
4866
|
zIndex: e.zIndexPopup,
|
|
4867
|
-
marginInlineEnd:
|
|
4867
|
+
marginInlineEnd: C,
|
|
4868
4868
|
[`${l}-hook-holder`]: {
|
|
4869
4869
|
position: "relative"
|
|
4870
4870
|
},
|
|
@@ -4890,15 +4890,15 @@ const re = ce, fn = (e) => {
|
|
|
4890
4890
|
[`${l}-fade-leave`]: {
|
|
4891
4891
|
animationTimingFunction: T,
|
|
4892
4892
|
animationFillMode: "both",
|
|
4893
|
-
animationDuration:
|
|
4893
|
+
animationDuration: x,
|
|
4894
4894
|
animationPlayState: "paused"
|
|
4895
4895
|
},
|
|
4896
4896
|
[`${l}-fade-enter${l}-fade-enter-active, ${l}-fade-appear${l}-fade-appear-active`]: {
|
|
4897
|
-
animationName:
|
|
4897
|
+
animationName: v,
|
|
4898
4898
|
animationPlayState: "running"
|
|
4899
4899
|
},
|
|
4900
4900
|
[`${l}-fade-leave${l}-fade-leave-active`]: {
|
|
4901
|
-
animationName:
|
|
4901
|
+
animationName: p,
|
|
4902
4902
|
animationPlayState: "running"
|
|
4903
4903
|
}
|
|
4904
4904
|
}), mn(e)), {
|
|
@@ -4916,14 +4916,14 @@ const re = ce, fn = (e) => {
|
|
|
4916
4916
|
[u]: {
|
|
4917
4917
|
position: "relative",
|
|
4918
4918
|
width: j,
|
|
4919
|
-
maxWidth: `calc(100vw - ${
|
|
4919
|
+
maxWidth: `calc(100vw - ${C * 2}px)`,
|
|
4920
4920
|
marginBottom: o,
|
|
4921
4921
|
marginInlineStart: "auto",
|
|
4922
|
-
padding:
|
|
4922
|
+
padding: f,
|
|
4923
4923
|
overflow: "hidden",
|
|
4924
4924
|
lineHeight: k,
|
|
4925
4925
|
wordWrap: "break-word",
|
|
4926
|
-
background:
|
|
4926
|
+
background: y,
|
|
4927
4927
|
borderRadius: i,
|
|
4928
4928
|
boxShadow: a,
|
|
4929
4929
|
[`${l}-close-icon`]: {
|
|
@@ -4960,16 +4960,16 @@ const re = ce, fn = (e) => {
|
|
|
4960
4960
|
lineHeight: 0,
|
|
4961
4961
|
// icon-font
|
|
4962
4962
|
[`&-success${t}`]: {
|
|
4963
|
-
color:
|
|
4963
|
+
color: c
|
|
4964
4964
|
},
|
|
4965
4965
|
[`&-info${t}`]: {
|
|
4966
|
-
color:
|
|
4966
|
+
color: s
|
|
4967
4967
|
},
|
|
4968
4968
|
[`&-warning${t}`]: {
|
|
4969
|
-
color:
|
|
4969
|
+
color: d
|
|
4970
4970
|
},
|
|
4971
4971
|
[`&-error${t}`]: {
|
|
4972
|
-
color:
|
|
4972
|
+
color: m
|
|
4973
4973
|
}
|
|
4974
4974
|
},
|
|
4975
4975
|
[`${u}-close`]: {
|
|
@@ -5023,13 +5023,13 @@ const re = ce, fn = (e) => {
|
|
|
5023
5023
|
width: 384
|
|
5024
5024
|
}));
|
|
5025
5025
|
function Wt(e, t) {
|
|
5026
|
-
return t ||
|
|
5026
|
+
return t || w("span", {
|
|
5027
5027
|
class: `${e}-close-x`
|
|
5028
|
-
}, [
|
|
5028
|
+
}, [w(Ne, {
|
|
5029
5029
|
class: `${e}-close-icon`
|
|
5030
5030
|
}, null)]);
|
|
5031
5031
|
}
|
|
5032
|
-
|
|
5032
|
+
w(ye, null, null), w(_e, null, null), w(ge, null, null), w(he, null, null), w(ze, null, null);
|
|
5033
5033
|
const gn = {
|
|
5034
5034
|
success: _e,
|
|
5035
5035
|
info: ye,
|
|
@@ -5044,27 +5044,27 @@ function Jt(e) {
|
|
|
5044
5044
|
message: n,
|
|
5045
5045
|
description: o,
|
|
5046
5046
|
btn: i
|
|
5047
|
-
} = e,
|
|
5047
|
+
} = e, c = null;
|
|
5048
5048
|
if (l)
|
|
5049
|
-
|
|
5049
|
+
c = w("span", {
|
|
5050
5050
|
class: `${t}-icon`
|
|
5051
5051
|
}, [ee(l)]);
|
|
5052
5052
|
else if (a) {
|
|
5053
|
-
const
|
|
5054
|
-
|
|
5053
|
+
const s = gn[a];
|
|
5054
|
+
c = w(s, {
|
|
5055
5055
|
class: `${t}-icon ${t}-icon-${a}`
|
|
5056
5056
|
}, null);
|
|
5057
5057
|
}
|
|
5058
|
-
return
|
|
5058
|
+
return w("div", {
|
|
5059
5059
|
class: R({
|
|
5060
|
-
[`${t}-with-icon`]:
|
|
5060
|
+
[`${t}-with-icon`]: c
|
|
5061
5061
|
}),
|
|
5062
5062
|
role: "alert"
|
|
5063
|
-
}, [
|
|
5063
|
+
}, [c, w("div", {
|
|
5064
5064
|
class: `${t}-message`
|
|
5065
|
-
}, [n]),
|
|
5065
|
+
}, [n]), w("div", {
|
|
5066
5066
|
class: `${t}-description`
|
|
5067
|
-
}, [o]), i &&
|
|
5067
|
+
}, [o]), i && w("div", {
|
|
5068
5068
|
class: `${t}-btn`
|
|
5069
5069
|
}, [i])]);
|
|
5070
5070
|
}
|
|
@@ -5075,8 +5075,8 @@ G({
|
|
|
5075
5075
|
setup(e) {
|
|
5076
5076
|
const {
|
|
5077
5077
|
getPrefixCls: t
|
|
5078
|
-
} = Ee("notification", e), l =
|
|
5079
|
-
return () =>
|
|
5078
|
+
} = Ee("notification", e), l = A(() => e.prefixCls || t("notification")), a = A(() => `${l.value}-notice`), [, n] = Ue(l);
|
|
5079
|
+
return () => w(be, z(z({}, e), {}, {
|
|
5080
5080
|
prefixCls: l.value,
|
|
5081
5081
|
class: R(n.value, `${a.value}-pure-panel`),
|
|
5082
5082
|
noticeKey: "pure",
|
|
@@ -5084,7 +5084,7 @@ G({
|
|
|
5084
5084
|
closable: e.closable,
|
|
5085
5085
|
closeIcon: Wt(l.value, e.closeIcon)
|
|
5086
5086
|
}), {
|
|
5087
|
-
default: () => [
|
|
5087
|
+
default: () => [w(Jt, {
|
|
5088
5088
|
prefixCls: a.value,
|
|
5089
5089
|
icon: e.icon,
|
|
5090
5090
|
type: e.type,
|
|
@@ -5172,75 +5172,75 @@ const ft = 24, bn = 4.5, vn = G({
|
|
|
5172
5172
|
const {
|
|
5173
5173
|
getPrefixCls: a,
|
|
5174
5174
|
getPopupContainer: n
|
|
5175
|
-
} = Ee("notification", e), o =
|
|
5176
|
-
var
|
|
5177
|
-
return Xt(
|
|
5178
|
-
}, [,
|
|
5175
|
+
} = Ee("notification", e), o = A(() => e.prefixCls || a("notification")), i = (y) => {
|
|
5176
|
+
var f, C;
|
|
5177
|
+
return Xt(y, (f = e.top) !== null && f !== void 0 ? f : ft, (C = e.bottom) !== null && C !== void 0 ? C : ft);
|
|
5178
|
+
}, [, c] = Ue(o), s = () => R(c.value, {
|
|
5179
5179
|
[`${o.value}-rtl`]: e.rtl
|
|
5180
|
-
}),
|
|
5180
|
+
}), d = () => hn(o.value), [m, _] = zt({
|
|
5181
5181
|
prefixCls: o.value,
|
|
5182
5182
|
getStyles: i,
|
|
5183
|
-
getClassName:
|
|
5184
|
-
motion:
|
|
5183
|
+
getClassName: s,
|
|
5184
|
+
motion: d,
|
|
5185
5185
|
closable: !0,
|
|
5186
5186
|
closeIcon: Wt(o.value),
|
|
5187
5187
|
duration: bn,
|
|
5188
5188
|
getContainer: () => {
|
|
5189
|
-
var
|
|
5190
|
-
return ((
|
|
5189
|
+
var y, f;
|
|
5190
|
+
return ((y = e.getPopupContainer) === null || y === void 0 ? void 0 : y.call(e)) || ((f = n.value) === null || f === void 0 ? void 0 : f.call(n)) || document.body;
|
|
5191
5191
|
},
|
|
5192
5192
|
maxCount: e.maxCount,
|
|
5193
|
-
hashId:
|
|
5193
|
+
hashId: c.value,
|
|
5194
5194
|
onAllRemoved: e.onAllRemoved
|
|
5195
5195
|
});
|
|
5196
|
-
return l($($({},
|
|
5196
|
+
return l($($({}, m), {
|
|
5197
5197
|
prefixCls: o.value,
|
|
5198
|
-
hashId:
|
|
5198
|
+
hashId: c
|
|
5199
5199
|
})), _;
|
|
5200
5200
|
}
|
|
5201
5201
|
});
|
|
5202
5202
|
function Cn(e) {
|
|
5203
|
-
const t = le(null), l = Symbol("notificationHolderKey"), a = (
|
|
5203
|
+
const t = le(null), l = Symbol("notificationHolderKey"), a = (c) => {
|
|
5204
5204
|
if (!t.value)
|
|
5205
5205
|
return;
|
|
5206
5206
|
const {
|
|
5207
|
-
open:
|
|
5208
|
-
prefixCls:
|
|
5209
|
-
hashId:
|
|
5210
|
-
} = t.value, _ = `${
|
|
5211
|
-
message:
|
|
5212
|
-
description:
|
|
5213
|
-
icon:
|
|
5214
|
-
type:
|
|
5207
|
+
open: s,
|
|
5208
|
+
prefixCls: d,
|
|
5209
|
+
hashId: m
|
|
5210
|
+
} = t.value, _ = `${d}-notice`, {
|
|
5211
|
+
message: y,
|
|
5212
|
+
description: f,
|
|
5213
|
+
icon: C,
|
|
5214
|
+
type: x,
|
|
5215
5215
|
btn: T,
|
|
5216
5216
|
class: P
|
|
5217
|
-
} =
|
|
5218
|
-
return
|
|
5217
|
+
} = c, k = yn(c, ["message", "description", "icon", "type", "btn", "class"]);
|
|
5218
|
+
return s($($({
|
|
5219
5219
|
placement: "topRight"
|
|
5220
5220
|
}, k), {
|
|
5221
|
-
content: () =>
|
|
5221
|
+
content: () => w(Jt, {
|
|
5222
5222
|
prefixCls: _,
|
|
5223
|
-
icon: typeof
|
|
5224
|
-
type:
|
|
5225
|
-
message: typeof
|
|
5226
|
-
description: typeof
|
|
5223
|
+
icon: typeof C == "function" ? C() : C,
|
|
5224
|
+
type: x,
|
|
5225
|
+
message: typeof y == "function" ? y() : y,
|
|
5226
|
+
description: typeof f == "function" ? f() : f,
|
|
5227
5227
|
btn: typeof T == "function" ? T() : T
|
|
5228
5228
|
}, null),
|
|
5229
5229
|
// @ts-ignore
|
|
5230
|
-
class: R(
|
|
5230
|
+
class: R(x && `${_}-${x}`, m, P)
|
|
5231
5231
|
}));
|
|
5232
5232
|
}, o = {
|
|
5233
5233
|
open: a,
|
|
5234
|
-
destroy: (
|
|
5235
|
-
var
|
|
5236
|
-
|
|
5234
|
+
destroy: (c) => {
|
|
5235
|
+
var s, d;
|
|
5236
|
+
c !== void 0 ? (s = t.value) === null || s === void 0 || s.close(c) : (d = t.value) === null || d === void 0 || d.destroy();
|
|
5237
5237
|
}
|
|
5238
5238
|
};
|
|
5239
|
-
return ["success", "info", "warning", "error"].forEach((
|
|
5240
|
-
o[
|
|
5241
|
-
type:
|
|
5239
|
+
return ["success", "info", "warning", "error"].forEach((c) => {
|
|
5240
|
+
o[c] = (s) => a($($({}, s), {
|
|
5241
|
+
type: c
|
|
5242
5242
|
}));
|
|
5243
|
-
}), [o, () =>
|
|
5243
|
+
}), [o, () => w(vn, z(z({
|
|
5244
5244
|
key: l
|
|
5245
5245
|
}, e), {}, {
|
|
5246
5246
|
ref: t
|
|
@@ -5260,9 +5260,9 @@ function wn(e) {
|
|
|
5260
5260
|
top: n,
|
|
5261
5261
|
getContainer: o,
|
|
5262
5262
|
closeIcon: i,
|
|
5263
|
-
prefixCls:
|
|
5263
|
+
prefixCls: c
|
|
5264
5264
|
} = e;
|
|
5265
|
-
|
|
5265
|
+
c !== void 0 && (Se = c), t !== void 0 && (Qt = t), l !== void 0 && (el = l), a !== void 0 && (Zt = typeof a == "number" ? `${a}px` : a), n !== void 0 && (Yt = typeof n == "number" ? `${n}px` : n), o !== void 0 && (tl = o), i !== void 0 && (ll = i), e.rtl !== void 0 && (Me = e.rtl), e.maxCount !== void 0 && (al = e.maxCount);
|
|
5266
5266
|
}
|
|
5267
5267
|
function $n(e, t) {
|
|
5268
5268
|
let {
|
|
@@ -5271,43 +5271,43 @@ function $n(e, t) {
|
|
|
5271
5271
|
getContainer: n = tl,
|
|
5272
5272
|
top: o,
|
|
5273
5273
|
bottom: i,
|
|
5274
|
-
closeIcon:
|
|
5275
|
-
appContext:
|
|
5274
|
+
closeIcon: c = ll,
|
|
5275
|
+
appContext: s
|
|
5276
5276
|
} = e;
|
|
5277
5277
|
const {
|
|
5278
|
-
getPrefixCls:
|
|
5279
|
-
} = En(),
|
|
5280
|
-
if (
|
|
5281
|
-
Promise.resolve(
|
|
5282
|
-
t(
|
|
5278
|
+
getPrefixCls: d
|
|
5279
|
+
} = En(), m = d("notification", l || Se), _ = `${m}-${a}-${Me}`, y = Y[_];
|
|
5280
|
+
if (y) {
|
|
5281
|
+
Promise.resolve(y).then((C) => {
|
|
5282
|
+
t(C);
|
|
5283
5283
|
});
|
|
5284
5284
|
return;
|
|
5285
5285
|
}
|
|
5286
|
-
const
|
|
5287
|
-
[`${
|
|
5286
|
+
const f = R(`${m}-${a}`, {
|
|
5287
|
+
[`${m}-rtl`]: Me === !0
|
|
5288
5288
|
});
|
|
5289
5289
|
Kt.newInstance({
|
|
5290
5290
|
name: "notification",
|
|
5291
5291
|
prefixCls: l || Se,
|
|
5292
5292
|
useStyle: Ue,
|
|
5293
|
-
class:
|
|
5293
|
+
class: f,
|
|
5294
5294
|
style: Xt(a, o ?? Yt, i ?? Zt),
|
|
5295
|
-
appContext:
|
|
5295
|
+
appContext: s,
|
|
5296
5296
|
getContainer: n,
|
|
5297
|
-
closeIcon: (
|
|
5297
|
+
closeIcon: (C) => {
|
|
5298
5298
|
let {
|
|
5299
|
-
prefixCls:
|
|
5300
|
-
} =
|
|
5301
|
-
return
|
|
5302
|
-
class: `${
|
|
5303
|
-
}, [ee(
|
|
5304
|
-
class: `${
|
|
5299
|
+
prefixCls: x
|
|
5300
|
+
} = C;
|
|
5301
|
+
return w("span", {
|
|
5302
|
+
class: `${x}-close-x`
|
|
5303
|
+
}, [ee(c, {}, w(Ne, {
|
|
5304
|
+
class: `${x}-close-icon`
|
|
5305
5305
|
}, null))]);
|
|
5306
5306
|
},
|
|
5307
5307
|
maxCount: al,
|
|
5308
5308
|
hasTransitionName: !0
|
|
5309
|
-
}, (
|
|
5310
|
-
Y[_] =
|
|
5309
|
+
}, (C) => {
|
|
5310
|
+
Y[_] = C, t(C);
|
|
5311
5311
|
});
|
|
5312
5312
|
}
|
|
5313
5313
|
const Pn = {
|
|
@@ -5324,34 +5324,34 @@ function In(e) {
|
|
|
5324
5324
|
message: n,
|
|
5325
5325
|
btn: o
|
|
5326
5326
|
} = e, i = e.duration === void 0 ? Qt : e.duration;
|
|
5327
|
-
$n(e, (
|
|
5328
|
-
|
|
5329
|
-
content: (
|
|
5327
|
+
$n(e, (c) => {
|
|
5328
|
+
c.notice({
|
|
5329
|
+
content: (s) => {
|
|
5330
5330
|
let {
|
|
5331
|
-
prefixCls:
|
|
5332
|
-
} =
|
|
5333
|
-
const
|
|
5331
|
+
prefixCls: d
|
|
5332
|
+
} = s;
|
|
5333
|
+
const m = `${d}-notice`;
|
|
5334
5334
|
let _ = null;
|
|
5335
5335
|
if (t)
|
|
5336
|
-
_ = () =>
|
|
5337
|
-
class: `${
|
|
5336
|
+
_ = () => w("span", {
|
|
5337
|
+
class: `${m}-icon`
|
|
5338
5338
|
}, [ee(t)]);
|
|
5339
5339
|
else if (l) {
|
|
5340
|
-
const
|
|
5341
|
-
_ = () =>
|
|
5342
|
-
class: `${
|
|
5340
|
+
const y = Pn[l];
|
|
5341
|
+
_ = () => w(y, {
|
|
5342
|
+
class: `${m}-icon ${m}-icon-${l}`
|
|
5343
5343
|
}, null);
|
|
5344
5344
|
}
|
|
5345
|
-
return
|
|
5346
|
-
class: _ ? `${
|
|
5347
|
-
}, [_ && _(),
|
|
5348
|
-
class: `${
|
|
5349
|
-
}, [!a && _ ?
|
|
5350
|
-
class: `${
|
|
5351
|
-
}, null) : null, ee(n)]),
|
|
5352
|
-
class: `${
|
|
5353
|
-
}, [ee(a)]), o ?
|
|
5354
|
-
class: `${
|
|
5345
|
+
return w("div", {
|
|
5346
|
+
class: _ ? `${m}-with-icon` : ""
|
|
5347
|
+
}, [_ && _(), w("div", {
|
|
5348
|
+
class: `${m}-message`
|
|
5349
|
+
}, [!a && _ ? w("span", {
|
|
5350
|
+
class: `${m}-message-single-line-auto-margin`
|
|
5351
|
+
}, null) : null, ee(n)]), w("div", {
|
|
5352
|
+
class: `${m}-description`
|
|
5353
|
+
}, [ee(a)]), o ? w("span", {
|
|
5354
|
+
class: `${m}-btn`
|
|
5355
5355
|
}, [ee(o)]) : null]);
|
|
5356
5356
|
},
|
|
5357
5357
|
duration: i,
|
|
@@ -5389,21 +5389,21 @@ oe.warn = oe.warning;
|
|
|
5389
5389
|
oe.useNotification = xn;
|
|
5390
5390
|
const On = oe, Sn = `-ant-${Date.now()}-${Math.random()}`;
|
|
5391
5391
|
function Mn(e, t) {
|
|
5392
|
-
const l = {}, a = (i,
|
|
5393
|
-
let
|
|
5394
|
-
return
|
|
5395
|
-
}, n = (i,
|
|
5396
|
-
const
|
|
5397
|
-
l[`${
|
|
5392
|
+
const l = {}, a = (i, c) => {
|
|
5393
|
+
let s = i.clone();
|
|
5394
|
+
return s = (c == null ? void 0 : c(s)) || s, s.toRgbString();
|
|
5395
|
+
}, n = (i, c) => {
|
|
5396
|
+
const s = new Ce(i), d = Qe(s.toRgbString());
|
|
5397
|
+
l[`${c}-color`] = a(s), l[`${c}-color-disabled`] = d[1], l[`${c}-color-hover`] = d[4], l[`${c}-color-active`] = d[6], l[`${c}-color-outline`] = s.clone().setAlpha(0.2).toRgbString(), l[`${c}-color-deprecated-bg`] = d[0], l[`${c}-color-deprecated-border`] = d[2];
|
|
5398
5398
|
};
|
|
5399
5399
|
if (t.primaryColor) {
|
|
5400
5400
|
n(t.primaryColor, "primary");
|
|
5401
|
-
const i = new Ce(t.primaryColor),
|
|
5402
|
-
|
|
5403
|
-
l[`primary-${
|
|
5404
|
-
}), l["primary-color-deprecated-l-35"] = a(i, (
|
|
5405
|
-
const
|
|
5406
|
-
l["primary-color-active-deprecated-f-30"] = a(
|
|
5401
|
+
const i = new Ce(t.primaryColor), c = Qe(i.toRgbString());
|
|
5402
|
+
c.forEach((d, m) => {
|
|
5403
|
+
l[`primary-${m + 1}`] = d;
|
|
5404
|
+
}), l["primary-color-deprecated-l-35"] = a(i, (d) => d.lighten(35)), l["primary-color-deprecated-l-20"] = a(i, (d) => d.lighten(20)), l["primary-color-deprecated-t-20"] = a(i, (d) => d.tint(20)), l["primary-color-deprecated-t-50"] = a(i, (d) => d.tint(50)), l["primary-color-deprecated-f-12"] = a(i, (d) => d.setAlpha(d.getAlpha() * 0.12));
|
|
5405
|
+
const s = new Ce(c[0]);
|
|
5406
|
+
l["primary-color-active-deprecated-f-30"] = a(s, (d) => d.setAlpha(d.getAlpha() * 0.3)), l["primary-color-active-deprecated-d-02"] = a(s, (d) => d.darken(2));
|
|
5407
5407
|
}
|
|
5408
5408
|
return t.successColor && n(t.successColor, "success"), t.warningColor && n(t.warningColor, "warning"), t.errorColor && n(t.errorColor, "error"), t.infoColor && n(t.infoColor, "info"), `
|
|
5409
5409
|
:root {
|
|
@@ -5418,7 +5418,7 @@ function kn(e, t) {
|
|
|
5418
5418
|
}
|
|
5419
5419
|
const An = (e) => {
|
|
5420
5420
|
const [t, l] = Ol();
|
|
5421
|
-
return Sl(
|
|
5421
|
+
return Sl(A(() => ({
|
|
5422
5422
|
theme: t.value,
|
|
5423
5423
|
token: l.value,
|
|
5424
5424
|
hashId: "",
|
|
@@ -5432,8 +5432,8 @@ const An = (e) => {
|
|
|
5432
5432
|
}]);
|
|
5433
5433
|
}, Vn = An;
|
|
5434
5434
|
function jn(e, t) {
|
|
5435
|
-
const l =
|
|
5436
|
-
return
|
|
5435
|
+
const l = A(() => (e == null ? void 0 : e.value) || {}), a = A(() => l.value.inherit === !1 || !(t != null && t.value) ? kl : t.value);
|
|
5436
|
+
return A(() => {
|
|
5437
5437
|
if (!(e != null && e.value))
|
|
5438
5438
|
return t == null ? void 0 : t.value;
|
|
5439
5439
|
const o = $({}, a.value.components);
|
|
@@ -5485,139 +5485,139 @@ const zn = (e) => {
|
|
|
5485
5485
|
let {
|
|
5486
5486
|
slots: l
|
|
5487
5487
|
} = t;
|
|
5488
|
-
const a = Ot(), n = (
|
|
5488
|
+
const a = Ot(), n = (r, M) => {
|
|
5489
5489
|
const {
|
|
5490
5490
|
prefixCls: E = "ant"
|
|
5491
5491
|
} = e;
|
|
5492
5492
|
if (M)
|
|
5493
5493
|
return M;
|
|
5494
5494
|
const W = E || a.getPrefixCls("");
|
|
5495
|
-
return
|
|
5496
|
-
}, o =
|
|
5497
|
-
var
|
|
5498
|
-
return e.csp || ((
|
|
5499
|
-
}),
|
|
5500
|
-
var
|
|
5501
|
-
return (
|
|
5502
|
-
})),
|
|
5503
|
-
var
|
|
5504
|
-
return (
|
|
5505
|
-
}),
|
|
5506
|
-
var
|
|
5507
|
-
return e.locale || ((
|
|
5495
|
+
return r ? `${W}-${r}` : W;
|
|
5496
|
+
}, o = A(() => e.iconPrefixCls || a.iconPrefixCls.value || St), i = A(() => o.value !== a.iconPrefixCls.value), c = A(() => {
|
|
5497
|
+
var r;
|
|
5498
|
+
return e.csp || ((r = a.csp) === null || r === void 0 ? void 0 : r.value);
|
|
5499
|
+
}), s = Vn(o), d = jn(A(() => e.theme), A(() => {
|
|
5500
|
+
var r;
|
|
5501
|
+
return (r = a.theme) === null || r === void 0 ? void 0 : r.value;
|
|
5502
|
+
})), m = (r) => (e.renderEmpty || l.renderEmpty || a.renderEmpty || Nl)(r), _ = A(() => {
|
|
5503
|
+
var r, M;
|
|
5504
|
+
return (r = e.autoInsertSpaceInButton) !== null && r !== void 0 ? r : (M = a.autoInsertSpaceInButton) === null || M === void 0 ? void 0 : M.value;
|
|
5505
|
+
}), y = A(() => {
|
|
5506
|
+
var r;
|
|
5507
|
+
return e.locale || ((r = a.locale) === null || r === void 0 ? void 0 : r.value);
|
|
5508
5508
|
});
|
|
5509
|
-
de(
|
|
5510
|
-
We.locale =
|
|
5509
|
+
de(y, () => {
|
|
5510
|
+
We.locale = y.value;
|
|
5511
5511
|
}, {
|
|
5512
5512
|
immediate: !0
|
|
5513
5513
|
});
|
|
5514
|
-
const
|
|
5515
|
-
var
|
|
5516
|
-
return e.direction || ((
|
|
5517
|
-
}),
|
|
5518
|
-
var
|
|
5519
|
-
return (
|
|
5520
|
-
}),
|
|
5521
|
-
var
|
|
5522
|
-
return (
|
|
5523
|
-
}), T =
|
|
5524
|
-
var
|
|
5525
|
-
return (
|
|
5526
|
-
}), P =
|
|
5527
|
-
var
|
|
5528
|
-
return e.getTargetContainer !== void 0 ? e.getTargetContainer : (
|
|
5529
|
-
}), k =
|
|
5530
|
-
var
|
|
5531
|
-
return e.getPopupContainer !== void 0 ? e.getPopupContainer : (
|
|
5532
|
-
}), j =
|
|
5533
|
-
var
|
|
5534
|
-
return e.pageHeader !== void 0 ? e.pageHeader : (
|
|
5535
|
-
}), S =
|
|
5536
|
-
var
|
|
5537
|
-
return e.input !== void 0 ? e.input : (
|
|
5538
|
-
}), u =
|
|
5539
|
-
var
|
|
5540
|
-
return e.pagination !== void 0 ? e.pagination : (
|
|
5541
|
-
}),
|
|
5542
|
-
var
|
|
5543
|
-
return e.form !== void 0 ? e.form : (
|
|
5544
|
-
}),
|
|
5545
|
-
var
|
|
5546
|
-
return e.select !== void 0 ? e.select : (
|
|
5547
|
-
}), I =
|
|
5548
|
-
var
|
|
5549
|
-
return (
|
|
5514
|
+
const f = A(() => {
|
|
5515
|
+
var r;
|
|
5516
|
+
return e.direction || ((r = a.direction) === null || r === void 0 ? void 0 : r.value);
|
|
5517
|
+
}), C = A(() => {
|
|
5518
|
+
var r, M;
|
|
5519
|
+
return (r = e.space) !== null && r !== void 0 ? r : (M = a.space) === null || M === void 0 ? void 0 : M.value;
|
|
5520
|
+
}), x = A(() => {
|
|
5521
|
+
var r, M;
|
|
5522
|
+
return (r = e.virtual) !== null && r !== void 0 ? r : (M = a.virtual) === null || M === void 0 ? void 0 : M.value;
|
|
5523
|
+
}), T = A(() => {
|
|
5524
|
+
var r, M;
|
|
5525
|
+
return (r = e.dropdownMatchSelectWidth) !== null && r !== void 0 ? r : (M = a.dropdownMatchSelectWidth) === null || M === void 0 ? void 0 : M.value;
|
|
5526
|
+
}), P = A(() => {
|
|
5527
|
+
var r;
|
|
5528
|
+
return e.getTargetContainer !== void 0 ? e.getTargetContainer : (r = a.getTargetContainer) === null || r === void 0 ? void 0 : r.value;
|
|
5529
|
+
}), k = A(() => {
|
|
5530
|
+
var r;
|
|
5531
|
+
return e.getPopupContainer !== void 0 ? e.getPopupContainer : (r = a.getPopupContainer) === null || r === void 0 ? void 0 : r.value;
|
|
5532
|
+
}), j = A(() => {
|
|
5533
|
+
var r;
|
|
5534
|
+
return e.pageHeader !== void 0 ? e.pageHeader : (r = a.pageHeader) === null || r === void 0 ? void 0 : r.value;
|
|
5535
|
+
}), S = A(() => {
|
|
5536
|
+
var r;
|
|
5537
|
+
return e.input !== void 0 ? e.input : (r = a.input) === null || r === void 0 ? void 0 : r.value;
|
|
5538
|
+
}), u = A(() => {
|
|
5539
|
+
var r;
|
|
5540
|
+
return e.pagination !== void 0 ? e.pagination : (r = a.pagination) === null || r === void 0 ? void 0 : r.value;
|
|
5541
|
+
}), v = A(() => {
|
|
5542
|
+
var r;
|
|
5543
|
+
return e.form !== void 0 ? e.form : (r = a.form) === null || r === void 0 ? void 0 : r.value;
|
|
5544
|
+
}), p = A(() => {
|
|
5545
|
+
var r;
|
|
5546
|
+
return e.select !== void 0 ? e.select : (r = a.select) === null || r === void 0 ? void 0 : r.value;
|
|
5547
|
+
}), I = A(() => e.componentSize), V = A(() => e.componentDisabled), D = A(() => {
|
|
5548
|
+
var r, M;
|
|
5549
|
+
return (r = e.wave) !== null && r !== void 0 ? r : (M = a.wave) === null || M === void 0 ? void 0 : M.value;
|
|
5550
5550
|
}), K = {
|
|
5551
|
-
csp:
|
|
5551
|
+
csp: c,
|
|
5552
5552
|
autoInsertSpaceInButton: _,
|
|
5553
|
-
locale:
|
|
5554
|
-
direction:
|
|
5555
|
-
space:
|
|
5556
|
-
virtual:
|
|
5553
|
+
locale: y,
|
|
5554
|
+
direction: f,
|
|
5555
|
+
space: C,
|
|
5556
|
+
virtual: x,
|
|
5557
5557
|
dropdownMatchSelectWidth: T,
|
|
5558
5558
|
getPrefixCls: n,
|
|
5559
5559
|
iconPrefixCls: o,
|
|
5560
|
-
theme:
|
|
5561
|
-
var
|
|
5562
|
-
return (
|
|
5560
|
+
theme: A(() => {
|
|
5561
|
+
var r, M;
|
|
5562
|
+
return (r = d.value) !== null && r !== void 0 ? r : (M = a.theme) === null || M === void 0 ? void 0 : M.value;
|
|
5563
5563
|
}),
|
|
5564
|
-
renderEmpty:
|
|
5564
|
+
renderEmpty: m,
|
|
5565
5565
|
getTargetContainer: P,
|
|
5566
5566
|
getPopupContainer: k,
|
|
5567
5567
|
pageHeader: j,
|
|
5568
5568
|
input: S,
|
|
5569
5569
|
pagination: u,
|
|
5570
|
-
form:
|
|
5571
|
-
select:
|
|
5570
|
+
form: v,
|
|
5571
|
+
select: p,
|
|
5572
5572
|
componentSize: I,
|
|
5573
|
-
componentDisabled:
|
|
5574
|
-
transformCellText:
|
|
5573
|
+
componentDisabled: V,
|
|
5574
|
+
transformCellText: A(() => e.transformCellText),
|
|
5575
5575
|
wave: D
|
|
5576
|
-
},
|
|
5577
|
-
const
|
|
5576
|
+
}, g = A(() => {
|
|
5577
|
+
const r = d.value || {}, {
|
|
5578
5578
|
algorithm: M,
|
|
5579
5579
|
token: E
|
|
5580
|
-
} =
|
|
5580
|
+
} = r, W = Dn(r, ["algorithm", "token"]), ve = M && (!Array.isArray(M) || M.length > 0) ? Vl(M) : void 0;
|
|
5581
5581
|
return $($({}, W), {
|
|
5582
5582
|
theme: ve,
|
|
5583
5583
|
token: $($({}, jl), E)
|
|
5584
5584
|
});
|
|
5585
|
-
}),
|
|
5586
|
-
var
|
|
5585
|
+
}), h = A(() => {
|
|
5586
|
+
var r, M;
|
|
5587
5587
|
let E = {};
|
|
5588
|
-
return
|
|
5588
|
+
return y.value && (E = ((r = y.value.Form) === null || r === void 0 ? void 0 : r.defaultValidateMessages) || ((M = Ke.Form) === null || M === void 0 ? void 0 : M.defaultValidateMessages) || {}), e.form && e.form.validateMessages && (E = $($({}, E), e.form.validateMessages)), E;
|
|
5589
5589
|
});
|
|
5590
5590
|
Dl(K), Kl({
|
|
5591
|
-
validateMessages:
|
|
5592
|
-
}), zl(I), El(
|
|
5593
|
-
const b = (
|
|
5591
|
+
validateMessages: h
|
|
5592
|
+
}), zl(I), El(V);
|
|
5593
|
+
const b = (r) => {
|
|
5594
5594
|
var M, E;
|
|
5595
|
-
let W = i.value ?
|
|
5595
|
+
let W = i.value ? s((M = l.default) === null || M === void 0 ? void 0 : M.call(l)) : (E = l.default) === null || E === void 0 ? void 0 : E.call(l);
|
|
5596
5596
|
if (e.theme) {
|
|
5597
5597
|
const ve = function() {
|
|
5598
5598
|
return W;
|
|
5599
5599
|
}();
|
|
5600
|
-
W =
|
|
5601
|
-
value:
|
|
5600
|
+
W = w(Ll, {
|
|
5601
|
+
value: g.value
|
|
5602
5602
|
}, {
|
|
5603
5603
|
default: () => [ve]
|
|
5604
5604
|
});
|
|
5605
5605
|
}
|
|
5606
|
-
return
|
|
5607
|
-
locale:
|
|
5606
|
+
return w(La, {
|
|
5607
|
+
locale: y.value || r,
|
|
5608
5608
|
ANT_MARK__: Te
|
|
5609
5609
|
}, {
|
|
5610
5610
|
default: () => [W]
|
|
5611
5611
|
});
|
|
5612
5612
|
};
|
|
5613
5613
|
return De(() => {
|
|
5614
|
-
|
|
5615
|
-
rtl:
|
|
5614
|
+
f.value && (re.config({
|
|
5615
|
+
rtl: f.value === "rtl"
|
|
5616
5616
|
}), On.config({
|
|
5617
|
-
rtl:
|
|
5617
|
+
rtl: f.value === "rtl"
|
|
5618
5618
|
}));
|
|
5619
|
-
}), () =>
|
|
5620
|
-
children: (
|
|
5619
|
+
}), () => w(ql, {
|
|
5620
|
+
children: (r, M, E) => b(E)
|
|
5621
5621
|
}, null);
|
|
5622
5622
|
}
|
|
5623
5623
|
});
|
|
@@ -6117,7 +6117,7 @@ const Fn = () => U().VITE_APP_HAS_PROJECT, ol = [
|
|
|
6117
6117
|
// userStore.CHECK_AUTH(DELETE_ROLE), // 是否有【删除】按钮
|
|
6118
6118
|
is_recover: "permission/recover_role"
|
|
6119
6119
|
// userStore.CHECK_AUTH(RECOVER_ROLE), // 是否有【恢复】按钮
|
|
6120
|
-
},
|
|
6120
|
+
}, c = {
|
|
6121
6121
|
update: {
|
|
6122
6122
|
role_id: "id"
|
|
6123
6123
|
},
|
|
@@ -6131,7 +6131,7 @@ const Fn = () => U().VITE_APP_HAS_PROJECT, ol = [
|
|
|
6131
6131
|
org_id: "org_id",
|
|
6132
6132
|
role_id: "id"
|
|
6133
6133
|
}
|
|
6134
|
-
},
|
|
6134
|
+
}, s = [
|
|
6135
6135
|
{
|
|
6136
6136
|
title: "序号",
|
|
6137
6137
|
width: 50,
|
|
@@ -6192,7 +6192,7 @@ const Fn = () => U().VITE_APP_HAS_PROJECT, ol = [
|
|
|
6192
6192
|
cellComponent: "action"
|
|
6193
6193
|
}
|
|
6194
6194
|
];
|
|
6195
|
-
return l.VITE_APP_HAS_PROJECT &&
|
|
6195
|
+
return l.VITE_APP_HAS_PROJECT && s.splice(5, 0, {
|
|
6196
6196
|
title: "模块列表",
|
|
6197
6197
|
dataIndex: "menu_project__name",
|
|
6198
6198
|
checked: !0,
|
|
@@ -6206,9 +6206,9 @@ const Fn = () => U().VITE_APP_HAS_PROJECT, ol = [
|
|
|
6206
6206
|
updateData: "/permission/update_role",
|
|
6207
6207
|
removeData: "/permission/delete_role",
|
|
6208
6208
|
recoverData: "/permission/recover_role",
|
|
6209
|
-
baseColumns:
|
|
6209
|
+
baseColumns: s,
|
|
6210
6210
|
titleList: i,
|
|
6211
|
-
api_fields:
|
|
6211
|
+
api_fields: c,
|
|
6212
6212
|
btn_list: ol,
|
|
6213
6213
|
head_btn_list: il,
|
|
6214
6214
|
event_obj: q(),
|
|
@@ -7002,82 +7002,82 @@ const Fn = () => U().VITE_APP_HAS_PROJECT, ol = [
|
|
|
7002
7002
|
var dl = { exports: {} };
|
|
7003
7003
|
(function(e) {
|
|
7004
7004
|
(function(t) {
|
|
7005
|
-
function l(u,
|
|
7006
|
-
var
|
|
7007
|
-
return I << 16 |
|
|
7005
|
+
function l(u, v) {
|
|
7006
|
+
var p = (u & 65535) + (v & 65535), I = (u >> 16) + (v >> 16) + (p >> 16);
|
|
7007
|
+
return I << 16 | p & 65535;
|
|
7008
7008
|
}
|
|
7009
|
-
function a(u,
|
|
7010
|
-
return u <<
|
|
7009
|
+
function a(u, v) {
|
|
7010
|
+
return u << v | u >>> 32 - v;
|
|
7011
7011
|
}
|
|
7012
|
-
function n(u,
|
|
7013
|
-
return l(a(l(l(
|
|
7012
|
+
function n(u, v, p, I, V, D) {
|
|
7013
|
+
return l(a(l(l(v, u), l(I, D)), V), p);
|
|
7014
7014
|
}
|
|
7015
|
-
function o(u,
|
|
7016
|
-
return n(
|
|
7015
|
+
function o(u, v, p, I, V, D, K) {
|
|
7016
|
+
return n(v & p | ~v & I, u, v, V, D, K);
|
|
7017
7017
|
}
|
|
7018
|
-
function i(u,
|
|
7019
|
-
return n(
|
|
7018
|
+
function i(u, v, p, I, V, D, K) {
|
|
7019
|
+
return n(v & I | p & ~I, u, v, V, D, K);
|
|
7020
7020
|
}
|
|
7021
|
-
function
|
|
7022
|
-
return n(
|
|
7021
|
+
function c(u, v, p, I, V, D, K) {
|
|
7022
|
+
return n(v ^ p ^ I, u, v, V, D, K);
|
|
7023
7023
|
}
|
|
7024
|
-
function
|
|
7025
|
-
return n(
|
|
7024
|
+
function s(u, v, p, I, V, D, K) {
|
|
7025
|
+
return n(p ^ (v | ~I), u, v, V, D, K);
|
|
7026
7026
|
}
|
|
7027
|
-
function
|
|
7028
|
-
u[
|
|
7029
|
-
var
|
|
7030
|
-
for (
|
|
7031
|
-
I =
|
|
7032
|
-
return [
|
|
7027
|
+
function d(u, v) {
|
|
7028
|
+
u[v >> 5] |= 128 << v % 32, u[(v + 64 >>> 9 << 4) + 14] = v;
|
|
7029
|
+
var p, I, V, D, K, g = 1732584193, h = -271733879, b = -1732584194, r = 271733878;
|
|
7030
|
+
for (p = 0; p < u.length; p += 16)
|
|
7031
|
+
I = g, V = h, D = b, K = r, g = o(g, h, b, r, u[p], 7, -680876936), r = o(r, g, h, b, u[p + 1], 12, -389564586), b = o(b, r, g, h, u[p + 2], 17, 606105819), h = o(h, b, r, g, u[p + 3], 22, -1044525330), g = o(g, h, b, r, u[p + 4], 7, -176418897), r = o(r, g, h, b, u[p + 5], 12, 1200080426), b = o(b, r, g, h, u[p + 6], 17, -1473231341), h = o(h, b, r, g, u[p + 7], 22, -45705983), g = o(g, h, b, r, u[p + 8], 7, 1770035416), r = o(r, g, h, b, u[p + 9], 12, -1958414417), b = o(b, r, g, h, u[p + 10], 17, -42063), h = o(h, b, r, g, u[p + 11], 22, -1990404162), g = o(g, h, b, r, u[p + 12], 7, 1804603682), r = o(r, g, h, b, u[p + 13], 12, -40341101), b = o(b, r, g, h, u[p + 14], 17, -1502002290), h = o(h, b, r, g, u[p + 15], 22, 1236535329), g = i(g, h, b, r, u[p + 1], 5, -165796510), r = i(r, g, h, b, u[p + 6], 9, -1069501632), b = i(b, r, g, h, u[p + 11], 14, 643717713), h = i(h, b, r, g, u[p], 20, -373897302), g = i(g, h, b, r, u[p + 5], 5, -701558691), r = i(r, g, h, b, u[p + 10], 9, 38016083), b = i(b, r, g, h, u[p + 15], 14, -660478335), h = i(h, b, r, g, u[p + 4], 20, -405537848), g = i(g, h, b, r, u[p + 9], 5, 568446438), r = i(r, g, h, b, u[p + 14], 9, -1019803690), b = i(b, r, g, h, u[p + 3], 14, -187363961), h = i(h, b, r, g, u[p + 8], 20, 1163531501), g = i(g, h, b, r, u[p + 13], 5, -1444681467), r = i(r, g, h, b, u[p + 2], 9, -51403784), b = i(b, r, g, h, u[p + 7], 14, 1735328473), h = i(h, b, r, g, u[p + 12], 20, -1926607734), g = c(g, h, b, r, u[p + 5], 4, -378558), r = c(r, g, h, b, u[p + 8], 11, -2022574463), b = c(b, r, g, h, u[p + 11], 16, 1839030562), h = c(h, b, r, g, u[p + 14], 23, -35309556), g = c(g, h, b, r, u[p + 1], 4, -1530992060), r = c(r, g, h, b, u[p + 4], 11, 1272893353), b = c(b, r, g, h, u[p + 7], 16, -155497632), h = c(h, b, r, g, u[p + 10], 23, -1094730640), g = c(g, h, b, r, u[p + 13], 4, 681279174), r = c(r, g, h, b, u[p], 11, -358537222), b = c(b, r, g, h, u[p + 3], 16, -722521979), h = c(h, b, r, g, u[p + 6], 23, 76029189), g = c(g, h, b, r, u[p + 9], 4, -640364487), r = c(r, g, h, b, u[p + 12], 11, -421815835), b = c(b, r, g, h, u[p + 15], 16, 530742520), h = c(h, b, r, g, u[p + 2], 23, -995338651), g = s(g, h, b, r, u[p], 6, -198630844), r = s(r, g, h, b, u[p + 7], 10, 1126891415), b = s(b, r, g, h, u[p + 14], 15, -1416354905), h = s(h, b, r, g, u[p + 5], 21, -57434055), g = s(g, h, b, r, u[p + 12], 6, 1700485571), r = s(r, g, h, b, u[p + 3], 10, -1894986606), b = s(b, r, g, h, u[p + 10], 15, -1051523), h = s(h, b, r, g, u[p + 1], 21, -2054922799), g = s(g, h, b, r, u[p + 8], 6, 1873313359), r = s(r, g, h, b, u[p + 15], 10, -30611744), b = s(b, r, g, h, u[p + 6], 15, -1560198380), h = s(h, b, r, g, u[p + 13], 21, 1309151649), g = s(g, h, b, r, u[p + 4], 6, -145523070), r = s(r, g, h, b, u[p + 11], 10, -1120210379), b = s(b, r, g, h, u[p + 2], 15, 718787259), h = s(h, b, r, g, u[p + 9], 21, -343485551), g = l(g, I), h = l(h, V), b = l(b, D), r = l(r, K);
|
|
7032
|
+
return [g, h, b, r];
|
|
7033
7033
|
}
|
|
7034
|
-
function
|
|
7035
|
-
var
|
|
7036
|
-
for (
|
|
7037
|
-
|
|
7038
|
-
return
|
|
7034
|
+
function m(u) {
|
|
7035
|
+
var v, p = "", I = u.length * 32;
|
|
7036
|
+
for (v = 0; v < I; v += 8)
|
|
7037
|
+
p += String.fromCharCode(u[v >> 5] >>> v % 32 & 255);
|
|
7038
|
+
return p;
|
|
7039
7039
|
}
|
|
7040
7040
|
function _(u) {
|
|
7041
|
-
var
|
|
7042
|
-
for (
|
|
7043
|
-
|
|
7041
|
+
var v, p = [];
|
|
7042
|
+
for (p[(u.length >> 2) - 1] = void 0, v = 0; v < p.length; v += 1)
|
|
7043
|
+
p[v] = 0;
|
|
7044
7044
|
var I = u.length * 8;
|
|
7045
|
-
for (
|
|
7046
|
-
|
|
7047
|
-
return
|
|
7048
|
-
}
|
|
7049
|
-
function g(u) {
|
|
7050
|
-
return p(f(_(u), u.length * 8));
|
|
7045
|
+
for (v = 0; v < I; v += 8)
|
|
7046
|
+
p[v >> 5] |= (u.charCodeAt(v / 8) & 255) << v % 32;
|
|
7047
|
+
return p;
|
|
7051
7048
|
}
|
|
7052
|
-
function
|
|
7053
|
-
|
|
7054
|
-
for (A[15] = D[15] = void 0, I.length > 16 && (I = f(I, u.length * 8)), d = 0; d < 16; d += 1)
|
|
7055
|
-
A[d] = I[d] ^ 909522486, D[d] = I[d] ^ 1549556828;
|
|
7056
|
-
return K = f(A.concat(_(y)), 512 + y.length * 8), p(f(D.concat(K), 512 + 128));
|
|
7049
|
+
function y(u) {
|
|
7050
|
+
return m(d(_(u), u.length * 8));
|
|
7057
7051
|
}
|
|
7058
|
-
function
|
|
7059
|
-
var
|
|
7060
|
-
for (
|
|
7061
|
-
|
|
7062
|
-
return d;
|
|
7052
|
+
function f(u, v) {
|
|
7053
|
+
var p, I = _(u), V = [], D = [], K;
|
|
7054
|
+
for (V[15] = D[15] = void 0, I.length > 16 && (I = d(I, u.length * 8)), p = 0; p < 16; p += 1)
|
|
7055
|
+
V[p] = I[p] ^ 909522486, D[p] = I[p] ^ 1549556828;
|
|
7056
|
+
return K = d(V.concat(_(v)), 512 + v.length * 8), m(d(D.concat(K), 512 + 128));
|
|
7063
7057
|
}
|
|
7064
7058
|
function C(u) {
|
|
7059
|
+
var v = "0123456789abcdef", p = "", I, V;
|
|
7060
|
+
for (V = 0; V < u.length; V += 1)
|
|
7061
|
+
I = u.charCodeAt(V), p += v.charAt(I >>> 4 & 15) + v.charAt(I & 15);
|
|
7062
|
+
return p;
|
|
7063
|
+
}
|
|
7064
|
+
function x(u) {
|
|
7065
7065
|
return unescape(encodeURIComponent(u));
|
|
7066
7066
|
}
|
|
7067
7067
|
function T(u) {
|
|
7068
|
-
return
|
|
7068
|
+
return y(x(u));
|
|
7069
7069
|
}
|
|
7070
7070
|
function P(u) {
|
|
7071
|
-
return
|
|
7071
|
+
return C(T(u));
|
|
7072
7072
|
}
|
|
7073
|
-
function k(u,
|
|
7074
|
-
return
|
|
7073
|
+
function k(u, v) {
|
|
7074
|
+
return f(x(u), x(v));
|
|
7075
7075
|
}
|
|
7076
|
-
function j(u,
|
|
7077
|
-
return
|
|
7076
|
+
function j(u, v) {
|
|
7077
|
+
return C(k(u, v));
|
|
7078
7078
|
}
|
|
7079
|
-
function S(u,
|
|
7080
|
-
return
|
|
7079
|
+
function S(u, v, p) {
|
|
7080
|
+
return v ? p ? k(v, u) : j(v, u) : p ? T(u) : P(u);
|
|
7081
7081
|
}
|
|
7082
7082
|
e.exports ? e.exports = S : t.md5 = S;
|
|
7083
7083
|
})(Wl);
|
|
@@ -7138,11 +7138,11 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7138
7138
|
o && Array.isArray(o) && o.forEach((i) => {
|
|
7139
7139
|
i.label && (i.label = t(`${l}_${i.label}`, {
|
|
7140
7140
|
defaultValue: i.label
|
|
7141
|
-
})), i.options && i.options.forEach((
|
|
7142
|
-
|
|
7143
|
-
`${l}_${a(i.field_name)}_${
|
|
7141
|
+
})), i.options && i.options.forEach((c) => {
|
|
7142
|
+
c.label && (c.label = t(
|
|
7143
|
+
`${l}_${a(i.field_name)}_${c.label}`,
|
|
7144
7144
|
{
|
|
7145
|
-
defaultValue:
|
|
7145
|
+
defaultValue: c.label
|
|
7146
7146
|
}
|
|
7147
7147
|
));
|
|
7148
7148
|
});
|
|
@@ -7159,40 +7159,40 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7159
7159
|
}));
|
|
7160
7160
|
}), e), je = (e, t, l, a) => {
|
|
7161
7161
|
const n = e == null ? void 0 : e.dynamicFieldList;
|
|
7162
|
-
n && Array.isArray(n) && n.forEach((
|
|
7163
|
-
|
|
7164
|
-
defaultValue:
|
|
7162
|
+
n && Array.isArray(n) && n.forEach((c) => {
|
|
7163
|
+
c.group_name && (c.group_name = t(`${l}_${c.group_name}`, {
|
|
7164
|
+
defaultValue: c.group_name
|
|
7165
7165
|
}));
|
|
7166
|
-
const
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
defaultValue:
|
|
7166
|
+
const s = c.children;
|
|
7167
|
+
s && Array.isArray(s) && s.forEach((d) => {
|
|
7168
|
+
d.label && (d.label = t(`${l}_${d.label}`, {
|
|
7169
|
+
defaultValue: d.label
|
|
7170
7170
|
}));
|
|
7171
|
-
const
|
|
7172
|
-
|
|
7171
|
+
const m = d.placeholder;
|
|
7172
|
+
m && Array.isArray(m) ? d.placeholder = m.map(
|
|
7173
7173
|
(_) => t(`${l}_${_}`, {
|
|
7174
7174
|
defaultValue: _
|
|
7175
7175
|
})
|
|
7176
|
-
) :
|
|
7177
|
-
defaultValue:
|
|
7176
|
+
) : m && (d.placeholder = t(`${l}_${m}`, {
|
|
7177
|
+
defaultValue: m
|
|
7178
7178
|
}));
|
|
7179
7179
|
});
|
|
7180
7180
|
});
|
|
7181
7181
|
const o = e == null ? void 0 : e.rules;
|
|
7182
|
-
o && Object.keys(o).forEach((
|
|
7183
|
-
o[
|
|
7184
|
-
|
|
7185
|
-
defaultValue:
|
|
7182
|
+
o && Object.keys(o).forEach((c) => {
|
|
7183
|
+
o[c].forEach((s) => {
|
|
7184
|
+
s.message && (s.message = t(`${l}_${s.message}`, {
|
|
7185
|
+
defaultValue: s.message
|
|
7186
7186
|
}));
|
|
7187
7187
|
});
|
|
7188
7188
|
});
|
|
7189
7189
|
const i = e == null ? void 0 : e.options;
|
|
7190
|
-
return i && Object.keys(i).forEach((
|
|
7191
|
-
i[
|
|
7192
|
-
|
|
7193
|
-
defaultValue:
|
|
7194
|
-
})),
|
|
7195
|
-
defaultValue:
|
|
7190
|
+
return i && Object.keys(i).forEach((c) => {
|
|
7191
|
+
i[c].forEach((s) => {
|
|
7192
|
+
s.name && (s.name = t(`${l}_${a(c)}_${s.name}`, {
|
|
7193
|
+
defaultValue: s.name
|
|
7194
|
+
})), s.label && (s.label = t(`${l}_${a(c)}_${s.label}`, {
|
|
7195
|
+
defaultValue: s.label
|
|
7196
7196
|
}));
|
|
7197
7197
|
});
|
|
7198
7198
|
}), e;
|
|
@@ -7235,18 +7235,18 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7235
7235
|
const n = Ul(e), o = n.i18n;
|
|
7236
7236
|
return Object.keys(n).forEach((i) => {
|
|
7237
7237
|
if (gt[i]) {
|
|
7238
|
-
let
|
|
7239
|
-
|
|
7240
|
-
const
|
|
7238
|
+
let c = o == null ? void 0 : o.i18n_id, s = o == null ? void 0 : o.fields;
|
|
7239
|
+
c || (c = _t(l));
|
|
7240
|
+
const d = (m) => {
|
|
7241
7241
|
var _;
|
|
7242
|
-
if (
|
|
7243
|
-
const
|
|
7244
|
-
if (
|
|
7245
|
-
return
|
|
7242
|
+
if (s) {
|
|
7243
|
+
const y = (_ = s[m]) == null ? void 0 : _.i18n_id;
|
|
7244
|
+
if (y)
|
|
7245
|
+
return y;
|
|
7246
7246
|
}
|
|
7247
|
-
return _t(
|
|
7247
|
+
return _t(m);
|
|
7248
7248
|
};
|
|
7249
|
-
n[i] = gt[i](n[i], t,
|
|
7249
|
+
n[i] = gt[i](n[i], t, c, d);
|
|
7250
7250
|
}
|
|
7251
7251
|
}), console.log("result====", n), n;
|
|
7252
7252
|
}, ue = (e, t) => {
|
|
@@ -7261,13 +7261,13 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7261
7261
|
o.order || (o.order = n + 1), n = o.order, o._key = `custom_${o.name}_${Math.random()}`;
|
|
7262
7262
|
const i = a.get(o.name);
|
|
7263
7263
|
if (i !== void 0) {
|
|
7264
|
-
const
|
|
7265
|
-
o.children &&
|
|
7266
|
-
const
|
|
7267
|
-
delete
|
|
7264
|
+
const c = l[i];
|
|
7265
|
+
o.children && c.children && (c.children = ue(c.children, o.children));
|
|
7266
|
+
const s = ae.cloneDeep(o);
|
|
7267
|
+
delete s.children, Object.assign(c, s);
|
|
7268
7268
|
} else {
|
|
7269
|
-
const
|
|
7270
|
-
l.push(
|
|
7269
|
+
const c = ae.cloneDeep(o);
|
|
7270
|
+
l.push(c), c.children && (c.children = ue([], c.children));
|
|
7271
7271
|
}
|
|
7272
7272
|
}), l;
|
|
7273
7273
|
}, ht = {
|
|
@@ -7302,13 +7302,13 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7302
7302
|
if (!e)
|
|
7303
7303
|
return;
|
|
7304
7304
|
const l = e.fields, a = e.rules || {}, n = e.model || {}, o = e.options || {};
|
|
7305
|
-
return l ? (l.forEach((
|
|
7306
|
-
var
|
|
7307
|
-
const
|
|
7308
|
-
if ((
|
|
7309
|
-
for (const
|
|
7310
|
-
t.fields[
|
|
7311
|
-
((
|
|
7305
|
+
return l ? (l.forEach((c) => {
|
|
7306
|
+
var d, m, _, y;
|
|
7307
|
+
const s = c.name;
|
|
7308
|
+
if ((d = t.fields) != null && d[s])
|
|
7309
|
+
for (const f in t.fields[s])
|
|
7310
|
+
t.fields[s][f] === null ? delete c[f] : c[f] = t.fields[s][f];
|
|
7311
|
+
((m = t.rules) == null ? void 0 : m[s]) !== void 0 && (a[s] = t.rules[s]), ((_ = t.model) == null ? void 0 : _[s]) !== void 0 && (n[s] = t.model[s]), ((y = t.options) == null ? void 0 : y[s]) !== void 0 && (o[s] = t.options[s]);
|
|
7312
7312
|
}), Object.assign(e, {
|
|
7313
7313
|
fields: l,
|
|
7314
7314
|
rules: a,
|
|
@@ -7377,12 +7377,12 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7377
7377
|
is_cache: o,
|
|
7378
7378
|
history_id: i
|
|
7379
7379
|
}) => {
|
|
7380
|
-
const
|
|
7380
|
+
const c = U(), [s, d] = await Promise.all([
|
|
7381
7381
|
B(
|
|
7382
7382
|
{
|
|
7383
7383
|
org_id: e,
|
|
7384
7384
|
user_id: t,
|
|
7385
|
-
view_project__flag:
|
|
7385
|
+
view_project__flag: c.VITE_APP_VIEW_PROJECT_FLAG,
|
|
7386
7386
|
view_menu__flag: a,
|
|
7387
7387
|
history_id: i,
|
|
7388
7388
|
sort_fields: n,
|
|
@@ -7398,8 +7398,8 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7398
7398
|
})
|
|
7399
7399
|
]);
|
|
7400
7400
|
return {
|
|
7401
|
-
...
|
|
7402
|
-
defaultAndServerConfig:
|
|
7401
|
+
...s,
|
|
7402
|
+
defaultAndServerConfig: d
|
|
7403
7403
|
};
|
|
7404
7404
|
}, ho = async ({
|
|
7405
7405
|
org_id: e,
|
|
@@ -7407,50 +7407,51 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7407
7407
|
modalType: l,
|
|
7408
7408
|
history_id: a
|
|
7409
7409
|
}) => {
|
|
7410
|
-
const n = U(), o = l.split("-")[1],
|
|
7410
|
+
const n = U(), o = l.split("-")[1], c = {
|
|
7411
7411
|
flag: l + "_config",
|
|
7412
7412
|
org_id: e
|
|
7413
7413
|
};
|
|
7414
|
-
a && (
|
|
7415
|
-
const
|
|
7414
|
+
a && (c.history_id = a);
|
|
7415
|
+
const s = {
|
|
7416
7416
|
org_id: e,
|
|
7417
7417
|
model_name: o,
|
|
7418
7418
|
get_i18n_config: !!n.VITE_APP_ENABLE_ZH_EN
|
|
7419
|
-
},
|
|
7419
|
+
}, d = {
|
|
7420
7420
|
org_id: e,
|
|
7421
7421
|
model_name: o,
|
|
7422
7422
|
api_url: `/${t}/query_${o}_list`
|
|
7423
|
-
},
|
|
7423
|
+
}, m = {};
|
|
7424
7424
|
if ([].includes(t)) {
|
|
7425
|
-
const
|
|
7426
|
-
|
|
7425
|
+
const y = await B(
|
|
7426
|
+
c,
|
|
7427
7427
|
"/sys/get_global_custom_data_by_flag_without_org_id"
|
|
7428
7428
|
);
|
|
7429
|
-
return
|
|
7429
|
+
return m.defaultConfig = {}, m.override = null, m.serverConfig = y || {}, m;
|
|
7430
7430
|
} else {
|
|
7431
|
-
const [
|
|
7431
|
+
const [y, f, C] = await Promise.all([
|
|
7432
7432
|
B(
|
|
7433
|
-
|
|
7433
|
+
s,
|
|
7434
7434
|
`/${t}/dev_get_column_config_and_remote_config_json`,
|
|
7435
7435
|
!1,
|
|
7436
7436
|
{
|
|
7437
7437
|
skip_error: !0
|
|
7438
7438
|
}
|
|
7439
7439
|
),
|
|
7440
|
-
B(
|
|
7440
|
+
B(d, `/${t}/override_column_config`, !1, {
|
|
7441
7441
|
skip_error: !0
|
|
7442
7442
|
}),
|
|
7443
|
-
B(
|
|
7443
|
+
B(c, "/sys/get_global_custom_data_by_flag_without_org_id")
|
|
7444
7444
|
]);
|
|
7445
|
-
return
|
|
7445
|
+
return m.defaultConfig = y || {}, m.override = f || {}, m.serverConfig = C || {}, m;
|
|
7446
7446
|
}
|
|
7447
|
-
}, To = (e, t, l, a, n
|
|
7448
|
-
var
|
|
7447
|
+
}, To = (e, t, l, a, n) => {
|
|
7448
|
+
var T, P, k, j, S, u, v, p;
|
|
7449
|
+
const { use_store: o = !0, to_i18n: i = !1, enable_btn: c = !1 } = n || {};
|
|
7449
7450
|
go();
|
|
7450
|
-
const
|
|
7451
|
-
let
|
|
7452
|
-
l &&
|
|
7453
|
-
const
|
|
7451
|
+
const s = o ? pl() : null;
|
|
7452
|
+
let d;
|
|
7453
|
+
l && s && s.cleanPageConfig(t), me[t] == null ? (console.log("remotePages3没有组件:" + t), s && s.setCustomConfig(t, {})) : (d = { ...me[t](a) }, s && s.setCustomConfig(t, d));
|
|
7454
|
+
const m = O({
|
|
7454
7455
|
title: "",
|
|
7455
7456
|
addModalTitle: "新建",
|
|
7456
7457
|
updateTitle: "修改",
|
|
@@ -7462,13 +7463,13 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7462
7463
|
// 是否有【删除】按钮
|
|
7463
7464
|
is_recover: pe(e + "-" + t.split("-")[1], "recover_")
|
|
7464
7465
|
// 是否有【恢复】按钮
|
|
7465
|
-
}),
|
|
7466
|
+
}), _ = {
|
|
7466
7467
|
rules: O({}),
|
|
7467
7468
|
fields: [],
|
|
7468
7469
|
settings: {},
|
|
7469
7470
|
model: O({}),
|
|
7470
7471
|
options: {}
|
|
7471
|
-
},
|
|
7472
|
+
}, y = {
|
|
7472
7473
|
is_selection: !1,
|
|
7473
7474
|
addData: J(e + "-" + t.split("-")[1], ["create_", ""]),
|
|
7474
7475
|
updateData: J(e + "-" + t.split("-")[1], ["update_", ""]),
|
|
@@ -7478,7 +7479,7 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7478
7479
|
queryData: J(e + "-" + t.split("-")[1], ["query_", "_list"]),
|
|
7479
7480
|
queryConditionGroupData: J(e + "-" + t.split("-")[1], ["query_", "_group"]),
|
|
7480
7481
|
getData: J(e + "-" + t.split("-")[1], ["get_", ""]),
|
|
7481
|
-
searchConfig:
|
|
7482
|
+
searchConfig: _,
|
|
7482
7483
|
base_search_condition_config_list: null,
|
|
7483
7484
|
default_search_condition_config_list: null,
|
|
7484
7485
|
condition_group_config_list: null,
|
|
@@ -7494,7 +7495,7 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7494
7495
|
globalSearch: null,
|
|
7495
7496
|
formModalConfig: null,
|
|
7496
7497
|
updateFormModalConfig: null,
|
|
7497
|
-
titleList:
|
|
7498
|
+
titleList: m,
|
|
7498
7499
|
api_fields: null,
|
|
7499
7500
|
btn_list: null,
|
|
7500
7501
|
head_btn_list: null,
|
|
@@ -7539,26 +7540,26 @@ const _t = (e) => eo(e).slice(-3), to = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7539
7540
|
i18n: null
|
|
7540
7541
|
};
|
|
7541
7542
|
if (l)
|
|
7542
|
-
Object.assign(
|
|
7543
|
+
Object.assign(y, l.defaultConfig), s && s.setDefaultConfig(t, y);
|
|
7543
7544
|
else {
|
|
7544
|
-
const
|
|
7545
|
-
|
|
7545
|
+
const I = s && s.getDefaultConfig(t);
|
|
7546
|
+
I && Object.assign(y, I);
|
|
7546
7547
|
}
|
|
7547
|
-
const
|
|
7548
|
-
let
|
|
7549
|
-
l ? (
|
|
7550
|
-
let
|
|
7551
|
-
if (l ? (
|
|
7552
|
-
const
|
|
7553
|
-
let
|
|
7554
|
-
const
|
|
7555
|
-
return
|
|
7556
|
-
|
|
7557
|
-
}),
|
|
7558
|
-
},
|
|
7559
|
-
|
|
7548
|
+
const f = ae.cloneDeep(y);
|
|
7549
|
+
let C = null;
|
|
7550
|
+
l ? (C = l.serverConfig, s && s.setServerConfig(t, C)) : C = s && s.getServerConfig(t), !(C != null && C.default_column_field) && ((T = C == null ? void 0 : C.searchConfig) != null && T.default_column_field) && ((k = (P = C == null ? void 0 : C.searchConfig) == null ? void 0 : P.default_column_field) == null ? void 0 : k.length) > 0 && (C.default_column_field = C.searchConfig.default_column_field), c || (delete C.btn_list, delete C.head_btn_list, delete C.batch_update_list), Object.assign(f, C);
|
|
7551
|
+
let x = null;
|
|
7552
|
+
if (l ? (x = l.override, s && x && s.setOverrideConfig(t, x)) : x = s && s.getOverrideConfig(t), x && fo(f, x), d && (so(f, d), d != null && d.default_column_field && ((j = d == null ? void 0 : d.default_column_field) == null ? void 0 : j.length) > 0 ? f.default_column_field = d == null ? void 0 : d.default_column_field : (S = d == null ? void 0 : d.searchConfig) != null && S.default_column_field && ((v = (u = d == null ? void 0 : d.searchConfig) == null ? void 0 : u.default_column_field) == null ? void 0 : v.length) > 0 && (f.default_column_field = (p = d == null ? void 0 : d.searchConfig) == null ? void 0 : p.default_column_field)), s && s.setMergedConfig(t, f), f.is_stripe) {
|
|
7553
|
+
const I = (D) => {
|
|
7554
|
+
let K = 0;
|
|
7555
|
+
const g = {};
|
|
7556
|
+
return D.forEach((h) => {
|
|
7557
|
+
h.color_index0 = 1, (g == null ? void 0 : g[h == null ? void 0 : h[f.is_stripe]]) == null && (g[h[f.is_stripe]] = K, K += 1, h.color_index0 = 0), h.color_index = g[h[f.is_stripe]];
|
|
7558
|
+
}), D;
|
|
7559
|
+
}, V = (D) => D.color_index0 == 1 ? { style: { background: "rgba(85,162,235,0.3)" } } : D.color_index % 2 == 0 ? { style: { background: "#FFFFFE" } } : { style: { background: "#FAFAFA" } };
|
|
7560
|
+
f.processData = I, f.customRow = V;
|
|
7560
7561
|
}
|
|
7561
|
-
return _o(
|
|
7562
|
+
return _o(f), i ? ro(f, a, t) : f;
|
|
7562
7563
|
};
|
|
7563
7564
|
export {
|
|
7564
7565
|
ho as getDefaultAndServerConfig,
|