@nutui/nutui-react-taro 2.6.7 → 2.6.8
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 +14 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +1 -1
- package/dist/esm/Address.js +1 -1
- package/dist/esm/Audio.js +1 -1
- package/dist/esm/AvatarCropper.js +1 -1
- package/dist/esm/Button.js +1 -1
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/Card.js +1 -1
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Dialog.js +1 -1
- package/dist/esm/Empty.js +1 -1
- package/dist/esm/FixedNav.js +1 -1
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/MenuItem.js +1 -1
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Overlay.js +1 -1
- package/dist/esm/Picker.js +1 -1
- package/dist/esm/Popover.js +1 -1
- package/dist/esm/Popup.js +1 -1
- package/dist/esm/ShortPassword.js +1 -1
- package/dist/esm/SideNavBar.js +1 -1
- package/dist/esm/Sticky.js +1 -1
- package/dist/esm/TimeSelect.js +1 -1
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/Tour.js +1 -1
- package/dist/esm/Uploader.js +1 -1
- package/dist/esm/{actionsheet.taro-Cla34tFO.js → actionsheet.taro-CQzUaPSP.js} +1 -1
- package/dist/esm/{address.taro-6VS1YZ0V.js → address.taro-D7DEQdo8.js} +2 -2
- package/dist/esm/{audio.taro-4ixA5lb2.js → audio.taro-BlniN99d.js} +1 -1
- package/dist/esm/{avatarcropper.taro-C9BoO5Lp.js → avatarcropper.taro-D6yiXZM5.js} +1 -1
- package/dist/esm/{button.taro-CjH840d8.js → button.taro-KHyp8jxX.js} +2 -2
- package/dist/esm/{calendar.taro-CDZqFYlk.js → calendar.taro-B3D8xMB3.js} +1 -1
- package/dist/esm/{card.taro-Co0BZGJI.js → card.taro-CC0SLA0p.js} +5 -5
- package/dist/esm/{cascader.taro-CZkUgupN.js → cascader.taro-BOifacJL.js} +3 -3
- package/dist/esm/{datepicker.taro-B7H4b8TO.js → datepicker.taro-DzZmcesp.js} +1 -1
- package/dist/esm/{dialog.taro-Du4bNKvD.js → dialog.taro-BNVpTbBx.js} +2 -2
- package/dist/esm/{empty.taro-DgmUYpBc.js → empty.taro-ek_1_FoA.js} +1 -1
- package/dist/esm/{fixednav.taro-CewDiT-u.js → fixednav.taro-bmuCveIB.js} +1 -1
- package/dist/esm/{get-scroll-parent-DB1VRg11.js → get-scroll-parent-9ZDWApX2.js} +0 -1
- package/dist/esm/{imagepreview.taro-CBT7aS3-.js → imagepreview.taro-CytOhJpv.js} +1 -1
- package/dist/esm/{inputnumber.taro-ByJ9DlU2.js → inputnumber.taro-CzuJKfES.js} +4 -4
- package/dist/esm/{menu.taro-DkKY62ym.js → menu.taro-70-DLJx5.js} +1 -1
- package/dist/esm/{menuitem.taro-CKjl8_Cl.js → menuitem.taro-jJWuQbQt.js} +1 -1
- package/dist/esm/{numberkeyboard.taro-CFJtMOew.js → numberkeyboard.taro-Cx3igTDN.js} +1 -1
- package/dist/esm/nutui-react.es.js +28 -28
- package/dist/esm/{overlay.taro-BJ3twlP0.js → overlay.taro-Bu45p46Z.js} +2 -16
- package/dist/esm/{picker.taro-CHsDIw4C.js → picker.taro-va25oy1i.js} +3 -4
- package/dist/esm/{popover.taro-Dve2UnRF.js → popover.taro-D1Jnx8Xp.js} +1 -1
- package/dist/esm/{popup.taro-cT6cbAxw.js → popup.taro-C_nam_bX.js} +1 -1
- package/dist/esm/{shortpassword.taro-BVp4BrTs.js → shortpassword.taro-Bn5n4rrx.js} +1 -1
- package/dist/esm/{sidenavbar.taro-DGnJgxEe.js → sidenavbar.taro-BgKUZ--g.js} +1 -1
- package/dist/esm/{sticky.taro-CqiMtDv9.js → sticky.taro-BtxnArYZ.js} +1 -1
- package/dist/esm/{timeselect.taro-C64SUiXS.js → timeselect.taro-DtyB_UVM.js} +1 -1
- package/dist/esm/{toast.taro-CSqE0aIO.js → toast.taro-C-jP8orA.js} +1 -1
- package/dist/esm/{tour.taro-DegQCG1T.js → tour.taro-D_J_gGVX.js} +1 -1
- package/dist/esm/{uploader.taro-BE4c5x9T.js → uploader.taro-CAKO74Mg.js} +4 -4
- 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/tr-TR.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.es.js +28 -14
- package/dist/nutui.react.umd.js +28 -14
- package/dist/packages/actionsheet/actionsheet.scss +0 -3
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/button/button.taro.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { B } from "./button.taro-
|
|
1
|
+
import { B } from "./button.taro-KHyp8jxX.js";
|
|
2
2
|
import { C } from "./cell.taro-kOgCGbyn.js";
|
|
3
3
|
import { C as C2 } from "./cellgroup.taro-BskBIgql.js";
|
|
4
4
|
import { C as C3, g, s, u, a } from "./configprovider.taro-CyU_tvNJ.js";
|
|
5
5
|
import { I } from "./image.taro-ESa7sdbM.js";
|
|
6
|
-
import { O } from "./overlay.taro-
|
|
6
|
+
import { O } from "./overlay.taro-Bu45p46Z.js";
|
|
7
7
|
import { C as C4 } from "./col.taro-BdtbWacE.js";
|
|
8
8
|
import { D } from "./divider.taro-CijVuCyt.js";
|
|
9
9
|
import { G } from "./grid.taro-C4xSMhg4.js";
|
|
@@ -11,61 +11,61 @@ import { G as G2 } from "./griditem.taro-DeXl7qNi.js";
|
|
|
11
11
|
import { L } from "./layout.taro-C-aUcOOE.js";
|
|
12
12
|
import { R } from "./row.taro-ItEq1Bi5.js";
|
|
13
13
|
import { S } from "./space.taro-B1KsEPZL.js";
|
|
14
|
-
import { S as S2 } from "./sticky.taro-
|
|
14
|
+
import { S as S2 } from "./sticky.taro-BtxnArYZ.js";
|
|
15
15
|
import { S as S3 } from "./safearea.taro-BJpvFsMf.js";
|
|
16
16
|
import { B as B2 } from "./backtop.taro-YeEY7i4O.js";
|
|
17
17
|
import { E } from "./elevator.taro-BzVoaYw6.js";
|
|
18
|
-
import { F } from "./fixednav.taro-
|
|
18
|
+
import { F } from "./fixednav.taro-bmuCveIB.js";
|
|
19
19
|
import { N } from "./navbar.taro-COrKuU9p.js";
|
|
20
|
-
import { S as S4 } from "./sidenavbar.taro-
|
|
20
|
+
import { S as S4 } from "./sidenavbar.taro-BgKUZ--g.js";
|
|
21
21
|
import { S as S5 } from "./sidenavbaritem.taro-L7HbsCLn.js";
|
|
22
22
|
import { S as S6 } from "./subsidenavbar.taro-ByxYpgfP.js";
|
|
23
23
|
import { T } from "./tabbar.taro-DD5HcQgp.js";
|
|
24
24
|
import { T as T2 } from "./tabbaritem.taro-ptdJI0xv.js";
|
|
25
25
|
import { T as T3 } from "./tabpane.taro-BAe86j3t.js";
|
|
26
26
|
import { T as T4 } from "./tabs.taro-gcyv8qGG.js";
|
|
27
|
-
import { A } from "./address.taro-
|
|
28
|
-
import { C as C5 } from "./calendar.taro-
|
|
27
|
+
import { A } from "./address.taro-D7DEQdo8.js";
|
|
28
|
+
import { C as C5 } from "./calendar.taro-B3D8xMB3.js";
|
|
29
29
|
import { C as C6 } from "./calendaritem.taro-DuEKmnsT.js";
|
|
30
30
|
import { C as C7 } from "./calendarcard.taro-CHDg3k5D.js";
|
|
31
|
-
import { C as C8 } from "./cascader.taro-
|
|
31
|
+
import { C as C8 } from "./cascader.taro-BOifacJL.js";
|
|
32
32
|
import { C as C9, a as a2 } from "./checkbox.taro-DOSOI351.js";
|
|
33
|
-
import { D as D2 } from "./datepicker.taro-
|
|
33
|
+
import { D as D2 } from "./datepicker.taro-DzZmcesp.js";
|
|
34
34
|
import { default as default2 } from "./Form.js";
|
|
35
35
|
import { F as F2 } from "./formitem.taro-CAib1i9_.js";
|
|
36
36
|
import { I as I2 } from "./input.taro-CLMPZ7Wg.js";
|
|
37
|
-
import { I as I3 } from "./inputnumber.taro-
|
|
38
|
-
import { M } from "./menu.taro-
|
|
39
|
-
import { M as M2 } from "./menuitem.taro-
|
|
40
|
-
import { N as N2 } from "./numberkeyboard.taro-
|
|
41
|
-
import { P } from "./picker.taro-
|
|
37
|
+
import { I as I3 } from "./inputnumber.taro-CzuJKfES.js";
|
|
38
|
+
import { M } from "./menu.taro-70-DLJx5.js";
|
|
39
|
+
import { M as M2 } from "./menuitem.taro-jJWuQbQt.js";
|
|
40
|
+
import { N as N2 } from "./numberkeyboard.taro-Cx3igTDN.js";
|
|
41
|
+
import { P } from "./picker.taro-va25oy1i.js";
|
|
42
42
|
import { R as R2, a as a3 } from "./radio.taro-CjJgX9o2.js";
|
|
43
43
|
import { R as R3 } from "./range.taro-BeVCaZ4r.js";
|
|
44
44
|
import { R as R4 } from "./rate.taro-lOoACxLq.js";
|
|
45
45
|
import { S as S7 } from "./searchbar.taro-B31m8apz.js";
|
|
46
|
-
import { S as S8 } from "./shortpassword.taro-
|
|
46
|
+
import { S as S8 } from "./shortpassword.taro-Bn5n4rrx.js";
|
|
47
47
|
import { S as S9 } from "./signature.taro-Dq6JO2XJ.js";
|
|
48
48
|
import { S as S10 } from "./switch.taro-Mq1wBEGz.js";
|
|
49
49
|
import { T as T5 } from "./textarea.taro-DLS0EQeJ.js";
|
|
50
|
-
import { U } from "./uploader.taro-
|
|
51
|
-
import { A as A2 } from "./actionsheet.taro-
|
|
50
|
+
import { U } from "./uploader.taro-CAKO74Mg.js";
|
|
51
|
+
import { A as A2 } from "./actionsheet.taro-CQzUaPSP.js";
|
|
52
52
|
import { B as B3 } from "./badge.taro-DK_UFQ5Y.js";
|
|
53
|
-
import { B as B4 } from "./dialog.taro-
|
|
53
|
+
import { B as B4 } from "./dialog.taro-BNVpTbBx.js";
|
|
54
54
|
import { D as D3 } from "./drag.taro-D6xGnWqk.js";
|
|
55
|
-
import { E as E2 } from "./empty.taro-
|
|
55
|
+
import { E as E2 } from "./empty.taro-ek_1_FoA.js";
|
|
56
56
|
import { I as I4 } from "./infiniteloading.taro-Bnm-LVHC.js";
|
|
57
57
|
import { L as L2 } from "./loading.taro-BfHqvYhy.js";
|
|
58
58
|
import { N as N3 } from "./noticebar.taro-cjVGemZE.js";
|
|
59
59
|
import { N as N4 } from "./notify.taro-jP7y9zMU.js";
|
|
60
|
-
import { P as P2 } from "./popover.taro-
|
|
61
|
-
import { P as P3 } from "./popup.taro-
|
|
60
|
+
import { P as P2 } from "./popover.taro-D1Jnx8Xp.js";
|
|
61
|
+
import { P as P3 } from "./popup.taro-C_nam_bX.js";
|
|
62
62
|
import { P as P4 } from "./pulltorefresh.taro-Ck1i2xRr.js";
|
|
63
63
|
import { S as S11 } from "./skeleton.taro-C3vp7bWb.js";
|
|
64
64
|
import { S as S12 } from "./swipe.taro-CavqgBEb.js";
|
|
65
|
-
import { T as T6 } from "./toast.taro-
|
|
65
|
+
import { T as T6 } from "./toast.taro-C-jP8orA.js";
|
|
66
66
|
import { A as A3 } from "./animate.taro-D-A6ORRZ.js";
|
|
67
67
|
import { default as default3 } from "./AnimatingNumbers.js";
|
|
68
|
-
import { A as A4 } from "./audio.taro-
|
|
68
|
+
import { A as A4 } from "./audio.taro-BlniN99d.js";
|
|
69
69
|
import { A as A5 } from "./avatar.taro-Dx8hhvFI.js";
|
|
70
70
|
import { A as A6 } from "./avatargroup.taro-ScakjsY1.js";
|
|
71
71
|
import { C as C10 } from "./circleprogress.taro-BuVTD1iY.js";
|
|
@@ -73,7 +73,7 @@ import { C as C11 } from "./collapse.taro-CxDgckv5.js";
|
|
|
73
73
|
import { C as C12 } from "./collapseitem.taro-BY06WWvK.js";
|
|
74
74
|
import { C as C13 } from "./countdown.taro-CdEiAwr5.js";
|
|
75
75
|
import { E as E3 } from "./ellipsis.taro-dxOx8h7S.js";
|
|
76
|
-
import { I as I5 } from "./imagepreview.taro-
|
|
76
|
+
import { I as I5 } from "./imagepreview.taro-CytOhJpv.js";
|
|
77
77
|
import { I as I6 } from "./indicator.taro-Bmae9MdC.js";
|
|
78
78
|
import { P as P5 } from "./pagination.taro-B8hmHNgf.js";
|
|
79
79
|
import { P as P6 } from "./price.taro-DdR5NSIA.js";
|
|
@@ -84,16 +84,16 @@ import { default as default4 } from "./Swiper.js";
|
|
|
84
84
|
import { S as S15 } from "./swiperitem.taro-8JXI24f0.js";
|
|
85
85
|
import { T as T7 } from "./table.taro-EwAQJ6jp.js";
|
|
86
86
|
import { T as T8 } from "./tag.taro-CFt28RLm.js";
|
|
87
|
-
import { T as T9 } from "./tour.taro-
|
|
87
|
+
import { T as T9 } from "./tour.taro-D_J_gGVX.js";
|
|
88
88
|
import { V } from "./video.taro-Bm5bDmIG.js";
|
|
89
89
|
import { V as V2 } from "./virtuallist.taro-GLen2Ay5.js";
|
|
90
90
|
import { B as B5 } from "./barrage.taro-DEJGSmY5.js";
|
|
91
|
-
import { C as C14 } from "./card.taro-
|
|
91
|
+
import { C as C14 } from "./card.taro-CC0SLA0p.js";
|
|
92
92
|
import { T as T10 } from "./timedetail.taro-ya5JNy2L.js";
|
|
93
|
-
import { T as T11 } from "./timeselect.taro-
|
|
93
|
+
import { T as T11 } from "./timeselect.taro-DtyB_UVM.js";
|
|
94
94
|
import { T as T12 } from "./trendarrow.taro-B2QGvXG0.js";
|
|
95
95
|
import { W } from "./watermark.taro-BL5bLewc.js";
|
|
96
|
-
import { A as A7 } from "./avatarcropper.taro-
|
|
96
|
+
import { A as A7 } from "./avatarcropper.taro-D6yiXZM5.js";
|
|
97
97
|
export {
|
|
98
98
|
A2 as ActionSheet,
|
|
99
99
|
A as Address,
|
|
@@ -6,20 +6,7 @@ import { View } from "@tarojs/components";
|
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
import { getEnv } from "@tarojs/taro";
|
|
8
8
|
import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
9
|
-
import {
|
|
10
|
-
let passiveSupported = false;
|
|
11
|
-
if (canUseDom) {
|
|
12
|
-
try {
|
|
13
|
-
const opts = Object.defineProperty({}, "passive", {
|
|
14
|
-
get() {
|
|
15
|
-
passiveSupported = true;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
window.addEventListener("test-passive-supported", null, opts);
|
|
19
|
-
} catch (e) {
|
|
20
|
-
console.log(e);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
9
|
+
import { g as getScrollParent } from "./get-scroll-parent-9ZDWApX2.js";
|
|
23
10
|
let totalLockCount = 0;
|
|
24
11
|
const BODY_LOCK_CLASS = "nut-overflow-hidden";
|
|
25
12
|
function getScrollableElement(el) {
|
|
@@ -62,7 +49,7 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
62
49
|
};
|
|
63
50
|
const lock = () => {
|
|
64
51
|
document.addEventListener("touchstart", touch.start);
|
|
65
|
-
document.addEventListener("touchmove", onTouchMove,
|
|
52
|
+
document.addEventListener("touchmove", onTouchMove, false);
|
|
66
53
|
if (!totalLockCount) {
|
|
67
54
|
document.body.classList.add(BODY_LOCK_CLASS);
|
|
68
55
|
}
|
|
@@ -135,6 +122,5 @@ Overlay.displayName = "NutOverlay";
|
|
|
135
122
|
export {
|
|
136
123
|
Overlay as O,
|
|
137
124
|
defaultOverlayProps as d,
|
|
138
|
-
passiveSupported as p,
|
|
139
125
|
useLockScrollTaro as u
|
|
140
126
|
};
|
|
@@ -3,10 +3,9 @@ import React__default, { useState, useRef, useEffect, useImperativeHandle } from
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Taro from "@tarojs/taro";
|
|
5
5
|
import { View, PickerView, PickerViewColumn } from "@tarojs/components";
|
|
6
|
-
import { P as Popup } from "./popup.taro-
|
|
6
|
+
import { P as Popup } from "./popup.taro-C_nam_bX.js";
|
|
7
7
|
import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
8
8
|
import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
|
|
9
|
-
import { p as passiveSupported } from "./overlay.taro-BJ3twlP0.js";
|
|
10
9
|
import { u as useRefs } from "./use-refs-BeEmziIR.js";
|
|
11
10
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
12
11
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
@@ -180,7 +179,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
180
179
|
moving: moving.current
|
|
181
180
|
}));
|
|
182
181
|
useEffect(() => {
|
|
183
|
-
const eventOptions =
|
|
182
|
+
const eventOptions = false;
|
|
184
183
|
const element = pickerPanelRef.current;
|
|
185
184
|
element.addEventListener("touchstart", touchStart, eventOptions);
|
|
186
185
|
element.addEventListener("touchmove", touchMove, eventOptions);
|
|
@@ -426,7 +425,7 @@ const InternalPicker = (props, ref) => {
|
|
|
426
425
|
e.stopPropagation();
|
|
427
426
|
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
428
427
|
setInnerVisible(false);
|
|
429
|
-
} }, locale.cancel),
|
|
428
|
+
} }, locale === null || locale === void 0 ? void 0 : locale.cancel),
|
|
430
429
|
React__default.createElement("div", { className: `${classPrefix}-title` }, title || ""),
|
|
431
430
|
React__default.createElement("span", { className: `${classPrefix}-confirm-btn`, onClick: (e) => {
|
|
432
431
|
e.stopPropagation();
|
|
@@ -2,7 +2,7 @@ import { _ as __rest, a as __awaiter } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
5
|
+
import { P as Popup } from "./popup.taro-C_nam_bX.js";
|
|
6
6
|
import { a as getRect, g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { a as useRtl } from "./configprovider.taro-CyU_tvNJ.js";
|
|
@@ -4,7 +4,7 @@ import { CSSTransition } from "react-transition-group";
|
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { Close } from "@nutui/icons-react-taro";
|
|
6
6
|
import { View } from "@tarojs/components";
|
|
7
|
-
import { d as defaultOverlayProps, u as useLockScrollTaro, O as Overlay } from "./overlay.taro-
|
|
7
|
+
import { d as defaultOverlayProps, u as useLockScrollTaro, O as Overlay } from "./overlay.taro-Bu45p46Z.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign(Object.assign({}, ComponentDefaults), { position: "center", transition: "", overlayStyle: {}, overlayClassName: "", closeable: false, closeIconPosition: "top-right", closeIcon: "close", destroyOnClose: false, portal: null, overlay: true, round: false, onOpen: () => {
|
|
10
10
|
}, onClose: () => {
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useMemo, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { Tips } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { P as Popup } from "./popup.taro-
|
|
5
|
+
import { P as Popup } from "./popup.taro-C_nam_bX.js";
|
|
6
6
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
2
|
import React__default, { useState } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-C_nam_bX.js";
|
|
5
5
|
import { O as OffsetContext } from "./context-4T-L2x0_.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { position: "left", width: "80%" });
|
|
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
|
|
4
4
|
import { getEnv, usePageScroll, getSystemInfoSync } from "@tarojs/taro";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
6
|
import { g as getRectByTaro } from "./get-rect-by-taro-CSN0TGnD.js";
|
|
7
|
-
import { g as getScrollParent } from "./get-scroll-parent-
|
|
7
|
+
import { g as getScrollParent } from "./get-scroll-parent-9ZDWApX2.js";
|
|
8
8
|
function useWatch(dep, callback, config = { immediate: false }) {
|
|
9
9
|
const { immediate } = config;
|
|
10
10
|
const prev = useRef();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
2
2
|
import React__default, { useState } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-C_nam_bX.js";
|
|
5
5
|
import { T as TimeDetail } from "./timedetail.taro-ya5JNy2L.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-react-taro";
|
|
4
|
-
import { O as Overlay } from "./overlay.taro-
|
|
4
|
+
import { O as Overlay } from "./overlay.taro-Bu45p46Z.js";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
6
|
import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-DuP4onEm.js";
|
|
7
7
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-BZ8i9Q6l.js";
|
|
|
2
2
|
import React__default, { useState, useEffect } from "react";
|
|
3
3
|
import { Close } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { P as Popover } from "./popover.taro-
|
|
5
|
+
import { P as Popover } from "./popover.taro-D1Jnx8Xp.js";
|
|
6
6
|
import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { useConfig } from "./ConfigProvider.js";
|
|
@@ -3,7 +3,7 @@ import React__default, { useState, useImperativeHandle } from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Taro, { uploadFile, getEnv, chooseMedia, chooseImage } from "@tarojs/taro";
|
|
5
5
|
import { Failure, Link, Del, Loading, Photograph } from "@nutui/icons-react-taro";
|
|
6
|
-
import { B as Button } from "./button.taro-
|
|
6
|
+
import { B as Button } from "./button.taro-KHyp8jxX.js";
|
|
7
7
|
import { u as useConfig } from "./configprovider.taro-CyU_tvNJ.js";
|
|
8
8
|
import { a as isPromise } from "./index-DeNfBlua.js";
|
|
9
9
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
@@ -457,8 +457,8 @@ const InternalUploader = (props, ref) => {
|
|
|
457
457
|
React__default.createElement(
|
|
458
458
|
React__default.Fragment,
|
|
459
459
|
null,
|
|
460
|
-
children || React__default.createElement(Button, { size: "small", type: "primary" }, "上传文件"),
|
|
461
|
-
Number(maxCount) > fileList.length && React__default.createElement(Button, { className: "nut-uploader-input", onClick: _chooseImage })
|
|
460
|
+
children || React__default.createElement(Button, { nativeType: "button", size: "small", type: "primary" }, "上传文件"),
|
|
461
|
+
Number(maxCount) > fileList.length && React__default.createElement(Button, { nativeType: "button", className: "nut-uploader-input", onClick: _chooseImage })
|
|
462
462
|
)
|
|
463
463
|
),
|
|
464
464
|
React__default.createElement(Preview, {
|
|
@@ -479,7 +479,7 @@ const InternalUploader = (props, ref) => {
|
|
|
479
479
|
uploadIcon,
|
|
480
480
|
React__default.createElement("span", { className: "nut-uploader-icon-tip" }, uploadLabel)
|
|
481
481
|
),
|
|
482
|
-
React__default.createElement(Button, { className: "nut-uploader-input", onClick: _chooseImage })
|
|
482
|
+
React__default.createElement(Button, { nativeType: "button", className: "nut-uploader-input", onClick: _chooseImage })
|
|
483
483
|
)
|
|
484
484
|
);
|
|
485
485
|
};
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v2.6.
|
|
2
|
+
* @nutui/nutui-react-taro v2.6.8 Fri May 31 2024 16:03:24 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -228,6 +228,7 @@ const Button = React__default.forwardRef(
|
|
|
228
228
|
children,
|
|
229
229
|
className,
|
|
230
230
|
style,
|
|
231
|
+
nativeType,
|
|
231
232
|
onClick,
|
|
232
233
|
...rest
|
|
233
234
|
} = {
|
|
@@ -267,6 +268,7 @@ const Button = React__default.forwardRef(
|
|
|
267
268
|
{
|
|
268
269
|
...rest,
|
|
269
270
|
ref,
|
|
271
|
+
type: nativeType,
|
|
270
272
|
className: classNames(
|
|
271
273
|
prefixCls$2,
|
|
272
274
|
`${prefixCls$2}-${type4}`,
|
|
@@ -5843,7 +5845,7 @@ const InternalCascader = (props, ref) => {
|
|
|
5843
5845
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
5844
5846
|
const optionParams = pathNodes.map((item) => item.value);
|
|
5845
5847
|
onChange(optionParams, pathNodes);
|
|
5846
|
-
onPathChange(optionParams, pathNodes);
|
|
5848
|
+
onPathChange == null ? void 0 : onPathChange(optionParams, pathNodes);
|
|
5847
5849
|
setInnerValue(optionParams);
|
|
5848
5850
|
}
|
|
5849
5851
|
setOptionsData(state.panes);
|
|
@@ -5865,7 +5867,7 @@ const InternalCascader = (props, ref) => {
|
|
|
5865
5867
|
if (!type4) {
|
|
5866
5868
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
5867
5869
|
const optionParams = pathNodes.map((item) => item == null ? void 0 : item.value);
|
|
5868
|
-
onPathChange(optionParams, pathNodes);
|
|
5870
|
+
onPathChange == null ? void 0 : onPathChange(optionParams, pathNodes);
|
|
5869
5871
|
}
|
|
5870
5872
|
return;
|
|
5871
5873
|
}
|
|
@@ -8332,7 +8334,7 @@ const InternalPicker = (props, ref) => {
|
|
|
8332
8334
|
setInnerVisible(false);
|
|
8333
8335
|
}
|
|
8334
8336
|
},
|
|
8335
|
-
locale.cancel
|
|
8337
|
+
locale == null ? void 0 : locale.cancel
|
|
8336
8338
|
), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-title` }, title || ""), /* @__PURE__ */ React__default.createElement(
|
|
8337
8339
|
"span",
|
|
8338
8340
|
{
|
|
@@ -10650,13 +10652,12 @@ const InputNumber = (props) => {
|
|
|
10650
10652
|
onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
|
|
10651
10653
|
}
|
|
10652
10654
|
};
|
|
10653
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React__default.createElement(
|
|
10655
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-minus", onClick: handleReduce }, /* @__PURE__ */ React__default.createElement(
|
|
10654
10656
|
a$1,
|
|
10655
10657
|
{
|
|
10656
10658
|
className: classNames("nut-inputnumber-icon icon-minus", {
|
|
10657
10659
|
[`${classPrefix$h}-icon-disabled`]: shadowValue === min || disabled
|
|
10658
|
-
})
|
|
10659
|
-
onClick: handleReduce
|
|
10660
|
+
})
|
|
10660
10661
|
}
|
|
10661
10662
|
)), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
10662
10663
|
"input",
|
|
@@ -10672,13 +10673,12 @@ const InputNumber = (props) => {
|
|
|
10672
10673
|
onBlur: handleBlur,
|
|
10673
10674
|
onFocus: handleFocus
|
|
10674
10675
|
}
|
|
10675
|
-
)), /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React__default.createElement(
|
|
10676
|
+
)), /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-add", onClick: handlePlus }, /* @__PURE__ */ React__default.createElement(
|
|
10676
10677
|
a,
|
|
10677
10678
|
{
|
|
10678
10679
|
className: classNames("nut-inputnumber-icon icon-plus", {
|
|
10679
10680
|
[`${classPrefix$h}-icon-disabled`]: shadowValue === max || disabled
|
|
10680
|
-
})
|
|
10681
|
-
onClick: handlePlus
|
|
10681
|
+
})
|
|
10682
10682
|
}
|
|
10683
10683
|
)));
|
|
10684
10684
|
};
|
|
@@ -13204,7 +13204,14 @@ const InternalUploader = (props, ref) => {
|
|
|
13204
13204
|
const handleItemClick = (file, index) => {
|
|
13205
13205
|
onFileItemClick == null ? void 0 : onFileItemClick(file, index);
|
|
13206
13206
|
};
|
|
13207
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-slot" }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children || /* @__PURE__ */ React__default.createElement(Button, { size: "small", type: "primary" }, "上传文件"), Number(maxCount) > fileList.length && /* @__PURE__ */ React__default.createElement(
|
|
13207
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-slot" }, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children || /* @__PURE__ */ React__default.createElement(Button, { nativeType: "button", size: "small", type: "primary" }, "上传文件"), Number(maxCount) > fileList.length && /* @__PURE__ */ React__default.createElement(
|
|
13208
|
+
Button,
|
|
13209
|
+
{
|
|
13210
|
+
nativeType: "button",
|
|
13211
|
+
className: "nut-uploader-input",
|
|
13212
|
+
onClick: _chooseImage
|
|
13213
|
+
}
|
|
13214
|
+
))), /* @__PURE__ */ React__default.createElement(
|
|
13208
13215
|
Preview,
|
|
13209
13216
|
{
|
|
13210
13217
|
...{
|
|
@@ -13223,7 +13230,14 @@ const InternalUploader = (props, ref) => {
|
|
|
13223
13230
|
className: `nut-uploader-upload ${previewType} ${disabled ? "nut-uploader-upload-disabled" : ""}`
|
|
13224
13231
|
},
|
|
13225
13232
|
/* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-icon" }, uploadIcon, /* @__PURE__ */ React__default.createElement("span", { className: "nut-uploader-icon-tip" }, uploadLabel)),
|
|
13226
|
-
/* @__PURE__ */ React__default.createElement(
|
|
13233
|
+
/* @__PURE__ */ React__default.createElement(
|
|
13234
|
+
Button,
|
|
13235
|
+
{
|
|
13236
|
+
nativeType: "button",
|
|
13237
|
+
className: "nut-uploader-input",
|
|
13238
|
+
onClick: _chooseImage
|
|
13239
|
+
}
|
|
13240
|
+
)
|
|
13227
13241
|
));
|
|
13228
13242
|
};
|
|
13229
13243
|
const Uploader = React__default.forwardRef(InternalUploader);
|
|
@@ -18381,14 +18395,14 @@ const Card = (props) => {
|
|
|
18381
18395
|
...props
|
|
18382
18396
|
};
|
|
18383
18397
|
const classPrefix2 = "nut-card";
|
|
18384
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style, ...rest }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-left` }, /* @__PURE__ */ React__default.createElement("img", { src, alt: "" })), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-title` }, title), description, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-price` }, /* @__PURE__ */ React__default.createElement(Price, { size: "normal", price }), priceTag || /* @__PURE__ */ React__default.createElement(
|
|
18398
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style, ...rest }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-left` }, /* @__PURE__ */ React__default.createElement("img", { src, alt: "" })), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-title` }, title), description, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-price` }, price && /* @__PURE__ */ React__default.createElement(Price, { size: "normal", price }), priceTag || vipPrice && /* @__PURE__ */ React__default.createElement(
|
|
18385
18399
|
Price,
|
|
18386
18400
|
{
|
|
18387
18401
|
size: "normal",
|
|
18388
18402
|
className: `${classPrefix2}-right-price-origin`,
|
|
18389
18403
|
price: vipPrice
|
|
18390
18404
|
}
|
|
18391
|
-
)), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Tag, { type: "danger" }, shopDescription), /* @__PURE__ */ React__default.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
|
|
18405
|
+
)), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, shopDescription && /* @__PURE__ */ React__default.createElement(Tag, { type: "danger" }, shopDescription), delivery && /* @__PURE__ */ React__default.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop` }, shopName && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
|
|
18392
18406
|
};
|
|
18393
18407
|
Card.displayName = "NutCard";
|
|
18394
18408
|
const defaultProps$4 = {
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, Taro, components, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react-taro v2.6.
|
|
5
|
+
* @nutui/nutui-react-taro v2.6.8 Fri May 31 2024 16:03:24 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -244,6 +244,7 @@
|
|
|
244
244
|
children,
|
|
245
245
|
className,
|
|
246
246
|
style,
|
|
247
|
+
nativeType,
|
|
247
248
|
onClick,
|
|
248
249
|
...rest
|
|
249
250
|
} = {
|
|
@@ -283,6 +284,7 @@
|
|
|
283
284
|
{
|
|
284
285
|
...rest,
|
|
285
286
|
ref,
|
|
287
|
+
type: nativeType,
|
|
286
288
|
className: classNames(
|
|
287
289
|
prefixCls$2,
|
|
288
290
|
`${prefixCls$2}-${type2}`,
|
|
@@ -5859,7 +5861,7 @@
|
|
|
5859
5861
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
5860
5862
|
const optionParams = pathNodes.map((item) => item.value);
|
|
5861
5863
|
onChange(optionParams, pathNodes);
|
|
5862
|
-
onPathChange(optionParams, pathNodes);
|
|
5864
|
+
onPathChange == null ? void 0 : onPathChange(optionParams, pathNodes);
|
|
5863
5865
|
setInnerValue(optionParams);
|
|
5864
5866
|
}
|
|
5865
5867
|
setOptionsData(state.panes);
|
|
@@ -5881,7 +5883,7 @@
|
|
|
5881
5883
|
if (!type2) {
|
|
5882
5884
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
5883
5885
|
const optionParams = pathNodes.map((item) => item == null ? void 0 : item.value);
|
|
5884
|
-
onPathChange(optionParams, pathNodes);
|
|
5886
|
+
onPathChange == null ? void 0 : onPathChange(optionParams, pathNodes);
|
|
5885
5887
|
}
|
|
5886
5888
|
return;
|
|
5887
5889
|
}
|
|
@@ -8348,7 +8350,7 @@
|
|
|
8348
8350
|
setInnerVisible(false);
|
|
8349
8351
|
}
|
|
8350
8352
|
},
|
|
8351
|
-
locale.cancel
|
|
8353
|
+
locale == null ? void 0 : locale.cancel
|
|
8352
8354
|
), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title` }, title || ""), /* @__PURE__ */ React.createElement(
|
|
8353
8355
|
"span",
|
|
8354
8356
|
{
|
|
@@ -10666,13 +10668,12 @@
|
|
|
10666
10668
|
onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
|
|
10667
10669
|
}
|
|
10668
10670
|
};
|
|
10669
|
-
return /* @__PURE__ */ React.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React.createElement(
|
|
10671
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus", onClick: handleReduce }, /* @__PURE__ */ React.createElement(
|
|
10670
10672
|
a$1,
|
|
10671
10673
|
{
|
|
10672
10674
|
className: classNames("nut-inputnumber-icon icon-minus", {
|
|
10673
10675
|
[`${classPrefix$h}-icon-disabled`]: shadowValue === min || disabled
|
|
10674
|
-
})
|
|
10675
|
-
onClick: handleReduce
|
|
10676
|
+
})
|
|
10676
10677
|
}
|
|
10677
10678
|
)), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
10678
10679
|
"input",
|
|
@@ -10688,13 +10689,12 @@
|
|
|
10688
10689
|
onBlur: handleBlur,
|
|
10689
10690
|
onFocus: handleFocus
|
|
10690
10691
|
}
|
|
10691
|
-
)), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(
|
|
10692
|
+
)), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add", onClick: handlePlus }, /* @__PURE__ */ React.createElement(
|
|
10692
10693
|
a,
|
|
10693
10694
|
{
|
|
10694
10695
|
className: classNames("nut-inputnumber-icon icon-plus", {
|
|
10695
10696
|
[`${classPrefix$h}-icon-disabled`]: shadowValue === max || disabled
|
|
10696
|
-
})
|
|
10697
|
-
onClick: handlePlus
|
|
10697
|
+
})
|
|
10698
10698
|
}
|
|
10699
10699
|
)));
|
|
10700
10700
|
};
|
|
@@ -13220,7 +13220,14 @@
|
|
|
13220
13220
|
const handleItemClick = (file, index) => {
|
|
13221
13221
|
onFileItemClick == null ? void 0 : onFileItemClick(file, index);
|
|
13222
13222
|
};
|
|
13223
|
-
return /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-slot" }, /* @__PURE__ */ React.createElement(React.Fragment, null, children || /* @__PURE__ */ React.createElement(Button, { size: "small", type: "primary" }, "上传文件"), Number(maxCount) > fileList.length && /* @__PURE__ */ React.createElement(
|
|
13223
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-slot" }, /* @__PURE__ */ React.createElement(React.Fragment, null, children || /* @__PURE__ */ React.createElement(Button, { nativeType: "button", size: "small", type: "primary" }, "上传文件"), Number(maxCount) > fileList.length && /* @__PURE__ */ React.createElement(
|
|
13224
|
+
Button,
|
|
13225
|
+
{
|
|
13226
|
+
nativeType: "button",
|
|
13227
|
+
className: "nut-uploader-input",
|
|
13228
|
+
onClick: _chooseImage
|
|
13229
|
+
}
|
|
13230
|
+
))), /* @__PURE__ */ React.createElement(
|
|
13224
13231
|
Preview,
|
|
13225
13232
|
{
|
|
13226
13233
|
...{
|
|
@@ -13239,7 +13246,14 @@
|
|
|
13239
13246
|
className: `nut-uploader-upload ${previewType} ${disabled ? "nut-uploader-upload-disabled" : ""}`
|
|
13240
13247
|
},
|
|
13241
13248
|
/* @__PURE__ */ React.createElement("div", { className: "nut-uploader-icon" }, uploadIcon, /* @__PURE__ */ React.createElement("span", { className: "nut-uploader-icon-tip" }, uploadLabel)),
|
|
13242
|
-
/* @__PURE__ */ React.createElement(
|
|
13249
|
+
/* @__PURE__ */ React.createElement(
|
|
13250
|
+
Button,
|
|
13251
|
+
{
|
|
13252
|
+
nativeType: "button",
|
|
13253
|
+
className: "nut-uploader-input",
|
|
13254
|
+
onClick: _chooseImage
|
|
13255
|
+
}
|
|
13256
|
+
)
|
|
13243
13257
|
));
|
|
13244
13258
|
};
|
|
13245
13259
|
const Uploader = React.forwardRef(InternalUploader);
|
|
@@ -18397,14 +18411,14 @@
|
|
|
18397
18411
|
...props
|
|
18398
18412
|
};
|
|
18399
18413
|
const classPrefix2 = "nut-card";
|
|
18400
|
-
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, /* @__PURE__ */ React.createElement("img", { src, alt: "" })), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-title` }, title), description, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-price` }, /* @__PURE__ */ React.createElement(Price, { size: "normal", price }), priceTag || /* @__PURE__ */ React.createElement(
|
|
18414
|
+
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, /* @__PURE__ */ React.createElement("img", { src, alt: "" })), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-title` }, title), description, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-price` }, price && /* @__PURE__ */ React.createElement(Price, { size: "normal", price }), priceTag || vipPrice && /* @__PURE__ */ React.createElement(
|
|
18401
18415
|
Price,
|
|
18402
18416
|
{
|
|
18403
18417
|
size: "normal",
|
|
18404
18418
|
className: `${classPrefix2}-right-price-origin`,
|
|
18405
18419
|
price: vipPrice
|
|
18406
18420
|
}
|
|
18407
|
-
)), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Tag, { type: "danger" }, shopDescription), /* @__PURE__ */ React.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
|
|
18421
|
+
)), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React.createElement(React.Fragment, null, shopDescription && /* @__PURE__ */ React.createElement(Tag, { type: "danger" }, shopDescription), delivery && /* @__PURE__ */ React.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop` }, shopName && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
|
|
18408
18422
|
};
|
|
18409
18423
|
Card.displayName = "NutCard";
|
|
18410
18424
|
const defaultProps$4 = {
|