@nutui/nutui-react-taro 2.6.6 → 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 +29 -6
- 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/Signature.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-CI2b9f_3.js → actionsheet.taro-CQzUaPSP.js} +3 -2
- 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 +29 -29
- 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/{signature.taro-DTZCZMDZ.js → signature.taro-Dq6JO2XJ.js} +8 -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 +40 -31
- package/dist/nutui.react.umd.js +40 -31
- package/dist/packages/actionsheet/actionsheet.scss +7 -4
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +0 -1
- package/dist/styles/variables.scss +0 -1
- package/dist/types/packages/button/button.taro.d.ts +5 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/signature/signature.d.ts +1 -1
- package/dist/types/packages/signature/signature.taro.d.ts +1 -1
- 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-
|
|
47
|
-
import { S as S9 } from "./signature.taro-
|
|
46
|
+
import { S as S8 } from "./shortpassword.taro-Bn5n4rrx.js";
|
|
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%" });
|
|
@@ -12,7 +12,9 @@ const InternalSignature = (props, ref) => {
|
|
|
12
12
|
const [canvasWidth, setCanvasWidth] = useState(0);
|
|
13
13
|
const ctx = useRef(null);
|
|
14
14
|
const [disalbeScroll] = useState("true");
|
|
15
|
+
const isSignedRef = useRef(false);
|
|
15
16
|
const startEventHandler = (event) => {
|
|
17
|
+
isSignedRef.current = true;
|
|
16
18
|
if (ctx.current) {
|
|
17
19
|
ctx.current.beginPath();
|
|
18
20
|
ctx.current.lineWidth = lineWidth;
|
|
@@ -39,6 +41,7 @@ const InternalSignature = (props, ref) => {
|
|
|
39
41
|
const endEventHandler = (event) => {
|
|
40
42
|
};
|
|
41
43
|
const handleClearBtn = () => {
|
|
44
|
+
isSignedRef.current = false;
|
|
42
45
|
if (ctx.current) {
|
|
43
46
|
ctx.current.clearRect(0, 0, canvasWidth, canvasHeight);
|
|
44
47
|
ctx.current.closePath();
|
|
@@ -46,6 +49,10 @@ const InternalSignature = (props, ref) => {
|
|
|
46
49
|
onClear && onClear();
|
|
47
50
|
};
|
|
48
51
|
const onSave = () => {
|
|
52
|
+
if (!isSignedRef.current) {
|
|
53
|
+
onConfirm && onConfirm("", isSignedRef.current);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
49
56
|
createSelectorQuery().select(`#${canvasId}`).fields({
|
|
50
57
|
node: true,
|
|
51
58
|
size: true
|
|
@@ -55,7 +62,7 @@ const InternalSignature = (props, ref) => {
|
|
|
55
62
|
fileType: type,
|
|
56
63
|
canvasId: `${canvasId}`,
|
|
57
64
|
success: (res2) => {
|
|
58
|
-
onConfirm && onConfirm(res2.tempFilePath);
|
|
65
|
+
onConfirm && onConfirm(res2.tempFilePath, isSignedRef.current);
|
|
59
66
|
},
|
|
60
67
|
fail: (res2) => {
|
|
61
68
|
console.warn("保存失败");
|
|
@@ -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}`,
|
|
@@ -3421,19 +3423,6 @@ function getScrollParent(el, root2 = defaultRoot) {
|
|
|
3421
3423
|
}
|
|
3422
3424
|
return root2;
|
|
3423
3425
|
}
|
|
3424
|
-
let passiveSupported = false;
|
|
3425
|
-
if (canUseDom) {
|
|
3426
|
-
try {
|
|
3427
|
-
const opts = Object.defineProperty({}, "passive", {
|
|
3428
|
-
get() {
|
|
3429
|
-
passiveSupported = true;
|
|
3430
|
-
}
|
|
3431
|
-
});
|
|
3432
|
-
window.addEventListener("test-passive-supported", null, opts);
|
|
3433
|
-
} catch (e2) {
|
|
3434
|
-
console.log(e2);
|
|
3435
|
-
}
|
|
3436
|
-
}
|
|
3437
3426
|
let totalLockCount = 0;
|
|
3438
3427
|
const BODY_LOCK_CLASS = "nut-overflow-hidden";
|
|
3439
3428
|
function getScrollableElement(el) {
|
|
@@ -3482,7 +3471,7 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
3482
3471
|
document.addEventListener(
|
|
3483
3472
|
"touchmove",
|
|
3484
3473
|
onTouchMove,
|
|
3485
|
-
|
|
3474
|
+
false
|
|
3486
3475
|
);
|
|
3487
3476
|
if (!totalLockCount) {
|
|
3488
3477
|
document.body.classList.add(BODY_LOCK_CLASS);
|
|
@@ -5856,7 +5845,7 @@ const InternalCascader = (props, ref) => {
|
|
|
5856
5845
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
5857
5846
|
const optionParams = pathNodes.map((item) => item.value);
|
|
5858
5847
|
onChange(optionParams, pathNodes);
|
|
5859
|
-
onPathChange(optionParams, pathNodes);
|
|
5848
|
+
onPathChange == null ? void 0 : onPathChange(optionParams, pathNodes);
|
|
5860
5849
|
setInnerValue(optionParams);
|
|
5861
5850
|
}
|
|
5862
5851
|
setOptionsData(state.panes);
|
|
@@ -5878,7 +5867,7 @@ const InternalCascader = (props, ref) => {
|
|
|
5878
5867
|
if (!type4) {
|
|
5879
5868
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
5880
5869
|
const optionParams = pathNodes.map((item) => item == null ? void 0 : item.value);
|
|
5881
|
-
onPathChange(optionParams, pathNodes);
|
|
5870
|
+
onPathChange == null ? void 0 : onPathChange(optionParams, pathNodes);
|
|
5882
5871
|
}
|
|
5883
5872
|
return;
|
|
5884
5873
|
}
|
|
@@ -8040,7 +8029,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
8040
8029
|
moving: moving.current
|
|
8041
8030
|
}));
|
|
8042
8031
|
useEffect(() => {
|
|
8043
|
-
const eventOptions =
|
|
8032
|
+
const eventOptions = false;
|
|
8044
8033
|
const element = pickerPanelRef.current;
|
|
8045
8034
|
element.addEventListener("touchstart", touchStart, eventOptions);
|
|
8046
8035
|
element.addEventListener("touchmove", touchMove, eventOptions);
|
|
@@ -8345,7 +8334,7 @@ const InternalPicker = (props, ref) => {
|
|
|
8345
8334
|
setInnerVisible(false);
|
|
8346
8335
|
}
|
|
8347
8336
|
},
|
|
8348
|
-
locale.cancel
|
|
8337
|
+
locale == null ? void 0 : locale.cancel
|
|
8349
8338
|
), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-title` }, title || ""), /* @__PURE__ */ React__default.createElement(
|
|
8350
8339
|
"span",
|
|
8351
8340
|
{
|
|
@@ -10663,13 +10652,12 @@ const InputNumber = (props) => {
|
|
|
10663
10652
|
onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
|
|
10664
10653
|
}
|
|
10665
10654
|
};
|
|
10666
|
-
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(
|
|
10667
10656
|
a$1,
|
|
10668
10657
|
{
|
|
10669
10658
|
className: classNames("nut-inputnumber-icon icon-minus", {
|
|
10670
10659
|
[`${classPrefix$h}-icon-disabled`]: shadowValue === min || disabled
|
|
10671
|
-
})
|
|
10672
|
-
onClick: handleReduce
|
|
10660
|
+
})
|
|
10673
10661
|
}
|
|
10674
10662
|
)), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
10675
10663
|
"input",
|
|
@@ -10685,13 +10673,12 @@ const InputNumber = (props) => {
|
|
|
10685
10673
|
onBlur: handleBlur,
|
|
10686
10674
|
onFocus: handleFocus
|
|
10687
10675
|
}
|
|
10688
|
-
)), /* @__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(
|
|
10689
10677
|
a,
|
|
10690
10678
|
{
|
|
10691
10679
|
className: classNames("nut-inputnumber-icon icon-plus", {
|
|
10692
10680
|
[`${classPrefix$h}-icon-disabled`]: shadowValue === max || disabled
|
|
10693
|
-
})
|
|
10694
|
-
onClick: handlePlus
|
|
10681
|
+
})
|
|
10695
10682
|
}
|
|
10696
10683
|
)));
|
|
10697
10684
|
};
|
|
@@ -12200,7 +12187,9 @@ const InternalSignature = (props, ref) => {
|
|
|
12200
12187
|
const [canvasWidth, setCanvasWidth] = useState(0);
|
|
12201
12188
|
const ctx = useRef(null);
|
|
12202
12189
|
const [disalbeScroll] = useState("true");
|
|
12190
|
+
const isSignedRef = useRef(false);
|
|
12203
12191
|
const startEventHandler = (event) => {
|
|
12192
|
+
isSignedRef.current = true;
|
|
12204
12193
|
if (ctx.current) {
|
|
12205
12194
|
ctx.current.beginPath();
|
|
12206
12195
|
ctx.current.lineWidth = lineWidth;
|
|
@@ -12227,6 +12216,7 @@ const InternalSignature = (props, ref) => {
|
|
|
12227
12216
|
const endEventHandler = (event) => {
|
|
12228
12217
|
};
|
|
12229
12218
|
const handleClearBtn = () => {
|
|
12219
|
+
isSignedRef.current = false;
|
|
12230
12220
|
if (ctx.current) {
|
|
12231
12221
|
ctx.current.clearRect(0, 0, canvasWidth, canvasHeight);
|
|
12232
12222
|
ctx.current.closePath();
|
|
@@ -12234,6 +12224,10 @@ const InternalSignature = (props, ref) => {
|
|
|
12234
12224
|
onClear && onClear();
|
|
12235
12225
|
};
|
|
12236
12226
|
const onSave = () => {
|
|
12227
|
+
if (!isSignedRef.current) {
|
|
12228
|
+
onConfirm && onConfirm("", isSignedRef.current);
|
|
12229
|
+
return;
|
|
12230
|
+
}
|
|
12237
12231
|
createSelectorQuery().select(`#${canvasId}`).fields({
|
|
12238
12232
|
node: true,
|
|
12239
12233
|
size: true
|
|
@@ -12243,7 +12237,7 @@ const InternalSignature = (props, ref) => {
|
|
|
12243
12237
|
fileType: type4,
|
|
12244
12238
|
canvasId: `${canvasId}`,
|
|
12245
12239
|
success: (res2) => {
|
|
12246
|
-
onConfirm && onConfirm(res2.tempFilePath);
|
|
12240
|
+
onConfirm && onConfirm(res2.tempFilePath, isSignedRef.current);
|
|
12247
12241
|
},
|
|
12248
12242
|
fail: (res2) => {
|
|
12249
12243
|
console.warn("保存失败");
|
|
@@ -13210,7 +13204,14 @@ const InternalUploader = (props, ref) => {
|
|
|
13210
13204
|
const handleItemClick = (file, index) => {
|
|
13211
13205
|
onFileItemClick == null ? void 0 : onFileItemClick(file, index);
|
|
13212
13206
|
};
|
|
13213
|
-
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(
|
|
13214
13215
|
Preview,
|
|
13215
13216
|
{
|
|
13216
13217
|
...{
|
|
@@ -13229,7 +13230,14 @@ const InternalUploader = (props, ref) => {
|
|
|
13229
13230
|
className: `nut-uploader-upload ${previewType} ${disabled ? "nut-uploader-upload-disabled" : ""}`
|
|
13230
13231
|
},
|
|
13231
13232
|
/* @__PURE__ */ React__default.createElement("div", { className: "nut-uploader-icon" }, uploadIcon, /* @__PURE__ */ React__default.createElement("span", { className: "nut-uploader-icon-tip" }, uploadLabel)),
|
|
13232
|
-
/* @__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
|
+
)
|
|
13233
13241
|
));
|
|
13234
13242
|
};
|
|
13235
13243
|
const Uploader = React__default.forwardRef(InternalUploader);
|
|
@@ -13302,7 +13310,8 @@ const ActionSheet = (props) => {
|
|
|
13302
13310
|
onClick: () => cancelActionSheet()
|
|
13303
13311
|
},
|
|
13304
13312
|
cancelText
|
|
13305
|
-
))
|
|
13313
|
+
)),
|
|
13314
|
+
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-safe-area` })
|
|
13306
13315
|
);
|
|
13307
13316
|
};
|
|
13308
13317
|
ActionSheet.displayName = "NutActionSheet";
|
|
@@ -18386,14 +18395,14 @@ const Card = (props) => {
|
|
|
18386
18395
|
...props
|
|
18387
18396
|
};
|
|
18388
18397
|
const classPrefix2 = "nut-card";
|
|
18389
|
-
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(
|
|
18390
18399
|
Price,
|
|
18391
18400
|
{
|
|
18392
18401
|
size: "normal",
|
|
18393
18402
|
className: `${classPrefix2}-right-price-origin`,
|
|
18394
18403
|
price: vipPrice
|
|
18395
18404
|
}
|
|
18396
|
-
)), /* @__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)));
|
|
18397
18406
|
};
|
|
18398
18407
|
Card.displayName = "NutCard";
|
|
18399
18408
|
const defaultProps$4 = {
|