@fle-ui/next 1.0.0 → 1.0.4-alpha.0
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/.history/.gitignore_20210922213827 +27 -0
- package/.history/.gitignore_20211029154108 +29 -0
- package/.history/.gitignore_20211029154109 +29 -0
- package/.history/.gitignore_20211029173434 +29 -0
- package/.history/.umirc_20210922213827.ts +153 -0
- package/.history/.umirc_20211018162341.ts +153 -0
- package/.history/{package_20211018113630.json → package_20211213140100.json} +7 -3
- package/.history/{package_20211018113634.json → package_20211223145956.json} +8 -3
- package/.history/{package_20211013165524.json → package_20211223211341.json} +9 -4
- package/.history/{package_20211018101440.json → package_20211223220710.json} +9 -4
- package/.history/package_20211223221147.json +146 -0
- package/.history/package_20211223221328.json +146 -0
- package/.history/package_20211223221445.json +146 -0
- package/.umirc.ts +2 -0
- package/dist/@fle-ui/next.css +2304 -2261
- package/dist/@fle-ui/next.css.map +1 -1
- package/dist/@fle-ui/next.js +1166 -1248
- package/dist/@fle-ui/next.js.map +1 -1
- package/dist/@fle-ui/next.min.css +3 -3
- package/dist/@fle-ui/next.min.css.map +1 -1
- package/dist/@fle-ui/next.min.js +3 -3
- package/dist/@fle-ui/next.min.js.map +1 -1
- package/docs-dist/{components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~00d1741d.js → components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~31d645aa.js} +2690 -1940
- package/docs-dist/components__avatar__avatar.md.js +227 -372
- package/docs-dist/components__button__button.md.js +27 -27
- package/docs-dist/components__form__form.md.js +1 -1
- package/docs-dist/components__layout__layout.md.js +1 -1
- package/docs-dist/components__modal__modal.md.js +17 -11
- package/docs-dist/components__popconfirm__popconfirm.md.js +51 -51
- package/docs-dist/components__skeleton__skeleton.md.chunk.css +1 -0
- package/docs-dist/components__skeleton__skeleton.md.js +1080 -0
- package/docs-dist/components__slider__slider.md.js +1 -1
- package/docs-dist/components__space__space.md.js +1 -1
- package/docs-dist/components__spin__spin.md.js +1 -1
- package/docs-dist/components__statistic__statistic.md.js +1 -1
- package/docs-dist/components__steps__steps.md.js +1 -1
- package/docs-dist/components__switch__switch.md.js +1 -1
- package/docs-dist/components__table__table.md.js +1 -1
- package/docs-dist/components__tabs__tabs.md.js +1 -1
- package/docs-dist/components__tag__tag.md.js +1 -1
- package/docs-dist/components__time-picker__time-picker.md.js +1 -1
- package/docs-dist/components__timeline__timeline.md.js +1 -1
- package/docs-dist/components__tooltip__tooltip.md.js +1 -1
- package/docs-dist/components__transfer__transfer.md.js +1 -1
- package/docs-dist/components__tree-select__tree-select.md.js +1 -1
- package/docs-dist/components__tree__tree.md.chunk.css +1 -0
- package/docs-dist/components__tree__tree.md.js +1775 -0
- package/docs-dist/components__typography__typography.md.js +1 -1
- package/docs-dist/components__upload__upload.md.js +7 -11
- package/docs-dist/demos_bmurcdaerb.js +1 -1
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_eert~demos_egami~demos_egas~1a5cf206.chunk.css +2 -0
- package/docs-dist/{demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.js → demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_eert~demos_egami~demos_egas~1a5cf206.js} +1536 -1843
- package/docs-dist/demos_citsitats.js +1 -1
- package/docs-dist/demos_daolpu.chunk.css +2 -2
- package/docs-dist/demos_daolpu.js +2598 -2905
- package/docs-dist/demos_dirg.js +1 -1
- package/docs-dist/demos_drac.js +1 -1
- package/docs-dist/demos_ecaps.js +1 -1
- package/docs-dist/demos_eert.chunk.css +1 -0
- package/docs-dist/demos_eert.js +1203 -0
- package/docs-dist/demos_egami.js +1 -1
- package/docs-dist/demos_egassem.js +1 -1
- package/docs-dist/demos_egdab.js +1 -1
- package/docs-dist/demos_elbat.chunk.css +2 -2
- package/docs-dist/demos_elbat.js +649 -956
- package/docs-dist/demos_enilemit.js +1 -1
- package/docs-dist/demos_espalloc.js +1 -1
- package/docs-dist/demos_etar.js +75 -70
- package/docs-dist/demos_etelpmoc-otua.js +1 -1
- package/docs-dist/demos_gat.js +1 -1
- package/docs-dist/demos_hctiws.js +1 -1
- package/docs-dist/demos_ladom.js +1 -1
- package/docs-dist/demos_lesuorac.js +1 -1
- package/docs-dist/demos_mrifnocpop.js +2 -2
- package/docs-dist/demos_mrof.js +1 -2
- package/docs-dist/demos_nips.js +1 -1
- package/docs-dist/demos_noitacifiton.js +2 -2
- package/docs-dist/demos_noitanigap.js +1 -1
- package/docs-dist/demos_noteleks.js +691 -0
- package/docs-dist/demos_nottub.js +1 -1
- package/docs-dist/demos_nwodpord.js +1 -1
- package/docs-dist/demos_oidar.js +1 -1
- package/docs-dist/demos_pitloot.js +1 -1
- package/docs-dist/demos_pot-kcab.js +10 -10
- package/docs-dist/demos_radnelac.js +1 -1
- package/docs-dist/demos_ratava.js +4 -4
- package/docs-dist/demos_rebmun-tupni.js +1 -1
- package/docs-dist/demos_redacsac.js +1 -1
- package/docs-dist/demos_redaeh-egap.js +1 -1
- package/docs-dist/demos_redils.js +1 -1
- package/docs-dist/demos_redivid.js +1 -1
- package/docs-dist/demos_redivorp-gifnoc.js +6 -6
- package/docs-dist/demos_refsnart.js +1 -1
- package/docs-dist/demos_rekcip-emit.js +1 -1
- package/docs-dist/demos_rekcip-etad.js +3 -3
- package/docs-dist/demos_revopop.js +1 -1
- package/docs-dist/demos_reward.js +1 -1
- package/docs-dist/demos_rohcna.js +1 -1
- package/docs-dist/demos_sbat.chunk.css +2 -2
- package/docs-dist/demos_sbat.js +2302 -2609
- package/docs-dist/demos_snoitnem.js +1 -1
- package/docs-dist/demos_snoitpircsed.js +1 -1
- package/docs-dist/demos_spets.js +1 -1
- package/docs-dist/demos_ssergorp.js +1 -1
- package/docs-dist/demos_tceles.js +1 -1
- package/docs-dist/demos_tluser.js +1 -1
- package/docs-dist/demos_tnemmoc.js +1 -1
- package/docs-dist/demos_trela.js +1 -1
- package/docs-dist/demos_tsil.js +1 -1
- package/docs-dist/demos_tuoyal.js +1 -1
- package/docs-dist/demos_tupni.js +2 -2
- package/docs-dist/demos_unem.js +1 -1
- package/docs-dist/demos_xiffa.js +1 -1
- package/docs-dist/demos_xobkcehc.js +1 -1
- package/docs-dist/demos_yhpargopyt.js +1 -1
- package/docs-dist/demos_ytpme.js +1 -1
- package/docs-dist/docs__document__getting-started.md.js +1 -1
- package/docs-dist/docs__document__introduce.md.js +1 -1
- package/docs-dist/docs__document__practical-projects.md.js +1 -1
- package/docs-dist/docs__index.md.js +1 -1
- package/docs-dist/docs__story__index.md.js +23 -1
- package/docs-dist/dumi_demos.js +1 -1
- package/docs-dist/umi.js +475 -242
- package/docs-dist/{vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.chunk.css → vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~06d8f7d3.chunk.css} +0 -0
- package/docs-dist/{vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.js → vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~06d8f7d3.js} +0 -0
- package/docs-dist/{vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~ac3aca9a.js → vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~11c8b8d8.js} +0 -0
- package/docs-dist/{vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~3ba4f4a1.js → vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~44483e31.js} +0 -0
- package/docs-dist/{vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_egami~~4cc402e9.js → vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_eert~d~f20ff6ec.js} +9204 -8936
- package/docs-dist/vendors~demos_gat.js +1 -1
- package/docs-dist/vendors~demos_ladom.js +1 -1
- package/docs-dist/vendors~demos_redivorp-gifnoc.js +1 -1
- package/docs-dist/vendors~demos_sbat.js +1 -1
- package/docs-dist/vendors~demos_trela.js +1 -1
- package/docs-dist/vendors~demos_tsil.js +1 -1
- package/docs-dist/vendors~demos_tuoyal.js +1 -1
- package/docs-dist/vendors~wrappers.js +1 -1
- package/docs-dist/wrappers.js +2 -2
- package/es/badge/style/index.css +5 -5
- package/es/cascader/index.d.ts +11 -129
- package/es/cascader/index.js +151 -534
- package/es/cascader/style/css.js +1 -1
- package/es/cascader/style/index.css +205 -180
- package/es/cascader/style/index.d.ts +1 -1
- package/es/cascader/style/index.js +1 -1
- package/es/cascader/style/index.less +66 -205
- package/es/cascader/style/rtl.less +10 -84
- package/es/drawer/style/index.css +1 -1
- package/es/input-number/style/index.css +18 -4
- package/es/input-number/style/index.less +15 -2
- package/es/input-number/style/rtl.less +24 -7
- package/es/modal/style/index.css +10 -9
- package/es/modal/style/modal.less +3 -2
- package/es/popover/style/index.css +2 -2
- package/es/progress/style/index.css +3 -3
- package/es/result/noFound.js +1 -1
- package/es/result/style/index.css +1 -1
- package/es/style/color/colors.less +3 -3
- package/es/style/theme.less +7 -4
- package/es/table/demo/drag-sorting/index.less +2 -2
- package/es/table/style/index.css +3 -0
- package/es/tag/style/index.css +5 -5
- package/es/tooltip/style/index.css +2 -2
- package/es/upload/style/index.css +2 -2
- package/es/upload/style/index.less +5 -3
- package/lib/badge/style/index.css +5 -5
- package/lib/cascader/index.d.ts +11 -129
- package/lib/cascader/index.js +153 -545
- package/lib/cascader/style/css.js +1 -1
- package/lib/cascader/style/index.css +205 -180
- package/lib/cascader/style/index.d.ts +1 -1
- package/lib/cascader/style/index.js +1 -1
- package/lib/cascader/style/index.less +66 -205
- package/lib/cascader/style/rtl.less +10 -84
- package/lib/drawer/style/index.css +1 -1
- package/lib/input-number/style/index.css +18 -4
- package/lib/input-number/style/index.less +15 -2
- package/lib/input-number/style/rtl.less +24 -7
- package/lib/modal/style/index.css +10 -9
- package/lib/modal/style/modal.less +3 -2
- package/lib/popover/style/index.css +2 -2
- package/lib/progress/style/index.css +3 -3
- package/lib/result/noFound.js +1 -1
- package/lib/result/style/index.css +1 -1
- package/lib/style/color/colors.less +3 -3
- package/lib/style/theme.less +7 -4
- package/lib/table/demo/drag-sorting/index.less +2 -2
- package/lib/table/style/index.css +3 -0
- package/lib/tag/style/index.css +5 -5
- package/lib/tooltip/style/index.css +2 -2
- package/lib/upload/style/index.css +2 -2
- package/lib/upload/style/index.less +5 -3
- package/package.json +3 -2
- package/report.html +2 -2
- package/.history/package_20211011190148.json +0 -141
- package/.history/package_20211011193053.json +0 -141
- package/.history/package_20211018113658.json +0 -141
- package/.history/package_20211018113740.json +0 -141
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.chunk.css +0 -2
@@ -0,0 +1,1203 @@
|
|
1
|
+
(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
|
2
|
+
[77],
|
3
|
+
{
|
4
|
+
'0O02': function (e, t, n) {},
|
5
|
+
'681f': function (e, t, n) {
|
6
|
+
'use strict';
|
7
|
+
n.r(t);
|
8
|
+
var a = n('tJVT'),
|
9
|
+
r = n('k1fw'),
|
10
|
+
c = n('m/eG'),
|
11
|
+
l = n('q1tI'),
|
12
|
+
o = n.n(l),
|
13
|
+
i = [
|
14
|
+
{ title: 'Expand to load', key: '0' },
|
15
|
+
{ title: 'Expand to load', key: '1' },
|
16
|
+
{ title: 'Tree Node', key: '2', isLeaf: !0 },
|
17
|
+
];
|
18
|
+
function s(e, t, n) {
|
19
|
+
return e.map((e) =>
|
20
|
+
e.key === t
|
21
|
+
? Object(r['a'])(Object(r['a'])({}, e), {}, { children: n })
|
22
|
+
: e.children
|
23
|
+
? Object(r['a'])(
|
24
|
+
Object(r['a'])({}, e),
|
25
|
+
{},
|
26
|
+
{ children: s(e.children, t, n) },
|
27
|
+
)
|
28
|
+
: e,
|
29
|
+
);
|
30
|
+
}
|
31
|
+
var d = () => {
|
32
|
+
var e = Object(l['useState'])(i),
|
33
|
+
t = Object(a['a'])(e, 2),
|
34
|
+
n = t[0],
|
35
|
+
r = t[1],
|
36
|
+
d = (e) => {
|
37
|
+
var t = e.key,
|
38
|
+
n = e.children;
|
39
|
+
return new Promise((e) => {
|
40
|
+
n
|
41
|
+
? e()
|
42
|
+
: setTimeout(() => {
|
43
|
+
r((e) =>
|
44
|
+
s(e, t, [
|
45
|
+
{ title: 'Child Node', key: ''.concat(t, '-0') },
|
46
|
+
{ title: 'Child Node', key: ''.concat(t, '-1') },
|
47
|
+
]),
|
48
|
+
),
|
49
|
+
e();
|
50
|
+
}, 1e3);
|
51
|
+
});
|
52
|
+
};
|
53
|
+
return o.a.createElement(c['fb'], { loadData: d, treeData: n });
|
54
|
+
};
|
55
|
+
t['default'] = d;
|
56
|
+
},
|
57
|
+
'6VBw': function (e, t, n) {
|
58
|
+
'use strict';
|
59
|
+
var a = n('VTBJ'),
|
60
|
+
r = n('ODXe'),
|
61
|
+
c = n('rePB'),
|
62
|
+
l = n('Ff2n'),
|
63
|
+
o = n('q1tI'),
|
64
|
+
i = n.n(o),
|
65
|
+
s = n('TSYQ'),
|
66
|
+
d = n.n(s),
|
67
|
+
u = Object(o['createContext'])({}),
|
68
|
+
f = u,
|
69
|
+
h = n('U8pU'),
|
70
|
+
m = n('AJpP'),
|
71
|
+
p = n('Kwbf'),
|
72
|
+
y = n('MNnm'),
|
73
|
+
v = 'rc-util-key';
|
74
|
+
function k(e) {
|
75
|
+
if (e.attachTo) return e.attachTo;
|
76
|
+
var t = document.querySelector('head');
|
77
|
+
return t || document.body;
|
78
|
+
}
|
79
|
+
function b(e) {
|
80
|
+
var t,
|
81
|
+
n =
|
82
|
+
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
|
83
|
+
if (!Object(y['a'])()) return null;
|
84
|
+
var a,
|
85
|
+
r = document.createElement('style');
|
86
|
+
(null === (t = n.csp) || void 0 === t ? void 0 : t.nonce) &&
|
87
|
+
(r.nonce = null === (a = n.csp) || void 0 === a ? void 0 : a.nonce);
|
88
|
+
r.innerHTML = e;
|
89
|
+
var c = k(n),
|
90
|
+
l = c.firstChild;
|
91
|
+
return (
|
92
|
+
n.prepend && c.prepend
|
93
|
+
? c.prepend(r)
|
94
|
+
: n.prepend && l
|
95
|
+
? c.insertBefore(r, l)
|
96
|
+
: c.appendChild(r),
|
97
|
+
r
|
98
|
+
);
|
99
|
+
}
|
100
|
+
var g = new Map();
|
101
|
+
function E(e, t) {
|
102
|
+
var n =
|
103
|
+
arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
|
104
|
+
a = k(n);
|
105
|
+
if (!g.has(a)) {
|
106
|
+
var r = b('', n),
|
107
|
+
c = r.parentNode;
|
108
|
+
g.set(a, c), c.removeChild(r);
|
109
|
+
}
|
110
|
+
var l = Array.from(g.get(a).children).find(function (e) {
|
111
|
+
return 'STYLE' === e.tagName && e[v] === t;
|
112
|
+
});
|
113
|
+
if (l) {
|
114
|
+
var o, i, s;
|
115
|
+
if (
|
116
|
+
(null === (o = n.csp) || void 0 === o ? void 0 : o.nonce) &&
|
117
|
+
l.nonce !==
|
118
|
+
(null === (i = n.csp) || void 0 === i ? void 0 : i.nonce)
|
119
|
+
)
|
120
|
+
l.nonce = null === (s = n.csp) || void 0 === s ? void 0 : s.nonce;
|
121
|
+
return l.innerHTML !== e && (l.innerHTML = e), l;
|
122
|
+
}
|
123
|
+
var d = b(e, n);
|
124
|
+
return (d[v] = t), d;
|
125
|
+
}
|
126
|
+
function C(e, t) {
|
127
|
+
Object(p['a'])(e, '[@ant-design/icons] '.concat(t));
|
128
|
+
}
|
129
|
+
function O(e) {
|
130
|
+
return (
|
131
|
+
'object' === Object(h['a'])(e) &&
|
132
|
+
'string' === typeof e.name &&
|
133
|
+
'string' === typeof e.theme &&
|
134
|
+
('object' === Object(h['a'])(e.icon) || 'function' === typeof e.icon)
|
135
|
+
);
|
136
|
+
}
|
137
|
+
function w() {
|
138
|
+
var e =
|
139
|
+
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
140
|
+
return Object.keys(e).reduce(function (t, n) {
|
141
|
+
var a = e[n];
|
142
|
+
switch (n) {
|
143
|
+
case 'class':
|
144
|
+
(t.className = a), delete t.class;
|
145
|
+
break;
|
146
|
+
default:
|
147
|
+
t[n] = a;
|
148
|
+
}
|
149
|
+
return t;
|
150
|
+
}, {});
|
151
|
+
}
|
152
|
+
function j(e, t, n) {
|
153
|
+
return n
|
154
|
+
? i.a.createElement(
|
155
|
+
e.tag,
|
156
|
+
Object(a['a'])(Object(a['a'])({ key: t }, w(e.attrs)), n),
|
157
|
+
(e.children || []).map(function (n, a) {
|
158
|
+
return j(n, ''.concat(t, '-').concat(e.tag, '-').concat(a));
|
159
|
+
}),
|
160
|
+
)
|
161
|
+
: i.a.createElement(
|
162
|
+
e.tag,
|
163
|
+
Object(a['a'])({ key: t }, w(e.attrs)),
|
164
|
+
(e.children || []).map(function (n, a) {
|
165
|
+
return j(n, ''.concat(t, '-').concat(e.tag, '-').concat(a));
|
166
|
+
}),
|
167
|
+
);
|
168
|
+
}
|
169
|
+
function x(e) {
|
170
|
+
return Object(m['generate'])(e)[0];
|
171
|
+
}
|
172
|
+
function T(e) {
|
173
|
+
return e ? (Array.isArray(e) ? e : [e]) : [];
|
174
|
+
}
|
175
|
+
var S =
|
176
|
+
'\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n',
|
177
|
+
z = function () {
|
178
|
+
var e =
|
179
|
+
arguments.length > 0 && void 0 !== arguments[0]
|
180
|
+
? arguments[0]
|
181
|
+
: S,
|
182
|
+
t = Object(o['useContext'])(f),
|
183
|
+
n = t.csp;
|
184
|
+
Object(o['useEffect'])(function () {
|
185
|
+
E(e, '@ant-design-icons', { prepend: !0, csp: n });
|
186
|
+
}, []);
|
187
|
+
},
|
188
|
+
I = [
|
189
|
+
'icon',
|
190
|
+
'className',
|
191
|
+
'onClick',
|
192
|
+
'style',
|
193
|
+
'primaryColor',
|
194
|
+
'secondaryColor',
|
195
|
+
],
|
196
|
+
N = { primaryColor: '#333', secondaryColor: '#E6E6E6', calculated: !1 };
|
197
|
+
function B(e) {
|
198
|
+
var t = e.primaryColor,
|
199
|
+
n = e.secondaryColor;
|
200
|
+
(N.primaryColor = t),
|
201
|
+
(N.secondaryColor = n || x(t)),
|
202
|
+
(N.calculated = !!n);
|
203
|
+
}
|
204
|
+
function D() {
|
205
|
+
return Object(a['a'])({}, N);
|
206
|
+
}
|
207
|
+
var A = function (e) {
|
208
|
+
var t = e.icon,
|
209
|
+
n = e.className,
|
210
|
+
r = e.onClick,
|
211
|
+
c = e.style,
|
212
|
+
o = e.primaryColor,
|
213
|
+
i = e.secondaryColor,
|
214
|
+
s = Object(l['a'])(e, I),
|
215
|
+
d = N;
|
216
|
+
if (
|
217
|
+
(o && (d = { primaryColor: o, secondaryColor: i || x(o) }),
|
218
|
+
z(),
|
219
|
+
C(O(t), 'icon should be icon definiton, but got '.concat(t)),
|
220
|
+
!O(t))
|
221
|
+
)
|
222
|
+
return null;
|
223
|
+
var u = t;
|
224
|
+
return (
|
225
|
+
u &&
|
226
|
+
'function' === typeof u.icon &&
|
227
|
+
(u = Object(a['a'])(
|
228
|
+
Object(a['a'])({}, u),
|
229
|
+
{},
|
230
|
+
{ icon: u.icon(d.primaryColor, d.secondaryColor) },
|
231
|
+
)),
|
232
|
+
j(
|
233
|
+
u.icon,
|
234
|
+
'svg-'.concat(u.name),
|
235
|
+
Object(a['a'])(
|
236
|
+
{
|
237
|
+
className: n,
|
238
|
+
onClick: r,
|
239
|
+
style: c,
|
240
|
+
'data-icon': u.name,
|
241
|
+
width: '1em',
|
242
|
+
height: '1em',
|
243
|
+
fill: 'currentColor',
|
244
|
+
'aria-hidden': 'true',
|
245
|
+
},
|
246
|
+
s,
|
247
|
+
),
|
248
|
+
)
|
249
|
+
);
|
250
|
+
};
|
251
|
+
(A.displayName = 'IconReact'),
|
252
|
+
(A.getTwoToneColors = D),
|
253
|
+
(A.setTwoToneColors = B);
|
254
|
+
var M = A;
|
255
|
+
function V(e) {
|
256
|
+
var t = T(e),
|
257
|
+
n = Object(r['a'])(t, 2),
|
258
|
+
a = n[0],
|
259
|
+
c = n[1];
|
260
|
+
return M.setTwoToneColors({ primaryColor: a, secondaryColor: c });
|
261
|
+
}
|
262
|
+
function L() {
|
263
|
+
var e = M.getTwoToneColors();
|
264
|
+
return e.calculated
|
265
|
+
? [e.primaryColor, e.secondaryColor]
|
266
|
+
: e.primaryColor;
|
267
|
+
}
|
268
|
+
var K = [
|
269
|
+
'className',
|
270
|
+
'icon',
|
271
|
+
'spin',
|
272
|
+
'rotate',
|
273
|
+
'tabIndex',
|
274
|
+
'onClick',
|
275
|
+
'twoToneColor',
|
276
|
+
];
|
277
|
+
V('#1890ff');
|
278
|
+
var q = o['forwardRef'](function (e, t) {
|
279
|
+
var n,
|
280
|
+
i = e.className,
|
281
|
+
s = e.icon,
|
282
|
+
u = e.spin,
|
283
|
+
h = e.rotate,
|
284
|
+
m = e.tabIndex,
|
285
|
+
p = e.onClick,
|
286
|
+
y = e.twoToneColor,
|
287
|
+
v = Object(l['a'])(e, K),
|
288
|
+
k = o['useContext'](f),
|
289
|
+
b = k.prefixCls,
|
290
|
+
g = void 0 === b ? 'anticon' : b,
|
291
|
+
E = d()(
|
292
|
+
g,
|
293
|
+
((n = {}),
|
294
|
+
Object(c['a'])(n, ''.concat(g, '-').concat(s.name), !!s.name),
|
295
|
+
Object(c['a'])(
|
296
|
+
n,
|
297
|
+
''.concat(g, '-spin'),
|
298
|
+
!!u || 'loading' === s.name,
|
299
|
+
),
|
300
|
+
n),
|
301
|
+
i,
|
302
|
+
),
|
303
|
+
C = m;
|
304
|
+
void 0 === C && p && (C = -1);
|
305
|
+
var O = h
|
306
|
+
? {
|
307
|
+
msTransform: 'rotate('.concat(h, 'deg)'),
|
308
|
+
transform: 'rotate('.concat(h, 'deg)'),
|
309
|
+
}
|
310
|
+
: void 0,
|
311
|
+
w = T(y),
|
312
|
+
j = Object(r['a'])(w, 2),
|
313
|
+
x = j[0],
|
314
|
+
S = j[1];
|
315
|
+
return o['createElement'](
|
316
|
+
'span',
|
317
|
+
Object(a['a'])(
|
318
|
+
Object(a['a'])({ role: 'img', 'aria-label': s.name }, v),
|
319
|
+
{},
|
320
|
+
{ ref: t, tabIndex: C, onClick: p, className: E },
|
321
|
+
),
|
322
|
+
o['createElement'](M, {
|
323
|
+
icon: s,
|
324
|
+
primaryColor: x,
|
325
|
+
secondaryColor: S,
|
326
|
+
style: O,
|
327
|
+
}),
|
328
|
+
);
|
329
|
+
});
|
330
|
+
(q.displayName = 'AntdIcon'),
|
331
|
+
(q.getTwoToneColor = L),
|
332
|
+
(q.setTwoToneColor = V);
|
333
|
+
t['a'] = q;
|
334
|
+
},
|
335
|
+
'8Skl': function (e, t, n) {
|
336
|
+
'use strict';
|
337
|
+
var a = n('VTBJ'),
|
338
|
+
r = n('q1tI'),
|
339
|
+
c = {
|
340
|
+
icon: {
|
341
|
+
tag: 'svg',
|
342
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
343
|
+
children: [
|
344
|
+
{
|
345
|
+
tag: 'path',
|
346
|
+
attrs: {
|
347
|
+
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',
|
348
|
+
},
|
349
|
+
},
|
350
|
+
],
|
351
|
+
},
|
352
|
+
name: 'down',
|
353
|
+
theme: 'outlined',
|
354
|
+
},
|
355
|
+
l = c,
|
356
|
+
o = n('6VBw'),
|
357
|
+
i = function (e, t) {
|
358
|
+
return r['createElement'](
|
359
|
+
o['a'],
|
360
|
+
Object(a['a'])(Object(a['a'])({}, e), {}, { ref: t, icon: l }),
|
361
|
+
);
|
362
|
+
};
|
363
|
+
i.displayName = 'DownOutlined';
|
364
|
+
t['a'] = r['forwardRef'](i);
|
365
|
+
},
|
366
|
+
JmqA: function (e, t, n) {
|
367
|
+
'use strict';
|
368
|
+
n.r(t);
|
369
|
+
var a = n('m/eG'),
|
370
|
+
r = n('q1tI'),
|
371
|
+
c = n.n(r),
|
372
|
+
l = n('8Skl');
|
373
|
+
class o extends c.a.Component {
|
374
|
+
constructor() {
|
375
|
+
super(...arguments),
|
376
|
+
(this.onSelect = (e, t) => {
|
377
|
+
console.log('selected', e, t);
|
378
|
+
});
|
379
|
+
}
|
380
|
+
render() {
|
381
|
+
return c.a.createElement(a['fb'], {
|
382
|
+
showLine: !0,
|
383
|
+
switcherIcon: c.a.createElement(l['a'], null),
|
384
|
+
defaultExpandedKeys: ['0-0-0'],
|
385
|
+
onSelect: this.onSelect,
|
386
|
+
treeData: [
|
387
|
+
{
|
388
|
+
title: 'parent 1',
|
389
|
+
key: '0-0',
|
390
|
+
children: [
|
391
|
+
{
|
392
|
+
title: 'parent 1-0',
|
393
|
+
key: '0-0-0',
|
394
|
+
children: [
|
395
|
+
{ title: 'leaf', key: '0-0-0-0' },
|
396
|
+
{ title: 'leaf', key: '0-0-0-1' },
|
397
|
+
{ title: 'leaf', key: '0-0-0-2' },
|
398
|
+
],
|
399
|
+
},
|
400
|
+
{
|
401
|
+
title: 'parent 1-1',
|
402
|
+
key: '0-0-1',
|
403
|
+
children: [{ title: 'leaf', key: '0-0-1-0' }],
|
404
|
+
},
|
405
|
+
{
|
406
|
+
title: 'parent 1-2',
|
407
|
+
key: '0-0-2',
|
408
|
+
children: [
|
409
|
+
{ title: 'leaf', key: '0-0-2-0' },
|
410
|
+
{ title: 'leaf', key: '0-0-2-1' },
|
411
|
+
],
|
412
|
+
},
|
413
|
+
],
|
414
|
+
},
|
415
|
+
],
|
416
|
+
});
|
417
|
+
}
|
418
|
+
}
|
419
|
+
t['default'] = o;
|
420
|
+
},
|
421
|
+
MSLN: function (e, t, n) {
|
422
|
+
'use strict';
|
423
|
+
n.r(t);
|
424
|
+
var a = n('m/eG'),
|
425
|
+
r = n('q1tI'),
|
426
|
+
c = n.n(r);
|
427
|
+
function l() {
|
428
|
+
for (
|
429
|
+
var e =
|
430
|
+
arguments.length > 0 && void 0 !== arguments[0]
|
431
|
+
? arguments[0]
|
432
|
+
: '0',
|
433
|
+
t =
|
434
|
+
arguments.length > 1 && void 0 !== arguments[1]
|
435
|
+
? arguments[1]
|
436
|
+
: 3,
|
437
|
+
n = [],
|
438
|
+
a = 0;
|
439
|
+
a < 10;
|
440
|
+
a += 1
|
441
|
+
) {
|
442
|
+
var r = ''.concat(e, '-').concat(a),
|
443
|
+
c = { title: r, key: r };
|
444
|
+
t > 0 && (c.children = l(r, t - 1)), n.push(c);
|
445
|
+
}
|
446
|
+
return n;
|
447
|
+
}
|
448
|
+
var o = l();
|
449
|
+
t['default'] = () =>
|
450
|
+
c.a.createElement(a['fb'], {
|
451
|
+
treeData: o,
|
452
|
+
height: 233,
|
453
|
+
defaultExpandAll: !0,
|
454
|
+
});
|
455
|
+
},
|
456
|
+
S8Fd: function (e, t, n) {
|
457
|
+
'use strict';
|
458
|
+
n.r(t);
|
459
|
+
var a = n('tJVT'),
|
460
|
+
r = n('q1tI'),
|
461
|
+
c = n.n(r),
|
462
|
+
l = n('m/eG'),
|
463
|
+
o = [
|
464
|
+
{
|
465
|
+
title: '0-0',
|
466
|
+
key: '0-0',
|
467
|
+
children: [
|
468
|
+
{
|
469
|
+
title: '0-0-0',
|
470
|
+
key: '0-0-0',
|
471
|
+
children: [
|
472
|
+
{ title: '0-0-0-0', key: '0-0-0-0' },
|
473
|
+
{ title: '0-0-0-1', key: '0-0-0-1' },
|
474
|
+
{ title: '0-0-0-2', key: '0-0-0-2' },
|
475
|
+
],
|
476
|
+
},
|
477
|
+
{
|
478
|
+
title: '0-0-1',
|
479
|
+
key: '0-0-1',
|
480
|
+
children: [
|
481
|
+
{ title: '0-0-1-0', key: '0-0-1-0' },
|
482
|
+
{ title: '0-0-1-1', key: '0-0-1-1' },
|
483
|
+
{ title: '0-0-1-2', key: '0-0-1-2' },
|
484
|
+
],
|
485
|
+
},
|
486
|
+
{ title: '0-0-2', key: '0-0-2' },
|
487
|
+
],
|
488
|
+
},
|
489
|
+
{
|
490
|
+
title: '0-1',
|
491
|
+
key: '0-1',
|
492
|
+
children: [
|
493
|
+
{ title: '0-1-0-0', key: '0-1-0-0' },
|
494
|
+
{ title: '0-1-0-1', key: '0-1-0-1' },
|
495
|
+
{ title: '0-1-0-2', key: '0-1-0-2' },
|
496
|
+
],
|
497
|
+
},
|
498
|
+
{ title: '0-2', key: '0-2' },
|
499
|
+
],
|
500
|
+
i = () => {
|
501
|
+
var e = Object(r['useState'])(['0-0-0', '0-0-1']),
|
502
|
+
t = Object(a['a'])(e, 2),
|
503
|
+
n = t[0],
|
504
|
+
i = t[1],
|
505
|
+
s = Object(r['useState'])(['0-0-0']),
|
506
|
+
d = Object(a['a'])(s, 2),
|
507
|
+
u = d[0],
|
508
|
+
f = d[1],
|
509
|
+
h = Object(r['useState'])([]),
|
510
|
+
m = Object(a['a'])(h, 2),
|
511
|
+
p = m[0],
|
512
|
+
y = m[1],
|
513
|
+
v = Object(r['useState'])(!0),
|
514
|
+
k = Object(a['a'])(v, 2),
|
515
|
+
b = k[0],
|
516
|
+
g = k[1],
|
517
|
+
E = (e) => {
|
518
|
+
console.log('onExpand', e), i(e), g(!1);
|
519
|
+
},
|
520
|
+
C = (e) => {
|
521
|
+
console.log('onCheck', e), f(e);
|
522
|
+
},
|
523
|
+
O = (e, t) => {
|
524
|
+
console.log('onSelect', t), y(e);
|
525
|
+
};
|
526
|
+
return c.a.createElement(l['fb'], {
|
527
|
+
checkable: !0,
|
528
|
+
onExpand: E,
|
529
|
+
expandedKeys: n,
|
530
|
+
autoExpandParent: b,
|
531
|
+
onCheck: C,
|
532
|
+
checkedKeys: u,
|
533
|
+
onSelect: O,
|
534
|
+
selectedKeys: p,
|
535
|
+
treeData: o,
|
536
|
+
});
|
537
|
+
};
|
538
|
+
t['default'] = i;
|
539
|
+
},
|
540
|
+
ePAT: function (e, t, n) {
|
541
|
+
'use strict';
|
542
|
+
var a = n('VTBJ'),
|
543
|
+
r = n('q1tI'),
|
544
|
+
c = {
|
545
|
+
icon: {
|
546
|
+
tag: 'svg',
|
547
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
548
|
+
children: [
|
549
|
+
{
|
550
|
+
tag: 'path',
|
551
|
+
attrs: {
|
552
|
+
d: 'M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z',
|
553
|
+
},
|
554
|
+
},
|
555
|
+
],
|
556
|
+
},
|
557
|
+
name: 'smile',
|
558
|
+
theme: 'outlined',
|
559
|
+
},
|
560
|
+
l = c,
|
561
|
+
o = n('6VBw'),
|
562
|
+
i = function (e, t) {
|
563
|
+
return r['createElement'](
|
564
|
+
o['a'],
|
565
|
+
Object(a['a'])(Object(a['a'])({}, e), {}, { ref: t, icon: l }),
|
566
|
+
);
|
567
|
+
};
|
568
|
+
i.displayName = 'SmileOutlined';
|
569
|
+
t['a'] = r['forwardRef'](i);
|
570
|
+
},
|
571
|
+
ghhL: function (e, t, n) {
|
572
|
+
'use strict';
|
573
|
+
n.r(t);
|
574
|
+
var a = n('m/eG'),
|
575
|
+
r = n('q1tI'),
|
576
|
+
c = n.n(r),
|
577
|
+
l = a['fb'].DirectoryTree,
|
578
|
+
o = [
|
579
|
+
{
|
580
|
+
title: 'parent 0',
|
581
|
+
key: '0-0',
|
582
|
+
children: [
|
583
|
+
{ title: 'leaf 0-0', key: '0-0-0', isLeaf: !0 },
|
584
|
+
{ title: 'leaf 0-1', key: '0-0-1', isLeaf: !0 },
|
585
|
+
],
|
586
|
+
},
|
587
|
+
{
|
588
|
+
title: 'parent 1',
|
589
|
+
key: '0-1',
|
590
|
+
children: [
|
591
|
+
{ title: 'leaf 1-0', key: '0-1-0', isLeaf: !0 },
|
592
|
+
{ title: 'leaf 1-1', key: '0-1-1', isLeaf: !0 },
|
593
|
+
],
|
594
|
+
},
|
595
|
+
],
|
596
|
+
i = () => {
|
597
|
+
var e = (e, t) => {
|
598
|
+
console.log('Trigger Select', e, t);
|
599
|
+
},
|
600
|
+
t = () => {
|
601
|
+
console.log('Trigger Expand');
|
602
|
+
};
|
603
|
+
return c.a.createElement(l, {
|
604
|
+
multiple: !0,
|
605
|
+
defaultExpandAll: !0,
|
606
|
+
onSelect: e,
|
607
|
+
onExpand: t,
|
608
|
+
treeData: o,
|
609
|
+
});
|
610
|
+
};
|
611
|
+
t['default'] = i;
|
612
|
+
},
|
613
|
+
hPKT: function (e, t, n) {
|
614
|
+
'use strict';
|
615
|
+
var a = n('VTBJ'),
|
616
|
+
r = n('q1tI'),
|
617
|
+
c = {
|
618
|
+
icon: {
|
619
|
+
tag: 'svg',
|
620
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
621
|
+
children: [
|
622
|
+
{
|
623
|
+
tag: 'path',
|
624
|
+
attrs: {
|
625
|
+
d: 'M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 008 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 008-8.4C667.6 600.3 597.5 533 512 533z',
|
626
|
+
},
|
627
|
+
},
|
628
|
+
],
|
629
|
+
},
|
630
|
+
name: 'frown',
|
631
|
+
theme: 'outlined',
|
632
|
+
},
|
633
|
+
l = c,
|
634
|
+
o = n('6VBw'),
|
635
|
+
i = function (e, t) {
|
636
|
+
return r['createElement'](
|
637
|
+
o['a'],
|
638
|
+
Object(a['a'])(Object(a['a'])({}, e), {}, { ref: t, icon: l }),
|
639
|
+
);
|
640
|
+
};
|
641
|
+
i.displayName = 'FrownOutlined';
|
642
|
+
t['a'] = r['forwardRef'](i);
|
643
|
+
},
|
644
|
+
jNkX: function (e, t, n) {
|
645
|
+
'use strict';
|
646
|
+
n.r(t);
|
647
|
+
var a = n('m/eG'),
|
648
|
+
r = n('q1tI'),
|
649
|
+
c = n.n(r),
|
650
|
+
l = n('ePAT'),
|
651
|
+
o = n('vzhh'),
|
652
|
+
i = n('VTBJ'),
|
653
|
+
s = {
|
654
|
+
icon: {
|
655
|
+
tag: 'svg',
|
656
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
657
|
+
children: [
|
658
|
+
{
|
659
|
+
tag: 'path',
|
660
|
+
attrs: {
|
661
|
+
d: 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 01-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 01-8 8.4zm24-224a48.01 48.01 0 010-96 48.01 48.01 0 010 96z',
|
662
|
+
},
|
663
|
+
},
|
664
|
+
],
|
665
|
+
},
|
666
|
+
name: 'frown',
|
667
|
+
theme: 'filled',
|
668
|
+
},
|
669
|
+
d = s,
|
670
|
+
u = n('6VBw'),
|
671
|
+
f = function (e, t) {
|
672
|
+
return r['createElement'](
|
673
|
+
u['a'],
|
674
|
+
Object(i['a'])(Object(i['a'])({}, e), {}, { ref: t, icon: d }),
|
675
|
+
);
|
676
|
+
};
|
677
|
+
f.displayName = 'FrownFilled';
|
678
|
+
var h = r['forwardRef'](f),
|
679
|
+
m = n('hPKT'),
|
680
|
+
p = n('8Skl'),
|
681
|
+
y = [
|
682
|
+
{
|
683
|
+
title: 'parent 1',
|
684
|
+
key: '0-0',
|
685
|
+
icon: c.a.createElement(l['a'], null),
|
686
|
+
children: [
|
687
|
+
{
|
688
|
+
title: 'leaf',
|
689
|
+
key: '0-0-0',
|
690
|
+
icon: c.a.createElement(o['a'], null),
|
691
|
+
},
|
692
|
+
{
|
693
|
+
title: 'leaf',
|
694
|
+
key: '0-0-1',
|
695
|
+
icon: (e) => {
|
696
|
+
var t = e.selected;
|
697
|
+
return t
|
698
|
+
? c.a.createElement(h, null)
|
699
|
+
: c.a.createElement(m['a'], null);
|
700
|
+
},
|
701
|
+
},
|
702
|
+
],
|
703
|
+
},
|
704
|
+
];
|
705
|
+
t['default'] = () =>
|
706
|
+
c.a.createElement(a['fb'], {
|
707
|
+
showIcon: !0,
|
708
|
+
defaultExpandAll: !0,
|
709
|
+
defaultSelectedKeys: ['0-0-0'],
|
710
|
+
switcherIcon: c.a.createElement(p['a'], null),
|
711
|
+
treeData: y,
|
712
|
+
});
|
713
|
+
},
|
714
|
+
jtjD: function (e, t, n) {
|
715
|
+
'use strict';
|
716
|
+
n.r(t);
|
717
|
+
var a = n('m/eG'),
|
718
|
+
r = n('q1tI'),
|
719
|
+
c = n.n(r),
|
720
|
+
l = (n('0O02'), a['A'].Search),
|
721
|
+
o = 3,
|
722
|
+
i = 2,
|
723
|
+
s = 1,
|
724
|
+
d = [],
|
725
|
+
u = (e, t, n) => {
|
726
|
+
for (var a = t || '0', r = n || d, c = [], l = 0; l < o; l++) {
|
727
|
+
var s = ''.concat(a, '-').concat(l);
|
728
|
+
r.push({ title: s, key: s }), l < i && c.push(s);
|
729
|
+
}
|
730
|
+
if (e < 0) return r;
|
731
|
+
var f = e - 1;
|
732
|
+
c.forEach((e, t) => ((r[t].children = []), u(f, e, r[t].children)));
|
733
|
+
};
|
734
|
+
u(s);
|
735
|
+
var f = [],
|
736
|
+
h = (e) => {
|
737
|
+
for (var t = 0; t < e.length; t++) {
|
738
|
+
var n = e[t],
|
739
|
+
a = n.key;
|
740
|
+
f.push({ key: a, title: a }), n.children && h(n.children);
|
741
|
+
}
|
742
|
+
};
|
743
|
+
h(d);
|
744
|
+
var m = (e, t) => {
|
745
|
+
for (var n, a = 0; a < t.length; a++) {
|
746
|
+
var r = t[a];
|
747
|
+
r.children &&
|
748
|
+
(r.children.some((t) => t.key === e)
|
749
|
+
? (n = r.key)
|
750
|
+
: m(e, r.children) && (n = m(e, r.children)));
|
751
|
+
}
|
752
|
+
return n;
|
753
|
+
};
|
754
|
+
class p extends c.a.Component {
|
755
|
+
constructor() {
|
756
|
+
super(...arguments),
|
757
|
+
(this.state = {
|
758
|
+
expandedKeys: [],
|
759
|
+
searchValue: '',
|
760
|
+
autoExpandParent: !0,
|
761
|
+
}),
|
762
|
+
(this.onExpand = (e) => {
|
763
|
+
this.setState({ expandedKeys: e, autoExpandParent: !1 });
|
764
|
+
}),
|
765
|
+
(this.onChange = (e) => {
|
766
|
+
var t = e.target.value,
|
767
|
+
n = f
|
768
|
+
.map((e) => (e.title.indexOf(t) > -1 ? m(e.key, d) : null))
|
769
|
+
.filter((e, t, n) => e && n.indexOf(e) === t);
|
770
|
+
this.setState({
|
771
|
+
expandedKeys: n,
|
772
|
+
searchValue: t,
|
773
|
+
autoExpandParent: !0,
|
774
|
+
});
|
775
|
+
});
|
776
|
+
}
|
777
|
+
render() {
|
778
|
+
var e = this.state,
|
779
|
+
t = e.searchValue,
|
780
|
+
n = e.expandedKeys,
|
781
|
+
r = e.autoExpandParent,
|
782
|
+
o = (e) =>
|
783
|
+
e.map((e) => {
|
784
|
+
var n = e.title.indexOf(t),
|
785
|
+
a = e.title.substr(0, n),
|
786
|
+
r = e.title.substr(n + t.length),
|
787
|
+
l =
|
788
|
+
n > -1
|
789
|
+
? c.a.createElement(
|
790
|
+
'span',
|
791
|
+
null,
|
792
|
+
a,
|
793
|
+
c.a.createElement(
|
794
|
+
'span',
|
795
|
+
{ className: 'site-tree-search-value' },
|
796
|
+
t,
|
797
|
+
),
|
798
|
+
r,
|
799
|
+
)
|
800
|
+
: c.a.createElement('span', null, e.title);
|
801
|
+
return e.children
|
802
|
+
? { title: l, key: e.key, children: o(e.children) }
|
803
|
+
: { title: l, key: e.key };
|
804
|
+
});
|
805
|
+
return c.a.createElement(
|
806
|
+
'div',
|
807
|
+
null,
|
808
|
+
c.a.createElement(l, {
|
809
|
+
style: { marginBottom: 8 },
|
810
|
+
placeholder: 'Search',
|
811
|
+
onChange: this.onChange,
|
812
|
+
}),
|
813
|
+
c.a.createElement(a['fb'], {
|
814
|
+
onExpand: this.onExpand,
|
815
|
+
expandedKeys: n,
|
816
|
+
autoExpandParent: r,
|
817
|
+
treeData: o(d),
|
818
|
+
}),
|
819
|
+
);
|
820
|
+
}
|
821
|
+
}
|
822
|
+
t['default'] = p;
|
823
|
+
},
|
824
|
+
kvYr: function (e, t, n) {
|
825
|
+
'use strict';
|
826
|
+
n.r(t);
|
827
|
+
var a = n('tJVT'),
|
828
|
+
r = n('q1tI'),
|
829
|
+
c = n.n(r),
|
830
|
+
l = n('m/eG'),
|
831
|
+
o = n('VTBJ'),
|
832
|
+
i = {
|
833
|
+
icon: {
|
834
|
+
tag: 'svg',
|
835
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
836
|
+
children: [
|
837
|
+
{
|
838
|
+
tag: 'path',
|
839
|
+
attrs: {
|
840
|
+
d: 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z',
|
841
|
+
},
|
842
|
+
},
|
843
|
+
],
|
844
|
+
},
|
845
|
+
name: 'carry-out',
|
846
|
+
theme: 'outlined',
|
847
|
+
},
|
848
|
+
s = i,
|
849
|
+
d = n('6VBw'),
|
850
|
+
u = function (e, t) {
|
851
|
+
return r['createElement'](
|
852
|
+
d['a'],
|
853
|
+
Object(o['a'])(Object(o['a'])({}, e), {}, { ref: t, icon: s }),
|
854
|
+
);
|
855
|
+
};
|
856
|
+
u.displayName = 'CarryOutOutlined';
|
857
|
+
var f = r['forwardRef'](u),
|
858
|
+
h = {
|
859
|
+
icon: {
|
860
|
+
tag: 'svg',
|
861
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
862
|
+
children: [
|
863
|
+
{
|
864
|
+
tag: 'path',
|
865
|
+
attrs: {
|
866
|
+
d: 'M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z',
|
867
|
+
},
|
868
|
+
},
|
869
|
+
{
|
870
|
+
tag: 'path',
|
871
|
+
attrs: {
|
872
|
+
d: 'M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z',
|
873
|
+
},
|
874
|
+
},
|
875
|
+
],
|
876
|
+
},
|
877
|
+
name: 'form',
|
878
|
+
theme: 'outlined',
|
879
|
+
},
|
880
|
+
m = h,
|
881
|
+
p = function (e, t) {
|
882
|
+
return r['createElement'](
|
883
|
+
d['a'],
|
884
|
+
Object(o['a'])(Object(o['a'])({}, e), {}, { ref: t, icon: m }),
|
885
|
+
);
|
886
|
+
};
|
887
|
+
p.displayName = 'FormOutlined';
|
888
|
+
var y = r['forwardRef'](p),
|
889
|
+
v = [
|
890
|
+
{
|
891
|
+
title: 'parent 1',
|
892
|
+
key: '0-0',
|
893
|
+
icon: c.a.createElement(f, null),
|
894
|
+
children: [
|
895
|
+
{
|
896
|
+
title: 'parent 1-0',
|
897
|
+
key: '0-0-0',
|
898
|
+
icon: c.a.createElement(f, null),
|
899
|
+
children: [
|
900
|
+
{
|
901
|
+
title: 'leaf',
|
902
|
+
key: '0-0-0-0',
|
903
|
+
icon: c.a.createElement(f, null),
|
904
|
+
},
|
905
|
+
{
|
906
|
+
title: c.a.createElement(
|
907
|
+
c.a.Fragment,
|
908
|
+
null,
|
909
|
+
c.a.createElement('div', null, 'multiple line title'),
|
910
|
+
c.a.createElement('div', null, 'multiple line title'),
|
911
|
+
),
|
912
|
+
key: '0-0-0-1',
|
913
|
+
icon: c.a.createElement(f, null),
|
914
|
+
},
|
915
|
+
{
|
916
|
+
title: 'leaf',
|
917
|
+
key: '0-0-0-2',
|
918
|
+
icon: c.a.createElement(f, null),
|
919
|
+
},
|
920
|
+
],
|
921
|
+
},
|
922
|
+
{
|
923
|
+
title: 'parent 1-1',
|
924
|
+
key: '0-0-1',
|
925
|
+
icon: c.a.createElement(f, null),
|
926
|
+
children: [
|
927
|
+
{
|
928
|
+
title: 'leaf',
|
929
|
+
key: '0-0-1-0',
|
930
|
+
icon: c.a.createElement(f, null),
|
931
|
+
},
|
932
|
+
],
|
933
|
+
},
|
934
|
+
{
|
935
|
+
title: 'parent 1-2',
|
936
|
+
key: '0-0-2',
|
937
|
+
icon: c.a.createElement(f, null),
|
938
|
+
children: [
|
939
|
+
{
|
940
|
+
title: 'leaf',
|
941
|
+
key: '0-0-2-0',
|
942
|
+
icon: c.a.createElement(f, null),
|
943
|
+
},
|
944
|
+
{
|
945
|
+
title: 'leaf',
|
946
|
+
key: '0-0-2-1',
|
947
|
+
icon: c.a.createElement(f, null),
|
948
|
+
switcherIcon: c.a.createElement(y, null),
|
949
|
+
},
|
950
|
+
],
|
951
|
+
},
|
952
|
+
],
|
953
|
+
},
|
954
|
+
{
|
955
|
+
title: 'parent 2',
|
956
|
+
key: '0-1',
|
957
|
+
icon: c.a.createElement(f, null),
|
958
|
+
children: [
|
959
|
+
{
|
960
|
+
title: 'parent 2-0',
|
961
|
+
key: '0-1-0',
|
962
|
+
icon: c.a.createElement(f, null),
|
963
|
+
children: [
|
964
|
+
{
|
965
|
+
title: 'leaf',
|
966
|
+
key: '0-1-0-0',
|
967
|
+
icon: c.a.createElement(f, null),
|
968
|
+
},
|
969
|
+
{
|
970
|
+
title: 'leaf',
|
971
|
+
key: '0-1-0-1',
|
972
|
+
icon: c.a.createElement(f, null),
|
973
|
+
},
|
974
|
+
],
|
975
|
+
},
|
976
|
+
],
|
977
|
+
},
|
978
|
+
],
|
979
|
+
k = () => {
|
980
|
+
var e = Object(r['useState'])(!0),
|
981
|
+
t = Object(a['a'])(e, 2),
|
982
|
+
n = t[0],
|
983
|
+
o = t[1],
|
984
|
+
i = Object(r['useState'])(!1),
|
985
|
+
s = Object(a['a'])(i, 2),
|
986
|
+
d = s[0],
|
987
|
+
u = s[1],
|
988
|
+
f = Object(r['useState'])(!0),
|
989
|
+
h = Object(a['a'])(f, 2),
|
990
|
+
m = h[0],
|
991
|
+
p = h[1],
|
992
|
+
y = (e, t) => {
|
993
|
+
console.log('selected', e, t);
|
994
|
+
},
|
995
|
+
k = (e) => {
|
996
|
+
p(e), o({ showLeafIcon: e });
|
997
|
+
},
|
998
|
+
b = (e) => {
|
999
|
+
o(!!e && { showLeafIcon: m });
|
1000
|
+
};
|
1001
|
+
return c.a.createElement(
|
1002
|
+
'div',
|
1003
|
+
null,
|
1004
|
+
c.a.createElement(
|
1005
|
+
'div',
|
1006
|
+
{ style: { marginBottom: 16 } },
|
1007
|
+
'showLine: ',
|
1008
|
+
c.a.createElement(l['X'], { checked: !!n, onChange: b }),
|
1009
|
+
c.a.createElement('br', null),
|
1010
|
+
c.a.createElement('br', null),
|
1011
|
+
'showIcon: ',
|
1012
|
+
c.a.createElement(l['X'], { checked: d, onChange: u }),
|
1013
|
+
c.a.createElement('br', null),
|
1014
|
+
c.a.createElement('br', null),
|
1015
|
+
'showLeafIcon: ',
|
1016
|
+
c.a.createElement(l['X'], { checked: m, onChange: k }),
|
1017
|
+
),
|
1018
|
+
c.a.createElement(l['fb'], {
|
1019
|
+
showLine: n,
|
1020
|
+
showIcon: d,
|
1021
|
+
defaultExpandedKeys: ['0-0-0'],
|
1022
|
+
onSelect: y,
|
1023
|
+
treeData: v,
|
1024
|
+
}),
|
1025
|
+
);
|
1026
|
+
};
|
1027
|
+
t['default'] = k;
|
1028
|
+
},
|
1029
|
+
vzhh: function (e, t, n) {
|
1030
|
+
'use strict';
|
1031
|
+
var a = n('VTBJ'),
|
1032
|
+
r = n('q1tI'),
|
1033
|
+
c = {
|
1034
|
+
icon: {
|
1035
|
+
tag: 'svg',
|
1036
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
1037
|
+
children: [
|
1038
|
+
{
|
1039
|
+
tag: 'path',
|
1040
|
+
attrs: {
|
1041
|
+
d: 'M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z',
|
1042
|
+
},
|
1043
|
+
},
|
1044
|
+
],
|
1045
|
+
},
|
1046
|
+
name: 'meh',
|
1047
|
+
theme: 'outlined',
|
1048
|
+
},
|
1049
|
+
l = c,
|
1050
|
+
o = n('6VBw'),
|
1051
|
+
i = function (e, t) {
|
1052
|
+
return r['createElement'](
|
1053
|
+
o['a'],
|
1054
|
+
Object(a['a'])(Object(a['a'])({}, e), {}, { ref: t, icon: l }),
|
1055
|
+
);
|
1056
|
+
};
|
1057
|
+
i.displayName = 'MehOutlined';
|
1058
|
+
t['a'] = r['forwardRef'](i);
|
1059
|
+
},
|
1060
|
+
wbYG: function (e, t, n) {
|
1061
|
+
'use strict';
|
1062
|
+
n.r(t);
|
1063
|
+
var a = n('m/eG'),
|
1064
|
+
r = n('q1tI'),
|
1065
|
+
c = n.n(r),
|
1066
|
+
l = [
|
1067
|
+
{
|
1068
|
+
title: 'parent 1',
|
1069
|
+
key: '0-0',
|
1070
|
+
children: [
|
1071
|
+
{
|
1072
|
+
title: 'parent 1-0',
|
1073
|
+
key: '0-0-0',
|
1074
|
+
disabled: !0,
|
1075
|
+
children: [
|
1076
|
+
{ title: 'leaf', key: '0-0-0-0', disableCheckbox: !0 },
|
1077
|
+
{ title: 'leaf', key: '0-0-0-1' },
|
1078
|
+
],
|
1079
|
+
},
|
1080
|
+
{
|
1081
|
+
title: 'parent 1-1',
|
1082
|
+
key: '0-0-1',
|
1083
|
+
children: [
|
1084
|
+
{
|
1085
|
+
title: c.a.createElement(
|
1086
|
+
'span',
|
1087
|
+
{ style: { color: '#2c68ff' } },
|
1088
|
+
'sss',
|
1089
|
+
),
|
1090
|
+
key: '0-0-1-0',
|
1091
|
+
},
|
1092
|
+
],
|
1093
|
+
},
|
1094
|
+
],
|
1095
|
+
},
|
1096
|
+
],
|
1097
|
+
o = () => {
|
1098
|
+
var e = (e, t) => {
|
1099
|
+
console.log('selected', e, t);
|
1100
|
+
},
|
1101
|
+
t = (e, t) => {
|
1102
|
+
console.log('onCheck', e, t);
|
1103
|
+
};
|
1104
|
+
return c.a.createElement(a['fb'], {
|
1105
|
+
checkable: !0,
|
1106
|
+
defaultExpandedKeys: ['0-0-0', '0-0-1'],
|
1107
|
+
defaultSelectedKeys: ['0-0-0', '0-0-1'],
|
1108
|
+
defaultCheckedKeys: ['0-0-0', '0-0-1'],
|
1109
|
+
onSelect: e,
|
1110
|
+
onCheck: t,
|
1111
|
+
treeData: l,
|
1112
|
+
});
|
1113
|
+
};
|
1114
|
+
t['default'] = o;
|
1115
|
+
},
|
1116
|
+
xMJ2: function (e, t, n) {
|
1117
|
+
'use strict';
|
1118
|
+
n.r(t);
|
1119
|
+
var a = n('m/eG'),
|
1120
|
+
r = n('q1tI'),
|
1121
|
+
c = n.n(r),
|
1122
|
+
l = 3,
|
1123
|
+
o = 2,
|
1124
|
+
i = 1,
|
1125
|
+
s = [],
|
1126
|
+
d = (e, t, n) => {
|
1127
|
+
for (var a = t || '0', r = n || s, c = [], i = 0; i < l; i++) {
|
1128
|
+
var u = ''.concat(a, '-').concat(i);
|
1129
|
+
r.push({ title: u, key: u }), i < o && c.push(u);
|
1130
|
+
}
|
1131
|
+
if (e < 0) return r;
|
1132
|
+
var f = e - 1;
|
1133
|
+
c.forEach((e, t) => ((r[t].children = []), d(f, e, r[t].children)));
|
1134
|
+
};
|
1135
|
+
d(i);
|
1136
|
+
class u extends c.a.Component {
|
1137
|
+
constructor() {
|
1138
|
+
super(...arguments),
|
1139
|
+
(this.state = {
|
1140
|
+
gData: s,
|
1141
|
+
expandedKeys: ['0-0', '0-0-0', '0-0-0-0'],
|
1142
|
+
}),
|
1143
|
+
(this.onDragEnter = (e) => {
|
1144
|
+
console.log(e);
|
1145
|
+
}),
|
1146
|
+
(this.onDrop = (e) => {
|
1147
|
+
console.log(e);
|
1148
|
+
var t,
|
1149
|
+
n = e.node.key,
|
1150
|
+
a = e.dragNode.key,
|
1151
|
+
r = e.node.pos.split('-'),
|
1152
|
+
c = e.dropPosition - Number(r[r.length - 1]),
|
1153
|
+
l = (e, t, n) => {
|
1154
|
+
for (var a = 0; a < e.length; a++) {
|
1155
|
+
if (e[a].key === t) return n(e[a], a, e);
|
1156
|
+
e[a].children && l(e[a].children, t, n);
|
1157
|
+
}
|
1158
|
+
},
|
1159
|
+
o = [...this.state.gData];
|
1160
|
+
if (
|
1161
|
+
(l(o, a, (e, n, a) => {
|
1162
|
+
a.splice(n, 1), (t = e);
|
1163
|
+
}),
|
1164
|
+
e.dropToGap)
|
1165
|
+
)
|
1166
|
+
if (
|
1167
|
+
(e.node.props.children || []).length > 0 &&
|
1168
|
+
e.node.props.expanded &&
|
1169
|
+
1 === c
|
1170
|
+
)
|
1171
|
+
l(o, n, (e) => {
|
1172
|
+
(e.children = e.children || []), e.children.unshift(t);
|
1173
|
+
});
|
1174
|
+
else {
|
1175
|
+
var i, s;
|
1176
|
+
l(o, n, (e, t, n) => {
|
1177
|
+
(i = n), (s = t);
|
1178
|
+
}),
|
1179
|
+
-1 === c ? i.splice(s, 0, t) : i.splice(s + 1, 0, t);
|
1180
|
+
}
|
1181
|
+
else
|
1182
|
+
l(o, n, (e) => {
|
1183
|
+
(e.children = e.children || []), e.children.unshift(t);
|
1184
|
+
});
|
1185
|
+
this.setState({ gData: o });
|
1186
|
+
});
|
1187
|
+
}
|
1188
|
+
render() {
|
1189
|
+
return c.a.createElement(a['fb'], {
|
1190
|
+
className: 'draggable-tree',
|
1191
|
+
defaultExpandedKeys: this.state.expandedKeys,
|
1192
|
+
draggable: !0,
|
1193
|
+
blockNode: !0,
|
1194
|
+
onDragEnter: this.onDragEnter,
|
1195
|
+
onDrop: this.onDrop,
|
1196
|
+
treeData: this.state.gData,
|
1197
|
+
});
|
1198
|
+
}
|
1199
|
+
}
|
1200
|
+
t['default'] = u;
|
1201
|
+
},
|
1202
|
+
},
|
1203
|
+
]);
|