@fle-ui/next 1.0.3 → 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/package_20211223145956.json +146 -0
- package/.history/package_20211223211341.json +146 -0
- package/.history/package_20211223220710.json +146 -0
- package/.history/package_20211223221147.json +146 -0
- package/.history/package_20211223221328.json +146 -0
- package/.history/package_20211223221445.json +146 -0
- package/dist/@fle-ui/next.css +2254 -2212
- package/dist/@fle-ui/next.css.map +1 -1
- package/dist/@fle-ui/next.js +1165 -1247
- package/dist/@fle-ui/next.js.map +1 -1
- package/dist/@fle-ui/next.min.css +2 -2
- 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~31d645aa.js +13 -16
- 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__upload__upload.md.js +6 -10
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_eert~demos_egami~demos_egas~1a5cf206.chunk.css +2 -2
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_eert~demos_egami~demos_egas~1a5cf206.js +1536 -1843
- package/docs-dist/demos_daolpu.chunk.css +2 -2
- package/docs-dist/demos_daolpu.js +2597 -2904
- package/docs-dist/demos_eert.js +1 -1
- package/docs-dist/demos_elbat.chunk.css +2 -2
- package/docs-dist/demos_elbat.js +645 -952
- package/docs-dist/demos_mrifnocpop.js +1 -1
- package/docs-dist/demos_mrof.js +0 -1
- package/docs-dist/demos_noitacifiton.js +1 -1
- package/docs-dist/demos_pot-kcab.js +9 -9
- package/docs-dist/demos_ratava.js +3 -3
- package/docs-dist/demos_redivorp-gifnoc.js +5 -5
- package/docs-dist/demos_rekcip-etad.js +2 -2
- package/docs-dist/demos_sbat.chunk.css +2 -2
- package/docs-dist/demos_sbat.js +2301 -2608
- package/docs-dist/demos_tupni.js +1 -1
- package/docs-dist/docs__story__index.md.js +22 -0
- package/docs-dist/umi.js +9 -8
- package/docs-dist/vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_eert~d~f20ff6ec.js +9204 -8936
- 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/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/table/style/index.css +3 -0
- 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/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/table/style/index.css +3 -0
- package/package.json +3 -2
- package/report.html +2 -2
@@ -108,7 +108,7 @@
|
|
108
108
|
? null
|
109
109
|
: p,
|
110
110
|
),
|
111
|
-
|
111
|
+
_ = Object(o['useRiddle'])(
|
112
112
|
(
|
113
113
|
null === (a = p.hideActions) || void 0 === a
|
114
114
|
? void 0
|
@@ -117,8 +117,8 @@
|
|
117
117
|
? null
|
118
118
|
: p,
|
119
119
|
),
|
120
|
-
|
121
|
-
y = u(
|
120
|
+
w = Object(o['useMotions'])(p.motions || [], d.current),
|
121
|
+
y = u(w, 2),
|
122
122
|
x = y[0],
|
123
123
|
N = y[1],
|
124
124
|
A = Object(o['useCopy'])(),
|
@@ -134,20 +134,20 @@
|
|
134
134
|
T = R[0],
|
135
135
|
B = R[1],
|
136
136
|
U = Object(n['useState'])(Boolean(p.defaultShowCode)),
|
137
|
-
|
138
|
-
|
139
|
-
z =
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
J =
|
137
|
+
q = u(U, 2),
|
138
|
+
Z = q[0],
|
139
|
+
z = q[1],
|
140
|
+
D = Object(n['useState'])(Math.random()),
|
141
|
+
F = u(D, 2),
|
142
|
+
H = F[0],
|
143
|
+
J = F[1],
|
144
144
|
$ = p.sources[S][T] || p.sources[S].content,
|
145
145
|
G = Object(o['useTSPlaygroundUrl'])(E, $),
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
function
|
146
|
+
X = Object(n['useRef'])(),
|
147
|
+
K = Object(o['usePrefersColor'])(),
|
148
|
+
Q = u(K, 1),
|
149
|
+
V = Q[0];
|
150
|
+
function W(e) {
|
151
151
|
P(e), B(f(e, p.sources[e]));
|
152
152
|
}
|
153
153
|
return (
|
@@ -155,7 +155,7 @@
|
|
155
155
|
function () {
|
156
156
|
J(Math.random());
|
157
157
|
},
|
158
|
-
[
|
158
|
+
[V],
|
159
159
|
),
|
160
160
|
l.a.createElement(
|
161
161
|
'div',
|
@@ -194,9 +194,9 @@
|
|
194
194
|
style: {
|
195
195
|
height: String(p.iframe).replace(/(\d)$/, '$1px'),
|
196
196
|
},
|
197
|
-
key:
|
197
|
+
key: H,
|
198
198
|
src: h,
|
199
|
-
ref:
|
199
|
+
ref: X,
|
200
200
|
})
|
201
201
|
: p.children,
|
202
202
|
),
|
@@ -227,12 +227,12 @@
|
|
227
227
|
role: 'codesandbox',
|
228
228
|
onClick: g,
|
229
229
|
}),
|
230
|
-
|
230
|
+
_ &&
|
231
231
|
l.a.createElement('button', {
|
232
232
|
title: 'Open demo on Riddle',
|
233
233
|
className: '__dumi-default-icon',
|
234
234
|
role: 'riddle',
|
235
|
-
onClick:
|
235
|
+
onClick: _,
|
236
236
|
}),
|
237
237
|
p.motions &&
|
238
238
|
l.a.createElement('button', {
|
@@ -277,7 +277,7 @@
|
|
277
277
|
},
|
278
278
|
}),
|
279
279
|
'tsx' === T &&
|
280
|
-
|
280
|
+
Z &&
|
281
281
|
l.a.createElement(
|
282
282
|
o['Link'],
|
283
283
|
{ target: '_blank', to: G },
|
@@ -291,16 +291,16 @@
|
|
291
291
|
l.a.createElement('button', {
|
292
292
|
title: 'Toggle source code panel',
|
293
293
|
className: '__dumi-default-icon'.concat(
|
294
|
-
|
294
|
+
Z ? ' __dumi-default-btn-expand' : '',
|
295
295
|
),
|
296
296
|
role: 'source',
|
297
297
|
type: 'button',
|
298
298
|
onClick: function () {
|
299
|
-
return z(!
|
299
|
+
return z(!Z);
|
300
300
|
},
|
301
301
|
}),
|
302
302
|
),
|
303
|
-
|
303
|
+
Z &&
|
304
304
|
l.a.createElement(
|
305
305
|
'div',
|
306
306
|
{ className: '__dumi-default-previewer-source-wrapper' },
|
@@ -312,7 +312,7 @@
|
|
312
312
|
prefixCls: '__dumi-default-tabs',
|
313
313
|
moreIcon: '\xb7\xb7\xb7',
|
314
314
|
defaultActiveKey: S,
|
315
|
-
onChange:
|
315
|
+
onChange: W,
|
316
316
|
},
|
317
317
|
Object.keys(p.sources).map(function (e) {
|
318
318
|
return l.a.createElement(r['a'], {
|
@@ -1018,8 +1018,8 @@
|
|
1018
1018
|
'\u3002',
|
1019
1019
|
),
|
1020
1020
|
l.a.createElement('img', {
|
1021
|
-
src: 'https://
|
1022
|
-
style: { boxShadow: 'none', margin: '0', width: '
|
1021
|
+
src: 'https://oss.elebuys.com/resource/fle-ui/202112231711360003662499.png',
|
1022
|
+
style: { boxShadow: 'none', margin: '0', width: '300px' },
|
1023
1023
|
alt: '\u79fb\u9664\u4e24\u4e2a\u6c49\u5b57\u4e4b\u95f4\u7684\u7a7a\u683c',
|
1024
1024
|
}),
|
1025
1025
|
l.a.createElement('style', {
|
@@ -3588,7 +3588,7 @@
|
|
3588
3588
|
n.a.createElement('style', {
|
3589
3589
|
dangerouslySetInnerHTML: {
|
3590
3590
|
__html:
|
3591
|
-
'\n.ant-form:not(.ant-form-inline):not(.ant-form-vertical) {\n max-width: 600px;\n}\n.markdown.api-container table td:nth-of-type(4) {\n white-space: nowrap;\n word-wrap: break-word;\n}\n.ant-btn {\n margin-right: 8px;\n}\n',
|
3591
|
+
'\n.ant-form:not(.ant-form-inline):not(.ant-form-vertical) {\n max-width: 600px;\n}\n.markdown.api-container table td:nth-of-type(4) {\n white-space: nowrap;\n word-wrap: break-word;\n}\n.__dumi-default-previewer-demo .ant-btn {\n margin-right: 8px;\n}\n\n',
|
3592
3592
|
},
|
3593
3593
|
}),
|
3594
3594
|
n.a.createElement(
|
@@ -876,7 +876,7 @@
|
|
876
876
|
l.a.createElement('style', {
|
877
877
|
dangerouslySetInnerHTML: {
|
878
878
|
__html:
|
879
|
-
'\n [data-theme="dark"] .site-layout-background {\n background: #141414;\n }\n [data-theme="dark"] .site-layout-header-background {\n background: #1f1f1f;\n }\n\n [data-theme="dark"] .site-layout-content {\n background: #141414;\n }\n\n [data-theme="dark"] .site-layout .site-layout-background {\n background: #141414;\n }\n\n [data-theme="dark"] .site-layout-sub-header-background {\n background: #141414;\n }\n\n #layout-basic {\n text-align: center;\n}\n#layout-basic .ant-layout-header,\n#layout-basic .ant-layout-footer {\n color: #fff;\n background: #7dbcea;\n}\n[data-theme="dark"] #layout-basic .ant-layout-header {\n background: #6aa0c7;\n}\n[data-theme="dark"] #layout-basic .ant-layout-footer {\n background: #6aa0c7;\n}\n#layout-basic .ant-layout-footer {\n line-height: 1.5;\n}\n#layout-basic .ant-layout-sider {\n color: #fff;\n line-height: 120px;\n background: #3ba0e9;\n}\n[data-theme="dark"] #layout-basic .ant-layout-sider {\n background: #3499ec;\n}\n#layout-basic .ant-layout-content {\n min-height: 120px;\n color: #fff;\n line-height: 120px;\n background: rgba(16, 142, 233, 1);\n}\n[data-theme="dark"] #layout-basic .ant-layout-content {\n background: #107bcb;\n}\n#layout-basic .ant-layout + .ant-layout {\n margin-top: 48px;\n}\n\n.site-layout-content {\n min-height: 280px;\n padding: 24px;\n background: #fff;\n}\n#layout-top .logo {\n float: left;\n width: 120px;\n height: 31px;\n margin: 16px 24px 16px 0;\n background: rgba(255, 255, 255, 0.3);\n}\n.ant-row-rtl #layout-top .logo {\n float: right;\n margin: 16px 0 16px 24px;\n}\n\n#layout-topside2 .logo {\n float: left;\n width: 120px;\n height: 31px;\n margin: 16px 24px 16px 0;\n background: rgba(255, 255, 255, 0.3);\n}\n\n.ant-row-rtl #layout-topside2 .logo {\n float: right;\n margin: 16px 0 16px 24px;\n}\n\n.site-layout-background {\n background: #fff;\n}\n \n\n#layout-topside .logo {\n float: left;\n width: 120px;\n height: 31px;\n margin: 16px 24px 16px 0;\n background: rgba(255, 255, 255, 0.3);\n}\n\n.ant-row-rtl #layout-topside .logo {\n float: right;\n margin: 16px 0 16px 24px;\n}\n\n.site-layout-background {\n background: #fff;\n}\n\n\n#layout-customtrigger .trigger {\n padding: 0 24px;\n font-size: 18px;\n line-height: 64px;\n cursor: pointer;\n transition: color 0.3s;\n}\n\n#layout-customtrigger .trigger:hover {\n color: #
|
879
|
+
'\n [data-theme="dark"] .site-layout-background {\n background: #141414;\n }\n [data-theme="dark"] .site-layout-header-background {\n background: #1f1f1f;\n }\n\n [data-theme="dark"] .site-layout-content {\n background: #141414;\n }\n\n [data-theme="dark"] .site-layout .site-layout-background {\n background: #141414;\n }\n\n [data-theme="dark"] .site-layout-sub-header-background {\n background: #141414;\n }\n\n #layout-basic {\n text-align: center;\n}\n#layout-basic .ant-layout-header,\n#layout-basic .ant-layout-footer {\n color: #fff;\n background: #7dbcea;\n}\n[data-theme="dark"] #layout-basic .ant-layout-header {\n background: #6aa0c7;\n}\n[data-theme="dark"] #layout-basic .ant-layout-footer {\n background: #6aa0c7;\n}\n#layout-basic .ant-layout-footer {\n line-height: 1.5;\n}\n#layout-basic .ant-layout-sider {\n color: #fff;\n line-height: 120px;\n background: #3ba0e9;\n}\n[data-theme="dark"] #layout-basic .ant-layout-sider {\n background: #3499ec;\n}\n#layout-basic .ant-layout-content {\n min-height: 120px;\n color: #fff;\n line-height: 120px;\n background: rgba(16, 142, 233, 1);\n}\n[data-theme="dark"] #layout-basic .ant-layout-content {\n background: #107bcb;\n}\n#layout-basic .ant-layout + .ant-layout {\n margin-top: 48px;\n}\n\n.site-layout-content {\n min-height: 280px;\n padding: 24px;\n background: #fff;\n}\n#layout-top .logo {\n float: left;\n width: 120px;\n height: 31px;\n margin: 16px 24px 16px 0;\n background: rgba(255, 255, 255, 0.3);\n}\n.ant-row-rtl #layout-top .logo {\n float: right;\n margin: 16px 0 16px 24px;\n}\n\n#layout-topside2 .logo {\n float: left;\n width: 120px;\n height: 31px;\n margin: 16px 24px 16px 0;\n background: rgba(255, 255, 255, 0.3);\n}\n\n.ant-row-rtl #layout-topside2 .logo {\n float: right;\n margin: 16px 0 16px 24px;\n}\n\n.site-layout-background {\n background: #fff;\n}\n \n\n#layout-topside .logo {\n float: left;\n width: 120px;\n height: 31px;\n margin: 16px 24px 16px 0;\n background: rgba(255, 255, 255, 0.3);\n}\n\n.ant-row-rtl #layout-topside .logo {\n float: right;\n margin: 16px 0 16px 24px;\n}\n\n.site-layout-background {\n background: #fff;\n}\n\n\n#layout-customtrigger .trigger {\n padding: 0 24px;\n font-size: 18px;\n line-height: 64px;\n cursor: pointer;\n transition: color 0.3s;\n}\n\n#layout-customtrigger .trigger:hover {\n color: #2c68ff;\n}\n\n#layout-customtrigger .logo {\n height: 32px;\n margin: 16px;\n background: rgba(255, 255, 255, 0.3);\n}\n\n.site-layout .site-layout-background {\n background: #fff;\n}\n\n\n#layout-responsive .logo {\n height: 32px;\n margin: 16px;\n background: rgba(255, 255, 255, 0.2);\n}\n\n.site-layout-sub-header-background {\n background: #fff;\n}\n\n.site-layout-background {\n background: #fff;\n}\n\n',
|
880
880
|
},
|
881
881
|
}),
|
882
882
|
),
|
@@ -30,7 +30,7 @@
|
|
30
30
|
k = n.a.memo(o['default']['modal-button-props'].component),
|
31
31
|
v = n.a.memo(o['default']['modal-hooks'].component),
|
32
32
|
x = n.a.memo(o['default']['modal-modal-render'].component),
|
33
|
-
|
33
|
+
y = n.a.memo(o['default']['modal-width'].component);
|
34
34
|
t['default'] = (e) => (
|
35
35
|
n.a.useEffect(() => {
|
36
36
|
var t;
|
@@ -405,7 +405,7 @@
|
|
405
405
|
n.a.createElement(
|
406
406
|
c['default'],
|
407
407
|
o['default']['modal-width'].previewerProps,
|
408
|
-
n.a.createElement(
|
408
|
+
n.a.createElement(y, null),
|
409
409
|
),
|
410
410
|
n.a.createElement(
|
411
411
|
'div',
|
@@ -1475,6 +1475,12 @@
|
|
1475
1475
|
),
|
1476
1476
|
' \u8fdb\u884c\u8bbe\u7f6e\u3002',
|
1477
1477
|
),
|
1478
|
+
n.a.createElement('style', {
|
1479
|
+
dangerouslySetInnerHTML: {
|
1480
|
+
__html:
|
1481
|
+
'\n\n .ant-modal-confirm-content p {\n margin-bottom: 3px !important;\n}\n\n',
|
1482
|
+
},
|
1483
|
+
}),
|
1478
1484
|
),
|
1479
1485
|
),
|
1480
1486
|
)
|
@@ -1579,7 +1585,7 @@
|
|
1579
1585
|
? null
|
1580
1586
|
: f,
|
1581
1587
|
),
|
1582
|
-
|
1588
|
+
y = Object(m['useRiddle'])(
|
1583
1589
|
(
|
1584
1590
|
null === (l = f.hideActions) || void 0 === l
|
1585
1591
|
? void 0
|
@@ -1588,16 +1594,16 @@
|
|
1588
1594
|
? null
|
1589
1595
|
: f,
|
1590
1596
|
),
|
1591
|
-
|
1592
|
-
M = d(
|
1597
|
+
N = Object(m['useMotions'])(f.motions || [], E.current),
|
1598
|
+
M = d(N, 2),
|
1593
1599
|
g = M[0],
|
1594
1600
|
w = M[1],
|
1595
1601
|
C = Object(m['useCopy'])(),
|
1596
1602
|
A = d(C, 2),
|
1597
1603
|
L = A[0],
|
1598
|
-
|
1599
|
-
|
1600
|
-
I = d(
|
1604
|
+
_ = A[1],
|
1605
|
+
P = Object(a['useState'])('_'),
|
1606
|
+
I = d(P, 2),
|
1601
1607
|
S = I[0],
|
1602
1608
|
O = I[1],
|
1603
1609
|
R = Object(a['useState'])(p(S, f.sources[S])),
|
@@ -1698,12 +1704,12 @@
|
|
1698
1704
|
role: 'codesandbox',
|
1699
1705
|
onClick: x,
|
1700
1706
|
}),
|
1701
|
-
|
1707
|
+
y &&
|
1702
1708
|
n.a.createElement('button', {
|
1703
1709
|
title: 'Open demo on Riddle',
|
1704
1710
|
className: '__dumi-default-icon',
|
1705
1711
|
role: 'riddle',
|
1706
|
-
onClick:
|
1712
|
+
onClick: y,
|
1707
1713
|
}),
|
1708
1714
|
f.motions &&
|
1709
1715
|
n.a.createElement('button', {
|
@@ -1742,7 +1748,7 @@
|
|
1742
1748
|
title: 'Copy source code',
|
1743
1749
|
className: '__dumi-default-icon',
|
1744
1750
|
role: 'copy',
|
1745
|
-
'data-status':
|
1751
|
+
'data-status': _,
|
1746
1752
|
onClick: function () {
|
1747
1753
|
return L(z);
|
1748
1754
|
},
|
@@ -1,14 +1,14 @@
|
|
1
1
|
(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
|
2
2
|
[46],
|
3
3
|
{
|
4
|
-
Hh86: function (e, t,
|
4
|
+
Hh86: function (e, t, n) {
|
5
5
|
'use strict';
|
6
|
-
|
7
|
-
var
|
8
|
-
l =
|
9
|
-
r =
|
10
|
-
c =
|
11
|
-
o =
|
6
|
+
n.r(t);
|
7
|
+
var a = n('q1tI'),
|
8
|
+
l = n.n(a),
|
9
|
+
r = n('dEAq'),
|
10
|
+
c = n('Zxc8'),
|
11
|
+
o = n('JjdP'),
|
12
12
|
i = l.a.memo(o['default']['popconfirm-basic'].component),
|
13
13
|
m = l.a.memo(o['default']['popconfirm-locale'].component),
|
14
14
|
d = l.a.memo(o['default']['popconfirm-placement'].component),
|
@@ -448,7 +448,7 @@
|
|
448
448
|
l.a.createElement('style', {
|
449
449
|
dangerouslySetInnerHTML: {
|
450
450
|
__html:
|
451
|
-
'\n.demo {\n overflow: auto;\n}\n.ant-popover-wrap > a {\n margin-right: 8px;\n}\n.ant-btn {\n margin-right: 8px;\n margin-bottom: 8px;\n}\n#popconfirm-placement .ant-btn {\n width: 70px;\n text-align: center;\n padding: 0;\n}\n',
|
451
|
+
'\n.demo {\n overflow: auto;\n}\n.ant-popover-wrap > a {\n margin-right: 8px;\n}\n\n.popconfirm-placement-demo .ant-btn {\n margin-right: 8px;\n margin-bottom: 8px;\n} \n \n#popconfirm-placement .ant-btn {\n width: 70px;\n text-align: center;\n padding: 0;\n}\n',
|
452
452
|
},
|
453
453
|
}),
|
454
454
|
),
|
@@ -456,25 +456,25 @@
|
|
456
456
|
)
|
457
457
|
);
|
458
458
|
},
|
459
|
-
MZF8: function (e, t,
|
459
|
+
MZF8: function (e, t, n) {
|
460
460
|
'use strict';
|
461
|
-
var
|
462
|
-
|
463
|
-
return
|
461
|
+
var a = n('ogwx');
|
462
|
+
n.d(t, 'a', function () {
|
463
|
+
return a['b'];
|
464
464
|
});
|
465
|
-
|
465
|
+
n('VCU9');
|
466
466
|
},
|
467
|
-
RZMt: function (e, t,
|
468
|
-
Zxc8: function (e, t,
|
467
|
+
RZMt: function (e, t, n) {},
|
468
|
+
Zxc8: function (e, t, n) {
|
469
469
|
'use strict';
|
470
|
-
|
471
|
-
var
|
472
|
-
l =
|
473
|
-
r =
|
474
|
-
c =
|
475
|
-
o =
|
476
|
-
i =
|
477
|
-
|
470
|
+
n.r(t);
|
471
|
+
var a = n('q1tI'),
|
472
|
+
l = n.n(a),
|
473
|
+
r = n('k3GJ'),
|
474
|
+
c = n('MZF8'),
|
475
|
+
o = n('dEAq'),
|
476
|
+
i = n('H1Ra');
|
477
|
+
n('RZMt');
|
478
478
|
function m(e, t) {
|
479
479
|
return p(e) || E(e, t) || u(e, t) || d();
|
480
480
|
}
|
@@ -486,13 +486,13 @@
|
|
486
486
|
function u(e, t) {
|
487
487
|
if (e) {
|
488
488
|
if ('string' === typeof e) return s(e, t);
|
489
|
-
var
|
489
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
490
490
|
return (
|
491
|
-
'Object' ===
|
492
|
-
'Map' ===
|
491
|
+
'Object' === n && e.constructor && (n = e.constructor.name),
|
492
|
+
'Map' === n || 'Set' === n
|
493
493
|
? Array.from(e)
|
494
|
-
: 'Arguments' ===
|
495
|
-
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(
|
494
|
+
: 'Arguments' === n ||
|
495
|
+
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
|
496
496
|
? s(e, t)
|
497
497
|
: void 0
|
498
498
|
);
|
@@ -500,29 +500,29 @@
|
|
500
500
|
}
|
501
501
|
function s(e, t) {
|
502
502
|
(null == t || t > e.length) && (t = e.length);
|
503
|
-
for (var
|
504
|
-
return
|
503
|
+
for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n];
|
504
|
+
return a;
|
505
505
|
}
|
506
506
|
function E(e, t) {
|
507
|
-
var
|
507
|
+
var n =
|
508
508
|
null == e
|
509
509
|
? null
|
510
510
|
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) ||
|
511
511
|
e['@@iterator'];
|
512
|
-
if (null !=
|
513
|
-
var
|
512
|
+
if (null != n) {
|
513
|
+
var a,
|
514
514
|
l,
|
515
515
|
r = [],
|
516
516
|
c = !0,
|
517
517
|
o = !1;
|
518
518
|
try {
|
519
|
-
for (
|
520
|
-
if ((r.push(
|
519
|
+
for (n = n.call(e); !(c = (a = n.next()).done); c = !0)
|
520
|
+
if ((r.push(a.value), t && r.length === t)) break;
|
521
521
|
} catch (i) {
|
522
522
|
(o = !0), (l = i);
|
523
523
|
} finally {
|
524
524
|
try {
|
525
|
-
c || null ==
|
525
|
+
c || null == n['return'] || n['return']();
|
526
526
|
} finally {
|
527
527
|
if (o) throw l;
|
528
528
|
}
|
@@ -534,17 +534,17 @@
|
|
534
534
|
if (Array.isArray(e)) return e;
|
535
535
|
}
|
536
536
|
function f(e, t) {
|
537
|
-
var
|
538
|
-
|
539
|
-
null === (
|
540
|
-
return
|
537
|
+
var n,
|
538
|
+
a =
|
539
|
+
null === (n = e.match(/\.(\w+)$/)) || void 0 === n ? void 0 : n[1];
|
540
|
+
return a || (a = t.tsx ? 'tsx' : 'jsx'), a;
|
541
541
|
}
|
542
542
|
var h = function (e) {
|
543
543
|
var t,
|
544
|
-
|
544
|
+
n,
|
545
545
|
d,
|
546
|
-
u = Object(
|
547
|
-
s = Object(
|
546
|
+
u = Object(a['useRef'])(),
|
547
|
+
s = Object(a['useContext'])(o['context']),
|
548
548
|
E = s.locale,
|
549
549
|
p = Object(o['useLocaleProps'])(E, e),
|
550
550
|
h = Object(o['useDemoUrl'])(p.identifier),
|
@@ -565,9 +565,9 @@
|
|
565
565
|
),
|
566
566
|
_ = Object(o['useRiddle'])(
|
567
567
|
(
|
568
|
-
null === (
|
568
|
+
null === (n = p.hideActions) || void 0 === n
|
569
569
|
? void 0
|
570
|
-
:
|
570
|
+
: n.includes('RIDDLE')
|
571
571
|
)
|
572
572
|
? null
|
573
573
|
: p,
|
@@ -580,25 +580,25 @@
|
|
580
580
|
I = m(A, 2),
|
581
581
|
j = I[0],
|
582
582
|
C = I[1],
|
583
|
-
L = Object(
|
583
|
+
L = Object(a['useState'])('_'),
|
584
584
|
O = m(L, 2),
|
585
585
|
P = O[0],
|
586
586
|
S = O[1],
|
587
|
-
R = Object(
|
587
|
+
R = Object(a['useState'])(f(P, p.sources[P])),
|
588
588
|
M = m(R, 2),
|
589
589
|
T = M[0],
|
590
590
|
B = M[1],
|
591
|
-
U = Object(
|
591
|
+
U = Object(a['useState'])(Boolean(p.defaultShowCode)),
|
592
592
|
Z = m(U, 2),
|
593
593
|
F = Z[0],
|
594
594
|
J = Z[1],
|
595
|
-
q = Object(
|
595
|
+
q = Object(a['useState'])(Math.random()),
|
596
596
|
H = m(q, 2),
|
597
597
|
$ = H[0],
|
598
598
|
D = H[1],
|
599
599
|
G = p.sources[P][T] || p.sources[P].content,
|
600
600
|
X = Object(o['useTSPlaygroundUrl'])(E, G),
|
601
|
-
K = Object(
|
601
|
+
K = Object(a['useRef'])(),
|
602
602
|
V = Object(o['usePrefersColor'])(),
|
603
603
|
z = m(V, 1),
|
604
604
|
Q = z[0];
|
@@ -606,7 +606,7 @@
|
|
606
606
|
S(e), B(f(e, p.sources[e]));
|
607
607
|
}
|
608
608
|
return (
|
609
|
-
Object(
|
609
|
+
Object(a['useEffect'])(
|
610
610
|
function () {
|
611
611
|
D(Math.random());
|
612
612
|
},
|
@@ -175,17 +175,13 @@
|
|
175
175
|
'\u793a\u4f8b',
|
176
176
|
),
|
177
177
|
'\u3002',
|
178
|
+
n.a.createElement(
|
179
|
+
c['default'],
|
180
|
+
m['default']['upload-avatar'].previewerProps,
|
181
|
+
n.a.createElement(i, null),
|
182
|
+
),
|
178
183
|
),
|
179
184
|
),
|
180
|
-
),
|
181
|
-
n.a.createElement(
|
182
|
-
c['default'],
|
183
|
-
m['default']['upload-avatar'].previewerProps,
|
184
|
-
n.a.createElement(i, null),
|
185
|
-
),
|
186
|
-
n.a.createElement(
|
187
|
-
'div',
|
188
|
-
{ className: 'markdown' },
|
189
185
|
n.a.createElement(
|
190
186
|
'h3',
|
191
187
|
{ id: '\u5df2\u4e0a\u4f20\u7684\u6587\u4ef6\u5217\u8868' },
|
@@ -1454,7 +1450,7 @@
|
|
1454
1450
|
n.a.createElement('style', {
|
1455
1451
|
dangerouslySetInnerHTML: {
|
1456
1452
|
__html:
|
1457
|
-
"\n.avatar-uploader > .ant-upload {\n width: 128px;\n height: 128px;\n}\n\n.upload-list-inline .ant-upload-list-item {\n float: left;\n width: 200px;\n margin-right: 8px;\n}\n\n.upload-list-inline [class*='-upload-list-rtl'] .ant-upload-list-item {\n float: right;\n}\n\n.ant-upload-draggable-list-item {\n border-top: 2px dashed rgba(0, 0, 0, 0);\n border-bottom: 2px dashed rgba(0, 0, 0, 0);\n}\n.ant-upload-draggable-list-item.drop-over-downward {\n border-bottom-color: #
|
1453
|
+
"\n.avatar-uploader > .ant-upload {\n width: 128px;\n height: 128px;\n}\n\n.upload-list-inline .ant-upload-list-item {\n float: left;\n width: 200px;\n margin-right: 8px;\n}\n\n.upload-list-inline [class*='-upload-list-rtl'] .ant-upload-list-item {\n float: right;\n}\n\n.ant-upload-draggable-list-item {\n border-top: 2px dashed rgba(0, 0, 0, 0);\n border-bottom: 2px dashed rgba(0, 0, 0, 0);\n}\n.ant-upload-draggable-list-item.drop-over-downward {\n border-bottom-color: #2c68ff;\n}\n.ant-upload-draggable-list-item.drop-over-upward {\n border-top-color: #2c68ff;\n}\n\n",
|
1458
1454
|
},
|
1459
1455
|
}),
|
1460
1456
|
),
|