@nutui/nutui-react-taro 2.0.0-alpha.0 → 2.0.0-alpha.2
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/CHANGELOG.md +35 -627
- package/dist/esm/ActionSheet.js +3 -3
- package/dist/esm/Address.js +4 -4
- package/dist/esm/Animate.js +2 -3
- package/dist/esm/Badge.js +1 -3
- package/dist/esm/Calendar.js +5 -5
- package/dist/esm/Cascader.js +4 -4
- package/dist/esm/Col.js +2 -1
- package/dist/esm/DatePicker.js +5 -5
- package/dist/esm/Divider.js +2 -1
- package/dist/esm/Drag.js +2 -3
- package/dist/esm/Elevator.js +3 -3
- package/dist/esm/ImagePreview.js +5 -5
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/MenuItem.js +3 -4
- package/dist/esm/NavBar.js +1 -4
- package/dist/esm/NumberKeyboard.js +3 -3
- package/dist/esm/Picker.js +4 -4
- package/dist/esm/Popup.js +2 -4
- package/dist/esm/Progress.js +1 -4
- package/dist/esm/Row.js +2 -1
- package/dist/esm/ShortPassword.js +3 -3
- package/dist/esm/SideNavBar.js +3 -8
- package/dist/esm/TimeSelect.js +4 -4
- package/dist/esm/Uploader.js +2 -4
- package/dist/esm/{actionsheet.taro-b76a342e.js → actionsheet.taro-10cc53ee.js} +1 -1
- package/dist/esm/{address.taro-1812caeb.js → address.taro-2f915873.js} +3 -3
- package/dist/esm/{animate.taro-fb7986d6.js → animate.taro-9e65d07a.js} +4 -3
- package/dist/esm/{badge.taro-ae154f41.js → badge.taro-1d5df601.js} +11 -16
- package/dist/esm/{calendar.taro-b6b147ca.js → calendar.taro-099cb4a2.js} +1 -1
- package/dist/esm/{cascader.taro-9c0a1a38.js → cascader.taro-62e764a7.js} +2 -2
- package/dist/esm/{col.taro-53eed3cc.js → col.taro-a99a9171.js} +3 -1
- package/dist/esm/{datepicker.taro-439e2080.js → datepicker.taro-0f2bcf42.js} +1 -1
- package/dist/esm/{divider.taro-6c1657ce.js → divider.taro-67e9f757.js} +2 -0
- package/dist/esm/{drag.taro-79bb8744.js → drag.taro-2d3d9d11.js} +4 -3
- package/dist/esm/{elevator.taro-81a11ecc.js → elevator.taro-588e219b.js} +31 -24
- package/dist/esm/{imagepreview.taro-867ee24a.js → imagepreview.taro-b88fcf41.js} +2 -2
- package/dist/esm/menu.taro-b61442a7.js +111 -0
- package/dist/esm/{menuitem.taro-86a6bb6c.js → menuitem.taro-bca78e07.js} +31 -30
- package/dist/esm/navbar.taro-02c69d66.js +57 -0
- package/dist/esm/{numberkeyboard.taro-81b36e5e.js → numberkeyboard.taro-ed9b2149.js} +2 -2
- package/dist/esm/nutui-react.es.js +26 -26
- package/dist/esm/{picker.taro-5c9030a7.js → picker.taro-5028afcb.js} +1 -1
- package/dist/esm/{popup.taro-124b9bab.js → popup.taro-020bf791.js} +27 -30
- package/dist/esm/progress.taro-1c199fbe.js +40 -0
- package/dist/esm/{row.taro-f64d4a13.js → row.taro-75039d53.js} +5 -3
- package/dist/esm/{shortpassword.taro-9a2c98ad.js → shortpassword.taro-681a33a1.js} +1 -1
- package/dist/esm/{sidenavbar.taro-0265812f.js → sidenavbar.taro-d5c5b331.js} +1 -3
- package/dist/esm/{timeselect.taro-5b047850.js → timeselect.taro-a4b86771.js} +1 -1
- package/dist/esm/{uploader.taro-0cca7e97.js → uploader.taro-17569890.js} +36 -38
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +795 -892
- package/dist/nutui.react.umd.js +795 -892
- package/dist/packages/audio/audio.scss +2 -15
- package/dist/packages/badge/badge.scss +8 -17
- package/dist/packages/calendar/calendar.scss +0 -30
- package/dist/packages/elevator/elevator.scss +2 -28
- package/dist/packages/menu/menu.scss +44 -55
- package/dist/packages/menuitem/menuitem.scss +16 -26
- package/dist/packages/navbar/navbar.scss +16 -115
- package/dist/packages/popup/popup.scss +0 -16
- package/dist/packages/progress/progress.scss +19 -58
- package/dist/packages/row/row.scss +13 -31
- package/dist/packages/sidenavbar/sidenavbar.scss +0 -19
- package/dist/packages/uploader/uploader.scss +2 -28
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +23 -114
- package/dist/styles/variables.scss +31 -122
- package/dist/types/index.d.ts +43 -78
- package/package.json +1 -1
- package/dist/esm/menu.taro-54951911.js +0 -98
- package/dist/esm/navbar.taro-69f47d51.js +0 -77
- package/dist/esm/progress.taro-24392ef3.js +0 -88
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v2.0.0-alpha.
|
|
11
|
+
* @nutui/nutui-react-taro v2.0.0-alpha.2 Wed Apr 26 2023 18:40:13 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -88,6 +88,108 @@ var __publicField = (obj, key, value) => {
|
|
|
88
88
|
})(classnames);
|
|
89
89
|
const classNames = classnamesExports;
|
|
90
90
|
const r$w = {
|
|
91
|
+
name: "arrow-down2",
|
|
92
|
+
size: "",
|
|
93
|
+
classPrefix: "nut-icon",
|
|
94
|
+
fontClassName: "nutui-iconfont",
|
|
95
|
+
color: "",
|
|
96
|
+
tag: "i",
|
|
97
|
+
onClick: (n) => {
|
|
98
|
+
},
|
|
99
|
+
className: ""
|
|
100
|
+
};
|
|
101
|
+
function w$1(n) {
|
|
102
|
+
return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
|
|
103
|
+
}
|
|
104
|
+
function a$w(n) {
|
|
105
|
+
const {
|
|
106
|
+
name: e,
|
|
107
|
+
size: l,
|
|
108
|
+
classPrefix: f,
|
|
109
|
+
color: m,
|
|
110
|
+
tag: u,
|
|
111
|
+
children: d,
|
|
112
|
+
className: c,
|
|
113
|
+
fontClassName: N,
|
|
114
|
+
style: p,
|
|
115
|
+
onClick: i,
|
|
116
|
+
...h
|
|
117
|
+
} = {
|
|
118
|
+
...r$w,
|
|
119
|
+
...n
|
|
120
|
+
}, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
|
|
121
|
+
i && i(x);
|
|
122
|
+
}, k = () => s ? { src: e } : {}, t = {}, o = w$1(l);
|
|
123
|
+
return o && (t.fontSize = o, t.width = o, t.height = o), React.createElement(
|
|
124
|
+
g,
|
|
125
|
+
{
|
|
126
|
+
className: s ? `nut-icon__img ${c || ""} ` : `${N} nut-icon ${f}-${e} ${c || ""}`,
|
|
127
|
+
style: {
|
|
128
|
+
color: m,
|
|
129
|
+
...t,
|
|
130
|
+
...p
|
|
131
|
+
},
|
|
132
|
+
...h,
|
|
133
|
+
onClick: C,
|
|
134
|
+
...k()
|
|
135
|
+
},
|
|
136
|
+
d
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
a$w.defaultProps = r$w;
|
|
140
|
+
a$w.displayName = "NutIconarrow-down2";
|
|
141
|
+
const r$v = {
|
|
142
|
+
name: "arrow-up2",
|
|
143
|
+
size: "",
|
|
144
|
+
classPrefix: "nut-icon",
|
|
145
|
+
fontClassName: "nutui-iconfont",
|
|
146
|
+
color: "",
|
|
147
|
+
tag: "i",
|
|
148
|
+
onClick: (e) => {
|
|
149
|
+
},
|
|
150
|
+
className: ""
|
|
151
|
+
};
|
|
152
|
+
function y$t(e) {
|
|
153
|
+
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
154
|
+
}
|
|
155
|
+
function a$v(e) {
|
|
156
|
+
const {
|
|
157
|
+
name: t,
|
|
158
|
+
size: l,
|
|
159
|
+
classPrefix: f,
|
|
160
|
+
color: u,
|
|
161
|
+
tag: m,
|
|
162
|
+
children: p,
|
|
163
|
+
className: o,
|
|
164
|
+
fontClassName: N,
|
|
165
|
+
style: d,
|
|
166
|
+
onClick: i,
|
|
167
|
+
...h
|
|
168
|
+
} = {
|
|
169
|
+
...r$v,
|
|
170
|
+
...e
|
|
171
|
+
}, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
|
|
172
|
+
i && i(x);
|
|
173
|
+
}, k = () => c ? { src: t } : {}, n = {}, s = y$t(l);
|
|
174
|
+
return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
|
|
175
|
+
g,
|
|
176
|
+
{
|
|
177
|
+
className: c ? `nut-icon__img ${o || ""} ` : `${N} nut-icon ${f}-${t} ${o || ""}`,
|
|
178
|
+
style: {
|
|
179
|
+
color: u,
|
|
180
|
+
...n,
|
|
181
|
+
...d
|
|
182
|
+
},
|
|
183
|
+
...h,
|
|
184
|
+
onClick: C,
|
|
185
|
+
...k()
|
|
186
|
+
},
|
|
187
|
+
p
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
a$v.defaultProps = r$v;
|
|
191
|
+
a$v.displayName = "NutIconarrow-up2";
|
|
192
|
+
const r$u = {
|
|
91
193
|
name: "check-checked",
|
|
92
194
|
size: "",
|
|
93
195
|
classPrefix: "nut-icon",
|
|
@@ -98,10 +200,10 @@ var __publicField = (obj, key, value) => {
|
|
|
98
200
|
},
|
|
99
201
|
className: ""
|
|
100
202
|
};
|
|
101
|
-
function y$
|
|
203
|
+
function y$s(e) {
|
|
102
204
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
103
205
|
}
|
|
104
|
-
function a$
|
|
206
|
+
function a$u(e) {
|
|
105
207
|
const {
|
|
106
208
|
name: c,
|
|
107
209
|
size: l,
|
|
@@ -115,11 +217,11 @@ var __publicField = (obj, key, value) => {
|
|
|
115
217
|
onClick: o,
|
|
116
218
|
...k
|
|
117
219
|
} = {
|
|
118
|
-
...r$
|
|
220
|
+
...r$u,
|
|
119
221
|
...e
|
|
120
222
|
}, s = c ? c.indexOf("/") !== -1 : false, p = s ? "img" : u, g = (x) => {
|
|
121
223
|
o && o(x);
|
|
122
|
-
}, C = () => s ? { src: c } : {}, t = {}, n = y$
|
|
224
|
+
}, C = () => s ? { src: c } : {}, t = {}, n = y$s(l);
|
|
123
225
|
return n && (t.fontSize = n, t.width = n, t.height = n), React.createElement(
|
|
124
226
|
p,
|
|
125
227
|
{
|
|
@@ -136,9 +238,9 @@ var __publicField = (obj, key, value) => {
|
|
|
136
238
|
h
|
|
137
239
|
);
|
|
138
240
|
}
|
|
139
|
-
a$
|
|
140
|
-
a$
|
|
141
|
-
const a$
|
|
241
|
+
a$u.defaultProps = r$u;
|
|
242
|
+
a$u.displayName = "NutIconcheck-checked";
|
|
243
|
+
const a$t = {
|
|
142
244
|
name: "check-disabled",
|
|
143
245
|
size: "",
|
|
144
246
|
classPrefix: "nut-icon",
|
|
@@ -149,10 +251,10 @@ var __publicField = (obj, key, value) => {
|
|
|
149
251
|
},
|
|
150
252
|
className: ""
|
|
151
253
|
};
|
|
152
|
-
function y$
|
|
254
|
+
function y$r(e) {
|
|
153
255
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
154
256
|
}
|
|
155
|
-
function r$
|
|
257
|
+
function r$t(e) {
|
|
156
258
|
const {
|
|
157
259
|
name: t,
|
|
158
260
|
size: l,
|
|
@@ -166,11 +268,11 @@ var __publicField = (obj, key, value) => {
|
|
|
166
268
|
onClick: o,
|
|
167
269
|
...p
|
|
168
270
|
} = {
|
|
169
|
-
...a$
|
|
271
|
+
...a$t,
|
|
170
272
|
...e
|
|
171
273
|
}, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
|
|
172
274
|
o && o(x);
|
|
173
|
-
}, C = () => s ? { src: t } : {}, n = {}, c = y$
|
|
275
|
+
}, C = () => s ? { src: t } : {}, n = {}, c = y$r(l);
|
|
174
276
|
return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
|
|
175
277
|
k,
|
|
176
278
|
{
|
|
@@ -187,9 +289,9 @@ var __publicField = (obj, key, value) => {
|
|
|
187
289
|
d
|
|
188
290
|
);
|
|
189
291
|
}
|
|
190
|
-
r$
|
|
191
|
-
r$
|
|
192
|
-
const r$
|
|
292
|
+
r$t.defaultProps = a$t;
|
|
293
|
+
r$t.displayName = "NutIconcheck-disabled";
|
|
294
|
+
const r$s = {
|
|
193
295
|
name: "check-normal",
|
|
194
296
|
size: "",
|
|
195
297
|
classPrefix: "nut-icon",
|
|
@@ -200,10 +302,10 @@ var __publicField = (obj, key, value) => {
|
|
|
200
302
|
},
|
|
201
303
|
className: ""
|
|
202
304
|
};
|
|
203
|
-
function y$
|
|
305
|
+
function y$q(e) {
|
|
204
306
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
205
307
|
}
|
|
206
|
-
function a$
|
|
308
|
+
function a$s(e) {
|
|
207
309
|
const {
|
|
208
310
|
name: n,
|
|
209
311
|
size: l,
|
|
@@ -217,11 +319,11 @@ var __publicField = (obj, key, value) => {
|
|
|
217
319
|
onClick: i,
|
|
218
320
|
...d
|
|
219
321
|
} = {
|
|
220
|
-
...r$
|
|
322
|
+
...r$s,
|
|
221
323
|
...e
|
|
222
324
|
}, s = n ? n.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
|
|
223
325
|
i && i(x);
|
|
224
|
-
}, C = () => s ? { src: n } : {}, t = {}, c = y$
|
|
326
|
+
}, C = () => s ? { src: n } : {}, t = {}, c = y$q(l);
|
|
225
327
|
return c && (t.fontSize = c, t.width = c, t.height = c), React.createElement(
|
|
226
328
|
k,
|
|
227
329
|
{
|
|
@@ -238,9 +340,9 @@ var __publicField = (obj, key, value) => {
|
|
|
238
340
|
N
|
|
239
341
|
);
|
|
240
342
|
}
|
|
241
|
-
a$
|
|
242
|
-
a$
|
|
243
|
-
const r$
|
|
343
|
+
a$s.defaultProps = r$s;
|
|
344
|
+
a$s.displayName = "NutIconcheck-normal";
|
|
345
|
+
const r$r = {
|
|
244
346
|
name: "Check",
|
|
245
347
|
size: "",
|
|
246
348
|
classPrefix: "nut-icon",
|
|
@@ -251,10 +353,10 @@ var __publicField = (obj, key, value) => {
|
|
|
251
353
|
},
|
|
252
354
|
className: ""
|
|
253
355
|
};
|
|
254
|
-
function y$
|
|
356
|
+
function y$p(e) {
|
|
255
357
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
256
358
|
}
|
|
257
|
-
function a$
|
|
359
|
+
function a$r(e) {
|
|
258
360
|
const {
|
|
259
361
|
name: t,
|
|
260
362
|
size: l,
|
|
@@ -268,11 +370,11 @@ var __publicField = (obj, key, value) => {
|
|
|
268
370
|
onClick: o,
|
|
269
371
|
...d
|
|
270
372
|
} = {
|
|
271
|
-
...r$
|
|
373
|
+
...r$r,
|
|
272
374
|
...e
|
|
273
375
|
}, s = t ? t.indexOf("/") !== -1 : false, C = s ? "img" : u, k = (x) => {
|
|
274
376
|
o && o(x);
|
|
275
|
-
}, g = () => s ? { src: t } : {}, n = {}, c = y$
|
|
377
|
+
}, g = () => s ? { src: t } : {}, n = {}, c = y$p(l);
|
|
276
378
|
return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
|
|
277
379
|
C,
|
|
278
380
|
{
|
|
@@ -289,9 +391,9 @@ var __publicField = (obj, key, value) => {
|
|
|
289
391
|
N
|
|
290
392
|
);
|
|
291
393
|
}
|
|
292
|
-
a$
|
|
293
|
-
a$
|
|
294
|
-
const r$
|
|
394
|
+
a$r.defaultProps = r$r;
|
|
395
|
+
a$r.displayName = "NutIconCheck";
|
|
396
|
+
const r$q = {
|
|
295
397
|
name: "checked",
|
|
296
398
|
size: "",
|
|
297
399
|
classPrefix: "nut-icon",
|
|
@@ -302,10 +404,10 @@ var __publicField = (obj, key, value) => {
|
|
|
302
404
|
},
|
|
303
405
|
className: ""
|
|
304
406
|
};
|
|
305
|
-
function y$
|
|
407
|
+
function y$o(e) {
|
|
306
408
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
307
409
|
}
|
|
308
|
-
function a$
|
|
410
|
+
function a$q(e) {
|
|
309
411
|
const {
|
|
310
412
|
name: t,
|
|
311
413
|
size: l,
|
|
@@ -319,11 +421,11 @@ var __publicField = (obj, key, value) => {
|
|
|
319
421
|
onClick: o,
|
|
320
422
|
...p
|
|
321
423
|
} = {
|
|
322
|
-
...r$
|
|
424
|
+
...r$q,
|
|
323
425
|
...e
|
|
324
426
|
}, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
|
|
325
427
|
o && o(x);
|
|
326
|
-
}, C = () => s ? { src: t } : {}, n = {}, c = y$
|
|
428
|
+
}, C = () => s ? { src: t } : {}, n = {}, c = y$o(l);
|
|
327
429
|
return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
|
|
328
430
|
k,
|
|
329
431
|
{
|
|
@@ -340,9 +442,9 @@ var __publicField = (obj, key, value) => {
|
|
|
340
442
|
d
|
|
341
443
|
);
|
|
342
444
|
}
|
|
343
|
-
a$
|
|
344
|
-
a$
|
|
345
|
-
const r$
|
|
445
|
+
a$q.defaultProps = r$q;
|
|
446
|
+
a$q.displayName = "NutIconchecked";
|
|
447
|
+
const r$p = {
|
|
346
448
|
name: "checklist",
|
|
347
449
|
size: "",
|
|
348
450
|
classPrefix: "nut-icon",
|
|
@@ -353,10 +455,10 @@ var __publicField = (obj, key, value) => {
|
|
|
353
455
|
},
|
|
354
456
|
className: ""
|
|
355
457
|
};
|
|
356
|
-
function y$
|
|
458
|
+
function y$n(e) {
|
|
357
459
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
358
460
|
}
|
|
359
|
-
function a$
|
|
461
|
+
function a$p(e) {
|
|
360
462
|
const {
|
|
361
463
|
name: t,
|
|
362
464
|
size: l,
|
|
@@ -370,11 +472,11 @@ var __publicField = (obj, key, value) => {
|
|
|
370
472
|
onClick: o,
|
|
371
473
|
...d
|
|
372
474
|
} = {
|
|
373
|
-
...r$
|
|
475
|
+
...r$p,
|
|
374
476
|
...e
|
|
375
477
|
}, s = t ? t.indexOf("/") !== -1 : false, k = s ? "img" : u, g = (x) => {
|
|
376
478
|
o && o(x);
|
|
377
|
-
}, C = () => s ? { src: t } : {}, n = {}, c = y$
|
|
479
|
+
}, C = () => s ? { src: t } : {}, n = {}, c = y$n(l);
|
|
378
480
|
return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
|
|
379
481
|
k,
|
|
380
482
|
{
|
|
@@ -391,9 +493,9 @@ var __publicField = (obj, key, value) => {
|
|
|
391
493
|
N
|
|
392
494
|
);
|
|
393
495
|
}
|
|
394
|
-
a$
|
|
395
|
-
a$
|
|
396
|
-
const r$
|
|
496
|
+
a$p.defaultProps = r$p;
|
|
497
|
+
a$p.displayName = "NutIconchecklist";
|
|
498
|
+
const r$o = {
|
|
397
499
|
name: "circle-close",
|
|
398
500
|
size: "",
|
|
399
501
|
classPrefix: "nut-icon",
|
|
@@ -404,10 +506,10 @@ var __publicField = (obj, key, value) => {
|
|
|
404
506
|
},
|
|
405
507
|
className: ""
|
|
406
508
|
};
|
|
407
|
-
function y$
|
|
509
|
+
function y$m(e) {
|
|
408
510
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
409
511
|
}
|
|
410
|
-
function a$
|
|
512
|
+
function a$o(e) {
|
|
411
513
|
const {
|
|
412
514
|
name: t,
|
|
413
515
|
size: l,
|
|
@@ -421,11 +523,11 @@ var __publicField = (obj, key, value) => {
|
|
|
421
523
|
onClick: o,
|
|
422
524
|
...h
|
|
423
525
|
} = {
|
|
424
|
-
...r$
|
|
526
|
+
...r$o,
|
|
425
527
|
...e
|
|
426
528
|
}, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
|
|
427
529
|
o && o(x);
|
|
428
|
-
}, k = () => s ? { src: t } : {}, c = {}, n = y$
|
|
530
|
+
}, k = () => s ? { src: t } : {}, c = {}, n = y$m(l);
|
|
429
531
|
return n && (c.fontSize = n, c.width = n, c.height = n), React.createElement(
|
|
430
532
|
g,
|
|
431
533
|
{
|
|
@@ -442,9 +544,9 @@ var __publicField = (obj, key, value) => {
|
|
|
442
544
|
N
|
|
443
545
|
);
|
|
444
546
|
}
|
|
445
|
-
a$
|
|
446
|
-
a$
|
|
447
|
-
const r$
|
|
547
|
+
a$o.defaultProps = r$o;
|
|
548
|
+
a$o.displayName = "NutIconcircle-close";
|
|
549
|
+
const r$n = {
|
|
448
550
|
name: "close",
|
|
449
551
|
size: "",
|
|
450
552
|
classPrefix: "nut-icon",
|
|
@@ -455,10 +557,10 @@ var __publicField = (obj, key, value) => {
|
|
|
455
557
|
},
|
|
456
558
|
className: ""
|
|
457
559
|
};
|
|
458
|
-
function y$
|
|
560
|
+
function y$l(e) {
|
|
459
561
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
460
562
|
}
|
|
461
|
-
function a$
|
|
563
|
+
function a$n(e) {
|
|
462
564
|
const {
|
|
463
565
|
name: t,
|
|
464
566
|
size: l,
|
|
@@ -472,11 +574,11 @@ var __publicField = (obj, key, value) => {
|
|
|
472
574
|
onClick: i,
|
|
473
575
|
...h
|
|
474
576
|
} = {
|
|
475
|
-
...r$
|
|
577
|
+
...r$n,
|
|
476
578
|
...e
|
|
477
579
|
}, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
|
|
478
580
|
i && i(x);
|
|
479
|
-
}, k = () => c ? { src: t } : {}, n = {}, s = y$
|
|
581
|
+
}, k = () => c ? { src: t } : {}, n = {}, s = y$l(l);
|
|
480
582
|
return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
|
|
481
583
|
g,
|
|
482
584
|
{
|
|
@@ -493,9 +595,9 @@ var __publicField = (obj, key, value) => {
|
|
|
493
595
|
N
|
|
494
596
|
);
|
|
495
597
|
}
|
|
496
|
-
a$
|
|
497
|
-
a$
|
|
498
|
-
const r$
|
|
598
|
+
a$n.defaultProps = r$n;
|
|
599
|
+
a$n.displayName = "NutIconclose";
|
|
600
|
+
const r$m = {
|
|
499
601
|
name: "del",
|
|
500
602
|
size: "",
|
|
501
603
|
classPrefix: "nut-icon",
|
|
@@ -506,10 +608,10 @@ var __publicField = (obj, key, value) => {
|
|
|
506
608
|
},
|
|
507
609
|
className: ""
|
|
508
610
|
};
|
|
509
|
-
function y$
|
|
611
|
+
function y$k(e) {
|
|
510
612
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
511
613
|
}
|
|
512
|
-
function a$
|
|
614
|
+
function a$m(e) {
|
|
513
615
|
const {
|
|
514
616
|
name: t,
|
|
515
617
|
size: l,
|
|
@@ -523,11 +625,11 @@ var __publicField = (obj, key, value) => {
|
|
|
523
625
|
onClick: o,
|
|
524
626
|
...h
|
|
525
627
|
} = {
|
|
526
|
-
...r$
|
|
628
|
+
...r$m,
|
|
527
629
|
...e
|
|
528
630
|
}, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
|
|
529
631
|
o && o(x);
|
|
530
|
-
}, k = () => c ? { src: t } : {}, n = {}, s = y$
|
|
632
|
+
}, k = () => c ? { src: t } : {}, n = {}, s = y$k(l);
|
|
531
633
|
return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
|
|
532
634
|
g,
|
|
533
635
|
{
|
|
@@ -544,9 +646,9 @@ var __publicField = (obj, key, value) => {
|
|
|
544
646
|
d
|
|
545
647
|
);
|
|
546
648
|
}
|
|
547
|
-
a$
|
|
548
|
-
a$
|
|
549
|
-
const r$
|
|
649
|
+
a$m.defaultProps = r$m;
|
|
650
|
+
a$m.displayName = "NutIcondel";
|
|
651
|
+
const r$l = {
|
|
550
652
|
name: "down-arrow",
|
|
551
653
|
size: "",
|
|
552
654
|
classPrefix: "nut-icon",
|
|
@@ -560,7 +662,7 @@ var __publicField = (obj, key, value) => {
|
|
|
560
662
|
function w(n) {
|
|
561
663
|
return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
|
|
562
664
|
}
|
|
563
|
-
function a$
|
|
665
|
+
function a$l(n) {
|
|
564
666
|
const {
|
|
565
667
|
name: e,
|
|
566
668
|
size: l,
|
|
@@ -574,7 +676,7 @@ var __publicField = (obj, key, value) => {
|
|
|
574
676
|
onClick: i,
|
|
575
677
|
...h
|
|
576
678
|
} = {
|
|
577
|
-
...r$
|
|
679
|
+
...r$l,
|
|
578
680
|
...n
|
|
579
681
|
}, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
|
|
580
682
|
i && i(x);
|
|
@@ -595,9 +697,9 @@ var __publicField = (obj, key, value) => {
|
|
|
595
697
|
d
|
|
596
698
|
);
|
|
597
699
|
}
|
|
598
|
-
a$
|
|
599
|
-
a$
|
|
600
|
-
const r$
|
|
700
|
+
a$l.defaultProps = r$l;
|
|
701
|
+
a$l.displayName = "NutIcondown-arrow";
|
|
702
|
+
const r$k = {
|
|
601
703
|
name: "failure",
|
|
602
704
|
size: "",
|
|
603
705
|
classPrefix: "nut-icon",
|
|
@@ -608,10 +710,10 @@ var __publicField = (obj, key, value) => {
|
|
|
608
710
|
},
|
|
609
711
|
className: ""
|
|
610
712
|
};
|
|
611
|
-
function y$
|
|
713
|
+
function y$j(e) {
|
|
612
714
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
613
715
|
}
|
|
614
|
-
function a$
|
|
716
|
+
function a$k(e) {
|
|
615
717
|
const {
|
|
616
718
|
name: t,
|
|
617
719
|
size: l,
|
|
@@ -625,11 +727,11 @@ var __publicField = (obj, key, value) => {
|
|
|
625
727
|
onClick: o,
|
|
626
728
|
...h
|
|
627
729
|
} = {
|
|
628
|
-
...r$
|
|
730
|
+
...r$k,
|
|
629
731
|
...e
|
|
630
732
|
}, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
|
|
631
733
|
o && o(x);
|
|
632
|
-
}, k = () => c ? { src: t } : {}, n = {}, s = y$
|
|
734
|
+
}, k = () => c ? { src: t } : {}, n = {}, s = y$j(l);
|
|
633
735
|
return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
|
|
634
736
|
g,
|
|
635
737
|
{
|
|
@@ -646,9 +748,9 @@ var __publicField = (obj, key, value) => {
|
|
|
646
748
|
N
|
|
647
749
|
);
|
|
648
750
|
}
|
|
649
|
-
a$
|
|
650
|
-
a$
|
|
651
|
-
const r$
|
|
751
|
+
a$k.defaultProps = r$k;
|
|
752
|
+
a$k.displayName = "NutIconfailure";
|
|
753
|
+
const r$j = {
|
|
652
754
|
name: "image-error",
|
|
653
755
|
size: "",
|
|
654
756
|
classPrefix: "nut-icon",
|
|
@@ -659,10 +761,10 @@ var __publicField = (obj, key, value) => {
|
|
|
659
761
|
},
|
|
660
762
|
className: ""
|
|
661
763
|
};
|
|
662
|
-
function y$
|
|
764
|
+
function y$i(e) {
|
|
663
765
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
664
766
|
}
|
|
665
|
-
function a$
|
|
767
|
+
function a$j(e) {
|
|
666
768
|
const {
|
|
667
769
|
name: t,
|
|
668
770
|
size: l,
|
|
@@ -676,11 +778,11 @@ var __publicField = (obj, key, value) => {
|
|
|
676
778
|
onClick: o,
|
|
677
779
|
...g
|
|
678
780
|
} = {
|
|
679
|
-
...r$
|
|
781
|
+
...r$j,
|
|
680
782
|
...e
|
|
681
783
|
}, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
|
|
682
784
|
o && o(x);
|
|
683
|
-
}, k = () => c ? { src: t } : {}, n = {}, s = y$
|
|
785
|
+
}, k = () => c ? { src: t } : {}, n = {}, s = y$i(l);
|
|
684
786
|
return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
|
|
685
787
|
h,
|
|
686
788
|
{
|
|
@@ -697,9 +799,9 @@ var __publicField = (obj, key, value) => {
|
|
|
697
799
|
N
|
|
698
800
|
);
|
|
699
801
|
}
|
|
700
|
-
a$
|
|
701
|
-
a$
|
|
702
|
-
const a$
|
|
802
|
+
a$j.defaultProps = r$j;
|
|
803
|
+
a$j.displayName = "NutIconimage-error";
|
|
804
|
+
const a$i = {
|
|
703
805
|
name: "image",
|
|
704
806
|
size: "",
|
|
705
807
|
classPrefix: "nut-icon",
|
|
@@ -710,10 +812,10 @@ var __publicField = (obj, key, value) => {
|
|
|
710
812
|
},
|
|
711
813
|
className: ""
|
|
712
814
|
};
|
|
713
|
-
function y$
|
|
815
|
+
function y$h(e) {
|
|
714
816
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
715
817
|
}
|
|
716
|
-
function r$
|
|
818
|
+
function r$i(e) {
|
|
717
819
|
const {
|
|
718
820
|
name: t,
|
|
719
821
|
size: l,
|
|
@@ -727,11 +829,11 @@ var __publicField = (obj, key, value) => {
|
|
|
727
829
|
onClick: o,
|
|
728
830
|
...g
|
|
729
831
|
} = {
|
|
730
|
-
...a$
|
|
832
|
+
...a$i,
|
|
731
833
|
...e
|
|
732
834
|
}, c = t ? t.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
|
|
733
835
|
o && o(x);
|
|
734
|
-
}, k = () => c ? { src: t } : {}, n = {}, s = y$
|
|
836
|
+
}, k = () => c ? { src: t } : {}, n = {}, s = y$h(l);
|
|
735
837
|
return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
|
|
736
838
|
h,
|
|
737
839
|
{
|
|
@@ -748,9 +850,9 @@ var __publicField = (obj, key, value) => {
|
|
|
748
850
|
N
|
|
749
851
|
);
|
|
750
852
|
}
|
|
751
|
-
r$
|
|
752
|
-
r$
|
|
753
|
-
const r$
|
|
853
|
+
r$i.defaultProps = a$i;
|
|
854
|
+
r$i.displayName = "NutIconimage";
|
|
855
|
+
const r$h = {
|
|
754
856
|
name: "joy-smile",
|
|
755
857
|
size: "",
|
|
756
858
|
classPrefix: "nut-icon",
|
|
@@ -764,7 +866,7 @@ var __publicField = (obj, key, value) => {
|
|
|
764
866
|
function $(e) {
|
|
765
867
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
766
868
|
}
|
|
767
|
-
function a$
|
|
869
|
+
function a$h(e) {
|
|
768
870
|
const {
|
|
769
871
|
name: t,
|
|
770
872
|
size: l,
|
|
@@ -778,7 +880,7 @@ var __publicField = (obj, key, value) => {
|
|
|
778
880
|
onClick: o,
|
|
779
881
|
...h
|
|
780
882
|
} = {
|
|
781
|
-
...r$
|
|
883
|
+
...r$h,
|
|
782
884
|
...e
|
|
783
885
|
}, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, y2 = (k) => {
|
|
784
886
|
o && o(k);
|
|
@@ -799,9 +901,9 @@ var __publicField = (obj, key, value) => {
|
|
|
799
901
|
N
|
|
800
902
|
);
|
|
801
903
|
}
|
|
802
|
-
a$
|
|
803
|
-
a$
|
|
804
|
-
const r$
|
|
904
|
+
a$h.defaultProps = r$h;
|
|
905
|
+
a$h.displayName = "NutIconjoy-smile";
|
|
906
|
+
const r$g = {
|
|
805
907
|
name: "left",
|
|
806
908
|
size: "",
|
|
807
909
|
classPrefix: "nut-icon",
|
|
@@ -812,10 +914,10 @@ var __publicField = (obj, key, value) => {
|
|
|
812
914
|
},
|
|
813
915
|
className: ""
|
|
814
916
|
};
|
|
815
|
-
function y$
|
|
917
|
+
function y$g(e) {
|
|
816
918
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
817
919
|
}
|
|
818
|
-
function a$
|
|
920
|
+
function a$g(e) {
|
|
819
921
|
const {
|
|
820
922
|
name: t,
|
|
821
923
|
size: l,
|
|
@@ -829,11 +931,11 @@ var __publicField = (obj, key, value) => {
|
|
|
829
931
|
onClick: o,
|
|
830
932
|
...h
|
|
831
933
|
} = {
|
|
832
|
-
...r$
|
|
934
|
+
...r$g,
|
|
833
935
|
...e
|
|
834
936
|
}, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
|
|
835
937
|
o && o(x);
|
|
836
|
-
}, k = () => c ? { src: t } : {}, n = {}, s = y$
|
|
938
|
+
}, k = () => c ? { src: t } : {}, n = {}, s = y$g(l);
|
|
837
939
|
return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
|
|
838
940
|
g,
|
|
839
941
|
{
|
|
@@ -850,9 +952,9 @@ var __publicField = (obj, key, value) => {
|
|
|
850
952
|
N
|
|
851
953
|
);
|
|
852
954
|
}
|
|
853
|
-
a$
|
|
854
|
-
a$
|
|
855
|
-
const r$
|
|
955
|
+
a$g.defaultProps = r$g;
|
|
956
|
+
a$g.displayName = "NutIconleft";
|
|
957
|
+
const r$f = {
|
|
856
958
|
name: "link",
|
|
857
959
|
size: "",
|
|
858
960
|
classPrefix: "nut-icon",
|
|
@@ -863,10 +965,10 @@ var __publicField = (obj, key, value) => {
|
|
|
863
965
|
},
|
|
864
966
|
className: ""
|
|
865
967
|
};
|
|
866
|
-
function y$
|
|
968
|
+
function y$f(n) {
|
|
867
969
|
return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
|
|
868
970
|
}
|
|
869
|
-
function a$
|
|
971
|
+
function a$f(n) {
|
|
870
972
|
const {
|
|
871
973
|
name: e,
|
|
872
974
|
size: l,
|
|
@@ -880,11 +982,11 @@ var __publicField = (obj, key, value) => {
|
|
|
880
982
|
onClick: o,
|
|
881
983
|
...h
|
|
882
984
|
} = {
|
|
883
|
-
...r$
|
|
985
|
+
...r$f,
|
|
884
986
|
...n
|
|
885
987
|
}, c = e ? e.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
|
|
886
988
|
o && o(x);
|
|
887
|
-
}, C = () => c ? { src: e } : {}, t = {}, s = y$
|
|
989
|
+
}, C = () => c ? { src: e } : {}, t = {}, s = y$f(l);
|
|
888
990
|
return s && (t.fontSize = s, t.width = s, t.height = s), React.createElement(
|
|
889
991
|
k,
|
|
890
992
|
{
|
|
@@ -901,9 +1003,9 @@ var __publicField = (obj, key, value) => {
|
|
|
901
1003
|
N
|
|
902
1004
|
);
|
|
903
1005
|
}
|
|
904
|
-
a$
|
|
905
|
-
a$
|
|
906
|
-
const a$
|
|
1006
|
+
a$f.defaultProps = r$f;
|
|
1007
|
+
a$f.displayName = "NutIconlink";
|
|
1008
|
+
const a$e = {
|
|
907
1009
|
name: "loading",
|
|
908
1010
|
size: "",
|
|
909
1011
|
classPrefix: "nut-icon",
|
|
@@ -914,10 +1016,10 @@ var __publicField = (obj, key, value) => {
|
|
|
914
1016
|
},
|
|
915
1017
|
className: ""
|
|
916
1018
|
};
|
|
917
|
-
function y$
|
|
1019
|
+
function y$e(n) {
|
|
918
1020
|
return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
|
|
919
1021
|
}
|
|
920
|
-
function r$
|
|
1022
|
+
function r$e(n) {
|
|
921
1023
|
const {
|
|
922
1024
|
name: e,
|
|
923
1025
|
size: l,
|
|
@@ -931,11 +1033,11 @@ var __publicField = (obj, key, value) => {
|
|
|
931
1033
|
onClick: o,
|
|
932
1034
|
...g
|
|
933
1035
|
} = {
|
|
934
|
-
...a$
|
|
1036
|
+
...a$e,
|
|
935
1037
|
...n
|
|
936
1038
|
}, c = e ? e.indexOf("/") !== -1 : false, h = c ? "img" : u, C = (x) => {
|
|
937
1039
|
o && o(x);
|
|
938
|
-
}, k = () => c ? { src: e } : {}, t = {}, s = y$
|
|
1040
|
+
}, k = () => c ? { src: e } : {}, t = {}, s = y$e(l);
|
|
939
1041
|
return s && (t.fontSize = s, t.width = s, t.height = s), React.createElement(
|
|
940
1042
|
h,
|
|
941
1043
|
{
|
|
@@ -952,9 +1054,9 @@ var __publicField = (obj, key, value) => {
|
|
|
952
1054
|
d
|
|
953
1055
|
);
|
|
954
1056
|
}
|
|
955
|
-
r$
|
|
956
|
-
r$
|
|
957
|
-
const a$
|
|
1057
|
+
r$e.defaultProps = a$e;
|
|
1058
|
+
r$e.displayName = "NutIconloading";
|
|
1059
|
+
const a$d = {
|
|
958
1060
|
name: "location2",
|
|
959
1061
|
size: "",
|
|
960
1062
|
classPrefix: "nut-icon",
|
|
@@ -965,10 +1067,10 @@ var __publicField = (obj, key, value) => {
|
|
|
965
1067
|
},
|
|
966
1068
|
className: ""
|
|
967
1069
|
};
|
|
968
|
-
function y$
|
|
1070
|
+
function y$d(t) {
|
|
969
1071
|
return t === "" ? "" : Number.isNaN(Number(t)) ? String(t) : `${t}px`;
|
|
970
1072
|
}
|
|
971
|
-
function r$
|
|
1073
|
+
function r$d(t) {
|
|
972
1074
|
const {
|
|
973
1075
|
name: n,
|
|
974
1076
|
size: l,
|
|
@@ -982,11 +1084,11 @@ var __publicField = (obj, key, value) => {
|
|
|
982
1084
|
onClick: i,
|
|
983
1085
|
...h
|
|
984
1086
|
} = {
|
|
985
|
-
...a$
|
|
1087
|
+
...a$d,
|
|
986
1088
|
...t
|
|
987
1089
|
}, o = n ? n.indexOf("/") !== -1 : false, g = o ? "img" : u, C = (x) => {
|
|
988
1090
|
i && i(x);
|
|
989
|
-
}, k = () => o ? { src: n } : {}, e = {}, c = y$
|
|
1091
|
+
}, k = () => o ? { src: n } : {}, e = {}, c = y$d(l);
|
|
990
1092
|
return c && (e.fontSize = c, e.width = c, e.height = c), React.createElement(
|
|
991
1093
|
g,
|
|
992
1094
|
{
|
|
@@ -1003,9 +1105,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1003
1105
|
N
|
|
1004
1106
|
);
|
|
1005
1107
|
}
|
|
1006
|
-
r$
|
|
1007
|
-
r$
|
|
1008
|
-
const a$
|
|
1108
|
+
r$d.defaultProps = a$d;
|
|
1109
|
+
r$d.displayName = "NutIconlocation2";
|
|
1110
|
+
const a$c = {
|
|
1009
1111
|
name: "mask-close",
|
|
1010
1112
|
size: "",
|
|
1011
1113
|
classPrefix: "nut-icon",
|
|
@@ -1016,10 +1118,10 @@ var __publicField = (obj, key, value) => {
|
|
|
1016
1118
|
},
|
|
1017
1119
|
className: ""
|
|
1018
1120
|
};
|
|
1019
|
-
function y$
|
|
1121
|
+
function y$c(e) {
|
|
1020
1122
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
1021
1123
|
}
|
|
1022
|
-
function r$
|
|
1124
|
+
function r$c(e) {
|
|
1023
1125
|
const {
|
|
1024
1126
|
name: t,
|
|
1025
1127
|
size: l,
|
|
@@ -1033,11 +1135,11 @@ var __publicField = (obj, key, value) => {
|
|
|
1033
1135
|
onClick: i,
|
|
1034
1136
|
...h
|
|
1035
1137
|
} = {
|
|
1036
|
-
...a$
|
|
1138
|
+
...a$c,
|
|
1037
1139
|
...e
|
|
1038
1140
|
}, c = t ? t.indexOf("/") !== -1 : false, k = c ? "img" : u, g = (x) => {
|
|
1039
1141
|
i && i(x);
|
|
1040
|
-
}, C = () => c ? { src: t } : {}, n = {}, s = y$
|
|
1142
|
+
}, C = () => c ? { src: t } : {}, n = {}, s = y$c(l);
|
|
1041
1143
|
return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
|
|
1042
1144
|
k,
|
|
1043
1145
|
{
|
|
@@ -1054,9 +1156,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1054
1156
|
N
|
|
1055
1157
|
);
|
|
1056
1158
|
}
|
|
1057
|
-
r$
|
|
1058
|
-
r$
|
|
1059
|
-
const r$
|
|
1159
|
+
r$c.defaultProps = a$c;
|
|
1160
|
+
r$c.displayName = "NutIconmask-close";
|
|
1161
|
+
const r$b = {
|
|
1060
1162
|
name: "minus",
|
|
1061
1163
|
size: "",
|
|
1062
1164
|
classPrefix: "nut-icon",
|
|
@@ -1067,10 +1169,10 @@ var __publicField = (obj, key, value) => {
|
|
|
1067
1169
|
},
|
|
1068
1170
|
className: ""
|
|
1069
1171
|
};
|
|
1070
|
-
function y$
|
|
1172
|
+
function y$b(n) {
|
|
1071
1173
|
return n === "" ? "" : Number.isNaN(Number(n)) ? String(n) : `${n}px`;
|
|
1072
1174
|
}
|
|
1073
|
-
function a$
|
|
1175
|
+
function a$b(n) {
|
|
1074
1176
|
const {
|
|
1075
1177
|
name: e,
|
|
1076
1178
|
size: l,
|
|
@@ -1084,11 +1186,11 @@ var __publicField = (obj, key, value) => {
|
|
|
1084
1186
|
onClick: o,
|
|
1085
1187
|
...h
|
|
1086
1188
|
} = {
|
|
1087
|
-
...r$
|
|
1189
|
+
...r$b,
|
|
1088
1190
|
...n
|
|
1089
1191
|
}, c = e ? e.indexOf("/") !== -1 : false, g = c ? "img" : u, C = (x) => {
|
|
1090
1192
|
o && o(x);
|
|
1091
|
-
}, k = () => c ? { src: e } : {}, t = {}, s = y$
|
|
1193
|
+
}, k = () => c ? { src: e } : {}, t = {}, s = y$b(l);
|
|
1092
1194
|
return s && (t.fontSize = s, t.width = s, t.height = s), React.createElement(
|
|
1093
1195
|
g,
|
|
1094
1196
|
{
|
|
@@ -1105,9 +1207,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1105
1207
|
N
|
|
1106
1208
|
);
|
|
1107
1209
|
}
|
|
1108
|
-
a$
|
|
1109
|
-
a$
|
|
1110
|
-
const r$
|
|
1210
|
+
a$b.defaultProps = r$b;
|
|
1211
|
+
a$b.displayName = "NutIconminus";
|
|
1212
|
+
const r$a = {
|
|
1111
1213
|
name: "notice",
|
|
1112
1214
|
size: "",
|
|
1113
1215
|
classPrefix: "nut-icon",
|
|
@@ -1118,10 +1220,10 @@ var __publicField = (obj, key, value) => {
|
|
|
1118
1220
|
},
|
|
1119
1221
|
className: ""
|
|
1120
1222
|
};
|
|
1121
|
-
function y$
|
|
1223
|
+
function y$a(e) {
|
|
1122
1224
|
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
1123
1225
|
}
|
|
1124
|
-
function a$
|
|
1226
|
+
function a$a(e) {
|
|
1125
1227
|
const {
|
|
1126
1228
|
name: t,
|
|
1127
1229
|
size: l,
|
|
@@ -1135,11 +1237,11 @@ var __publicField = (obj, key, value) => {
|
|
|
1135
1237
|
onClick: o,
|
|
1136
1238
|
...h
|
|
1137
1239
|
} = {
|
|
1138
|
-
...r$
|
|
1240
|
+
...r$a,
|
|
1139
1241
|
...e
|
|
1140
1242
|
}, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
|
|
1141
1243
|
o && o(x);
|
|
1142
|
-
}, k = () => s ? { src: t } : {}, n = {}, c = y$
|
|
1244
|
+
}, k = () => s ? { src: t } : {}, n = {}, c = y$a(l);
|
|
1143
1245
|
return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
|
|
1144
1246
|
g,
|
|
1145
1247
|
{
|
|
@@ -1156,9 +1258,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1156
1258
|
N
|
|
1157
1259
|
);
|
|
1158
1260
|
}
|
|
1159
|
-
a$
|
|
1160
|
-
a$
|
|
1161
|
-
const r$
|
|
1261
|
+
a$a.defaultProps = r$a;
|
|
1262
|
+
a$a.displayName = "NutIconnotice";
|
|
1263
|
+
const r$9 = {
|
|
1162
1264
|
name: "photograph",
|
|
1163
1265
|
size: "",
|
|
1164
1266
|
classPrefix: "nut-icon",
|
|
@@ -1169,10 +1271,10 @@ var __publicField = (obj, key, value) => {
|
|
|
1169
1271
|
},
|
|
1170
1272
|
className: ""
|
|
1171
1273
|
};
|
|
1172
|
-
function y$
|
|
1274
|
+
function y$9(t) {
|
|
1173
1275
|
return t === "" ? "" : Number.isNaN(Number(t)) ? String(t) : `${t}px`;
|
|
1174
1276
|
}
|
|
1175
|
-
function a$
|
|
1277
|
+
function a$9(t) {
|
|
1176
1278
|
const {
|
|
1177
1279
|
name: e,
|
|
1178
1280
|
size: l,
|
|
@@ -1186,11 +1288,11 @@ var __publicField = (obj, key, value) => {
|
|
|
1186
1288
|
onClick: i,
|
|
1187
1289
|
...d
|
|
1188
1290
|
} = {
|
|
1189
|
-
...r$
|
|
1291
|
+
...r$9,
|
|
1190
1292
|
...t
|
|
1191
1293
|
}, s = e ? e.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
|
|
1192
1294
|
i && i(x);
|
|
1193
|
-
}, k = () => s ? { src: e } : {}, n = {}, o = y$
|
|
1295
|
+
}, k = () => s ? { src: e } : {}, n = {}, o = y$9(l);
|
|
1194
1296
|
return o && (n.fontSize = o, n.width = o, n.height = o), React.createElement(
|
|
1195
1297
|
g,
|
|
1196
1298
|
{
|
|
@@ -1207,112 +1309,10 @@ var __publicField = (obj, key, value) => {
|
|
|
1207
1309
|
p
|
|
1208
1310
|
);
|
|
1209
1311
|
}
|
|
1210
|
-
a$b.defaultProps = r$b;
|
|
1211
|
-
a$b.displayName = "NutIconphotograph";
|
|
1212
|
-
const r$a = {
|
|
1213
|
-
name: "plus",
|
|
1214
|
-
size: "",
|
|
1215
|
-
classPrefix: "nut-icon",
|
|
1216
|
-
fontClassName: "nutui-iconfont",
|
|
1217
|
-
color: "",
|
|
1218
|
-
tag: "i",
|
|
1219
|
-
onClick: (e) => {
|
|
1220
|
-
},
|
|
1221
|
-
className: ""
|
|
1222
|
-
};
|
|
1223
|
-
function y$a(e) {
|
|
1224
|
-
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
1225
|
-
}
|
|
1226
|
-
function a$a(e) {
|
|
1227
|
-
const {
|
|
1228
|
-
name: t,
|
|
1229
|
-
size: l,
|
|
1230
|
-
classPrefix: f,
|
|
1231
|
-
color: u,
|
|
1232
|
-
tag: m,
|
|
1233
|
-
children: p,
|
|
1234
|
-
className: i,
|
|
1235
|
-
fontClassName: N,
|
|
1236
|
-
style: d,
|
|
1237
|
-
onClick: o,
|
|
1238
|
-
...h
|
|
1239
|
-
} = {
|
|
1240
|
-
...r$a,
|
|
1241
|
-
...e
|
|
1242
|
-
}, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
|
|
1243
|
-
o && o(x);
|
|
1244
|
-
}, k = () => c ? { src: t } : {}, n = {}, s = y$a(l);
|
|
1245
|
-
return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
|
|
1246
|
-
g,
|
|
1247
|
-
{
|
|
1248
|
-
className: c ? `nut-icon__img ${i || ""} ` : `${N} nut-icon ${f}-${t} ${i || ""}`,
|
|
1249
|
-
style: {
|
|
1250
|
-
color: u,
|
|
1251
|
-
...n,
|
|
1252
|
-
...d
|
|
1253
|
-
},
|
|
1254
|
-
...h,
|
|
1255
|
-
onClick: C,
|
|
1256
|
-
...k()
|
|
1257
|
-
},
|
|
1258
|
-
p
|
|
1259
|
-
);
|
|
1260
|
-
}
|
|
1261
|
-
a$a.defaultProps = r$a;
|
|
1262
|
-
a$a.displayName = "NutIconplus";
|
|
1263
|
-
const r$9 = {
|
|
1264
|
-
name: "rect-down",
|
|
1265
|
-
size: "",
|
|
1266
|
-
classPrefix: "nut-icon",
|
|
1267
|
-
fontClassName: "nutui-iconfont",
|
|
1268
|
-
color: "",
|
|
1269
|
-
tag: "i",
|
|
1270
|
-
onClick: (e) => {
|
|
1271
|
-
},
|
|
1272
|
-
className: ""
|
|
1273
|
-
};
|
|
1274
|
-
function y$9(e) {
|
|
1275
|
-
return e === "" ? "" : Number.isNaN(Number(e)) ? String(e) : `${e}px`;
|
|
1276
|
-
}
|
|
1277
|
-
function a$9(e) {
|
|
1278
|
-
const {
|
|
1279
|
-
name: t,
|
|
1280
|
-
size: l,
|
|
1281
|
-
classPrefix: f,
|
|
1282
|
-
color: m,
|
|
1283
|
-
tag: u,
|
|
1284
|
-
children: d,
|
|
1285
|
-
className: o,
|
|
1286
|
-
fontClassName: N,
|
|
1287
|
-
style: p,
|
|
1288
|
-
onClick: i,
|
|
1289
|
-
...h
|
|
1290
|
-
} = {
|
|
1291
|
-
...r$9,
|
|
1292
|
-
...e
|
|
1293
|
-
}, s = t ? t.indexOf("/") !== -1 : false, g = s ? "img" : u, C = (x) => {
|
|
1294
|
-
i && i(x);
|
|
1295
|
-
}, k = () => s ? { src: t } : {}, n = {}, c = y$9(l);
|
|
1296
|
-
return c && (n.fontSize = c, n.width = c, n.height = c), React.createElement(
|
|
1297
|
-
g,
|
|
1298
|
-
{
|
|
1299
|
-
className: s ? `nut-icon__img ${o || ""} ` : `${N} nut-icon ${f}-${t} ${o || ""}`,
|
|
1300
|
-
style: {
|
|
1301
|
-
color: m,
|
|
1302
|
-
...n,
|
|
1303
|
-
...p
|
|
1304
|
-
},
|
|
1305
|
-
...h,
|
|
1306
|
-
onClick: C,
|
|
1307
|
-
...k()
|
|
1308
|
-
},
|
|
1309
|
-
d
|
|
1310
|
-
);
|
|
1311
|
-
}
|
|
1312
1312
|
a$9.defaultProps = r$9;
|
|
1313
|
-
a$9.displayName = "
|
|
1313
|
+
a$9.displayName = "NutIconphotograph";
|
|
1314
1314
|
const r$8 = {
|
|
1315
|
-
name: "
|
|
1315
|
+
name: "plus",
|
|
1316
1316
|
size: "",
|
|
1317
1317
|
classPrefix: "nut-icon",
|
|
1318
1318
|
fontClassName: "nutui-iconfont",
|
|
@@ -1341,13 +1341,13 @@ var __publicField = (obj, key, value) => {
|
|
|
1341
1341
|
} = {
|
|
1342
1342
|
...r$8,
|
|
1343
1343
|
...e
|
|
1344
|
-
},
|
|
1344
|
+
}, c = t ? t.indexOf("/") !== -1 : false, g = c ? "img" : m, C = (x) => {
|
|
1345
1345
|
o && o(x);
|
|
1346
|
-
}, k = () =>
|
|
1347
|
-
return
|
|
1346
|
+
}, k = () => c ? { src: t } : {}, n = {}, s = y$8(l);
|
|
1347
|
+
return s && (n.fontSize = s, n.width = s, n.height = s), React.createElement(
|
|
1348
1348
|
g,
|
|
1349
1349
|
{
|
|
1350
|
-
className:
|
|
1350
|
+
className: c ? `nut-icon__img ${i || ""} ` : `${N} nut-icon ${f}-${t} ${i || ""}`,
|
|
1351
1351
|
style: {
|
|
1352
1352
|
color: u,
|
|
1353
1353
|
...n,
|
|
@@ -1361,7 +1361,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1361
1361
|
);
|
|
1362
1362
|
}
|
|
1363
1363
|
a$8.defaultProps = r$8;
|
|
1364
|
-
a$8.displayName = "
|
|
1364
|
+
a$8.displayName = "NutIconplus";
|
|
1365
1365
|
const r$7 = {
|
|
1366
1366
|
name: "search",
|
|
1367
1367
|
size: "",
|
|
@@ -2791,7 +2791,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2791
2791
|
onClick: (e) => handleClick(e),
|
|
2792
2792
|
children: /* @__PURE__ */ jsxs("div", {
|
|
2793
2793
|
className: "nut-button__warp",
|
|
2794
|
-
children: [loading && /* @__PURE__ */ jsx(r$
|
|
2794
|
+
children: [loading && /* @__PURE__ */ jsx(r$e, {
|
|
2795
2795
|
className: "nut-icon-loading"
|
|
2796
2796
|
}), !loading && icon ? icon : null, children && /* @__PURE__ */ jsx("div", {
|
|
2797
2797
|
className: icon || loading ? "nut-button-text" : "",
|
|
@@ -2812,7 +2812,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2812
2812
|
onClick: (event) => {
|
|
2813
2813
|
}
|
|
2814
2814
|
};
|
|
2815
|
-
const classPrefix$
|
|
2815
|
+
const classPrefix$8 = "nut-cell";
|
|
2816
2816
|
const Cell = (props) => {
|
|
2817
2817
|
const {
|
|
2818
2818
|
children,
|
|
@@ -2841,26 +2841,26 @@ var __publicField = (obj, key, value) => {
|
|
|
2841
2841
|
flex: 1
|
|
2842
2842
|
};
|
|
2843
2843
|
return /* @__PURE__ */ jsx("div", {
|
|
2844
|
-
className: classNames(classPrefix$
|
|
2844
|
+
className: classNames(classPrefix$8, className),
|
|
2845
2845
|
onClick: (event) => handleClick(event),
|
|
2846
2846
|
style: baseStyle,
|
|
2847
2847
|
...rest,
|
|
2848
2848
|
children: children || /* @__PURE__ */ jsxs(Fragment, {
|
|
2849
2849
|
children: [title || description ? /* @__PURE__ */ jsxs("div", {
|
|
2850
|
-
className: `${classPrefix$
|
|
2850
|
+
className: `${classPrefix$8}__left`,
|
|
2851
2851
|
children: [title ? /* @__PURE__ */ jsx("div", {
|
|
2852
|
-
className: `${classPrefix$
|
|
2852
|
+
className: `${classPrefix$8}__title`,
|
|
2853
2853
|
children: title
|
|
2854
2854
|
}) : null, description ? /* @__PURE__ */ jsx("div", {
|
|
2855
|
-
className: `${classPrefix$
|
|
2855
|
+
className: `${classPrefix$8}__description`,
|
|
2856
2856
|
children: description
|
|
2857
2857
|
}) : null]
|
|
2858
2858
|
}) : null, extra ? /* @__PURE__ */ jsx("div", {
|
|
2859
|
-
className: `${classPrefix$
|
|
2859
|
+
className: `${classPrefix$8}__extra`,
|
|
2860
2860
|
style: styles,
|
|
2861
2861
|
children: extra
|
|
2862
2862
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
2863
|
-
className: `${classPrefix$
|
|
2863
|
+
className: `${classPrefix$8}__divider`
|
|
2864
2864
|
})]
|
|
2865
2865
|
})
|
|
2866
2866
|
});
|
|
@@ -2872,7 +2872,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2872
2872
|
title: "",
|
|
2873
2873
|
description: ""
|
|
2874
2874
|
};
|
|
2875
|
-
const classPrefix$
|
|
2875
|
+
const classPrefix$7 = "nut-cell-group";
|
|
2876
2876
|
const CellGroup = (props) => {
|
|
2877
2877
|
const {
|
|
2878
2878
|
children,
|
|
@@ -2886,16 +2886,16 @@ var __publicField = (obj, key, value) => {
|
|
|
2886
2886
|
...props
|
|
2887
2887
|
};
|
|
2888
2888
|
return /* @__PURE__ */ jsxs("div", {
|
|
2889
|
-
className: classNames(classPrefix$
|
|
2889
|
+
className: classNames(classPrefix$7, className),
|
|
2890
2890
|
...rest,
|
|
2891
2891
|
children: [title ? /* @__PURE__ */ jsx("div", {
|
|
2892
|
-
className: `${classPrefix$
|
|
2892
|
+
className: `${classPrefix$7}__title`,
|
|
2893
2893
|
children: title
|
|
2894
2894
|
}) : null, description ? /* @__PURE__ */ jsx("div", {
|
|
2895
|
-
className: `${classPrefix$
|
|
2895
|
+
className: `${classPrefix$7}__description`,
|
|
2896
2896
|
children: description
|
|
2897
2897
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
2898
|
-
className: `${classPrefix$
|
|
2898
|
+
className: `${classPrefix$7}__wrap`,
|
|
2899
2899
|
children
|
|
2900
2900
|
})]
|
|
2901
2901
|
});
|
|
@@ -3445,10 +3445,10 @@ var __publicField = (obj, key, value) => {
|
|
|
3445
3445
|
onError: error
|
|
3446
3446
|
}), showLoading && loading ? /* @__PURE__ */ jsx("div", {
|
|
3447
3447
|
className: "nut-img-loading",
|
|
3448
|
-
children: slotLoding || children || /* @__PURE__ */ jsx(r$
|
|
3448
|
+
children: slotLoding || children || /* @__PURE__ */ jsx(r$i, {})
|
|
3449
3449
|
}) : null, showError && isError && !loading ? /* @__PURE__ */ jsx("div", {
|
|
3450
3450
|
className: "nut-img-error",
|
|
3451
|
-
children: slotError || children || /* @__PURE__ */ jsx(a$
|
|
3451
|
+
children: slotError || children || /* @__PURE__ */ jsx(a$j, {})
|
|
3452
3452
|
}) : null]
|
|
3453
3453
|
});
|
|
3454
3454
|
};
|
|
@@ -3462,7 +3462,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3462
3462
|
visible: false,
|
|
3463
3463
|
lockScroll: true
|
|
3464
3464
|
};
|
|
3465
|
-
const classPrefix$
|
|
3465
|
+
const classPrefix$6 = `nut-overlay`;
|
|
3466
3466
|
const Overlay = (props) => {
|
|
3467
3467
|
const {
|
|
3468
3468
|
children,
|
|
@@ -3506,7 +3506,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3506
3506
|
"overlay-fade-enter-active": visible,
|
|
3507
3507
|
"first-render": renderRef.current && !visible,
|
|
3508
3508
|
"hidden-render": !visible
|
|
3509
|
-
}, className, classPrefix$
|
|
3509
|
+
}, className, classPrefix$6);
|
|
3510
3510
|
const styles = {
|
|
3511
3511
|
zIndex,
|
|
3512
3512
|
animationDuration: `${props.duration}s`,
|
|
@@ -5283,152 +5283,25 @@ var __publicField = (obj, key, value) => {
|
|
|
5283
5283
|
onExited: propTypesExports.func
|
|
5284
5284
|
}) : {};
|
|
5285
5285
|
const CSSTransition$1 = CSSTransition;
|
|
5286
|
-
var classnameExports = {};
|
|
5287
|
-
var classname = {
|
|
5288
|
-
get exports() {
|
|
5289
|
-
return classnameExports;
|
|
5290
|
-
},
|
|
5291
|
-
set exports(v) {
|
|
5292
|
-
classnameExports = v;
|
|
5293
|
-
}
|
|
5294
|
-
};
|
|
5295
|
-
var classname_production_min = {};
|
|
5296
|
-
var hasRequiredClassname_production_min;
|
|
5297
|
-
function requireClassname_production_min() {
|
|
5298
|
-
if (hasRequiredClassname_production_min)
|
|
5299
|
-
return classname_production_min;
|
|
5300
|
-
hasRequiredClassname_production_min = 1;
|
|
5301
|
-
function r2(r3) {
|
|
5302
|
-
function t2(t3, i, a2, o) {
|
|
5303
|
-
var f = i ? e + t3 + r3.e + i : e + t3, v = f;
|
|
5304
|
-
if (a2) {
|
|
5305
|
-
var s = " " + v + r3.m;
|
|
5306
|
-
for (var u in a2)
|
|
5307
|
-
if (a2.hasOwnProperty(u)) {
|
|
5308
|
-
var p = a2[u];
|
|
5309
|
-
true === p ? v += s + u : p && (v += s + u + n + p);
|
|
5310
|
-
}
|
|
5311
|
-
}
|
|
5312
|
-
if (void 0 !== o)
|
|
5313
|
-
for (var y2 = 0, c = (o = Array.isArray(o) ? o : [o]).length; y2 < c; y2++) {
|
|
5314
|
-
var l = o[y2];
|
|
5315
|
-
if (l && "string" == typeof l.valueOf())
|
|
5316
|
-
for (var g = l.valueOf().split(" "), d = 0; d < g.length; d++) {
|
|
5317
|
-
var h = g[d];
|
|
5318
|
-
h !== f && (v += " " + h);
|
|
5319
|
-
}
|
|
5320
|
-
}
|
|
5321
|
-
return v;
|
|
5322
|
-
}
|
|
5323
|
-
var e = r3.n || "", n = r3.v || r3.m;
|
|
5324
|
-
return function(r4, e2) {
|
|
5325
|
-
return function(n2, i, a2) {
|
|
5326
|
-
return "string" == typeof n2 ? "string" == typeof i || Array.isArray(i) ? t2(r4, n2, void 0, i) : t2(r4, n2, i, a2) : t2(r4, e2, n2, i);
|
|
5327
|
-
};
|
|
5328
|
-
};
|
|
5329
|
-
}
|
|
5330
|
-
Object.defineProperty(classname_production_min, "__esModule", { value: true });
|
|
5331
|
-
var t = r2({ e: "-", m: "_" });
|
|
5332
|
-
classname_production_min.cn = t, classname_production_min.withNaming = r2;
|
|
5333
|
-
return classname_production_min;
|
|
5334
|
-
}
|
|
5335
|
-
var classname_development = {};
|
|
5336
|
-
var hasRequiredClassname_development;
|
|
5337
|
-
function requireClassname_development() {
|
|
5338
|
-
if (hasRequiredClassname_development)
|
|
5339
|
-
return classname_development;
|
|
5340
|
-
hasRequiredClassname_development = 1;
|
|
5341
|
-
Object.defineProperty(classname_development, "__esModule", { value: true });
|
|
5342
|
-
function withNaming(preset) {
|
|
5343
|
-
var nameSpace = preset.n || "";
|
|
5344
|
-
var modValueDelimiter = preset.v || preset.m;
|
|
5345
|
-
function stringify(b2, e, m, mix) {
|
|
5346
|
-
var entityName = e ? nameSpace + b2 + preset.e + e : nameSpace + b2;
|
|
5347
|
-
var className = entityName;
|
|
5348
|
-
if (m) {
|
|
5349
|
-
var modPrefix = " " + className + preset.m;
|
|
5350
|
-
for (var k in m) {
|
|
5351
|
-
if (m.hasOwnProperty(k)) {
|
|
5352
|
-
var modVal = m[k];
|
|
5353
|
-
if (modVal === true) {
|
|
5354
|
-
className += modPrefix + k;
|
|
5355
|
-
} else if (modVal) {
|
|
5356
|
-
className += modPrefix + k + modValueDelimiter + modVal;
|
|
5357
|
-
}
|
|
5358
|
-
}
|
|
5359
|
-
}
|
|
5360
|
-
}
|
|
5361
|
-
if (mix !== void 0) {
|
|
5362
|
-
mix = Array.isArray(mix) ? mix : [mix];
|
|
5363
|
-
for (var i = 0, len = mix.length; i < len; i++) {
|
|
5364
|
-
var value = mix[i];
|
|
5365
|
-
if (!value || typeof value.valueOf() !== "string")
|
|
5366
|
-
continue;
|
|
5367
|
-
var mixes = value.valueOf().split(" ");
|
|
5368
|
-
for (var j = 0; j < mixes.length; j++) {
|
|
5369
|
-
var val = mixes[j];
|
|
5370
|
-
if (val !== entityName) {
|
|
5371
|
-
className += " " + val;
|
|
5372
|
-
}
|
|
5373
|
-
}
|
|
5374
|
-
}
|
|
5375
|
-
}
|
|
5376
|
-
return className;
|
|
5377
|
-
}
|
|
5378
|
-
return function cnGenerator(b2, e) {
|
|
5379
|
-
return function(elemOrMods, elemModsOrBlockMix, elemMix) {
|
|
5380
|
-
if (typeof elemOrMods === "string") {
|
|
5381
|
-
if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
|
|
5382
|
-
return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
|
|
5383
|
-
}
|
|
5384
|
-
return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
|
|
5385
|
-
}
|
|
5386
|
-
return stringify(b2, e, elemOrMods, elemModsOrBlockMix);
|
|
5387
|
-
};
|
|
5388
|
-
};
|
|
5389
|
-
}
|
|
5390
|
-
var cn2 = withNaming({
|
|
5391
|
-
e: "-",
|
|
5392
|
-
m: "_"
|
|
5393
|
-
});
|
|
5394
|
-
classname_development.cn = cn2;
|
|
5395
|
-
classname_development.withNaming = withNaming;
|
|
5396
|
-
return classname_development;
|
|
5397
|
-
}
|
|
5398
|
-
(function(module2) {
|
|
5399
|
-
if (process.env.NODE_ENV === "production") {
|
|
5400
|
-
module2.exports = requireClassname_production_min();
|
|
5401
|
-
} else {
|
|
5402
|
-
module2.exports = requireClassname_development();
|
|
5403
|
-
}
|
|
5404
|
-
})(classname);
|
|
5405
|
-
const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
|
|
5406
5286
|
const defaultProps$1o = {
|
|
5407
5287
|
...ComponentDefaults,
|
|
5408
5288
|
position: "center",
|
|
5409
5289
|
transition: "",
|
|
5410
5290
|
overlayStyle: {},
|
|
5411
|
-
|
|
5412
|
-
popClass: "",
|
|
5291
|
+
overlayClassName: "",
|
|
5413
5292
|
closeable: false,
|
|
5414
5293
|
closeIconPosition: "top-right",
|
|
5415
5294
|
closeIcon: "close",
|
|
5416
|
-
destroyOnClose:
|
|
5417
|
-
|
|
5295
|
+
destroyOnClose: false,
|
|
5296
|
+
portal: null,
|
|
5418
5297
|
overlay: true,
|
|
5419
5298
|
round: false,
|
|
5420
5299
|
onOpen: () => {
|
|
5421
5300
|
},
|
|
5422
5301
|
onClose: () => {
|
|
5423
5302
|
},
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
onClosed: (e) => {
|
|
5427
|
-
},
|
|
5428
|
-
onClickOverlay: (e) => {
|
|
5429
|
-
},
|
|
5430
|
-
onClickCloseIcon: (e) => {
|
|
5431
|
-
},
|
|
5303
|
+
onClickOverlay: (e) => true,
|
|
5304
|
+
onClickCloseIcon: (e) => true,
|
|
5432
5305
|
...defaultOverlayProps
|
|
5433
5306
|
};
|
|
5434
5307
|
let _zIndex = 2e3;
|
|
@@ -5439,7 +5312,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5439
5312
|
overlay,
|
|
5440
5313
|
closeOnOverlayClick,
|
|
5441
5314
|
overlayStyle,
|
|
5442
|
-
|
|
5315
|
+
overlayClassName,
|
|
5443
5316
|
zIndex,
|
|
5444
5317
|
lockScroll,
|
|
5445
5318
|
duration,
|
|
@@ -5450,23 +5323,22 @@ var __publicField = (obj, key, value) => {
|
|
|
5450
5323
|
transition,
|
|
5451
5324
|
round,
|
|
5452
5325
|
position,
|
|
5453
|
-
popClass,
|
|
5454
5326
|
className,
|
|
5455
5327
|
destroyOnClose,
|
|
5456
|
-
|
|
5328
|
+
portal,
|
|
5457
5329
|
onOpen,
|
|
5458
5330
|
onClose,
|
|
5459
5331
|
onClickOverlay,
|
|
5460
5332
|
onClickCloseIcon,
|
|
5461
|
-
|
|
5462
|
-
|
|
5333
|
+
afterShow,
|
|
5334
|
+
afterClose,
|
|
5463
5335
|
onClick
|
|
5464
5336
|
} = props;
|
|
5465
5337
|
const [index, setIndex] = React.useState(zIndex || _zIndex);
|
|
5466
5338
|
const [innerVisible, setInnerVisible] = React.useState(visible);
|
|
5467
5339
|
const [showChildren, setShowChildren] = React.useState(true);
|
|
5468
5340
|
const [transitionName, setTransitionName] = React.useState("");
|
|
5469
|
-
const
|
|
5341
|
+
const classPrefix2 = "nut-popup";
|
|
5470
5342
|
const baseStyle = {
|
|
5471
5343
|
zIndex: index,
|
|
5472
5344
|
animationDuration: `${duration}s`
|
|
@@ -5479,15 +5351,15 @@ var __publicField = (obj, key, value) => {
|
|
|
5479
5351
|
...style,
|
|
5480
5352
|
...baseStyle
|
|
5481
5353
|
};
|
|
5482
|
-
const
|
|
5354
|
+
const popClassName = classNames({
|
|
5483
5355
|
round,
|
|
5484
|
-
[
|
|
5485
|
-
[`${
|
|
5356
|
+
[`${classPrefix2}`]: true,
|
|
5357
|
+
[`${classPrefix2}-${position}`]: true,
|
|
5486
5358
|
[`${className || ""}`]: true
|
|
5487
|
-
}
|
|
5359
|
+
});
|
|
5488
5360
|
const closeClasses = classNames({
|
|
5489
|
-
|
|
5490
|
-
[
|
|
5361
|
+
[`${classPrefix2}__close-icon`]: true,
|
|
5362
|
+
[`${classPrefix2}__close-icon--${closeIconPosition}`]: true
|
|
5491
5363
|
});
|
|
5492
5364
|
const open = () => {
|
|
5493
5365
|
if (!innerVisible) {
|
|
@@ -5505,29 +5377,29 @@ var __publicField = (obj, key, value) => {
|
|
|
5505
5377
|
if (destroyOnClose) {
|
|
5506
5378
|
setTimeout(() => {
|
|
5507
5379
|
setShowChildren(false);
|
|
5508
|
-
onClose && onClose();
|
|
5509
5380
|
}, Number(duration) * 1e3);
|
|
5510
5381
|
}
|
|
5382
|
+
onClose && onClose();
|
|
5511
5383
|
}
|
|
5512
5384
|
};
|
|
5513
5385
|
const onHandleClickOverlay = (e) => {
|
|
5514
5386
|
if (closeOnOverlayClick) {
|
|
5515
|
-
onClickOverlay && onClickOverlay(e);
|
|
5516
|
-
close();
|
|
5387
|
+
const closed = onClickOverlay && onClickOverlay(e);
|
|
5388
|
+
closed && close();
|
|
5517
5389
|
}
|
|
5518
5390
|
};
|
|
5519
5391
|
const onHandleClick = (e) => {
|
|
5520
5392
|
onClick && onClick(e);
|
|
5521
5393
|
};
|
|
5522
5394
|
const onHandleClickCloseIcon = (e) => {
|
|
5523
|
-
onClickCloseIcon && onClickCloseIcon(e);
|
|
5524
|
-
close();
|
|
5395
|
+
const closed = onClickCloseIcon && onClickCloseIcon(e);
|
|
5396
|
+
closed && close();
|
|
5525
5397
|
};
|
|
5526
5398
|
const onHandleOpened = (e) => {
|
|
5527
|
-
|
|
5399
|
+
afterShow && afterShow();
|
|
5528
5400
|
};
|
|
5529
5401
|
const onHandleClosed = (e) => {
|
|
5530
|
-
|
|
5402
|
+
afterClose && afterClose();
|
|
5531
5403
|
};
|
|
5532
5404
|
const resolveContainer = (getContainer) => {
|
|
5533
5405
|
const container = typeof getContainer === "function" ? getContainer() : getContainer;
|
|
@@ -5542,10 +5414,10 @@ var __publicField = (obj, key, value) => {
|
|
|
5542
5414
|
};
|
|
5543
5415
|
const renderIcon = () => {
|
|
5544
5416
|
if (closeable) {
|
|
5545
|
-
return /* @__PURE__ */ jsx(
|
|
5417
|
+
return /* @__PURE__ */ jsx(components.View, {
|
|
5546
5418
|
className: closeClasses,
|
|
5547
5419
|
onClick: onHandleClickCloseIcon,
|
|
5548
|
-
children: React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsx(a$
|
|
5420
|
+
children: React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ jsx(a$n, {
|
|
5549
5421
|
width: 12,
|
|
5550
5422
|
height: 12
|
|
5551
5423
|
})
|
|
@@ -5561,9 +5433,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5561
5433
|
in: innerVisible,
|
|
5562
5434
|
onEntered: onHandleOpened,
|
|
5563
5435
|
onExited: onHandleClosed,
|
|
5564
|
-
children: /* @__PURE__ */ jsxs(
|
|
5436
|
+
children: /* @__PURE__ */ jsxs(components.View, {
|
|
5565
5437
|
style: popStyles,
|
|
5566
|
-
className:
|
|
5438
|
+
className: popClassName,
|
|
5567
5439
|
onClick: onHandleClick,
|
|
5568
5440
|
children: [showChildren ? children : "", renderIcon()]
|
|
5569
5441
|
})
|
|
@@ -5574,7 +5446,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5574
5446
|
children: overlay ? /* @__PURE__ */ jsxs(Fragment, {
|
|
5575
5447
|
children: [/* @__PURE__ */ jsx(Overlay, {
|
|
5576
5448
|
style: overlayStyles,
|
|
5577
|
-
className:
|
|
5449
|
+
className: overlayClassName,
|
|
5578
5450
|
visible: innerVisible,
|
|
5579
5451
|
closeOnOverlayClick,
|
|
5580
5452
|
zIndex,
|
|
@@ -5592,16 +5464,17 @@ var __publicField = (obj, key, value) => {
|
|
|
5592
5464
|
!visible && close();
|
|
5593
5465
|
}, [visible]);
|
|
5594
5466
|
React.useEffect(() => {
|
|
5595
|
-
setTransitionName(transition ||
|
|
5596
|
-
}, [position]);
|
|
5467
|
+
setTransitionName(transition || `${classPrefix2}-slide-${position}`);
|
|
5468
|
+
}, [position, transition]);
|
|
5597
5469
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
5598
|
-
children: renderToContainer(
|
|
5470
|
+
children: renderToContainer(portal, renderNode())
|
|
5599
5471
|
});
|
|
5600
5472
|
};
|
|
5601
5473
|
Popup.defaultProps = defaultProps$1o;
|
|
5602
5474
|
Popup.displayName = "NutPopup";
|
|
5603
5475
|
const DataContext$2 = React.createContext({});
|
|
5604
5476
|
const defaultProps$1n = {
|
|
5477
|
+
...ComponentDefaults,
|
|
5605
5478
|
span: "24",
|
|
5606
5479
|
offset: "0",
|
|
5607
5480
|
gutter: "0"
|
|
@@ -5609,7 +5482,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5609
5482
|
const Col = (props) => {
|
|
5610
5483
|
const {
|
|
5611
5484
|
className,
|
|
5612
|
-
style
|
|
5485
|
+
style,
|
|
5613
5486
|
span,
|
|
5614
5487
|
offset,
|
|
5615
5488
|
children,
|
|
@@ -5652,10 +5525,11 @@ var __publicField = (obj, key, value) => {
|
|
|
5652
5525
|
Col.defaultProps = defaultProps$1n;
|
|
5653
5526
|
Col.displayName = "NutCol";
|
|
5654
5527
|
const defaultProps$1m = {
|
|
5528
|
+
...ComponentDefaults,
|
|
5655
5529
|
contentPosition: "center",
|
|
5656
5530
|
direction: "horizontal"
|
|
5657
5531
|
};
|
|
5658
|
-
const classPrefix$
|
|
5532
|
+
const classPrefix$5 = `nut-divider`;
|
|
5659
5533
|
const Divider = (props) => {
|
|
5660
5534
|
const {
|
|
5661
5535
|
children,
|
|
@@ -5669,14 +5543,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5669
5543
|
...props
|
|
5670
5544
|
};
|
|
5671
5545
|
const classes = direction === "horizontal" ? classNames({
|
|
5672
|
-
[`${classPrefix$
|
|
5673
|
-
[`${classPrefix$
|
|
5674
|
-
[`${classPrefix$
|
|
5675
|
-
[`${classPrefix$
|
|
5676
|
-
[`${classPrefix$
|
|
5546
|
+
[`${classPrefix$5}`]: true,
|
|
5547
|
+
[`${classPrefix$5}__center`]: children,
|
|
5548
|
+
[`${classPrefix$5}__left`]: contentPosition === "left",
|
|
5549
|
+
[`${classPrefix$5}__right`]: contentPosition === "right",
|
|
5550
|
+
[`${classPrefix$5}__hairline`]: true
|
|
5677
5551
|
}) : classNames({
|
|
5678
|
-
[`${classPrefix$
|
|
5679
|
-
[`${classPrefix$
|
|
5552
|
+
[`${classPrefix$5}`]: true,
|
|
5553
|
+
[`${classPrefix$5}__vertical`]: direction === "vertical"
|
|
5680
5554
|
});
|
|
5681
5555
|
return /* @__PURE__ */ jsx("div", {
|
|
5682
5556
|
className: `${classes} ${className || ""}`,
|
|
@@ -5863,7 +5737,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5863
5737
|
};
|
|
5864
5738
|
Layout.defaultProps = defaultProps$1j;
|
|
5865
5739
|
Layout.displayName = "NutLayout";
|
|
5740
|
+
const classPrefix$4 = "nut-row";
|
|
5866
5741
|
const defaultProps$1i = {
|
|
5742
|
+
...ComponentDefaults,
|
|
5867
5743
|
type: "",
|
|
5868
5744
|
justify: "start",
|
|
5869
5745
|
align: "flex-start",
|
|
@@ -5873,7 +5749,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5873
5749
|
const Row = (props) => {
|
|
5874
5750
|
const {
|
|
5875
5751
|
className,
|
|
5876
|
-
style
|
|
5752
|
+
style,
|
|
5877
5753
|
children,
|
|
5878
5754
|
type,
|
|
5879
5755
|
justify,
|
|
@@ -5885,7 +5761,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5885
5761
|
...defaultProps$1i,
|
|
5886
5762
|
...props
|
|
5887
5763
|
};
|
|
5888
|
-
const prefixCls2 = "nut-row";
|
|
5889
5764
|
const getClass = (prefix2, type2) => {
|
|
5890
5765
|
const classType = type2 ? `nut-row-${prefix2}-${type2}` : "";
|
|
5891
5766
|
const className2 = prefix2 ? classType : `nut-row-${type2}`;
|
|
@@ -5897,7 +5772,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5897
5772
|
${getClass("justify", justify)}
|
|
5898
5773
|
${getClass("align", align)}
|
|
5899
5774
|
${getClass("flex", wrap)}
|
|
5900
|
-
${
|
|
5775
|
+
${classPrefix$4}
|
|
5901
5776
|
`;
|
|
5902
5777
|
};
|
|
5903
5778
|
const parentRow = {
|
|
@@ -5976,7 +5851,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5976
5851
|
position: "top",
|
|
5977
5852
|
zIndex: 2e3
|
|
5978
5853
|
};
|
|
5979
|
-
const classPrefix$
|
|
5854
|
+
const classPrefix$3 = "nut-sticky";
|
|
5980
5855
|
const Sticky = (props) => {
|
|
5981
5856
|
const {
|
|
5982
5857
|
position,
|
|
@@ -6082,7 +5957,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6082
5957
|
return /* @__PURE__ */ jsx("div", {
|
|
6083
5958
|
ref: rootRef,
|
|
6084
5959
|
style: rootStyle,
|
|
6085
|
-
className: classNames(classPrefix$
|
|
5960
|
+
className: classNames(classPrefix$3, className),
|
|
6086
5961
|
...rest,
|
|
6087
5962
|
children: /* @__PURE__ */ jsx("div", {
|
|
6088
5963
|
className: classNames("nut-sticky--box", {
|
|
@@ -6098,10 +5973,11 @@ var __publicField = (obj, key, value) => {
|
|
|
6098
5973
|
Sticky.displayName = "NutSticky";
|
|
6099
5974
|
const elevatorContext = React.createContext({});
|
|
6100
5975
|
const defaultProps$1g = {
|
|
5976
|
+
...ComponentDefaults,
|
|
6101
5977
|
height: "200px",
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
5978
|
+
floorKey: "title",
|
|
5979
|
+
list: [],
|
|
5980
|
+
sticky: false,
|
|
6105
5981
|
spaceHeight: 23,
|
|
6106
5982
|
titleHeight: 35,
|
|
6107
5983
|
className: "weapp-elevator"
|
|
@@ -6109,12 +5985,13 @@ var __publicField = (obj, key, value) => {
|
|
|
6109
5985
|
const Elevator = (props) => {
|
|
6110
5986
|
const {
|
|
6111
5987
|
height,
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
5988
|
+
floorKey,
|
|
5989
|
+
list,
|
|
5990
|
+
sticky,
|
|
6115
5991
|
spaceHeight,
|
|
6116
5992
|
titleHeight,
|
|
6117
5993
|
className,
|
|
5994
|
+
style,
|
|
6118
5995
|
onClickItem,
|
|
6119
5996
|
onClickIndex,
|
|
6120
5997
|
children,
|
|
@@ -6123,7 +6000,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6123
6000
|
...defaultProps$1g,
|
|
6124
6001
|
...props
|
|
6125
6002
|
};
|
|
6126
|
-
const
|
|
6003
|
+
const classPrefix2 = "nut-elevator";
|
|
6127
6004
|
const listview = React.useRef(null);
|
|
6128
6005
|
const initData = {
|
|
6129
6006
|
anchorIndex: 0,
|
|
@@ -6156,7 +6033,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6156
6033
|
state.current.listHeight.push(height2);
|
|
6157
6034
|
for (let i = 0; i < state.current.listGroup.length; i++) {
|
|
6158
6035
|
const query = Taro.createSelectorQuery();
|
|
6159
|
-
query.selectAll(`.${className} .elevator__item__${i}`).boundingClientRect();
|
|
6036
|
+
query.selectAll(`.${className} .nut-elevator__item__${i}`).boundingClientRect();
|
|
6160
6037
|
query.exec((res) => {
|
|
6161
6038
|
if (res[0][0])
|
|
6162
6039
|
height2 += res[0][0].height;
|
|
@@ -6250,39 +6127,41 @@ var __publicField = (obj, key, value) => {
|
|
|
6250
6127
|
}
|
|
6251
6128
|
}, [listview]);
|
|
6252
6129
|
return /* @__PURE__ */ jsxs("div", {
|
|
6253
|
-
className: `${
|
|
6130
|
+
className: `${classPrefix2} ${className}`,
|
|
6131
|
+
style,
|
|
6254
6132
|
...rest,
|
|
6255
|
-
children: [
|
|
6256
|
-
className:
|
|
6133
|
+
children: [sticky && scrollTop > 0 ? /* @__PURE__ */ jsx("div", {
|
|
6134
|
+
className: `${classPrefix2}__list__fixed`,
|
|
6257
6135
|
children: /* @__PURE__ */ jsx("span", {
|
|
6258
|
-
className:
|
|
6259
|
-
children:
|
|
6136
|
+
className: `${classPrefix2}__list__fixed__title`,
|
|
6137
|
+
children: list[currentIndex][floorKey]
|
|
6260
6138
|
})
|
|
6261
6139
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
6262
|
-
className:
|
|
6140
|
+
className: `${classPrefix2}__list`,
|
|
6263
6141
|
style: {
|
|
6264
6142
|
height: Number.isNaN(+height) ? height : `${height}px`
|
|
6265
6143
|
},
|
|
6266
6144
|
children: /* @__PURE__ */ jsx(components.ScrollView, {
|
|
6267
6145
|
scrollTop,
|
|
6268
6146
|
scrollY: true,
|
|
6147
|
+
className: `${classPrefix2}__list__inner`,
|
|
6269
6148
|
type: "list",
|
|
6270
|
-
className: b2("list__inner"),
|
|
6271
6149
|
ref: listview,
|
|
6272
6150
|
onScroll: listViewScroll,
|
|
6273
|
-
children:
|
|
6151
|
+
children: list.map((item, idx) => {
|
|
6274
6152
|
return /* @__PURE__ */ jsxs("div", {
|
|
6275
|
-
className: `${
|
|
6153
|
+
className: `${classPrefix2}__list__item nut-elevator__item__${idx}`,
|
|
6276
6154
|
children: [/* @__PURE__ */ jsx("div", {
|
|
6277
|
-
className:
|
|
6278
|
-
children: item[
|
|
6155
|
+
className: `${classPrefix2}__list__item__code`,
|
|
6156
|
+
children: item[floorKey]
|
|
6279
6157
|
}), /* @__PURE__ */ jsx(Fragment, {
|
|
6280
6158
|
children: item.list.map((subitem) => {
|
|
6281
6159
|
return /* @__PURE__ */ jsx("div", {
|
|
6282
|
-
className:
|
|
6283
|
-
|
|
6160
|
+
className: classNames({
|
|
6161
|
+
[`${classPrefix2}__list__item__name`]: true,
|
|
6162
|
+
[`${classPrefix2}__list__item__name--highcolor`]: currentData.id === subitem.id && currentKey === item[floorKey]
|
|
6284
6163
|
}),
|
|
6285
|
-
onClick: () => handleClickItem(item[
|
|
6164
|
+
onClick: () => handleClickItem(item[floorKey], subitem),
|
|
6286
6165
|
children: children ? /* @__PURE__ */ jsx(Fragment, {
|
|
6287
6166
|
children: /* @__PURE__ */ jsx(elevatorContext.Provider, {
|
|
6288
6167
|
value: subitem,
|
|
@@ -6295,29 +6174,31 @@ var __publicField = (obj, key, value) => {
|
|
|
6295
6174
|
}, idx);
|
|
6296
6175
|
})
|
|
6297
6176
|
})
|
|
6298
|
-
}),
|
|
6299
|
-
className:
|
|
6300
|
-
current: true
|
|
6177
|
+
}), list.length && scrollStart ? /* @__PURE__ */ jsx("div", {
|
|
6178
|
+
className: classNames({
|
|
6179
|
+
[`${classPrefix2}__code--current`]: true,
|
|
6180
|
+
[`${classPrefix2}__code--current--current`]: true
|
|
6301
6181
|
}),
|
|
6302
|
-
children:
|
|
6182
|
+
children: list[codeIndex][floorKey]
|
|
6303
6183
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
6304
|
-
className:
|
|
6184
|
+
className: `${classPrefix2}__bars`,
|
|
6305
6185
|
children: /* @__PURE__ */ jsx("div", {
|
|
6306
|
-
className:
|
|
6186
|
+
className: `${classPrefix2}__bars__inner`,
|
|
6307
6187
|
onTouchStart: (event) => touchStart(event),
|
|
6308
6188
|
onTouchMove: (event) => touchMove(event),
|
|
6309
6189
|
onTouchEnd: touchEnd,
|
|
6310
6190
|
style: {
|
|
6311
6191
|
touchAction: "pan-y"
|
|
6312
6192
|
},
|
|
6313
|
-
children:
|
|
6193
|
+
children: list.map((item, index) => {
|
|
6314
6194
|
return /* @__PURE__ */ jsx("div", {
|
|
6315
|
-
className:
|
|
6316
|
-
|
|
6317
|
-
|
|
6195
|
+
className: classNames({
|
|
6196
|
+
[`${classPrefix2}__bars__inner__item`]: true,
|
|
6197
|
+
[`${classPrefix2}__bars__inner__item--active`]: item[floorKey] === list[currentIndex][floorKey]
|
|
6198
|
+
}),
|
|
6318
6199
|
"data-index": index,
|
|
6319
|
-
onClick: () => handleClickIndex(item[
|
|
6320
|
-
children: item[
|
|
6200
|
+
onClick: () => handleClickIndex(item[floorKey]),
|
|
6201
|
+
children: item[floorKey]
|
|
6321
6202
|
}, index);
|
|
6322
6203
|
})
|
|
6323
6204
|
})
|
|
@@ -6406,7 +6287,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6406
6287
|
className: `${classPrefix2}__btn`,
|
|
6407
6288
|
onClick: () => onUpdateValue(),
|
|
6408
6289
|
children: content || /* @__PURE__ */ jsxs(Fragment, {
|
|
6409
|
-
children: [/* @__PURE__ */ jsx(a$
|
|
6290
|
+
children: [/* @__PURE__ */ jsx(a$g, {
|
|
6410
6291
|
color: "#fff"
|
|
6411
6292
|
}), /* @__PURE__ */ jsx("div", {
|
|
6412
6293
|
className: "text",
|
|
@@ -6423,7 +6304,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6423
6304
|
current: 1,
|
|
6424
6305
|
direction: "horizontal"
|
|
6425
6306
|
};
|
|
6426
|
-
const classPrefix$
|
|
6307
|
+
const classPrefix$2 = `nut-indicator`;
|
|
6427
6308
|
const Indicator = (props) => {
|
|
6428
6309
|
const {
|
|
6429
6310
|
total,
|
|
@@ -6437,17 +6318,17 @@ var __publicField = (obj, key, value) => {
|
|
|
6437
6318
|
...props
|
|
6438
6319
|
};
|
|
6439
6320
|
const classes = classNames({
|
|
6440
|
-
[`${classPrefix$
|
|
6321
|
+
[`${classPrefix$2}__vertical`]: direction === "vertical"
|
|
6441
6322
|
});
|
|
6442
6323
|
const renderElement = () => {
|
|
6443
6324
|
const childs = [];
|
|
6444
6325
|
for (let item = 1; item <= total; item++) {
|
|
6445
6326
|
childs.push(item === current ? /* @__PURE__ */ jsx(Fragment, {
|
|
6446
6327
|
children: children || /* @__PURE__ */ jsx("div", {
|
|
6447
|
-
className: `${classPrefix$
|
|
6328
|
+
className: `${classPrefix$2}__dot ${classPrefix$2}__active`
|
|
6448
6329
|
}, item)
|
|
6449
6330
|
}) : /* @__PURE__ */ jsx("div", {
|
|
6450
|
-
className: `${classPrefix$
|
|
6331
|
+
className: `${classPrefix$2}__dot`
|
|
6451
6332
|
}, item));
|
|
6452
6333
|
}
|
|
6453
6334
|
return childs;
|
|
@@ -6462,18 +6343,16 @@ var __publicField = (obj, key, value) => {
|
|
|
6462
6343
|
Indicator.displayName = "NutIndicator";
|
|
6463
6344
|
const defaultProps$1d = {
|
|
6464
6345
|
...ComponentDefaults,
|
|
6465
|
-
className: "",
|
|
6466
|
-
style: {},
|
|
6467
6346
|
activeColor: "",
|
|
6468
6347
|
closeOnClickOverlay: true,
|
|
6469
6348
|
scrollFixed: false,
|
|
6470
6349
|
lockScroll: true,
|
|
6471
|
-
|
|
6350
|
+
icon: null
|
|
6472
6351
|
};
|
|
6473
6352
|
const Menu = (props) => {
|
|
6474
6353
|
const {
|
|
6475
6354
|
className,
|
|
6476
|
-
|
|
6355
|
+
icon,
|
|
6477
6356
|
scrollFixed,
|
|
6478
6357
|
lockScroll,
|
|
6479
6358
|
closeOnClickOverlay,
|
|
@@ -6484,8 +6363,18 @@ var __publicField = (obj, key, value) => {
|
|
|
6484
6363
|
...defaultProps$1d,
|
|
6485
6364
|
...props
|
|
6486
6365
|
};
|
|
6487
|
-
const
|
|
6366
|
+
const menuRef = React.useRef(null);
|
|
6367
|
+
const [isScrollFixed, setIsScrollFixed] = React.useState(false);
|
|
6368
|
+
const getScrollTop = (el) => {
|
|
6369
|
+
return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
|
|
6370
|
+
};
|
|
6488
6371
|
const onScroll = () => {
|
|
6372
|
+
const {
|
|
6373
|
+
scrollFixed: scrollFixed2
|
|
6374
|
+
} = props;
|
|
6375
|
+
const scrollTop = getScrollTop(window);
|
|
6376
|
+
const isFixed = scrollTop > (typeof scrollFixed2 === "boolean" ? 30 : Number(scrollFixed2));
|
|
6377
|
+
setIsScrollFixed(isFixed);
|
|
6489
6378
|
};
|
|
6490
6379
|
React.useEffect(() => {
|
|
6491
6380
|
if (scrollFixed) {
|
|
@@ -6493,101 +6382,103 @@ var __publicField = (obj, key, value) => {
|
|
|
6493
6382
|
}
|
|
6494
6383
|
return () => window.removeEventListener("scroll", onScroll);
|
|
6495
6384
|
}, []);
|
|
6496
|
-
const [
|
|
6497
|
-
const [
|
|
6498
|
-
const
|
|
6499
|
-
|
|
6500
|
-
const temp =
|
|
6501
|
-
|
|
6385
|
+
const [showMenuItem, setShowMenuItem] = React.useState([]);
|
|
6386
|
+
const [menuItemTitle, setMenuItemTitle] = React.useState([]);
|
|
6387
|
+
const toggleMenuItem = (index) => {
|
|
6388
|
+
showMenuItem[index] = !showMenuItem[index];
|
|
6389
|
+
const temp = showMenuItem.map((i, idx) => idx === index ? i : false);
|
|
6390
|
+
setShowMenuItem([...temp]);
|
|
6502
6391
|
};
|
|
6503
|
-
const
|
|
6504
|
-
|
|
6505
|
-
|
|
6392
|
+
const hideMenuItem = (index) => {
|
|
6393
|
+
showMenuItem[index] = false;
|
|
6394
|
+
setShowMenuItem([...showMenuItem]);
|
|
6506
6395
|
};
|
|
6507
6396
|
const updateTitle = (text, index) => {
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
};
|
|
6511
|
-
const parent = () => {
|
|
6512
|
-
return parentRef;
|
|
6397
|
+
menuItemTitle[index] = text;
|
|
6398
|
+
setMenuItemTitle([...menuItemTitle]);
|
|
6513
6399
|
};
|
|
6514
6400
|
const cloneChildren = () => {
|
|
6515
6401
|
return React.Children.map(children, (child, index) => {
|
|
6516
6402
|
return React.cloneElement(child, {
|
|
6517
|
-
|
|
6518
|
-
|
|
6403
|
+
show: showMenuItem[index],
|
|
6404
|
+
index,
|
|
6519
6405
|
activeColor,
|
|
6520
6406
|
parent: {
|
|
6521
6407
|
closeOnClickOverlay,
|
|
6522
6408
|
lockScroll,
|
|
6523
|
-
|
|
6409
|
+
toggleMenuItem,
|
|
6524
6410
|
updateTitle,
|
|
6525
|
-
|
|
6526
|
-
|
|
6411
|
+
hideMenuItem,
|
|
6412
|
+
menuRef
|
|
6527
6413
|
}
|
|
6528
6414
|
});
|
|
6529
6415
|
});
|
|
6530
6416
|
};
|
|
6417
|
+
const menuTitle = () => {
|
|
6418
|
+
return React.Children.map(children, (child, index) => {
|
|
6419
|
+
if (React.isValidElement(child)) {
|
|
6420
|
+
const {
|
|
6421
|
+
title,
|
|
6422
|
+
options,
|
|
6423
|
+
value,
|
|
6424
|
+
disabled,
|
|
6425
|
+
direction
|
|
6426
|
+
} = child.props;
|
|
6427
|
+
const selected = options == null ? void 0 : options.filter((option) => option.value === value);
|
|
6428
|
+
const finallyTitle = () => {
|
|
6429
|
+
if (title)
|
|
6430
|
+
return title;
|
|
6431
|
+
if (menuItemTitle && menuItemTitle[index])
|
|
6432
|
+
return menuItemTitle[index];
|
|
6433
|
+
if (selected && selected.length && selected[0].text)
|
|
6434
|
+
return selected[0].text;
|
|
6435
|
+
return "";
|
|
6436
|
+
};
|
|
6437
|
+
return /* @__PURE__ */ jsx("div", {
|
|
6438
|
+
className: classNames("nut-menu__item ", className, {
|
|
6439
|
+
active: showMenuItem[index],
|
|
6440
|
+
disabled
|
|
6441
|
+
}),
|
|
6442
|
+
style: {
|
|
6443
|
+
color: showMenuItem[index] ? activeColor : ""
|
|
6444
|
+
},
|
|
6445
|
+
onClick: () => {
|
|
6446
|
+
!disabled && toggleMenuItem(index);
|
|
6447
|
+
},
|
|
6448
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
6449
|
+
className: classNames("nut-menu__title ", {
|
|
6450
|
+
active: showMenuItem[index],
|
|
6451
|
+
disabled
|
|
6452
|
+
}),
|
|
6453
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
6454
|
+
className: "nut-menu__title-text",
|
|
6455
|
+
children: finallyTitle()
|
|
6456
|
+
}), icon || (direction === "up" ? /* @__PURE__ */ jsx(a$v, {
|
|
6457
|
+
className: "nut-menu__title-icon",
|
|
6458
|
+
size: 10
|
|
6459
|
+
}) : /* @__PURE__ */ jsx(a$w, {
|
|
6460
|
+
className: "nut-menu__title-icon",
|
|
6461
|
+
size: 10
|
|
6462
|
+
}))]
|
|
6463
|
+
})
|
|
6464
|
+
}, index);
|
|
6465
|
+
}
|
|
6466
|
+
return null;
|
|
6467
|
+
});
|
|
6468
|
+
};
|
|
6531
6469
|
return /* @__PURE__ */ jsx("div", {
|
|
6532
|
-
className: `nut-menu ${className}`,
|
|
6533
6470
|
...rest,
|
|
6534
|
-
|
|
6471
|
+
className: classNames(`nut-menu`, className, {
|
|
6472
|
+
"scroll-fixed": isScrollFixed
|
|
6473
|
+
}),
|
|
6474
|
+
ref: menuRef,
|
|
6535
6475
|
children: /* @__PURE__ */ jsxs("div", {
|
|
6536
6476
|
className: "nut-menu-relative",
|
|
6537
6477
|
children: [/* @__PURE__ */ jsx("div", {
|
|
6538
|
-
className:
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
const {
|
|
6543
|
-
disabled,
|
|
6544
|
-
title,
|
|
6545
|
-
value,
|
|
6546
|
-
direction,
|
|
6547
|
-
options,
|
|
6548
|
-
className: className2
|
|
6549
|
-
} = child.props;
|
|
6550
|
-
const currentTitle = options == null ? void 0 : options.filter((option) => option.value === value);
|
|
6551
|
-
function finallyTitle() {
|
|
6552
|
-
if (title)
|
|
6553
|
-
return title;
|
|
6554
|
-
if (itemTitle && itemTitle[index])
|
|
6555
|
-
return itemTitle[index];
|
|
6556
|
-
if (currentTitle && currentTitle[0] && currentTitle[0].text)
|
|
6557
|
-
return currentTitle[0].text;
|
|
6558
|
-
return "";
|
|
6559
|
-
}
|
|
6560
|
-
return /* @__PURE__ */ jsx("div", {
|
|
6561
|
-
className: `nut-menu__item ${classNames({
|
|
6562
|
-
active: itemShow[index],
|
|
6563
|
-
disabled
|
|
6564
|
-
})} ${className2}`,
|
|
6565
|
-
style: {
|
|
6566
|
-
color: itemShow[index] ? activeColor : ""
|
|
6567
|
-
},
|
|
6568
|
-
onClick: () => {
|
|
6569
|
-
!disabled && toggleItemShow(index);
|
|
6570
|
-
},
|
|
6571
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
6572
|
-
className: `nut-menu__title ${classNames({
|
|
6573
|
-
active: itemShow[index],
|
|
6574
|
-
disabled
|
|
6575
|
-
})}`,
|
|
6576
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
6577
|
-
className: "nut-menu__title-text",
|
|
6578
|
-
children: finallyTitle()
|
|
6579
|
-
}), titleIcon || /* @__PURE__ */ jsx(Fragment, {
|
|
6580
|
-
children: direction === "up" ? /* @__PURE__ */ jsx(a$8, {
|
|
6581
|
-
className: "nut-menu__title-icon",
|
|
6582
|
-
size: "14px"
|
|
6583
|
-
}) : /* @__PURE__ */ jsx(a$9, {
|
|
6584
|
-
className: "nut-menu__title-icon",
|
|
6585
|
-
size: "14px"
|
|
6586
|
-
})
|
|
6587
|
-
})]
|
|
6588
|
-
})
|
|
6589
|
-
}, index);
|
|
6590
|
-
})
|
|
6478
|
+
className: classNames("nut-menu__bar", {
|
|
6479
|
+
opened: showMenuItem.includes(true)
|
|
6480
|
+
}),
|
|
6481
|
+
children: menuTitle()
|
|
6591
6482
|
}), cloneChildren()]
|
|
6592
6483
|
})
|
|
6593
6484
|
});
|
|
@@ -6596,53 +6487,47 @@ var __publicField = (obj, key, value) => {
|
|
|
6596
6487
|
Menu.displayName = "NutMenu";
|
|
6597
6488
|
const defaultProps$1c = {
|
|
6598
6489
|
...ComponentDefaults,
|
|
6599
|
-
className: "",
|
|
6600
|
-
style: {},
|
|
6601
6490
|
columns: 1,
|
|
6602
6491
|
direction: "down",
|
|
6603
|
-
|
|
6492
|
+
icon: null,
|
|
6493
|
+
closeOnClickAway: false,
|
|
6604
6494
|
activeTitleClass: "",
|
|
6605
6495
|
inactiveTitleClass: "",
|
|
6606
6496
|
onChange: (value) => void 0
|
|
6607
6497
|
};
|
|
6608
6498
|
const MenuItem = React.forwardRef((props, ref) => {
|
|
6609
|
-
useConfig$1();
|
|
6610
|
-
const mergedProps = {
|
|
6611
|
-
...defaultProps$1c,
|
|
6612
|
-
...props
|
|
6613
|
-
};
|
|
6614
6499
|
const {
|
|
6500
|
+
className,
|
|
6615
6501
|
style,
|
|
6616
6502
|
options,
|
|
6617
6503
|
value,
|
|
6618
6504
|
columns,
|
|
6619
6505
|
title,
|
|
6620
|
-
|
|
6506
|
+
icon,
|
|
6621
6507
|
direction,
|
|
6622
6508
|
onChange,
|
|
6623
6509
|
activeTitleClass,
|
|
6624
6510
|
inactiveTitleClass,
|
|
6625
|
-
|
|
6511
|
+
closeOnClickAway,
|
|
6512
|
+
children,
|
|
6513
|
+
activeColor,
|
|
6514
|
+
show,
|
|
6515
|
+
parent,
|
|
6516
|
+
index
|
|
6626
6517
|
} = {
|
|
6627
6518
|
...defaultProps$1c,
|
|
6628
6519
|
...props
|
|
6629
6520
|
};
|
|
6630
|
-
const
|
|
6631
|
-
activeColor,
|
|
6632
|
-
showPopup,
|
|
6633
|
-
parent,
|
|
6634
|
-
orderKey
|
|
6635
|
-
} = mergedProps;
|
|
6636
|
-
const [_showPopup, setShowPopup] = React.useState(showPopup);
|
|
6521
|
+
const [_showPopup, setShowPopup] = React.useState(show);
|
|
6637
6522
|
const [_value, setValue] = React.useState(value);
|
|
6638
6523
|
React.useEffect(() => {
|
|
6639
|
-
setShowPopup(
|
|
6640
|
-
}, [
|
|
6524
|
+
setShowPopup(show);
|
|
6525
|
+
}, [show]);
|
|
6641
6526
|
React.useEffect(() => {
|
|
6642
6527
|
getParentOffset();
|
|
6643
6528
|
}, [_showPopup]);
|
|
6644
6529
|
React.useImperativeHandle(ref, () => ({
|
|
6645
|
-
toggle: parent.
|
|
6530
|
+
toggle: parent.toggleMenuItem
|
|
6646
6531
|
}));
|
|
6647
6532
|
const getIconCName = (optionVal, value2) => {
|
|
6648
6533
|
return classNames({
|
|
@@ -6652,11 +6537,11 @@ var __publicField = (obj, key, value) => {
|
|
|
6652
6537
|
};
|
|
6653
6538
|
const setTitle = (text) => {
|
|
6654
6539
|
if (!title) {
|
|
6655
|
-
parent.updateTitle(text,
|
|
6540
|
+
parent.updateTitle(text, index);
|
|
6656
6541
|
}
|
|
6657
6542
|
};
|
|
6658
6543
|
const handleClick = (item) => {
|
|
6659
|
-
parent.
|
|
6544
|
+
parent.toggleMenuItem(index);
|
|
6660
6545
|
setTitle(item.text);
|
|
6661
6546
|
setValue(item.value);
|
|
6662
6547
|
onChange && onChange(item);
|
|
@@ -6667,13 +6552,13 @@ var __publicField = (obj, key, value) => {
|
|
|
6667
6552
|
});
|
|
6668
6553
|
const getParentOffset = () => {
|
|
6669
6554
|
setTimeout(async () => {
|
|
6670
|
-
const p = parent.
|
|
6671
|
-
const rect = await p
|
|
6555
|
+
const p = parent.menuRef.current;
|
|
6556
|
+
const rect = await getRectByTaro(p);
|
|
6672
6557
|
setPosition({
|
|
6673
6558
|
height: rect.height,
|
|
6674
6559
|
top: rect.top
|
|
6675
6560
|
});
|
|
6676
|
-
});
|
|
6561
|
+
}, 100);
|
|
6677
6562
|
};
|
|
6678
6563
|
const isShow = () => {
|
|
6679
6564
|
if (_showPopup)
|
|
@@ -6686,7 +6571,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6686
6571
|
return direction === "down" ? {
|
|
6687
6572
|
top: `${position.top + position.height}px`
|
|
6688
6573
|
} : {
|
|
6689
|
-
bottom: `${
|
|
6574
|
+
bottom: `${Taro.getSystemInfoSync().windowHeight - position.top}px`,
|
|
6690
6575
|
top: "auto"
|
|
6691
6576
|
};
|
|
6692
6577
|
};
|
|
@@ -6694,37 +6579,40 @@ var __publicField = (obj, key, value) => {
|
|
|
6694
6579
|
if (direction === "down") {
|
|
6695
6580
|
return {
|
|
6696
6581
|
height: `${position.top + position.height}px`,
|
|
6697
|
-
|
|
6698
|
-
...
|
|
6582
|
+
top: 0,
|
|
6583
|
+
...isShow()
|
|
6699
6584
|
};
|
|
6700
6585
|
}
|
|
6701
6586
|
return {
|
|
6702
|
-
height: `${
|
|
6587
|
+
height: `${Taro.getSystemInfoSync().windowHeight - position.top}px`,
|
|
6588
|
+
bottom: `0px`,
|
|
6703
6589
|
top: "auto",
|
|
6704
|
-
...isShow()
|
|
6705
|
-
...style
|
|
6590
|
+
...isShow()
|
|
6706
6591
|
};
|
|
6707
6592
|
};
|
|
6708
6593
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
6709
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
6594
|
+
children: [closeOnClickAway ? /* @__PURE__ */ jsx("div", {
|
|
6710
6595
|
className: `placeholder-element ${classNames({
|
|
6711
6596
|
up: direction === "up"
|
|
6712
6597
|
})}`,
|
|
6713
6598
|
style: placeholderStyle(),
|
|
6714
|
-
onClick: () => parent.
|
|
6715
|
-
}), /* @__PURE__ */ jsx(Overlay, {
|
|
6599
|
+
onClick: () => parent.toggleMenuItem(index)
|
|
6600
|
+
}) : null, /* @__PURE__ */ jsx(Overlay, {
|
|
6716
6601
|
className: "nut-menu__overlay",
|
|
6717
6602
|
style: getPosition(),
|
|
6718
6603
|
lockScroll: parent.lockScroll,
|
|
6719
6604
|
visible: _showPopup,
|
|
6720
|
-
closeOnOverlayClick: parent.
|
|
6605
|
+
closeOnOverlayClick: parent.closeOnOverlayClick,
|
|
6721
6606
|
onClick: () => {
|
|
6722
|
-
parent.
|
|
6607
|
+
parent.closeOnOverlayClick && parent.toggleMenuItem(index);
|
|
6723
6608
|
}
|
|
6724
6609
|
}), /* @__PURE__ */ jsx("div", {
|
|
6725
|
-
className:
|
|
6610
|
+
className: classNames(className, {
|
|
6611
|
+
"nut-menu-item__wrap": direction === "down",
|
|
6612
|
+
"nut-menu-item__wrap-up": direction !== "down"
|
|
6613
|
+
}),
|
|
6726
6614
|
style: {
|
|
6727
|
-
|
|
6615
|
+
...style,
|
|
6728
6616
|
...isShow()
|
|
6729
6617
|
},
|
|
6730
6618
|
children: /* @__PURE__ */ jsx(CSSTransition$1, {
|
|
@@ -6733,7 +6621,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6733
6621
|
classNames: direction === "down" ? "menu-item" : "menu-item-up",
|
|
6734
6622
|
children: /* @__PURE__ */ jsxs("div", {
|
|
6735
6623
|
className: "nut-menu-item__content",
|
|
6736
|
-
children: [options == null ? void 0 : options.map((item,
|
|
6624
|
+
children: [options == null ? void 0 : options.map((item, index2) => {
|
|
6737
6625
|
return /* @__PURE__ */ jsxs("div", {
|
|
6738
6626
|
className: `nut-menu-item__option ${classNames({
|
|
6739
6627
|
active: item.value === _value
|
|
@@ -6745,8 +6633,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6745
6633
|
handleClick(item);
|
|
6746
6634
|
},
|
|
6747
6635
|
children: [item.value === _value ? /* @__PURE__ */ jsx(Fragment, {
|
|
6748
|
-
children:
|
|
6636
|
+
children: icon || /* @__PURE__ */ jsx(a$r, {
|
|
6749
6637
|
color: activeColor,
|
|
6638
|
+
size: 10,
|
|
6750
6639
|
className: getIconCName(item.value, value)
|
|
6751
6640
|
})
|
|
6752
6641
|
}) : null, /* @__PURE__ */ jsx("div", {
|
|
@@ -6767,48 +6656,32 @@ var __publicField = (obj, key, value) => {
|
|
|
6767
6656
|
MenuItem.displayName = "NutMenuItem";
|
|
6768
6657
|
const defaultProps$1b = {
|
|
6769
6658
|
...ComponentDefaults,
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
className: "",
|
|
6774
|
-
leftText: "",
|
|
6659
|
+
left: "",
|
|
6660
|
+
right: "",
|
|
6661
|
+
back: "",
|
|
6775
6662
|
fixed: false,
|
|
6776
6663
|
safeAreaInsetTop: false,
|
|
6777
|
-
border: false,
|
|
6778
6664
|
placeholder: false,
|
|
6779
|
-
zIndex: 10
|
|
6780
|
-
style: {}
|
|
6665
|
+
zIndex: 10
|
|
6781
6666
|
};
|
|
6782
6667
|
const NavBar = (props) => {
|
|
6783
6668
|
const {
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
leftShow,
|
|
6669
|
+
right,
|
|
6670
|
+
left,
|
|
6787
6671
|
className,
|
|
6788
6672
|
style,
|
|
6789
|
-
|
|
6673
|
+
back,
|
|
6790
6674
|
fixed,
|
|
6791
6675
|
safeAreaInsetTop,
|
|
6792
|
-
border,
|
|
6793
6676
|
placeholder,
|
|
6794
6677
|
zIndex,
|
|
6795
|
-
|
|
6796
|
-
onClickIcon,
|
|
6797
|
-
onClickBack,
|
|
6798
|
-
onClickRight
|
|
6678
|
+
onClickBack
|
|
6799
6679
|
} = {
|
|
6800
6680
|
...defaultProps$1b,
|
|
6801
6681
|
...props
|
|
6802
6682
|
};
|
|
6803
|
-
const
|
|
6683
|
+
const classPrefix2 = "nut-navbar";
|
|
6804
6684
|
const children = Array.isArray(props.children) ? props.children : [props.children];
|
|
6805
|
-
const slot = children.reduce((slot2, item) => {
|
|
6806
|
-
const data = slot2;
|
|
6807
|
-
if (item && item.props) {
|
|
6808
|
-
data[item.props.slot] = item.props.children;
|
|
6809
|
-
}
|
|
6810
|
-
return data;
|
|
6811
|
-
}, {});
|
|
6812
6685
|
const styles = () => {
|
|
6813
6686
|
return {
|
|
6814
6687
|
...style,
|
|
@@ -6817,38 +6690,24 @@ var __publicField = (obj, key, value) => {
|
|
|
6817
6690
|
};
|
|
6818
6691
|
const renderLeft = () => {
|
|
6819
6692
|
return /* @__PURE__ */ jsxs("div", {
|
|
6820
|
-
className: `${
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
}),
|
|
6826
|
-
className: `${b2("text")}`,
|
|
6827
|
-
children: leftText
|
|
6828
|
-
}), slot.left]
|
|
6693
|
+
className: `${classPrefix2}__left`,
|
|
6694
|
+
children: [back && /* @__PURE__ */ jsx("div", {
|
|
6695
|
+
className: `${classPrefix2}__left__back`,
|
|
6696
|
+
onClick: (e) => onClickBack(e),
|
|
6697
|
+
children: back
|
|
6698
|
+
}), left]
|
|
6829
6699
|
});
|
|
6830
6700
|
};
|
|
6831
6701
|
const renderContent = () => {
|
|
6832
|
-
return /* @__PURE__ */
|
|
6833
|
-
className: `${
|
|
6834
|
-
children
|
|
6835
|
-
className: "title",
|
|
6836
|
-
onClick: (e) => onClickTitle(e),
|
|
6837
|
-
children: title
|
|
6838
|
-
}), slot.titleIcon && /* @__PURE__ */ jsx("div", {
|
|
6839
|
-
onClick: (e) => onClickIcon(e),
|
|
6840
|
-
children: slot.titleIcon
|
|
6841
|
-
}), slot.content]
|
|
6702
|
+
return /* @__PURE__ */ jsx("div", {
|
|
6703
|
+
className: `${classPrefix2}__title`,
|
|
6704
|
+
children
|
|
6842
6705
|
});
|
|
6843
6706
|
};
|
|
6844
6707
|
const renderRight = () => {
|
|
6845
|
-
return /* @__PURE__ */
|
|
6846
|
-
className: `${
|
|
6847
|
-
|
|
6848
|
-
children: [description && /* @__PURE__ */ jsx("div", {
|
|
6849
|
-
className: `${b2("text")}`,
|
|
6850
|
-
children: description
|
|
6851
|
-
}), slot.right]
|
|
6708
|
+
return /* @__PURE__ */ jsx("div", {
|
|
6709
|
+
className: `${classPrefix2}__right`,
|
|
6710
|
+
children: right
|
|
6852
6711
|
});
|
|
6853
6712
|
};
|
|
6854
6713
|
const renderWrapper = () => {
|
|
@@ -6859,14 +6718,13 @@ var __publicField = (obj, key, value) => {
|
|
|
6859
6718
|
});
|
|
6860
6719
|
};
|
|
6861
6720
|
const classes = classNames({
|
|
6862
|
-
[
|
|
6863
|
-
[
|
|
6864
|
-
[`nut-navbar--safe-area-inset-top`]: safeAreaInsetTop
|
|
6721
|
+
[`${classPrefix2}--fixed`]: fixed,
|
|
6722
|
+
[`${classPrefix2}--safe-area-inset-top`]: safeAreaInsetTop
|
|
6865
6723
|
});
|
|
6866
|
-
const cls = classNames(
|
|
6724
|
+
const cls = classNames(classPrefix2, classes, className);
|
|
6867
6725
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
6868
6726
|
children: fixed && placeholder ? /* @__PURE__ */ jsx("div", {
|
|
6869
|
-
className: `${
|
|
6727
|
+
className: `${classPrefix2}--placeholder`,
|
|
6870
6728
|
children: renderWrapper()
|
|
6871
6729
|
}) : renderWrapper()
|
|
6872
6730
|
});
|
|
@@ -7018,7 +6876,6 @@ var __publicField = (obj, key, value) => {
|
|
|
7018
6876
|
width: "80%"
|
|
7019
6877
|
};
|
|
7020
6878
|
const SideNavBar = (props) => {
|
|
7021
|
-
useConfig$1();
|
|
7022
6879
|
const {
|
|
7023
6880
|
title,
|
|
7024
6881
|
visible,
|
|
@@ -7171,6 +7028,126 @@ var __publicField = (obj, key, value) => {
|
|
|
7171
7028
|
})]
|
|
7172
7029
|
});
|
|
7173
7030
|
};
|
|
7031
|
+
var classnameExports = {};
|
|
7032
|
+
var classname = {
|
|
7033
|
+
get exports() {
|
|
7034
|
+
return classnameExports;
|
|
7035
|
+
},
|
|
7036
|
+
set exports(v) {
|
|
7037
|
+
classnameExports = v;
|
|
7038
|
+
}
|
|
7039
|
+
};
|
|
7040
|
+
var classname_production_min = {};
|
|
7041
|
+
var hasRequiredClassname_production_min;
|
|
7042
|
+
function requireClassname_production_min() {
|
|
7043
|
+
if (hasRequiredClassname_production_min)
|
|
7044
|
+
return classname_production_min;
|
|
7045
|
+
hasRequiredClassname_production_min = 1;
|
|
7046
|
+
function r2(r3) {
|
|
7047
|
+
function t2(t3, i, a2, o) {
|
|
7048
|
+
var f = i ? e + t3 + r3.e + i : e + t3, v = f;
|
|
7049
|
+
if (a2) {
|
|
7050
|
+
var s = " " + v + r3.m;
|
|
7051
|
+
for (var u in a2)
|
|
7052
|
+
if (a2.hasOwnProperty(u)) {
|
|
7053
|
+
var p = a2[u];
|
|
7054
|
+
true === p ? v += s + u : p && (v += s + u + n + p);
|
|
7055
|
+
}
|
|
7056
|
+
}
|
|
7057
|
+
if (void 0 !== o)
|
|
7058
|
+
for (var y2 = 0, c = (o = Array.isArray(o) ? o : [o]).length; y2 < c; y2++) {
|
|
7059
|
+
var l = o[y2];
|
|
7060
|
+
if (l && "string" == typeof l.valueOf())
|
|
7061
|
+
for (var g = l.valueOf().split(" "), d = 0; d < g.length; d++) {
|
|
7062
|
+
var h = g[d];
|
|
7063
|
+
h !== f && (v += " " + h);
|
|
7064
|
+
}
|
|
7065
|
+
}
|
|
7066
|
+
return v;
|
|
7067
|
+
}
|
|
7068
|
+
var e = r3.n || "", n = r3.v || r3.m;
|
|
7069
|
+
return function(r4, e2) {
|
|
7070
|
+
return function(n2, i, a2) {
|
|
7071
|
+
return "string" == typeof n2 ? "string" == typeof i || Array.isArray(i) ? t2(r4, n2, void 0, i) : t2(r4, n2, i, a2) : t2(r4, e2, n2, i);
|
|
7072
|
+
};
|
|
7073
|
+
};
|
|
7074
|
+
}
|
|
7075
|
+
Object.defineProperty(classname_production_min, "__esModule", { value: true });
|
|
7076
|
+
var t = r2({ e: "-", m: "_" });
|
|
7077
|
+
classname_production_min.cn = t, classname_production_min.withNaming = r2;
|
|
7078
|
+
return classname_production_min;
|
|
7079
|
+
}
|
|
7080
|
+
var classname_development = {};
|
|
7081
|
+
var hasRequiredClassname_development;
|
|
7082
|
+
function requireClassname_development() {
|
|
7083
|
+
if (hasRequiredClassname_development)
|
|
7084
|
+
return classname_development;
|
|
7085
|
+
hasRequiredClassname_development = 1;
|
|
7086
|
+
Object.defineProperty(classname_development, "__esModule", { value: true });
|
|
7087
|
+
function withNaming(preset) {
|
|
7088
|
+
var nameSpace = preset.n || "";
|
|
7089
|
+
var modValueDelimiter = preset.v || preset.m;
|
|
7090
|
+
function stringify(b2, e, m, mix) {
|
|
7091
|
+
var entityName = e ? nameSpace + b2 + preset.e + e : nameSpace + b2;
|
|
7092
|
+
var className = entityName;
|
|
7093
|
+
if (m) {
|
|
7094
|
+
var modPrefix = " " + className + preset.m;
|
|
7095
|
+
for (var k in m) {
|
|
7096
|
+
if (m.hasOwnProperty(k)) {
|
|
7097
|
+
var modVal = m[k];
|
|
7098
|
+
if (modVal === true) {
|
|
7099
|
+
className += modPrefix + k;
|
|
7100
|
+
} else if (modVal) {
|
|
7101
|
+
className += modPrefix + k + modValueDelimiter + modVal;
|
|
7102
|
+
}
|
|
7103
|
+
}
|
|
7104
|
+
}
|
|
7105
|
+
}
|
|
7106
|
+
if (mix !== void 0) {
|
|
7107
|
+
mix = Array.isArray(mix) ? mix : [mix];
|
|
7108
|
+
for (var i = 0, len = mix.length; i < len; i++) {
|
|
7109
|
+
var value = mix[i];
|
|
7110
|
+
if (!value || typeof value.valueOf() !== "string")
|
|
7111
|
+
continue;
|
|
7112
|
+
var mixes = value.valueOf().split(" ");
|
|
7113
|
+
for (var j = 0; j < mixes.length; j++) {
|
|
7114
|
+
var val = mixes[j];
|
|
7115
|
+
if (val !== entityName) {
|
|
7116
|
+
className += " " + val;
|
|
7117
|
+
}
|
|
7118
|
+
}
|
|
7119
|
+
}
|
|
7120
|
+
}
|
|
7121
|
+
return className;
|
|
7122
|
+
}
|
|
7123
|
+
return function cnGenerator(b2, e) {
|
|
7124
|
+
return function(elemOrMods, elemModsOrBlockMix, elemMix) {
|
|
7125
|
+
if (typeof elemOrMods === "string") {
|
|
7126
|
+
if (typeof elemModsOrBlockMix === "string" || Array.isArray(elemModsOrBlockMix)) {
|
|
7127
|
+
return stringify(b2, elemOrMods, void 0, elemModsOrBlockMix);
|
|
7128
|
+
}
|
|
7129
|
+
return stringify(b2, elemOrMods, elemModsOrBlockMix, elemMix);
|
|
7130
|
+
}
|
|
7131
|
+
return stringify(b2, e, elemOrMods, elemModsOrBlockMix);
|
|
7132
|
+
};
|
|
7133
|
+
};
|
|
7134
|
+
}
|
|
7135
|
+
var cn2 = withNaming({
|
|
7136
|
+
e: "-",
|
|
7137
|
+
m: "_"
|
|
7138
|
+
});
|
|
7139
|
+
classname_development.cn = cn2;
|
|
7140
|
+
classname_development.withNaming = withNaming;
|
|
7141
|
+
return classname_development;
|
|
7142
|
+
}
|
|
7143
|
+
(function(module2) {
|
|
7144
|
+
if (process.env.NODE_ENV === "production") {
|
|
7145
|
+
module2.exports = requireClassname_production_min();
|
|
7146
|
+
} else {
|
|
7147
|
+
module2.exports = requireClassname_development();
|
|
7148
|
+
}
|
|
7149
|
+
})(classname);
|
|
7150
|
+
const cn = classnameExports.withNaming({ n: "nut-", e: "__", m: "--", v: "-" });
|
|
7174
7151
|
const defaultProps$17 = {
|
|
7175
7152
|
visible: 0,
|
|
7176
7153
|
bottom: false,
|
|
@@ -7480,7 +7457,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7480
7457
|
}), type === "smile" && /* @__PURE__ */ jsx("div", {
|
|
7481
7458
|
className: `${b2("")}__titles-item__smile`,
|
|
7482
7459
|
style: tabsActiveStyle,
|
|
7483
|
-
children: /* @__PURE__ */ jsx(a$
|
|
7460
|
+
children: /* @__PURE__ */ jsx(a$h, {
|
|
7484
7461
|
color
|
|
7485
7462
|
})
|
|
7486
7463
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -8486,7 +8463,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8486
8463
|
if (React.isValidElement(checkedIcon)) {
|
|
8487
8464
|
return checkedIcon;
|
|
8488
8465
|
}
|
|
8489
|
-
return /* @__PURE__ */ jsx(a$
|
|
8466
|
+
return /* @__PURE__ */ jsx(a$p, {
|
|
8490
8467
|
className: `${checked ? b2("icon-check") : ""}`
|
|
8491
8468
|
});
|
|
8492
8469
|
}
|
|
@@ -8503,7 +8480,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8503
8480
|
children: [/* @__PURE__ */ jsx("div", {
|
|
8504
8481
|
className: classesTitle,
|
|
8505
8482
|
children: data.text
|
|
8506
|
-
}), data.loading ? /* @__PURE__ */ jsx(r$
|
|
8483
|
+
}), data.loading ? /* @__PURE__ */ jsx(r$e, {
|
|
8507
8484
|
color: "#969799",
|
|
8508
8485
|
className: "nut-cascader-item__icon-loading"
|
|
8509
8486
|
}) : renderIcon()]
|
|
@@ -8949,7 +8926,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8949
8926
|
};
|
|
8950
8927
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
8951
8928
|
children: poppable ? /* @__PURE__ */ jsx(Popup, {
|
|
8952
|
-
|
|
8929
|
+
className: "cascadar-popup",
|
|
8953
8930
|
visible,
|
|
8954
8931
|
position: "bottom",
|
|
8955
8932
|
round: true,
|
|
@@ -9130,18 +9107,18 @@ var __publicField = (obj, key, value) => {
|
|
|
9130
9107
|
}
|
|
9131
9108
|
const renderIcon = () => {
|
|
9132
9109
|
if (!innerChecked) {
|
|
9133
|
-
return React.isValidElement(icon) ? icon : /* @__PURE__ */ jsx(a$
|
|
9110
|
+
return React.isValidElement(icon) ? icon : /* @__PURE__ */ jsx(a$s, {
|
|
9134
9111
|
size: iconSize,
|
|
9135
9112
|
className: color()
|
|
9136
9113
|
});
|
|
9137
9114
|
}
|
|
9138
9115
|
if (_indeterminate) {
|
|
9139
|
-
return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsx(r$
|
|
9116
|
+
return React.isValidElement(indeterminateIcon) ? indeterminateIcon : /* @__PURE__ */ jsx(r$t, {
|
|
9140
9117
|
size: iconSize,
|
|
9141
9118
|
className: color()
|
|
9142
9119
|
});
|
|
9143
9120
|
}
|
|
9144
|
-
return React.isValidElement(checkedIcon) ? checkedIcon : /* @__PURE__ */ jsx(a$
|
|
9121
|
+
return React.isValidElement(checkedIcon) ? checkedIcon : /* @__PURE__ */ jsx(a$q, {
|
|
9145
9122
|
size: iconSize,
|
|
9146
9123
|
className: color()
|
|
9147
9124
|
});
|
|
@@ -10635,7 +10612,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10635
10612
|
}), clearable && !readonly && active && inputValue.length > 0 ? /* @__PURE__ */ jsx("span", {
|
|
10636
10613
|
className: "nut-input-clear-wrap",
|
|
10637
10614
|
onClick: (e) => handleClear(e),
|
|
10638
|
-
children: clearIcon || /* @__PURE__ */ jsx(r$
|
|
10615
|
+
children: clearIcon || /* @__PURE__ */ jsx(r$c, {
|
|
10639
10616
|
className: "nut-input-clear"
|
|
10640
10617
|
})
|
|
10641
10618
|
}) : null]
|
|
@@ -10680,7 +10657,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10680
10657
|
digits: 0,
|
|
10681
10658
|
async: false
|
|
10682
10659
|
};
|
|
10683
|
-
const classPrefix = `nut-inputnumber`;
|
|
10660
|
+
const classPrefix$1 = `nut-inputnumber`;
|
|
10684
10661
|
const InputNumber = (props) => {
|
|
10685
10662
|
const {
|
|
10686
10663
|
children,
|
|
@@ -10722,8 +10699,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10722
10699
|
}
|
|
10723
10700
|
}, []);
|
|
10724
10701
|
const classes = classNames({
|
|
10725
|
-
[`${classPrefix}`]: true,
|
|
10726
|
-
[`${classPrefix}--disabled`]: disabled
|
|
10702
|
+
[`${classPrefix$1}`]: true,
|
|
10703
|
+
[`${classPrefix$1}--disabled`]: disabled
|
|
10727
10704
|
}, className);
|
|
10728
10705
|
const styles = {
|
|
10729
10706
|
...style
|
|
@@ -10867,7 +10844,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10867
10844
|
...restProps,
|
|
10868
10845
|
children: [/* @__PURE__ */ jsx("div", {
|
|
10869
10846
|
className: "nut-input-minus",
|
|
10870
|
-
children: /* @__PURE__ */ jsx(a$
|
|
10847
|
+
children: /* @__PURE__ */ jsx(a$b, {
|
|
10871
10848
|
className: iconMinusClasses,
|
|
10872
10849
|
onClick: reduceNumber
|
|
10873
10850
|
})
|
|
@@ -10895,7 +10872,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10895
10872
|
})
|
|
10896
10873
|
}), /* @__PURE__ */ jsx("div", {
|
|
10897
10874
|
className: "nut-input-add",
|
|
10898
|
-
children: /* @__PURE__ */ jsx(a$
|
|
10875
|
+
children: /* @__PURE__ */ jsx(a$8, {
|
|
10899
10876
|
className: iconAddClasses,
|
|
10900
10877
|
onClick: addNumber
|
|
10901
10878
|
})
|
|
@@ -11057,7 +11034,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11057
11034
|
visible: show,
|
|
11058
11035
|
overlay,
|
|
11059
11036
|
position: "bottom",
|
|
11060
|
-
popClass,
|
|
11037
|
+
className: popClass,
|
|
11061
11038
|
onClickOverlay: onClose,
|
|
11062
11039
|
onClickCloseIcon: onClose,
|
|
11063
11040
|
overlayStyle: {
|
|
@@ -11319,7 +11296,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11319
11296
|
return React.isValidElement(checkedIcon2) ? React.cloneElement(checkedIcon2, {
|
|
11320
11297
|
...checkedIcon2.props,
|
|
11321
11298
|
className: color()
|
|
11322
|
-
}) : /* @__PURE__ */ jsx(a$
|
|
11299
|
+
}) : /* @__PURE__ */ jsx(a$u, {
|
|
11323
11300
|
size: iconSize2,
|
|
11324
11301
|
className: color()
|
|
11325
11302
|
});
|
|
@@ -11327,7 +11304,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11327
11304
|
return React.isValidElement(icon2) ? React.cloneElement(icon2, {
|
|
11328
11305
|
...icon2.props,
|
|
11329
11306
|
className: color()
|
|
11330
|
-
}) : /* @__PURE__ */ jsx(a$
|
|
11307
|
+
}) : /* @__PURE__ */ jsx(a$s, {
|
|
11331
11308
|
size: iconSize2,
|
|
11332
11309
|
className: color()
|
|
11333
11310
|
});
|
|
@@ -11468,7 +11445,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11468
11445
|
width: iconSize,
|
|
11469
11446
|
height: iconSize
|
|
11470
11447
|
}),
|
|
11471
|
-
fail: /* @__PURE__ */ jsx(a$
|
|
11448
|
+
fail: /* @__PURE__ */ jsx(a$k, {
|
|
11472
11449
|
color: "#ffffff",
|
|
11473
11450
|
width: iconSize,
|
|
11474
11451
|
height: iconSize
|
|
@@ -11478,7 +11455,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11478
11455
|
width: iconSize,
|
|
11479
11456
|
height: iconSize
|
|
11480
11457
|
}),
|
|
11481
|
-
loading: /* @__PURE__ */ jsx(r$
|
|
11458
|
+
loading: /* @__PURE__ */ jsx(r$e, {
|
|
11482
11459
|
color: "#ffffff",
|
|
11483
11460
|
width: iconSize,
|
|
11484
11461
|
height: iconSize
|
|
@@ -12184,7 +12161,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12184
12161
|
return /* @__PURE__ */ jsx("div", {
|
|
12185
12162
|
className: `${searchbarBem("clear")} ${rightinIcon ? "pos-right" : ""}`,
|
|
12186
12163
|
onClick: (e) => clearaVal(e),
|
|
12187
|
-
children: /* @__PURE__ */ jsx(a$
|
|
12164
|
+
children: /* @__PURE__ */ jsx(a$o, {
|
|
12188
12165
|
size: clearSize,
|
|
12189
12166
|
color: "#555"
|
|
12190
12167
|
})
|
|
@@ -12570,134 +12547,64 @@ var __publicField = (obj, key, value) => {
|
|
|
12570
12547
|
TextArea.displayName = "NutTextArea";
|
|
12571
12548
|
const defaultProps$L = {
|
|
12572
12549
|
...ComponentDefaults,
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
percentage: 0,
|
|
12577
|
-
fillColor: "#f3f3f3",
|
|
12578
|
-
strokeColor: "linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)",
|
|
12579
|
-
strokeWidth: "",
|
|
12580
|
-
textColor: "",
|
|
12581
|
-
textWidth: "",
|
|
12582
|
-
showText: true,
|
|
12583
|
-
textInside: false,
|
|
12584
|
-
textBackground: "linear-gradient(135deg, #fa2c19 0%, #fa6419 100%)",
|
|
12585
|
-
textType: "text",
|
|
12586
|
-
status: false,
|
|
12587
|
-
icon: null,
|
|
12588
|
-
children: void 0
|
|
12550
|
+
percent: 0,
|
|
12551
|
+
showText: false,
|
|
12552
|
+
animated: false
|
|
12589
12553
|
};
|
|
12590
12554
|
const Progress = (props) => {
|
|
12591
12555
|
const {
|
|
12592
12556
|
className,
|
|
12593
12557
|
style,
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
strokeColor,
|
|
12558
|
+
percent,
|
|
12559
|
+
background,
|
|
12560
|
+
color,
|
|
12598
12561
|
strokeWidth,
|
|
12599
|
-
size,
|
|
12600
|
-
textColor,
|
|
12601
|
-
textWidth,
|
|
12602
12562
|
showText,
|
|
12603
|
-
|
|
12604
|
-
textBackground,
|
|
12605
|
-
textType,
|
|
12606
|
-
status,
|
|
12607
|
-
icon,
|
|
12563
|
+
animated: animated2,
|
|
12608
12564
|
children,
|
|
12609
12565
|
...rest
|
|
12610
12566
|
} = {
|
|
12611
12567
|
...defaultProps$L,
|
|
12612
12568
|
...props
|
|
12613
12569
|
};
|
|
12614
|
-
const
|
|
12615
|
-
const classes = classNames(b2(""));
|
|
12616
|
-
const classesOuter = classNames({
|
|
12617
|
-
[`${b2("")}-outer`]: true,
|
|
12618
|
-
[`${b2("")}-${size || "base"}`]: true
|
|
12619
|
-
});
|
|
12570
|
+
const classPrefix2 = "nut-progress";
|
|
12620
12571
|
const classesInner = classNames({
|
|
12621
|
-
[`${
|
|
12622
|
-
[`${
|
|
12623
|
-
});
|
|
12624
|
-
const classesText = classNames({
|
|
12625
|
-
[`${b2("")}-text`]: true
|
|
12626
|
-
});
|
|
12627
|
-
const classesInsideText = classNames({
|
|
12628
|
-
[`${b2("")}-text`]: true,
|
|
12629
|
-
[`${b2("")}-insidetext`]: true
|
|
12630
|
-
});
|
|
12631
|
-
const classesTextInner = classNames({
|
|
12632
|
-
[`${b2("")}-text__inner`]: true
|
|
12572
|
+
[`${classPrefix2}-inner`]: true,
|
|
12573
|
+
[`${classPrefix2}-active`]: animated2
|
|
12633
12574
|
});
|
|
12634
12575
|
const stylesOuter = {
|
|
12635
12576
|
height: `${strokeWidth}px`,
|
|
12636
|
-
|
|
12637
|
-
background: `${fillColor}`
|
|
12577
|
+
background
|
|
12638
12578
|
};
|
|
12639
12579
|
const stylesInner = {
|
|
12640
|
-
width: `${
|
|
12641
|
-
|
|
12642
|
-
background: `${strokeColor}`
|
|
12643
|
-
};
|
|
12644
|
-
const stylesInsideText = {
|
|
12645
|
-
width: `${textWidth}px`,
|
|
12646
|
-
left: `${percentage}%`,
|
|
12647
|
-
background: textBackground || strokeColor
|
|
12580
|
+
width: `${percent}%`,
|
|
12581
|
+
background: color
|
|
12648
12582
|
};
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
left: `${percentage}%`
|
|
12652
|
-
};
|
|
12653
|
-
const stylesText = {
|
|
12654
|
-
width: `${textWidth}px`
|
|
12655
|
-
};
|
|
12656
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
12657
|
-
className: `${classes} ${className}`,
|
|
12583
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12584
|
+
className: classNames(classPrefix2, className),
|
|
12658
12585
|
style,
|
|
12659
12586
|
...rest,
|
|
12660
|
-
children:
|
|
12661
|
-
className:
|
|
12587
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
12588
|
+
className: `${classPrefix2}-outer`,
|
|
12662
12589
|
style: stylesOuter,
|
|
12663
12590
|
children: /* @__PURE__ */ jsx("div", {
|
|
12664
12591
|
className: classesInner,
|
|
12665
12592
|
style: stylesInner,
|
|
12666
|
-
children: showText &&
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
className:
|
|
12673
|
-
style:
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
color: textColor
|
|
12678
|
-
},
|
|
12679
|
-
children: [percentage, isShowPercentage ? "%" : ""]
|
|
12680
|
-
})
|
|
12593
|
+
children: showText && /* @__PURE__ */ jsx("div", {
|
|
12594
|
+
className: `${classPrefix2}-text`,
|
|
12595
|
+
style: {
|
|
12596
|
+
left: `${percent}%`
|
|
12597
|
+
},
|
|
12598
|
+
children: children || /* @__PURE__ */ jsxs("div", {
|
|
12599
|
+
className: `${classPrefix2}-text__inner`,
|
|
12600
|
+
style: {
|
|
12601
|
+
background: color
|
|
12602
|
+
},
|
|
12603
|
+
children: [percent, "%"]
|
|
12681
12604
|
})
|
|
12682
12605
|
})
|
|
12683
12606
|
})
|
|
12684
|
-
})
|
|
12685
|
-
className: classesText,
|
|
12686
|
-
style: stylesText,
|
|
12687
|
-
children: [textType === "text" && /* @__PURE__ */ jsxs("span", {
|
|
12688
|
-
className: classesTextInner,
|
|
12689
|
-
style: {
|
|
12690
|
-
color: textColor
|
|
12691
|
-
},
|
|
12692
|
-
children: [percentage, isShowPercentage ? "%" : ""]
|
|
12693
|
-
}), textType === "icon" && /* @__PURE__ */ jsx(Fragment, {
|
|
12694
|
-
children: icon || /* @__PURE__ */ jsx(a$s, {
|
|
12695
|
-
width: 16,
|
|
12696
|
-
height: 16,
|
|
12697
|
-
color: "#439422"
|
|
12698
|
-
})
|
|
12699
|
-
})]
|
|
12700
|
-
})]
|
|
12607
|
+
})
|
|
12701
12608
|
});
|
|
12702
12609
|
};
|
|
12703
12610
|
Progress.defaultProps = defaultProps$L;
|
|
@@ -12848,31 +12755,31 @@ var __publicField = (obj, key, value) => {
|
|
|
12848
12755
|
const defaultProps$K = {
|
|
12849
12756
|
...ComponentDefaults,
|
|
12850
12757
|
url: "",
|
|
12851
|
-
|
|
12758
|
+
maxCount: 1,
|
|
12852
12759
|
sizeType: ["original", "compressed"],
|
|
12853
12760
|
sourceType: ["album", "camera"],
|
|
12854
12761
|
mediaType: ["image", "video"],
|
|
12855
12762
|
camera: "back",
|
|
12856
12763
|
uploadIcon: null,
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12764
|
+
uploadLabel: "",
|
|
12765
|
+
previewType: "picture",
|
|
12766
|
+
imageFit: "cover",
|
|
12860
12767
|
name: "file",
|
|
12861
12768
|
accept: "*",
|
|
12862
12769
|
disabled: false,
|
|
12863
12770
|
autoUpload: true,
|
|
12864
12771
|
multiple: false,
|
|
12865
|
-
|
|
12772
|
+
maxFileSize: Number.MAX_VALUE,
|
|
12866
12773
|
data: {},
|
|
12867
12774
|
headers: {},
|
|
12868
12775
|
method: "post",
|
|
12869
|
-
|
|
12776
|
+
previewUrl: "",
|
|
12870
12777
|
xhrState: 200,
|
|
12871
12778
|
timeout: 1e3 * 30,
|
|
12872
|
-
|
|
12873
|
-
|
|
12779
|
+
preview: true,
|
|
12780
|
+
deletable: true,
|
|
12874
12781
|
maxDuration: 10,
|
|
12875
|
-
|
|
12782
|
+
beforeDelete: (file, files) => {
|
|
12876
12783
|
return true;
|
|
12877
12784
|
}
|
|
12878
12785
|
};
|
|
@@ -12896,26 +12803,27 @@ var __publicField = (obj, key, value) => {
|
|
|
12896
12803
|
const {
|
|
12897
12804
|
children,
|
|
12898
12805
|
uploadIcon,
|
|
12899
|
-
|
|
12900
|
-
uploadIconTip,
|
|
12806
|
+
uploadLabel,
|
|
12901
12807
|
accept,
|
|
12902
12808
|
name,
|
|
12903
12809
|
camera,
|
|
12904
|
-
|
|
12905
|
-
|
|
12810
|
+
defaultValue,
|
|
12811
|
+
value,
|
|
12812
|
+
previewType,
|
|
12813
|
+
imageFit,
|
|
12906
12814
|
disabled,
|
|
12907
12815
|
multiple,
|
|
12908
12816
|
url,
|
|
12909
|
-
|
|
12817
|
+
previewUrl,
|
|
12910
12818
|
headers,
|
|
12911
12819
|
timeout,
|
|
12912
12820
|
method,
|
|
12913
12821
|
xhrState,
|
|
12914
12822
|
data,
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12823
|
+
preview,
|
|
12824
|
+
deletable,
|
|
12825
|
+
maxCount,
|
|
12826
|
+
maxFileSize,
|
|
12919
12827
|
mediaType,
|
|
12920
12828
|
className,
|
|
12921
12829
|
autoUpload,
|
|
@@ -12923,7 +12831,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12923
12831
|
sourceType,
|
|
12924
12832
|
maxDuration,
|
|
12925
12833
|
onStart,
|
|
12926
|
-
|
|
12834
|
+
onDelete,
|
|
12927
12835
|
onChange,
|
|
12928
12836
|
onFileItemClick,
|
|
12929
12837
|
onProgress,
|
|
@@ -12931,22 +12839,21 @@ var __publicField = (obj, key, value) => {
|
|
|
12931
12839
|
onUpdate,
|
|
12932
12840
|
onFailure,
|
|
12933
12841
|
onOversize,
|
|
12934
|
-
|
|
12935
|
-
|
|
12842
|
+
beforeXhrUpload,
|
|
12843
|
+
beforeDelete,
|
|
12936
12844
|
...restProps
|
|
12937
12845
|
} = {
|
|
12938
12846
|
...defaultProps$K,
|
|
12939
12847
|
...props
|
|
12940
12848
|
};
|
|
12941
|
-
const [fileList, setFileList] = React.useState([]);
|
|
12849
|
+
const [fileList, setFileList] = React.useState(defaultValue || []);
|
|
12942
12850
|
const [uploadQueue, setUploadQueue] = React.useState([]);
|
|
12943
12851
|
React.useEffect(() => {
|
|
12944
|
-
if (
|
|
12945
|
-
setFileList(
|
|
12852
|
+
if (value) {
|
|
12853
|
+
setFileList(value);
|
|
12946
12854
|
}
|
|
12947
|
-
}, [
|
|
12948
|
-
const
|
|
12949
|
-
const classes = classNames(className, b2(""));
|
|
12855
|
+
}, [value]);
|
|
12856
|
+
const classes = classNames(className, "nut-uploader");
|
|
12950
12857
|
React.useImperativeHandle(ref, () => ({
|
|
12951
12858
|
submit: () => {
|
|
12952
12859
|
Promise.all(uploadQueue).then((res) => {
|
|
@@ -12987,7 +12894,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12987
12894
|
if (Taro.getEnv() === "WEAPP") {
|
|
12988
12895
|
Taro.chooseMedia({
|
|
12989
12896
|
/** 最多可以选择的文件个数 */
|
|
12990
|
-
count: multiple ?
|
|
12897
|
+
count: multiple ? maxCount * 1 - fileList.length : 1,
|
|
12991
12898
|
/** 文件类型 */
|
|
12992
12899
|
mediaType,
|
|
12993
12900
|
/** 图片和视频选择的来源 */
|
|
@@ -13008,7 +12915,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13008
12915
|
} else {
|
|
13009
12916
|
Taro.chooseImage({
|
|
13010
12917
|
// 选择数量
|
|
13011
|
-
count: multiple ?
|
|
12918
|
+
count: multiple ? maxCount * 1 - fileList.length : 1,
|
|
13012
12919
|
// 可以指定是原图还是压缩图,默认二者都有
|
|
13013
12920
|
sizeType,
|
|
13014
12921
|
sourceType,
|
|
@@ -13030,7 +12937,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13030
12937
|
uploadOption.xhrState = xhrState;
|
|
13031
12938
|
uploadOption.headers = headers;
|
|
13032
12939
|
uploadOption.taroFilePath = fileItem.path;
|
|
13033
|
-
uploadOption.beforeXhrUpload =
|
|
12940
|
+
uploadOption.beforeXhrUpload = beforeXhrUpload;
|
|
13034
12941
|
uploadOption.onStart = (option) => {
|
|
13035
12942
|
clearUploadQueue(index);
|
|
13036
12943
|
setFileList((fileList2) => {
|
|
@@ -13129,8 +13036,8 @@ var __publicField = (obj, key, value) => {
|
|
|
13129
13036
|
}
|
|
13130
13037
|
if (Taro.getEnv() === "WEB") {
|
|
13131
13038
|
const formData = new FormData();
|
|
13132
|
-
for (const [key,
|
|
13133
|
-
formData.append(key,
|
|
13039
|
+
for (const [key, value2] of Object.entries(data)) {
|
|
13040
|
+
formData.append(key, value2);
|
|
13134
13041
|
}
|
|
13135
13042
|
formData.append(name, file.originalFileObj);
|
|
13136
13043
|
fileItem.name = (_a = file.originalFileObj) == null ? void 0 : _a.name;
|
|
@@ -13139,7 +13046,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13139
13046
|
} else {
|
|
13140
13047
|
fileItem.formData = data;
|
|
13141
13048
|
}
|
|
13142
|
-
if (
|
|
13049
|
+
if (preview) {
|
|
13143
13050
|
fileItem.url = fileType == "video" ? file.thumbTempFilePath : filepath;
|
|
13144
13051
|
}
|
|
13145
13052
|
fileList.push(fileItem);
|
|
@@ -13148,11 +13055,11 @@ var __publicField = (obj, key, value) => {
|
|
|
13148
13055
|
});
|
|
13149
13056
|
};
|
|
13150
13057
|
const filterFiles = (files) => {
|
|
13151
|
-
const
|
|
13152
|
-
const
|
|
13058
|
+
const maximum = props.maxCount * 1;
|
|
13059
|
+
const maximize = props.maxFileSize * 1;
|
|
13153
13060
|
const oversizes = new Array();
|
|
13154
13061
|
const filterFile = files.filter((file) => {
|
|
13155
|
-
if (file.size >
|
|
13062
|
+
if (file.size > maximize) {
|
|
13156
13063
|
oversizes.push(file);
|
|
13157
13064
|
return false;
|
|
13158
13065
|
}
|
|
@@ -13162,19 +13069,19 @@ var __publicField = (obj, key, value) => {
|
|
|
13162
13069
|
onOversize && onOversize(files);
|
|
13163
13070
|
}
|
|
13164
13071
|
const currentFileLength = filterFile.length + fileList.length;
|
|
13165
|
-
if (currentFileLength >
|
|
13166
|
-
filterFile.splice(filterFile.length - (currentFileLength -
|
|
13072
|
+
if (currentFileLength > maximum) {
|
|
13073
|
+
filterFile.splice(filterFile.length - (currentFileLength - maximum));
|
|
13167
13074
|
}
|
|
13168
13075
|
return filterFile;
|
|
13169
13076
|
};
|
|
13170
13077
|
const deleted = (file, index) => {
|
|
13171
13078
|
fileList.splice(index, 1);
|
|
13172
|
-
|
|
13079
|
+
onDelete && onDelete(file, fileList);
|
|
13173
13080
|
setFileList([...fileList]);
|
|
13174
13081
|
};
|
|
13175
|
-
const
|
|
13082
|
+
const onDeleteItem = (file, index) => {
|
|
13176
13083
|
clearUploadQueue(index);
|
|
13177
|
-
funcInterceptor(
|
|
13084
|
+
funcInterceptor(beforeDelete, {
|
|
13178
13085
|
args: [file, fileList],
|
|
13179
13086
|
done: () => deleted(file, index)
|
|
13180
13087
|
});
|
|
@@ -13208,20 +13115,20 @@ var __publicField = (obj, key, value) => {
|
|
|
13208
13115
|
children: [children && /* @__PURE__ */ jsx("div", {
|
|
13209
13116
|
className: "nut-uploader__slot",
|
|
13210
13117
|
children: /* @__PURE__ */ jsxs(Fragment, {
|
|
13211
|
-
children: [children,
|
|
13118
|
+
children: [children, maxCount > fileList.length && /* @__PURE__ */ jsx(Button, {
|
|
13212
13119
|
className: "nut-uploader__input",
|
|
13213
13120
|
onClick: _chooseImage
|
|
13214
13121
|
})]
|
|
13215
13122
|
})
|
|
13216
13123
|
}), fileList.length !== 0 && fileList.map((item, index) => {
|
|
13217
13124
|
return /* @__PURE__ */ jsxs("div", {
|
|
13218
|
-
className: `nut-uploader__preview ${
|
|
13219
|
-
children: [
|
|
13125
|
+
className: `nut-uploader__preview ${previewType}`,
|
|
13126
|
+
children: [previewType === "picture" && !children && /* @__PURE__ */ jsxs("div", {
|
|
13220
13127
|
className: "nut-uploader__preview-img",
|
|
13221
|
-
children: [
|
|
13128
|
+
children: [deletable && /* @__PURE__ */ jsx(a$k, {
|
|
13222
13129
|
color: "rgba(0,0,0,0.6)",
|
|
13223
13130
|
className: "close",
|
|
13224
|
-
onClick: () =>
|
|
13131
|
+
onClick: () => onDeleteItem(item, index)
|
|
13225
13132
|
}), item.status === "ready" ? /* @__PURE__ */ jsx("div", {
|
|
13226
13133
|
className: "nut-uploader__preview__progress",
|
|
13227
13134
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -13230,9 +13137,9 @@ var __publicField = (obj, key, value) => {
|
|
|
13230
13137
|
})
|
|
13231
13138
|
}) : item.status !== "success" && /* @__PURE__ */ jsxs("div", {
|
|
13232
13139
|
className: "nut-uploader__preview__progress",
|
|
13233
|
-
children: [item.failIcon !== " " && item.loadingIcon !== " " && (item.status === "error" ? item.failIcon || /* @__PURE__ */ jsx(a$
|
|
13140
|
+
children: [item.failIcon !== " " && item.loadingIcon !== " " && (item.status === "error" ? item.failIcon || /* @__PURE__ */ jsx(a$k, {
|
|
13234
13141
|
color: "#fff"
|
|
13235
|
-
}) : item.loadingIcon || /* @__PURE__ */ jsx(r$
|
|
13142
|
+
}) : item.loadingIcon || /* @__PURE__ */ jsx(r$e, {
|
|
13236
13143
|
color: "#fff"
|
|
13237
13144
|
})), /* @__PURE__ */ jsx("div", {
|
|
13238
13145
|
className: "nut-uploader__preview__progress__msg",
|
|
@@ -13241,22 +13148,25 @@ var __publicField = (obj, key, value) => {
|
|
|
13241
13148
|
}), item.type.includes("image") ? /* @__PURE__ */ jsx(Fragment, {
|
|
13242
13149
|
children: item.url && /* @__PURE__ */ jsx(components.Image, {
|
|
13243
13150
|
className: "nut-uploader__preview-img__c",
|
|
13151
|
+
style: {
|
|
13152
|
+
objectFit: imageFit
|
|
13153
|
+
},
|
|
13244
13154
|
mode: "aspectFit",
|
|
13245
13155
|
src: item.url,
|
|
13246
13156
|
onClick: () => handleItemClick(item)
|
|
13247
13157
|
})
|
|
13248
13158
|
}) : /* @__PURE__ */ jsx(Fragment, {
|
|
13249
|
-
children:
|
|
13159
|
+
children: previewUrl ? /* @__PURE__ */ jsx(components.Image, {
|
|
13250
13160
|
className: "nut-uploader__preview-img__c",
|
|
13251
13161
|
mode: "aspectFit",
|
|
13252
|
-
src:
|
|
13162
|
+
src: previewUrl,
|
|
13253
13163
|
onClick: () => handleItemClick(item)
|
|
13254
13164
|
}) : /* @__PURE__ */ jsx("div", {
|
|
13255
13165
|
className: "nut-uploader__preview-img__file",
|
|
13256
13166
|
children: /* @__PURE__ */ jsxs("div", {
|
|
13257
13167
|
onClick: () => handleItemClick(item),
|
|
13258
13168
|
className: "nut-uploader__preview-img__file__name",
|
|
13259
|
-
children: [/* @__PURE__ */ jsx(a$
|
|
13169
|
+
children: [/* @__PURE__ */ jsx(a$f, {
|
|
13260
13170
|
color: "#808080"
|
|
13261
13171
|
}), " ", item.name]
|
|
13262
13172
|
})
|
|
@@ -13265,34 +13175,33 @@ var __publicField = (obj, key, value) => {
|
|
|
13265
13175
|
className: "tips",
|
|
13266
13176
|
children: item.name
|
|
13267
13177
|
}) : null]
|
|
13268
|
-
}),
|
|
13178
|
+
}), previewType === "list" && /* @__PURE__ */ jsxs("div", {
|
|
13269
13179
|
className: "nut-uploader__preview-list",
|
|
13270
13180
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
13271
13181
|
className: `nut-uploader__preview-img__file__name ${item.status}`,
|
|
13272
13182
|
onClick: () => handleItemClick(item),
|
|
13273
|
-
children: [/* @__PURE__ */ jsx(a$
|
|
13274
|
-
}),
|
|
13183
|
+
children: [/* @__PURE__ */ jsx(a$f, {}), " ", item.name]
|
|
13184
|
+
}), deletable && /* @__PURE__ */ jsx(a$m, {
|
|
13275
13185
|
color: "#808080",
|
|
13276
13186
|
className: "nut-uploader__preview-img__file__del",
|
|
13277
|
-
onClick: () =>
|
|
13187
|
+
onClick: () => onDeleteItem(item, index)
|
|
13278
13188
|
}), item.status === "uploading" && /* @__PURE__ */ jsx(Progress, {
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
strokeColor: "linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)",
|
|
13189
|
+
percent: item.percentage,
|
|
13190
|
+
color: "linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)",
|
|
13282
13191
|
showText: false
|
|
13283
13192
|
})]
|
|
13284
13193
|
})]
|
|
13285
13194
|
}, item.uid);
|
|
13286
|
-
}),
|
|
13287
|
-
className: `nut-uploader__upload ${
|
|
13195
|
+
}), maxCount > fileList.length && previewType === "picture" && !children && /* @__PURE__ */ jsxs("div", {
|
|
13196
|
+
className: `nut-uploader__upload ${previewType} ${disabled ? "nut-uploader__upload-disabled" : ""}`,
|
|
13288
13197
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
13289
13198
|
className: "nut-uploader__icon",
|
|
13290
|
-
children: [uploadIcon || /* @__PURE__ */ jsx(a$
|
|
13291
|
-
size:
|
|
13199
|
+
children: [uploadIcon || /* @__PURE__ */ jsx(a$9, {
|
|
13200
|
+
size: "20px",
|
|
13292
13201
|
color: "#808080"
|
|
13293
13202
|
}), /* @__PURE__ */ jsx("span", {
|
|
13294
13203
|
className: "nut-uploader__icon-tip",
|
|
13295
|
-
children:
|
|
13204
|
+
children: uploadLabel
|
|
13296
13205
|
})]
|
|
13297
13206
|
}), /* @__PURE__ */ jsx(Button, {
|
|
13298
13207
|
className: "nut-uploader__input",
|
|
@@ -13658,6 +13567,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13658
13567
|
BaseDialog.defaultProps = defaultProps$H;
|
|
13659
13568
|
BaseDialog.displayName = "NutDialog";
|
|
13660
13569
|
const defaultProps$G = {
|
|
13570
|
+
...ComponentDefaults,
|
|
13661
13571
|
attract: false,
|
|
13662
13572
|
direction: void 0,
|
|
13663
13573
|
boundary: {
|
|
@@ -13681,7 +13591,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13681
13591
|
...defaultProps$G,
|
|
13682
13592
|
...props
|
|
13683
13593
|
};
|
|
13684
|
-
const
|
|
13594
|
+
const classPrefix2 = "nut-drag";
|
|
13685
13595
|
const [boundaryState, setBoundaryState] = React.useState(boundary);
|
|
13686
13596
|
const myDrag = React.useRef(null);
|
|
13687
13597
|
const dragRef = React.useRef(null);
|
|
@@ -13780,7 +13690,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13780
13690
|
}, []);
|
|
13781
13691
|
return /* @__PURE__ */ jsx("div", {
|
|
13782
13692
|
style,
|
|
13783
|
-
className: `${
|
|
13693
|
+
className: `${classPrefix2} ${className}`,
|
|
13784
13694
|
...reset,
|
|
13785
13695
|
ref: myDrag,
|
|
13786
13696
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -19124,12 +19034,14 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19124
19034
|
Switch.defaultProps = defaultProps$B;
|
|
19125
19035
|
Switch.displayName = "NutSwitch";
|
|
19126
19036
|
const defaultProps$A = {
|
|
19037
|
+
...ComponentDefaults,
|
|
19127
19038
|
type: "shake",
|
|
19128
19039
|
action: "initial",
|
|
19129
19040
|
loop: false,
|
|
19130
19041
|
onClick: (event) => {
|
|
19131
19042
|
}
|
|
19132
19043
|
};
|
|
19044
|
+
const classPrefix = `nut-animate`;
|
|
19133
19045
|
const Animate = (props) => {
|
|
19134
19046
|
const {
|
|
19135
19047
|
className,
|
|
@@ -19144,10 +19056,9 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19144
19056
|
...props
|
|
19145
19057
|
};
|
|
19146
19058
|
const [clicked, setClicked] = React.useState(false);
|
|
19147
|
-
const b2 = cn("animate");
|
|
19148
19059
|
const classes = classNames({
|
|
19149
19060
|
"nut-ani-container": true,
|
|
19150
|
-
[`${
|
|
19061
|
+
[`${classPrefix}-${type}`]: action === "initial" || clicked ? type : false,
|
|
19151
19062
|
loop: loop2
|
|
19152
19063
|
});
|
|
19153
19064
|
const cls = classNames(classes, className);
|
|
@@ -19290,7 +19201,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19290
19201
|
__publicField(AnimatingNumbers, "defaultProps", defaultProps$y);
|
|
19291
19202
|
__publicField(AnimatingNumbers, "displayName", "NutAnimatingNumbers");
|
|
19292
19203
|
__publicField(AnimatingNumbers, "CountUp", CountUp);
|
|
19293
|
-
const b
|
|
19204
|
+
const b = cn("audio");
|
|
19294
19205
|
const warn = console.warn;
|
|
19295
19206
|
const defaultProps$x = {
|
|
19296
19207
|
...ComponentDefaults,
|
|
@@ -19432,9 +19343,9 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19432
19343
|
const renderIcon = () => {
|
|
19433
19344
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
19434
19345
|
children: /* @__PURE__ */ jsx("div", {
|
|
19435
|
-
className: b
|
|
19346
|
+
className: b("icon"),
|
|
19436
19347
|
children: /* @__PURE__ */ jsx("div", {
|
|
19437
|
-
className: `${b
|
|
19348
|
+
className: `${b("icon-box")} ${playing ? b("icon-play") : b("icon-stop")}`,
|
|
19438
19349
|
onClick: handleStatusChange,
|
|
19439
19350
|
children: /* @__PURE__ */ jsx(a$6, {
|
|
19440
19351
|
className: playing ? "nut-icon-loading" : ""
|
|
@@ -19446,12 +19357,12 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19446
19357
|
const renderProgerss = () => {
|
|
19447
19358
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
19448
19359
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
19449
|
-
className: b
|
|
19360
|
+
className: b("progress"),
|
|
19450
19361
|
children: [/* @__PURE__ */ jsx("div", {
|
|
19451
19362
|
className: "time",
|
|
19452
19363
|
children: currentDuration
|
|
19453
19364
|
}), /* @__PURE__ */ jsx("div", {
|
|
19454
|
-
className: b
|
|
19365
|
+
className: b("progress-bar-wrapper"),
|
|
19455
19366
|
children: /* @__PURE__ */ jsx(Range, {
|
|
19456
19367
|
modelValue: percent,
|
|
19457
19368
|
hiddenTag: true,
|
|
@@ -19488,7 +19399,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19488
19399
|
};
|
|
19489
19400
|
const renderNone = () => {
|
|
19490
19401
|
return /* @__PURE__ */ jsx("div", {
|
|
19491
|
-
className: b
|
|
19402
|
+
className: b("none-container"),
|
|
19492
19403
|
onClick: handleStatusChange,
|
|
19493
19404
|
children
|
|
19494
19405
|
});
|
|
@@ -19506,7 +19417,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19506
19417
|
}
|
|
19507
19418
|
};
|
|
19508
19419
|
return /* @__PURE__ */ jsx("div", {
|
|
19509
|
-
className: `${b
|
|
19420
|
+
className: `${b()} ${className}`,
|
|
19510
19421
|
style,
|
|
19511
19422
|
...rest,
|
|
19512
19423
|
children: renderAudio()
|
|
@@ -19681,43 +19592,38 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19681
19592
|
};
|
|
19682
19593
|
AvatarGroup.defaultProps = defaultProps$v;
|
|
19683
19594
|
AvatarGroup.displayName = "NutAvatarGroup";
|
|
19684
|
-
const b = cn("badge");
|
|
19685
19595
|
const defaultProps$u = {
|
|
19686
19596
|
...ComponentDefaults,
|
|
19687
|
-
className: "",
|
|
19688
19597
|
value: "",
|
|
19689
19598
|
dot: false,
|
|
19690
|
-
max:
|
|
19599
|
+
max: 99,
|
|
19691
19600
|
top: "0",
|
|
19692
|
-
right: "
|
|
19693
|
-
|
|
19694
|
-
color: "",
|
|
19695
|
-
icon: null
|
|
19601
|
+
right: "5",
|
|
19602
|
+
color: ""
|
|
19696
19603
|
};
|
|
19697
19604
|
const Badge = (props) => {
|
|
19698
19605
|
const {
|
|
19699
19606
|
className,
|
|
19700
19607
|
style,
|
|
19608
|
+
value,
|
|
19609
|
+
max,
|
|
19701
19610
|
children,
|
|
19702
19611
|
dot,
|
|
19703
19612
|
top,
|
|
19704
19613
|
right,
|
|
19705
|
-
|
|
19706
|
-
color,
|
|
19707
|
-
icon
|
|
19614
|
+
color
|
|
19708
19615
|
} = {
|
|
19709
19616
|
...defaultProps$u,
|
|
19710
19617
|
...props
|
|
19711
19618
|
};
|
|
19619
|
+
const classPrefix2 = "nut-badge";
|
|
19620
|
+
const classes = classNames(classPrefix2, className);
|
|
19621
|
+
const contentClasses = classNames({
|
|
19622
|
+
[`${classPrefix2}__dot`]: dot
|
|
19623
|
+
}, `${classPrefix2}__content`, `${classPrefix2}__sup`);
|
|
19712
19624
|
function content() {
|
|
19713
|
-
if (dot)
|
|
19714
|
-
return
|
|
19715
|
-
const {
|
|
19716
|
-
value
|
|
19717
|
-
} = props;
|
|
19718
|
-
const {
|
|
19719
|
-
max
|
|
19720
|
-
} = props;
|
|
19625
|
+
if (dot || typeof value === "object")
|
|
19626
|
+
return null;
|
|
19721
19627
|
if (typeof value === "number" && typeof max === "number") {
|
|
19722
19628
|
return max < value ? `${max}+` : value;
|
|
19723
19629
|
}
|
|
@@ -19727,22 +19633,19 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19727
19633
|
const style2 = {};
|
|
19728
19634
|
style2.top = `${Number(top) || parseFloat(top) || 0}px`;
|
|
19729
19635
|
style2.right = `${Number(right) || parseFloat(right) || 0}px`;
|
|
19730
|
-
style2.zIndex = zIndex;
|
|
19731
19636
|
style2.background = color;
|
|
19732
19637
|
return style2;
|
|
19733
19638
|
};
|
|
19734
19639
|
return /* @__PURE__ */ jsxs("div", {
|
|
19735
|
-
className:
|
|
19640
|
+
className: classes,
|
|
19736
19641
|
style,
|
|
19737
|
-
children: [
|
|
19738
|
-
className:
|
|
19739
|
-
children:
|
|
19642
|
+
children: [typeof value === "object" && value && /* @__PURE__ */ jsx("div", {
|
|
19643
|
+
className: `${classPrefix2}__icon`,
|
|
19644
|
+
children: value
|
|
19740
19645
|
}), /* @__PURE__ */ jsx("div", {
|
|
19741
19646
|
children
|
|
19742
19647
|
}), /* @__PURE__ */ jsx("div", {
|
|
19743
|
-
className:
|
|
19744
|
-
"is-dot": dot
|
|
19745
|
-
}, b("content"), "sup"),
|
|
19648
|
+
className: contentClasses,
|
|
19746
19649
|
style: getStyle(),
|
|
19747
19650
|
children: content()
|
|
19748
19651
|
})]
|
|
@@ -21252,7 +21155,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
21252
21155
|
};
|
|
21253
21156
|
return /* @__PURE__ */ jsxs(Popup, {
|
|
21254
21157
|
visible: showPop,
|
|
21255
|
-
|
|
21158
|
+
className: "custom-pop",
|
|
21256
21159
|
style: {
|
|
21257
21160
|
width: "100%"
|
|
21258
21161
|
},
|
|
@@ -21688,7 +21591,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
21688
21591
|
onClick: handleClick,
|
|
21689
21592
|
children: [/* @__PURE__ */ jsx("div", {
|
|
21690
21593
|
className: "left-icon",
|
|
21691
|
-
children: leftIcon || /* @__PURE__ */ jsx(a$
|
|
21594
|
+
children: leftIcon || /* @__PURE__ */ jsx(a$a, {
|
|
21692
21595
|
size: 16,
|
|
21693
21596
|
color
|
|
21694
21597
|
})
|
|
@@ -21705,7 +21608,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
21705
21608
|
}), closeMode || rightIcon ? /* @__PURE__ */ jsx("div", {
|
|
21706
21609
|
className: "right-icon",
|
|
21707
21610
|
onClick: onClickIcon,
|
|
21708
|
-
children: rightIcon || /* @__PURE__ */ jsx(a$
|
|
21611
|
+
children: rightIcon || /* @__PURE__ */ jsx(a$n, {
|
|
21709
21612
|
size: 12,
|
|
21710
21613
|
color
|
|
21711
21614
|
})
|
|
@@ -21756,7 +21659,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
21756
21659
|
onClick: (e) => {
|
|
21757
21660
|
handleClickIcon(e);
|
|
21758
21661
|
},
|
|
21759
|
-
children: rightIcon || (closeMode ? /* @__PURE__ */ jsx(a$
|
|
21662
|
+
children: rightIcon || (closeMode ? /* @__PURE__ */ jsx(a$n, {
|
|
21760
21663
|
size: 12,
|
|
21761
21664
|
color
|
|
21762
21665
|
}) : null)
|
|
@@ -22323,7 +22226,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
22323
22226
|
return /* @__PURE__ */ jsxs("span", {
|
|
22324
22227
|
className: classNames("nut-table__main__head__tr__th", cellClasses(item)),
|
|
22325
22228
|
onClick: () => handleSorterClick(item),
|
|
22326
|
-
children: [item.title, " ", item.sorter && (sorterIcon || /* @__PURE__ */ jsx(a$
|
|
22229
|
+
children: [item.title, " ", item.sorter && (sorterIcon || /* @__PURE__ */ jsx(a$l, {
|
|
22327
22230
|
size: "12px"
|
|
22328
22231
|
}))]
|
|
22329
22232
|
}, item.key);
|
|
@@ -22481,7 +22384,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
22481
22384
|
props.onClose && props.onClose(e);
|
|
22482
22385
|
},
|
|
22483
22386
|
children: closeIcon
|
|
22484
|
-
}) : /* @__PURE__ */ jsx(a$
|
|
22387
|
+
}) : /* @__PURE__ */ jsx(a$n, {
|
|
22485
22388
|
size: 12,
|
|
22486
22389
|
onClick: (e) => {
|
|
22487
22390
|
setIsTagShow(false);
|
|
@@ -23421,7 +23324,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
23421
23324
|
onClick: () => {
|
|
23422
23325
|
nextAreaList(item);
|
|
23423
23326
|
},
|
|
23424
|
-
children: [selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ jsx(a$
|
|
23327
|
+
children: [selectedRegion && selectedRegion[tabName[tabIndex]].id === item.id && /* @__PURE__ */ jsx(a$r, {
|
|
23425
23328
|
className: b2("region-item--icon"),
|
|
23426
23329
|
color: "#FA2C19",
|
|
23427
23330
|
size: "13px"
|
|
@@ -23434,7 +23337,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
23434
23337
|
className: b2("elevator-group"),
|
|
23435
23338
|
children: /* @__PURE__ */ jsx(Elevator, {
|
|
23436
23339
|
height,
|
|
23437
|
-
|
|
23340
|
+
list: regionList[tabName[tabIndex]],
|
|
23438
23341
|
onClickItem: handleElevatorItem
|
|
23439
23342
|
})
|
|
23440
23343
|
})]
|
|
@@ -23594,7 +23497,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
23594
23497
|
children: [/* @__PURE__ */ jsx("div", {
|
|
23595
23498
|
className: "arrow-back",
|
|
23596
23499
|
onClick: onSwitchModule,
|
|
23597
|
-
children: privateType === "custom" && (React.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsx(a$
|
|
23500
|
+
children: privateType === "custom" && (React.isValidElement(backBtnIcon) ? backBtnIcon : /* @__PURE__ */ jsx(a$g, {
|
|
23598
23501
|
color: "#cccccc"
|
|
23599
23502
|
}))
|
|
23600
23503
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -23602,7 +23505,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
23602
23505
|
children: privateType === "custom" ? customAddressTitle || locale.address.selectRegion : existAddressTitle || locale.address.deliveryTo
|
|
23603
23506
|
}), /* @__PURE__ */ jsx("div", {
|
|
23604
23507
|
onClick: () => handClose(),
|
|
23605
|
-
children: React.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsx(a$
|
|
23508
|
+
children: React.isValidElement(closeBtnIcon) ? closeBtnIcon : /* @__PURE__ */ jsx(a$o, {
|
|
23606
23509
|
size: 18,
|
|
23607
23510
|
color: "#ccc"
|
|
23608
23511
|
})
|
|
@@ -23649,10 +23552,10 @@ This message will only show in development mode. It won't appear in production.
|
|
|
23649
23552
|
}), privateType === "exist" && /* @__PURE__ */ jsx(ExistRender, {
|
|
23650
23553
|
type: privateType,
|
|
23651
23554
|
existAddress,
|
|
23652
|
-
selectedIcon: React.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsx(a$
|
|
23555
|
+
selectedIcon: React.isValidElement(selectedIcon) ? selectedIcon : /* @__PURE__ */ jsx(a$r, {
|
|
23653
23556
|
color: "#FA2C19"
|
|
23654
23557
|
}),
|
|
23655
|
-
defaultIcon: React.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsx(r$
|
|
23558
|
+
defaultIcon: React.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ jsx(r$d, {}),
|
|
23656
23559
|
isShowCustomAddress,
|
|
23657
23560
|
customAndExistTitle: customAndExistTitle || locale.address.chooseAnotherAddress,
|
|
23658
23561
|
onSelected: selectedExist,
|