@nutui/nutui-react-taro 2.3.0-beta.0 → 2.3.1
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 +91 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +2 -2
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +4 -4
- package/dist/esm/AnimatingNumbers/style/style.css +1 -1
- package/dist/esm/AnimatingNumbers.js +4 -4
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/Audio.js +2 -2
- package/dist/esm/Avatar/style/style.css +1 -1
- package/dist/esm/AvatarCropper.js +2 -2
- package/dist/esm/BackTop.js +1 -1
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Badge.js +1 -1
- package/dist/esm/Barrage.js +1 -1
- package/dist/esm/Button/style/style.css +1 -1
- package/dist/esm/Button.js +1 -1
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Calendar.js +2 -2
- package/dist/esm/CalendarCard/style/style.css +1 -1
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Card.js +3 -3
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cascader.js +4 -4
- package/dist/esm/Checkbox/style/style.css +1 -1
- package/dist/esm/Collapse/style/style.css +1 -1
- package/dist/esm/Collapse.js +2 -2
- package/dist/esm/CollapseItem/style/style.css +1 -1
- package/dist/esm/CollapseItem.js +1 -1
- package/dist/esm/CountDown.js +1 -1
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/DatePicker.js +3 -3
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Dialog.js +2 -2
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/Divider.js +1 -1
- package/dist/esm/Elevator/style/style.css +1 -1
- package/dist/esm/Elevator.js +1 -1
- package/dist/esm/Empty.js +1 -1
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/Form.js +1 -1
- package/dist/esm/FormItem/style/style.css +1 -1
- package/dist/esm/FormItem.js +1 -1
- package/dist/esm/Grid/style/style.css +1 -1
- package/dist/esm/Grid.js +2 -2
- package/dist/esm/GridItem/style/style.css +1 -1
- package/dist/esm/GridItem.js +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/ImagePreview.js +2 -2
- package/dist/esm/InfiniteLoading/style/style.css +1 -1
- package/dist/esm/InfiniteLoading.js +1 -1
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/NoticeBar/style/style.css +1 -1
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/Notify/style/style.css +1 -1
- package/dist/esm/Notify.js +1 -1
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/NumberKeyboard.js +2 -2
- package/dist/esm/Pagination/style/style.css +1 -1
- package/dist/esm/Pagination.js +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +2 -2
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +2 -2
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/Popup.js +1 -1
- package/dist/esm/Price/style/style.css +1 -1
- package/dist/esm/Price.js +1 -1
- package/dist/esm/Progress/style/style.css +1 -1
- package/dist/esm/Progress.js +1 -1
- package/dist/esm/PullToRefresh/style/style.css +1 -1
- package/dist/esm/Radio/style/style.css +1 -1
- package/dist/esm/RadioGroup/style/style.css +1 -1
- package/dist/esm/Rate/style/style.css +1 -1
- package/dist/esm/Rate.js +1 -1
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +1 -1
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +2 -2
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/SideNavBar.js +2 -2
- package/dist/esm/SideNavBarItem/style/style.css +1 -1
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature/style/style.css +1 -1
- package/dist/esm/Signature.js +1 -1
- package/dist/esm/Skeleton/style/style.css +1 -1
- package/dist/esm/Skeleton.js +1 -1
- package/dist/esm/Sticky/style/style.css +1 -1
- package/dist/esm/Sticky.js +1 -1
- package/dist/esm/SubSideNavBar/style/style.css +1 -1
- package/dist/esm/SubSideNavBar.js +1 -1
- package/dist/esm/Swiper/style/style.css +1 -1
- package/dist/esm/Swiper.js +3 -3
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/Tabbar.js +3 -3
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/TabbarItem.js +2 -2
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Table.js +1 -1
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/Tag/style/style.css +1 -1
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TextArea.js +1 -1
- package/dist/esm/TimeDetail/style/style.css +1 -1
- package/dist/esm/TimeDetail.js +1 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/TimeSelect.js +3 -3
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Toast.js +1 -1
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/Tour.js +3 -3
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/Uploader.js +3 -3
- package/dist/esm/{actionsheet.taro-JAoYHvlk.js → actionsheet.taro-1SIVktd6.js} +5 -5
- package/dist/esm/{address.taro-nO-_ydoA.js → address.taro-0oHDMjvi.js} +30 -21
- package/dist/esm/{audio.taro-y8NnIlRi.js → audio.taro-TwVp1boF.js} +6 -6
- package/dist/esm/{avatarcropper.taro-hP4XFcnl.js → avatarcropper.taro-xTaDqZuh.js} +1 -1
- package/dist/esm/{backtop.taro-XH0lVUOf.js → backtop.taro-Y3vOJiXq.js} +1 -1
- package/dist/esm/{badge.taro-n0aVp8h1.js → badge.taro-993L861f.js} +3 -3
- package/dist/esm/{barrage.taro-hFnjd1q2.js → barrage.taro-HsivAhbE.js} +4 -4
- package/dist/esm/{button.taro-5wKLCcpf.js → button.taro-kZJrygfW.js} +6 -6
- package/dist/esm/{calendar.taro-uEiqRsaN.js → calendar.taro-UTNDbfde.js} +1 -1
- package/dist/esm/{card.taro-UXyp3_T-.js → card.taro-p4PTy-IU.js} +2 -2
- package/dist/esm/{cascader.taro-jO6lnNxx.js → cascader.taro-TXNqGqoz.js} +8 -6
- package/dist/esm/{collapse.taro-j2-ajiXA.js → collapse.taro-l21-Cvji.js} +1 -1
- package/dist/esm/{collapseitem.taro-Pp7qD2-T.js → collapseitem.taro-9w-h_UP6.js} +8 -8
- package/dist/esm/{countdown.taro-XGxTdXji.js → countdown.taro-_7iZfeff.js} +1 -1
- package/dist/esm/{datepicker.taro-9itGFPcO.js → datepicker.taro-XBRswbnv.js} +1 -1
- package/dist/esm/{dialog.taro-OQ9TaCeb.js → dialog.taro-8KQTLwUg.js} +7 -7
- package/dist/esm/{divider.taro-BTFED42F.js → divider.taro-H5fKry4P.js} +5 -5
- package/dist/esm/{elevator.taro-hYAvey0f.js → elevator.taro-2nbUM3vH.js} +16 -16
- package/dist/esm/{empty.taro-GrEP0-Wl.js → empty.taro-9bGPftO1.js} +6 -6
- package/dist/esm/{formitem.taro-3OafV3pq.js → formitem.taro-4ofczzxA.js} +6 -5
- package/dist/esm/{grid.taro-sQueliqS.js → grid.taro-Hc4q01A_.js} +2 -2
- package/dist/esm/{griditem.taro-PbZrfD58.js → griditem.taro-RdNA-Wqv.js} +8 -8
- package/dist/esm/{imagepreview.taro-5rkFKsua.js → imagepreview.taro-RbAHvSoF.js} +1 -1
- package/dist/esm/{infiniteloading.taro-8E76rsYv.js → infiniteloading.taro-cQRDXtbb.js} +1 -1
- package/dist/esm/{menu.taro-R4u8Phdo.js → menu.taro-EytwZPzh.js} +1 -1
- package/dist/esm/{noticebar.taro-pMvrZ28h.js → noticebar.taro-bHnEzTvL.js} +11 -13
- package/dist/esm/{notify.taro-eql4R4Mx.js → notify.taro-mA9KS8qh.js} +3 -3
- package/dist/esm/{numberkeyboard.taro-QCdTmzbs.js → numberkeyboard.taro-5LPPRBFw.js} +2 -2
- package/dist/esm/nutui-react.es.js +54 -54
- package/dist/esm/{pagination.taro-wmqLpung.js → pagination.taro-RYmB2As4.js} +6 -6
- package/dist/esm/{picker.taro-LLmgNrcx.js → picker.taro-77giqVEH.js} +8 -6
- package/dist/esm/{popover.taro-A1iAWP4m.js → popover.taro-dXJi9liV.js} +3 -3
- package/dist/esm/{popup.taro-lBOaxa0-.js → popup.taro-KqkDIedA.js} +8 -6
- package/dist/esm/{price.taro-15WmWCW1.js → price.taro-Z1zR8YWV.js} +5 -5
- package/dist/esm/{progress.taro-EBhB1-Vj.js → progress.taro-pStvlrbA.js} +1 -1
- package/dist/esm/{rate.taro-8VBdo9ip.js → rate.taro-ZkOVGSDs.js} +3 -3
- package/dist/esm/{searchbar.taro-FsmNZ2Dx.js → searchbar.taro-Hmwspp92.js} +10 -10
- package/dist/esm/{shortpassword.taro-ag7hvctn.js → shortpassword.taro-641T08nE.js} +14 -14
- package/dist/esm/{sidenavbar.taro-ql4QEbJR.js → sidenavbar.taro-jJvAbDgx.js} +5 -5
- package/dist/esm/{sidenavbaritem.taro-TQ2PoDgR.js → sidenavbaritem.taro-AxJNRAdi.js} +1 -1
- package/dist/esm/{signature.taro-VciVow8A.js → signature.taro-y3qxnKMv.js} +1 -1
- package/dist/esm/{skeleton.taro-Ekd2x2Bf.js → skeleton.taro-Pg7WtP0e.js} +7 -7
- package/dist/esm/{sticky.taro-tOS_Ez6U.js → sticky.taro-MmKUU2Wv.js} +2 -2
- package/dist/esm/{subsidenavbar.taro-2qABjgZD.js → subsidenavbar.taro-Zy52MDDG.js} +6 -6
- package/dist/esm/{tabbar.taro-NpHMO2Nw.js → tabbar.taro-lM7-vxOz.js} +4 -4
- package/dist/esm/{tabbaritem.taro-L63nEc64.js → tabbaritem.taro-Q5uY6b9_.js} +2 -2
- package/dist/esm/{table.taro-R1qOsnvI.js → table.taro-NO-C8ayh.js} +11 -11
- package/dist/esm/{tabs.taro-Nk8l2XgP.js → tabs.taro-HezOZhRs.js} +1 -1
- package/dist/esm/{tag.taro-XwUNZZRQ.js → tag.taro-5KC_wObY.js} +5 -5
- package/dist/esm/{textarea.taro-xZdHw5kY.js → textarea.taro-VYqlTewy.js} +3 -3
- package/dist/esm/{timedetail.taro-U-5mkxbs.js → timedetail.taro-TF9Wcblh.js} +1 -1
- package/dist/esm/{timeselect.taro-Xo0BrEs_.js → timeselect.taro-HE0xZtNu.js} +4 -4
- package/dist/esm/{toast.taro-4n8ahzlt.js → toast.taro-eCBeePr8.js} +8 -8
- package/dist/esm/{tour.taro-1QD3qwN7.js → tour.taro-omnaIavI.js} +1 -1
- package/dist/esm/types/src/locales/zh-TW.d.ts +2 -2
- package/dist/esm/types/src/packages/animate/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/animate/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/button/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/button/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/elevator/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/elevator/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/popup/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/popup/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/range/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/range/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/tabbar/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/tabbar/demo.taro.d.ts +0 -1
- package/dist/esm/{uploader.taro-ukKw9zaG.js → uploader.taro-SAahCKRj.js} +20 -20
- 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.d.ts +2 -2
- package/dist/locales/zh-TW.js +19 -17
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +276 -280
- package/dist/nutui.react.umd.js +276 -280
- package/dist/packages/actionsheet/actionsheet.scss +4 -4
- package/dist/packages/animatingnumbers/countup.scss +5 -5
- package/dist/packages/audio/audio.scss +6 -6
- package/dist/packages/avatar/avatar.scss +1 -1
- package/dist/packages/badge/badge.scss +5 -5
- package/dist/packages/button/button.scss +66 -65
- package/dist/packages/calendar/calendar.scss +4 -5
- package/dist/packages/calendarcard/calendarcard.scss +3 -3
- package/dist/packages/card/card.scss +8 -8
- package/dist/packages/cascader/cascader.scss +7 -2
- package/dist/packages/checkbox/checkbox.scss +12 -1
- package/dist/packages/collapseitem/collapseitem.scss +9 -9
- package/dist/packages/dialog/dialog.scss +7 -7
- package/dist/packages/divider/divider.scss +7 -7
- package/dist/packages/elevator/elevator.scss +12 -12
- package/dist/packages/form/form.scss +4 -4
- package/dist/packages/formitem/formitem.scss +5 -5
- package/dist/packages/grid/grid.scss +1 -1
- package/dist/packages/griditem/griditem.scss +13 -13
- package/dist/packages/imagepreview/imagepreview.scss +1 -1
- package/dist/packages/infiniteloading/infiniteloading.scss +4 -4
- package/dist/packages/noticebar/noticebar.scss +38 -43
- package/dist/packages/notify/notify.scss +15 -8
- package/dist/packages/pagination/pagination.scss +9 -9
- package/dist/packages/picker/picker.scss +5 -5
- package/dist/packages/popover/popover.scss +20 -20
- package/dist/packages/popup/popup.scss +4 -4
- package/dist/packages/price/price.scss +7 -7
- package/dist/packages/progress/progress.scss +1 -1
- package/dist/packages/pulltorefresh/pulltorefresh.scss +2 -2
- package/dist/packages/radio/radio.scss +1 -1
- package/dist/packages/rate/rate.scss +7 -7
- package/dist/packages/searchbar/searchbar.scss +22 -18
- package/dist/packages/shortpassword/shortpassword.scss +11 -11
- package/dist/packages/sidenavbar/sidenavbar.scss +5 -5
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +2 -2
- package/dist/packages/signature/signature.scss +2 -2
- package/dist/packages/skeleton/skeleton.scss +5 -5
- package/dist/packages/sticky/sticky.scss +1 -1
- package/dist/packages/subsidenavbar/subsidenavbar.scss +4 -4
- package/dist/packages/swiper/swiper.scss +4 -4
- package/dist/packages/tabbar/tabbar.scss +3 -3
- package/dist/packages/tabbaritem/tabbaritem.scss +1 -1
- package/dist/packages/table/table.scss +22 -22
- package/dist/packages/tabs/tabs.scss +15 -10
- package/dist/packages/tag/tag.scss +10 -10
- package/dist/packages/textarea/textarea.scss +5 -5
- package/dist/packages/timedetail/timedetail.scss +1 -1
- package/dist/packages/timeselect/timeselect.scss +2 -2
- package/dist/packages/toast/toast.scss +8 -8
- package/dist/packages/uploader/uploader.scss +14 -14
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +43 -14
- package/dist/styles/variables.scss +43 -25
- package/dist/types/locales/zh-TW.d.ts +2 -2
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/infiniteloading/infiniteloading.taro.d.ts +1 -1
- package/package.json +2 -2
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.3.
|
|
11
|
+
* @nutui/nutui-react-taro v2.3.1 Wed Dec 13 2023 16:29:12 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -780,16 +780,16 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
780
780
|
n$2.displayName = "NutIconarrow-down";
|
|
781
781
|
const a$4 = (o2) => /* @__PURE__ */ lr$1(r$2, { ...o2, name: o2.name || "arrow-left" });
|
|
782
782
|
a$4.displayName = "NutIconarrow-left";
|
|
783
|
-
const m$
|
|
784
|
-
m$
|
|
785
|
-
const m$
|
|
786
|
-
m$
|
|
783
|
+
const m$8 = (o2) => /* @__PURE__ */ lr$1(r$2, { ...o2, name: o2.name || "arrow-up" });
|
|
784
|
+
m$8.displayName = "NutIconarrow-up";
|
|
785
|
+
const m$7 = (c2) => /* @__PURE__ */ lr$1(r$2, { ...c2, name: c2.name || "check-checked" });
|
|
786
|
+
m$7.displayName = "NutIconcheck-checked";
|
|
787
787
|
const c = (e2) => /* @__PURE__ */ lr$1(r$2, { ...e2, name: e2.name || "check-disabled" });
|
|
788
788
|
c.displayName = "NutIconcheck-disabled";
|
|
789
789
|
const n$1 = (o2) => /* @__PURE__ */ lr$1(r$2, { ...o2, name: o2.name || "check-normal" });
|
|
790
790
|
n$1.displayName = "NutIconcheck-normal";
|
|
791
|
-
const
|
|
792
|
-
|
|
791
|
+
const m$6 = (o2) => /* @__PURE__ */ lr$1(r$2, { ...o2, name: o2.name || "check" });
|
|
792
|
+
m$6.displayName = "NutIconcheck";
|
|
793
793
|
const m$5 = (e2) => /* @__PURE__ */ lr$1(r$2, { ...e2, name: e2.name || "checked" });
|
|
794
794
|
m$5.displayName = "NutIconchecked";
|
|
795
795
|
const e$6 = (t2) => /* @__PURE__ */ lr$1(r$2, { ...t2, name: t2.name || "checklist" });
|
|
@@ -919,15 +919,15 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
919
919
|
ref,
|
|
920
920
|
className: classNames(
|
|
921
921
|
prefixCls$3,
|
|
922
|
-
`${prefixCls$3}
|
|
923
|
-
props.fill ? `${prefixCls$3}
|
|
924
|
-
children ? "" : `${prefixCls$3}
|
|
922
|
+
`${prefixCls$3}-${type2}`,
|
|
923
|
+
props.fill ? `${prefixCls$3}-${fill}` : null,
|
|
924
|
+
children ? "" : `${prefixCls$3}-icononly`,
|
|
925
925
|
{
|
|
926
|
-
[`${prefixCls$3}
|
|
927
|
-
[`${prefixCls$3}
|
|
928
|
-
[`${prefixCls$3}
|
|
929
|
-
[`${prefixCls$3}
|
|
930
|
-
[`${prefixCls$3}
|
|
926
|
+
[`${prefixCls$3}-${size}`]: size,
|
|
927
|
+
[`${prefixCls$3}-${shape}`]: shape,
|
|
928
|
+
[`${prefixCls$3}-block`]: block,
|
|
929
|
+
[`${prefixCls$3}-disabled`]: disabled,
|
|
930
|
+
[`${prefixCls$3}-loading`]: loading
|
|
931
931
|
},
|
|
932
932
|
className
|
|
933
933
|
),
|
|
@@ -4277,13 +4277,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4277
4277
|
};
|
|
4278
4278
|
const classes = direction === "horizontal" ? classNames({
|
|
4279
4279
|
[`${classPrefix$o}`]: true,
|
|
4280
|
-
[`${classPrefix$o}
|
|
4281
|
-
[`${classPrefix$o}
|
|
4282
|
-
[`${classPrefix$o}
|
|
4283
|
-
[`${classPrefix$o}
|
|
4280
|
+
[`${classPrefix$o}-center`]: children,
|
|
4281
|
+
[`${classPrefix$o}-left`]: contentPosition === "left",
|
|
4282
|
+
[`${classPrefix$o}-right`]: contentPosition === "right",
|
|
4283
|
+
[`${classPrefix$o}-hairline`]: true
|
|
4284
4284
|
}) : classNames({
|
|
4285
4285
|
[`${classPrefix$o}`]: true,
|
|
4286
|
-
[`${classPrefix$o}
|
|
4286
|
+
[`${classPrefix$o}-vertical`]: direction === "vertical"
|
|
4287
4287
|
});
|
|
4288
4288
|
return /* @__PURE__ */ React.createElement("div", { className: `${classes} ${className || ""}`, style, ...rest }, children);
|
|
4289
4289
|
};
|
|
@@ -4342,13 +4342,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4342
4342
|
return styles;
|
|
4343
4343
|
};
|
|
4344
4344
|
const contentClass = () => {
|
|
4345
|
-
return classNames(`${classPrefix2}
|
|
4346
|
-
[`${classPrefix2}
|
|
4347
|
-
[`${classPrefix2}
|
|
4348
|
-
[`${classPrefix2}
|
|
4349
|
-
[`${classPrefix2}
|
|
4350
|
-
[`${classPrefix2}
|
|
4351
|
-
[`${classPrefix2}
|
|
4345
|
+
return classNames(`${classPrefix2}-content`, {
|
|
4346
|
+
[`${classPrefix2}-content-border`]: true,
|
|
4347
|
+
[`${classPrefix2}-content-surround`]: gap,
|
|
4348
|
+
[`${classPrefix2}-content-center`]: center,
|
|
4349
|
+
[`${classPrefix2}-content-square`]: square,
|
|
4350
|
+
[`${classPrefix2}-content-reverse`]: reverse,
|
|
4351
|
+
[`${classPrefix2}-content-${direction}`]: !!direction
|
|
4352
4352
|
});
|
|
4353
4353
|
};
|
|
4354
4354
|
const handleClick = (e2) => {
|
|
@@ -4375,7 +4375,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4375
4375
|
...rest,
|
|
4376
4376
|
onClick: handleClick
|
|
4377
4377
|
},
|
|
4378
|
-
/* @__PURE__ */ React.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React.createElement(React.Fragment, null, children), text && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
4378
|
+
/* @__PURE__ */ React.createElement("div", { className: contentClass() }, children && /* @__PURE__ */ React.createElement(React.Fragment, null, children), text && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-text` }, text))
|
|
4379
4379
|
);
|
|
4380
4380
|
};
|
|
4381
4381
|
GridItem.defaultProps = defaultProps$1r;
|
|
@@ -4408,7 +4408,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4408
4408
|
return classNames(
|
|
4409
4409
|
classPrefix2,
|
|
4410
4410
|
{
|
|
4411
|
-
[`${classPrefix2}
|
|
4411
|
+
[`${classPrefix2}-border`]: !gap
|
|
4412
4412
|
},
|
|
4413
4413
|
className
|
|
4414
4414
|
);
|
|
@@ -4712,8 +4712,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4712
4712
|
/* @__PURE__ */ React.createElement(
|
|
4713
4713
|
"div",
|
|
4714
4714
|
{
|
|
4715
|
-
className: classNames("nut-sticky
|
|
4716
|
-
"nut-sticky
|
|
4715
|
+
className: classNames("nut-sticky-box", {
|
|
4716
|
+
"nut-sticky-fixed": fixed
|
|
4717
4717
|
}),
|
|
4718
4718
|
ref: stickyRef,
|
|
4719
4719
|
style: stickyStyle
|
|
@@ -4783,7 +4783,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4783
4783
|
goTop(e2);
|
|
4784
4784
|
}
|
|
4785
4785
|
},
|
|
4786
|
-
children || /* @__PURE__ */ React.createElement(a$1, {
|
|
4786
|
+
children || /* @__PURE__ */ React.createElement(a$1, { size: 19, className: "nut-backtop-main" })
|
|
4787
4787
|
);
|
|
4788
4788
|
};
|
|
4789
4789
|
BackTop.defaultProps = defaultProps$1l;
|
|
@@ -4855,7 +4855,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4855
4855
|
state.current.listHeight.push(height2);
|
|
4856
4856
|
for (let i = 0; i < state.current.listGroup.length; i++) {
|
|
4857
4857
|
const query = Taro.createSelectorQuery();
|
|
4858
|
-
query.selectAll(`.${className} .nut-
|
|
4858
|
+
query.selectAll(`.${className} .nut-elevator-item-${i}`).boundingClientRect();
|
|
4859
4859
|
query.exec((res) => {
|
|
4860
4860
|
if (res[0][0])
|
|
4861
4861
|
height2 += res[0][0].height;
|
|
@@ -4915,7 +4915,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4915
4915
|
};
|
|
4916
4916
|
const setListGroup = () => {
|
|
4917
4917
|
if (listview.current) {
|
|
4918
|
-
Taro.createSelectorQuery().selectAll(`.${className} .nut-
|
|
4918
|
+
Taro.createSelectorQuery().selectAll(`.${className} .nut-elevator-list-item`).node((el) => {
|
|
4919
4919
|
state.current.listGroup = [...Object.keys(el)];
|
|
4920
4920
|
calculateHeight();
|
|
4921
4921
|
}).exec();
|
|
@@ -4953,7 +4953,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4953
4953
|
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, style, ...rest }, /* @__PURE__ */ React.createElement(
|
|
4954
4954
|
"div",
|
|
4955
4955
|
{
|
|
4956
|
-
className: `${classPrefix2}
|
|
4956
|
+
className: `${classPrefix2}-list`,
|
|
4957
4957
|
style: { height: Number.isNaN(+height) ? height : `${height}px` }
|
|
4958
4958
|
},
|
|
4959
4959
|
/* @__PURE__ */ React.createElement(
|
|
@@ -4963,7 +4963,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4963
4963
|
scrollY: true,
|
|
4964
4964
|
scrollWithAnimation: true,
|
|
4965
4965
|
scrollAnchoring: true,
|
|
4966
|
-
className: `${classPrefix2}
|
|
4966
|
+
className: `${classPrefix2}-list-inner`,
|
|
4967
4967
|
type: "list",
|
|
4968
4968
|
ref: listview,
|
|
4969
4969
|
onScroll: listViewScroll,
|
|
@@ -4975,17 +4975,17 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4975
4975
|
return /* @__PURE__ */ React.createElement(
|
|
4976
4976
|
"div",
|
|
4977
4977
|
{
|
|
4978
|
-
className: `${classPrefix2}
|
|
4978
|
+
className: `${classPrefix2}-list-item nut-elevator-item-${idx}`,
|
|
4979
4979
|
key: idx
|
|
4980
4980
|
},
|
|
4981
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
4981
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-list-item-code` }, item[floorKey]),
|
|
4982
4982
|
/* @__PURE__ */ React.createElement(React.Fragment, null, item.list.map((subitem) => {
|
|
4983
4983
|
return /* @__PURE__ */ React.createElement(
|
|
4984
4984
|
"div",
|
|
4985
4985
|
{
|
|
4986
4986
|
className: classNames({
|
|
4987
|
-
[`${classPrefix2}
|
|
4988
|
-
[`${classPrefix2}
|
|
4987
|
+
[`${classPrefix2}-list-item-name`]: true,
|
|
4988
|
+
[`${classPrefix2}-list-item-name-highcolor`]: currentData.id === subitem.id && currentKey === item[floorKey]
|
|
4989
4989
|
}),
|
|
4990
4990
|
key: subitem.id,
|
|
4991
4991
|
onClick: () => handleClickItem(item[floorKey], subitem)
|
|
@@ -5000,15 +5000,15 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5000
5000
|
"div",
|
|
5001
5001
|
{
|
|
5002
5002
|
className: classNames({
|
|
5003
|
-
[`${classPrefix2}
|
|
5004
|
-
[`${classPrefix2}
|
|
5003
|
+
[`${classPrefix2}-code-current`]: true,
|
|
5004
|
+
[`${classPrefix2}-code-current-current`]: true
|
|
5005
5005
|
})
|
|
5006
5006
|
},
|
|
5007
5007
|
list[codeIndex][floorKey]
|
|
5008
|
-
) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
5008
|
+
) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-bars` }, /* @__PURE__ */ React.createElement(
|
|
5009
5009
|
"div",
|
|
5010
5010
|
{
|
|
5011
|
-
className: `${classPrefix2}
|
|
5011
|
+
className: `${classPrefix2}-bars-inner`,
|
|
5012
5012
|
onTouchStart: (event) => touchStart(event),
|
|
5013
5013
|
onTouchMove: (event) => touchMove(event),
|
|
5014
5014
|
onTouchEnd: touchEnd,
|
|
@@ -5019,8 +5019,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5019
5019
|
"div",
|
|
5020
5020
|
{
|
|
5021
5021
|
className: classNames({
|
|
5022
|
-
[`${classPrefix2}
|
|
5023
|
-
[`${classPrefix2}
|
|
5022
|
+
[`${classPrefix2}-bars-inner-item`]: true,
|
|
5023
|
+
[`${classPrefix2}-bars-inner-item-active`]: item[floorKey] === list[codeIndex][floorKey]
|
|
5024
5024
|
}),
|
|
5025
5025
|
"data-index": index,
|
|
5026
5026
|
key: index,
|
|
@@ -5029,7 +5029,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5029
5029
|
item[floorKey]
|
|
5030
5030
|
);
|
|
5031
5031
|
})
|
|
5032
|
-
))) : null, sticky && scrollY > 0 ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
5032
|
+
))) : null, sticky && scrollY > 0 ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-list-fixed` }, /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}-list-fixed-title` }, list[codeIndex][floorKey])) : null);
|
|
5033
5033
|
};
|
|
5034
5034
|
Elevator.defaultProps = defaultProps$1k;
|
|
5035
5035
|
Elevator.displayName = "NutElevator";
|
|
@@ -5253,15 +5253,17 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5253
5253
|
...style,
|
|
5254
5254
|
...baseStyle
|
|
5255
5255
|
};
|
|
5256
|
-
const popClassName = classNames(
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5256
|
+
const popClassName = classNames(
|
|
5257
|
+
{
|
|
5258
|
+
[`${classPrefix2}`]: true,
|
|
5259
|
+
[`${classPrefix2}-round`]: round || position === "bottom",
|
|
5260
|
+
[`${classPrefix2}-${position}`]: true
|
|
5261
|
+
},
|
|
5262
|
+
className
|
|
5263
|
+
);
|
|
5262
5264
|
const closeClasses = classNames({
|
|
5263
5265
|
[`${classPrefix2}-title-right`]: true,
|
|
5264
|
-
[`${classPrefix2}-title-right
|
|
5266
|
+
[`${classPrefix2}-title-right-${closeIconPosition}`]: true
|
|
5265
5267
|
});
|
|
5266
5268
|
const open2 = () => {
|
|
5267
5269
|
if (!innerVisible) {
|
|
@@ -5316,9 +5318,12 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5316
5318
|
return node;
|
|
5317
5319
|
};
|
|
5318
5320
|
const renderTitle = () => {
|
|
5319
|
-
if (left2 || title ||
|
|
5321
|
+
if (left2 || title || description) {
|
|
5320
5322
|
return /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix2}-title` }, position === "bottom" && /* @__PURE__ */ React.createElement(React.Fragment, null, left2 && /* @__PURE__ */ React.createElement(components.View, { className: `${classPrefix2}-title-left` }, left2), (title || description) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title-title` }, title, description && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title-description` }, description))), closeable && /* @__PURE__ */ React.createElement(components.View, { className: closeClasses, onClick: onHandleClickCloseIcon }, React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ React.createElement(t$5, null)));
|
|
5321
5323
|
}
|
|
5324
|
+
if (closeable) {
|
|
5325
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, closeable && /* @__PURE__ */ React.createElement(components.View, { className: closeClasses, onClick: onHandleClickCloseIcon }, React.isValidElement(closeIcon) ? closeIcon : /* @__PURE__ */ React.createElement(t$5, null)));
|
|
5326
|
+
}
|
|
5322
5327
|
};
|
|
5323
5328
|
const renderPop = () => {
|
|
5324
5329
|
return /* @__PURE__ */ React.createElement(
|
|
@@ -5404,16 +5409,16 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5404
5409
|
position,
|
|
5405
5410
|
onClose
|
|
5406
5411
|
},
|
|
5407
|
-
/* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
5412
|
+
/* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, /* @__PURE__ */ React.createElement(
|
|
5408
5413
|
"div",
|
|
5409
5414
|
{
|
|
5410
|
-
className: `${classPrefix2}
|
|
5415
|
+
className: `${classPrefix2}-list ${sidenavbarShow ? "sidenavbar-show" : "sidenavbar-hide"}`,
|
|
5411
5416
|
onClick: handleClick
|
|
5412
5417
|
},
|
|
5413
5418
|
/* @__PURE__ */ React.createElement(
|
|
5414
5419
|
"div",
|
|
5415
5420
|
{
|
|
5416
|
-
className: `${classPrefix2}
|
|
5421
|
+
className: `${classPrefix2}-title ${classPrefix2}-border-bt`,
|
|
5417
5422
|
style: { paddingLeft: `${indent}px` }
|
|
5418
5423
|
},
|
|
5419
5424
|
title,
|
|
@@ -5424,7 +5429,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5424
5429
|
}
|
|
5425
5430
|
)
|
|
5426
5431
|
),
|
|
5427
|
-
/* @__PURE__ */ React.createElement(OffsetContext.Provider, { value: indent }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
5432
|
+
/* @__PURE__ */ React.createElement(OffsetContext.Provider, { value: indent }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, children))
|
|
5428
5433
|
)))
|
|
5429
5434
|
);
|
|
5430
5435
|
};
|
|
@@ -5440,7 +5445,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5440
5445
|
return /* @__PURE__ */ React.createElement(
|
|
5441
5446
|
"div",
|
|
5442
5447
|
{
|
|
5443
|
-
className: `${classPrefix2}
|
|
5448
|
+
className: `${classPrefix2}-item ${classPrefix2}-border-bt`,
|
|
5444
5449
|
onClick: clickFn,
|
|
5445
5450
|
...rest
|
|
5446
5451
|
},
|
|
@@ -5462,7 +5467,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5462
5467
|
const setListLevel = React.useCallback(
|
|
5463
5468
|
(nodeList, level = 1) => {
|
|
5464
5469
|
const titleClass = nodeList[0].className;
|
|
5465
|
-
if (titleClass.includes(`${classPrefix2}
|
|
5470
|
+
if (titleClass.includes(`${classPrefix2}-title`)) {
|
|
5466
5471
|
const left2 = offset * (level + 1);
|
|
5467
5472
|
nodeList[0].style.paddingLeft = `${left2}px`;
|
|
5468
5473
|
}
|
|
@@ -5471,11 +5476,11 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5471
5476
|
);
|
|
5472
5477
|
childNodes.forEach((item) => {
|
|
5473
5478
|
const itemClass = item.className;
|
|
5474
|
-
if (itemClass.includes(`${classPrefix2}
|
|
5479
|
+
if (itemClass.includes(`${classPrefix2}-item`)) {
|
|
5475
5480
|
const left2 = offset * (level + 2);
|
|
5476
5481
|
item.style.paddingLeft = `${left2}px`;
|
|
5477
5482
|
}
|
|
5478
|
-
if (itemClass.includes(`${classPrefix2}
|
|
5483
|
+
if (itemClass.includes(`${classPrefix2}-list`)) {
|
|
5479
5484
|
let level2 = item.getAttribute("level") ? Number(item.getAttribute("level")) : 1;
|
|
5480
5485
|
level2 += 1;
|
|
5481
5486
|
item.setAttribute("level", level2.toString());
|
|
@@ -5497,9 +5502,9 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5497
5502
|
(_b = listRef.current) == null ? void 0 : _b.setAttribute("level", "1");
|
|
5498
5503
|
childNodes && setListLevel(childNodes);
|
|
5499
5504
|
}, [setListLevel]);
|
|
5500
|
-
const divClass = subShow ? `${classPrefix2}
|
|
5505
|
+
const divClass = subShow ? `${classPrefix2}-list sidenavbar-show` : `${classPrefix2}-list sidenavbar-hide`;
|
|
5501
5506
|
const iconClass = subShow ? "arrow-icon arrow-down" : "arrow-icon arrow-up";
|
|
5502
|
-
return /* @__PURE__ */ React.createElement("div", { className: divClass, ref: listRef, onClick: clickFn, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
5507
|
+
return /* @__PURE__ */ React.createElement("div", { className: divClass, ref: listRef, onClick: clickFn, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title ${classPrefix2}-border-bt` }, title, " ", /* @__PURE__ */ React.createElement("i", { className: iconClass })), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, children));
|
|
5503
5508
|
};
|
|
5504
5509
|
function useForceUpdate() {
|
|
5505
5510
|
const [, updateState] = React.useState();
|
|
@@ -5569,11 +5574,11 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5569
5574
|
return value;
|
|
5570
5575
|
}
|
|
5571
5576
|
const contentClasses = classNames(
|
|
5572
|
-
{ [`${classPrefix2}
|
|
5573
|
-
`${classPrefix2}
|
|
5574
|
-
{ [`${classPrefix2}
|
|
5577
|
+
{ [`${classPrefix2}-dot`]: dot },
|
|
5578
|
+
`${classPrefix2}-content`,
|
|
5579
|
+
{ [`${classPrefix2}-sup`]: isNumber() || isString() || dot },
|
|
5575
5580
|
{
|
|
5576
|
-
[`${classPrefix2}
|
|
5581
|
+
[`${classPrefix2}-one`]: typeof content() === "string" && ((_a = `${content()}`) == null ? void 0 : _a.length) === 1
|
|
5577
5582
|
}
|
|
5578
5583
|
);
|
|
5579
5584
|
const getStyle = () => {
|
|
@@ -5583,7 +5588,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5583
5588
|
style2.background = color;
|
|
5584
5589
|
return style2;
|
|
5585
5590
|
};
|
|
5586
|
-
return /* @__PURE__ */ React.createElement("div", { className: classes, style }, isIcon() && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
5591
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes, style }, isIcon() && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-icon` }, value), children, !isIcon() && /* @__PURE__ */ React.createElement("div", { className: contentClasses, style: getStyle() }, content()));
|
|
5587
5592
|
};
|
|
5588
5593
|
Badge.defaultProps = defaultProps$1e;
|
|
5589
5594
|
Badge.displayName = "NutBadge";
|
|
@@ -5628,7 +5633,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5628
5633
|
},
|
|
5629
5634
|
className
|
|
5630
5635
|
);
|
|
5631
|
-
const boxPrefix = `${classPrefix2}
|
|
5636
|
+
const boxPrefix = `${classPrefix2}-icon-box`;
|
|
5632
5637
|
const titleClass = classNames(boxPrefix, `${boxPrefix}-nav`, {
|
|
5633
5638
|
[`${boxPrefix}-large`]: !icon
|
|
5634
5639
|
});
|
|
@@ -5693,13 +5698,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5693
5698
|
className: classNames(
|
|
5694
5699
|
classPrefix2,
|
|
5695
5700
|
{
|
|
5696
|
-
[`${classPrefix2}
|
|
5701
|
+
[`${classPrefix2}-fixed`]: fixed
|
|
5697
5702
|
},
|
|
5698
5703
|
className
|
|
5699
5704
|
),
|
|
5700
5705
|
style
|
|
5701
5706
|
},
|
|
5702
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
5707
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-wrap` }, React.Children.map(children, (child, idx) => {
|
|
5703
5708
|
if (!React.isValidElement(child)) {
|
|
5704
5709
|
return null;
|
|
5705
5710
|
}
|
|
@@ -5713,7 +5718,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5713
5718
|
};
|
|
5714
5719
|
return React.cloneElement(child, childProps);
|
|
5715
5720
|
})),
|
|
5716
|
-
(fixed || safeArea) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
5721
|
+
(fixed || safeArea) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-safe-area` })
|
|
5717
5722
|
);
|
|
5718
5723
|
};
|
|
5719
5724
|
Tabbar.defaultProps = defaultProps$1c;
|
|
@@ -5964,7 +5969,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
5964
5969
|
className: `${classPrefix$k}-titles-item-smile`,
|
|
5965
5970
|
style: tabsActiveStyle
|
|
5966
5971
|
},
|
|
5967
|
-
/* @__PURE__ */ React.createElement(t$3, { color: activeColor
|
|
5972
|
+
/* @__PURE__ */ React.createElement(t$3, { color: activeColor })
|
|
5968
5973
|
),
|
|
5969
5974
|
/* @__PURE__ */ React.createElement(
|
|
5970
5975
|
components.View,
|
|
@@ -6028,21 +6033,25 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
6028
6033
|
item.selectedAddress = true;
|
|
6029
6034
|
onSelect && onSelect(item);
|
|
6030
6035
|
};
|
|
6031
|
-
const onClick = () => {
|
|
6036
|
+
const onClick = (e2) => {
|
|
6037
|
+
e2.stopPropagation();
|
|
6032
6038
|
onSwitch && onSwitch({ type: type2 === "exist" ? "custom" : "exist" });
|
|
6033
6039
|
};
|
|
6034
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("ul", { className: `${classPrefix2}-exist` }, existList.map((item, index) => {
|
|
6040
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(components.ScrollView, { scrollY: true, style: { height: "100%" } }, /* @__PURE__ */ React.createElement("ul", { className: `${classPrefix2}-exist` }, existList.map((item, index) => {
|
|
6035
6041
|
return /* @__PURE__ */ React.createElement(
|
|
6036
6042
|
"li",
|
|
6037
6043
|
{
|
|
6038
6044
|
className: `${classPrefix2}-exist-item ${item.selectedAddress ? "active" : ""}`,
|
|
6039
6045
|
key: index,
|
|
6040
|
-
onClick: () =>
|
|
6046
|
+
onClick: (e2) => {
|
|
6047
|
+
e2.stopPropagation();
|
|
6048
|
+
selectedExist(item);
|
|
6049
|
+
}
|
|
6041
6050
|
},
|
|
6042
|
-
item.selectedAddress ? /* @__PURE__ */ React.createElement(React.Fragment, null, React.isValidElement(selectIcon) ? selectIcon : /* @__PURE__ */ React.createElement(
|
|
6051
|
+
item.selectedAddress ? /* @__PURE__ */ React.createElement(React.Fragment, null, React.isValidElement(selectIcon) ? selectIcon : /* @__PURE__ */ React.createElement(m$6, { color: "#FA2C19" })) : /* @__PURE__ */ React.createElement(React.Fragment, null, React.isValidElement(defaultIcon) ? defaultIcon : /* @__PURE__ */ React.createElement(n, null)),
|
|
6043
6052
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-exist-item-info` }, item.name && item.phone && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", null, item.name), /* @__PURE__ */ React.createElement("div", null, item.phone)), /* @__PURE__ */ React.createElement("div", null, item.provinceName + item.cityName + item.countyName + item.townName + item.addressDetail))
|
|
6044
6053
|
);
|
|
6045
|
-
})), (custom || custom && locale.address.chooseAnotherAddress) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer`, onClick }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-btn` }, custom)));
|
|
6054
|
+
}))), (custom || custom && locale.address.chooseAnotherAddress) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer`, onClick }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-btn` }, custom)));
|
|
6046
6055
|
};
|
|
6047
6056
|
const formatTree = (tree, parent, config2) => tree.map((node) => {
|
|
6048
6057
|
const {
|
|
@@ -6435,7 +6444,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
6435
6444
|
classPrefix22
|
|
6436
6445
|
);
|
|
6437
6446
|
const classesTitle = classNames({
|
|
6438
|
-
[`${classPrefix22}
|
|
6447
|
+
[`${classPrefix22}-title`]: true
|
|
6439
6448
|
});
|
|
6440
6449
|
const renderIcon = () => {
|
|
6441
6450
|
if (checked) {
|
|
@@ -6445,7 +6454,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
6445
6454
|
return /* @__PURE__ */ React.createElement(
|
|
6446
6455
|
e$6,
|
|
6447
6456
|
{
|
|
6448
|
-
className: `${checked ? `${classPrefix2}
|
|
6457
|
+
className: `${checked ? `${classPrefix2}-icon-check` : ""}`
|
|
6449
6458
|
}
|
|
6450
6459
|
);
|
|
6451
6460
|
}
|
|
@@ -6462,13 +6471,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
6462
6471
|
}
|
|
6463
6472
|
},
|
|
6464
6473
|
/* @__PURE__ */ React.createElement("div", { className: classesTitle }, node.text),
|
|
6465
|
-
node.loading ? /* @__PURE__ */ React.createElement(
|
|
6466
|
-
m$3,
|
|
6467
|
-
{
|
|
6468
|
-
color: "#969799",
|
|
6469
|
-
className: "nut-cascader-item__icon-loading"
|
|
6470
|
-
}
|
|
6471
|
-
) : renderIcon()
|
|
6474
|
+
node.loading ? /* @__PURE__ */ React.createElement(m$3, { color: "#969799", className: "nut-cascader-item-icon-loading" }) : renderIcon()
|
|
6472
6475
|
);
|
|
6473
6476
|
};
|
|
6474
6477
|
const renderTabs = () => {
|
|
@@ -6497,9 +6500,17 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
6497
6500
|
},
|
|
6498
6501
|
!state.initLoading && state.panes.length ? optionsData.map((pane) => {
|
|
6499
6502
|
var _a;
|
|
6500
|
-
return /* @__PURE__ */ React.createElement(Tabs.TabPane, { key: pane.paneKey, value: pane.paneKey }, /* @__PURE__ */ React.createElement(
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
+
return /* @__PURE__ */ React.createElement(Tabs.TabPane, { key: pane.paneKey, value: pane.paneKey }, /* @__PURE__ */ React.createElement(
|
|
6504
|
+
components.ScrollView,
|
|
6505
|
+
{
|
|
6506
|
+
className: classesPane,
|
|
6507
|
+
scrollY: true,
|
|
6508
|
+
style: { height: "100%" }
|
|
6509
|
+
},
|
|
6510
|
+
(_a = pane.nodes) == null ? void 0 : _a.map(
|
|
6511
|
+
(node, index) => renderItem(pane, node, index)
|
|
6512
|
+
)
|
|
6513
|
+
));
|
|
6503
6514
|
}) : /* @__PURE__ */ React.createElement(Tabs.TabPane, null, /* @__PURE__ */ React.createElement("div", { className: classesPane }))
|
|
6504
6515
|
));
|
|
6505
6516
|
};
|
|
@@ -6509,6 +6520,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
6509
6520
|
...popupProps,
|
|
6510
6521
|
visible,
|
|
6511
6522
|
position: "bottom",
|
|
6523
|
+
style: { overflowY: "hidden" },
|
|
6512
6524
|
round: true,
|
|
6513
6525
|
closeIcon,
|
|
6514
6526
|
closeable,
|
|
@@ -8850,21 +8862,23 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
8850
8862
|
}, 0);
|
|
8851
8863
|
};
|
|
8852
8864
|
const renderTitleBar = () => {
|
|
8853
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
8865
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-control` }, /* @__PURE__ */ React.createElement(
|
|
8854
8866
|
"span",
|
|
8855
8867
|
{
|
|
8856
|
-
className: `${classPrefix2}
|
|
8868
|
+
className: `${classPrefix2}-cancel-btn`,
|
|
8857
8869
|
onClick: (e2) => {
|
|
8870
|
+
e2.stopPropagation();
|
|
8858
8871
|
onCancel == null ? void 0 : onCancel();
|
|
8859
8872
|
setInnerVisible(false);
|
|
8860
8873
|
}
|
|
8861
8874
|
},
|
|
8862
8875
|
locale.cancel
|
|
8863
|
-
), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
8876
|
+
), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title` }, title || ""), /* @__PURE__ */ React.createElement(
|
|
8864
8877
|
"span",
|
|
8865
8878
|
{
|
|
8866
|
-
className: `${classPrefix2}
|
|
8879
|
+
className: `${classPrefix2}-confirm-btn`,
|
|
8867
8880
|
onClick: (e2) => {
|
|
8881
|
+
e2.stopPropagation();
|
|
8868
8882
|
confirm();
|
|
8869
8883
|
}
|
|
8870
8884
|
},
|
|
@@ -8910,7 +8924,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
8910
8924
|
afterClose == null ? void 0 : afterClose(setSelectedOptions(), innerValue, pickerRef);
|
|
8911
8925
|
}
|
|
8912
8926
|
},
|
|
8913
|
-
/* @__PURE__ */ React.createElement(components.View, { className: classes, style, ...rest, catchMove: true }, renderTitleBar(), typeof children !== "function" && children, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
8927
|
+
/* @__PURE__ */ React.createElement(components.View, { className: classes, style, ...rest, catchMove: true }, renderTitleBar(), typeof children !== "function" && children, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-panel`, ref: pickerRef }, Taro.getEnv() === "WEB" ? columnsList == null ? void 0 : columnsList.map((item, index) => {
|
|
8914
8928
|
return /* @__PURE__ */ React.createElement(
|
|
8915
8929
|
PickerPanel$1,
|
|
8916
8930
|
{
|
|
@@ -10682,6 +10696,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
10682
10696
|
});
|
|
10683
10697
|
__publicField(this, "onStoreChange", (type2) => {
|
|
10684
10698
|
if (type2 === "reset") {
|
|
10699
|
+
this.context.errors[this.props.name] = [];
|
|
10685
10700
|
this.refresh();
|
|
10686
10701
|
} else {
|
|
10687
10702
|
this.forceUpdate();
|
|
@@ -10713,14 +10728,14 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
10713
10728
|
style,
|
|
10714
10729
|
onClick: (e2) => this.props.onClick && this.props.onClick(e2, this.componentRef)
|
|
10715
10730
|
},
|
|
10716
|
-
label ? /* @__PURE__ */ React.createElement("div", { className: "nut-cell-title nut-form-
|
|
10717
|
-
/* @__PURE__ */ React.createElement("div", { className: "nut-cell-value nut-form-
|
|
10731
|
+
label ? /* @__PURE__ */ React.createElement("div", { className: "nut-cell-title nut-form-item-label" }, renderLabel) : null,
|
|
10732
|
+
/* @__PURE__ */ React.createElement("div", { className: "nut-cell-value nut-form-item-body" }, /* @__PURE__ */ React.createElement("div", { className: "nut-form-item-body-slots" }, childNode), /* @__PURE__ */ React.createElement(
|
|
10718
10733
|
"div",
|
|
10719
10734
|
{
|
|
10720
|
-
className: "nut-form-
|
|
10735
|
+
className: "nut-form-item-body-tips",
|
|
10721
10736
|
style: {
|
|
10722
10737
|
textAlign: errorMessageAlign,
|
|
10723
|
-
display: (item == null ? void 0 : item.length) ? "
|
|
10738
|
+
display: (item == null ? void 0 : item.length) ? "initial" : "none"
|
|
10724
10739
|
}
|
|
10725
10740
|
},
|
|
10726
10741
|
(_a = item == null ? void 0 : item[0]) == null ? void 0 : _a.message
|
|
@@ -11384,7 +11399,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
11384
11399
|
}
|
|
11385
11400
|
},
|
|
11386
11401
|
item.value === innerValue ? /* @__PURE__ */ React.createElement(React.Fragment, null, icon || /* @__PURE__ */ React.createElement(
|
|
11387
|
-
|
|
11402
|
+
m$6,
|
|
11388
11403
|
{
|
|
11389
11404
|
color: activeColor,
|
|
11390
11405
|
size: 10,
|
|
@@ -11533,7 +11548,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
11533
11548
|
}
|
|
11534
11549
|
},
|
|
11535
11550
|
/* @__PURE__ */ React.createElement("div", { className: "nut-menu-title-text" }, finallyTitle()),
|
|
11536
|
-
icon || (direction === "up" ? /* @__PURE__ */ React.createElement(m$
|
|
11551
|
+
icon || (direction === "up" ? /* @__PURE__ */ React.createElement(m$8, { className: "nut-menu-title-icon", size: "12px" }) : /* @__PURE__ */ React.createElement(n$2, { className: "nut-menu-title-icon", size: "12px" }))
|
|
11537
11552
|
);
|
|
11538
11553
|
}
|
|
11539
11554
|
return null;
|
|
@@ -11675,6 +11690,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
11675
11690
|
position: "bottom",
|
|
11676
11691
|
onOverlayClick: onClose,
|
|
11677
11692
|
onCloseIconClick: onClose,
|
|
11693
|
+
zIndex: 9999,
|
|
11678
11694
|
overlayStyle: { backgroundColor: "rgba(0, 0, 0, 0)" },
|
|
11679
11695
|
...rest
|
|
11680
11696
|
},
|
|
@@ -11882,7 +11898,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
11882
11898
|
return React.isValidElement(activeIcon2) ? React.cloneElement(activeIcon2, {
|
|
11883
11899
|
...activeIcon2.props,
|
|
11884
11900
|
className: classNames(color())
|
|
11885
|
-
}) : /* @__PURE__ */ React.createElement(m$
|
|
11901
|
+
}) : /* @__PURE__ */ React.createElement(m$7, { className: classNames(color()) });
|
|
11886
11902
|
}
|
|
11887
11903
|
return React.isValidElement(icon2) ? React.cloneElement(icon2, {
|
|
11888
11904
|
...icon2.props,
|
|
@@ -12308,8 +12324,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
12308
12324
|
/* @__PURE__ */ React.createElement(
|
|
12309
12325
|
"div",
|
|
12310
12326
|
{
|
|
12311
|
-
className: classNames(`${classPrefix2}-
|
|
12312
|
-
[`${classPrefix2}-
|
|
12327
|
+
className: classNames(`${classPrefix2}-item-icon`, {
|
|
12328
|
+
[`${classPrefix2}-item-icon-disabled`]: disabled || n2 > score
|
|
12313
12329
|
})
|
|
12314
12330
|
},
|
|
12315
12331
|
renderIcon(n2)
|
|
@@ -12318,9 +12334,9 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
12318
12334
|
"div",
|
|
12319
12335
|
{
|
|
12320
12336
|
className: classNames(
|
|
12321
|
-
`${classPrefix2}-
|
|
12322
|
-
`${classPrefix2}-
|
|
12323
|
-
`${classPrefix2}-
|
|
12337
|
+
`${classPrefix2}-item-half`,
|
|
12338
|
+
`${classPrefix2}-item-icon`,
|
|
12339
|
+
`${classPrefix2}-item-icon-half`
|
|
12324
12340
|
),
|
|
12325
12341
|
onClick: (event) => onHalfClick(event, n2)
|
|
12326
12342
|
},
|
|
@@ -12407,7 +12423,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
12407
12423
|
return /* @__PURE__ */ React.createElement(
|
|
12408
12424
|
"input",
|
|
12409
12425
|
{
|
|
12410
|
-
className: `${classPrefix2}
|
|
12426
|
+
className: `${classPrefix2}-input ${clearable ? `${classPrefix2}-input-clear` : ""}`,
|
|
12411
12427
|
ref: searchRef,
|
|
12412
12428
|
style: { ...props.style },
|
|
12413
12429
|
value: value || "",
|
|
@@ -12429,31 +12445,31 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
12429
12445
|
const renderLeftIn = () => {
|
|
12430
12446
|
if (!leftIn)
|
|
12431
12447
|
return null;
|
|
12432
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
12448
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
|
|
12433
12449
|
};
|
|
12434
12450
|
const renderLeft = () => {
|
|
12435
12451
|
if (!backable && !left2)
|
|
12436
12452
|
return null;
|
|
12437
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
12453
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React.createElement(a$4, { size: "16" }) : left2);
|
|
12438
12454
|
};
|
|
12439
12455
|
const renderRightIn = () => {
|
|
12440
12456
|
if (!rightIn)
|
|
12441
12457
|
return null;
|
|
12442
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
12458
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
|
|
12443
12459
|
};
|
|
12444
12460
|
const renderRight = () => {
|
|
12445
12461
|
if (!right2)
|
|
12446
12462
|
return null;
|
|
12447
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
12463
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right` }, right2);
|
|
12448
12464
|
};
|
|
12449
12465
|
const handleClear = () => {
|
|
12450
12466
|
return /* @__PURE__ */ React.createElement(
|
|
12451
12467
|
"div",
|
|
12452
12468
|
{
|
|
12453
|
-
className: `${classPrefix2}
|
|
12469
|
+
className: `${classPrefix2}-clear ${classPrefix2}-icon`,
|
|
12454
12470
|
onClick: (e2) => clearaVal(e2)
|
|
12455
12471
|
},
|
|
12456
|
-
/* @__PURE__ */ React.createElement(e$3, { size:
|
|
12472
|
+
/* @__PURE__ */ React.createElement(e$3, { size: 16 })
|
|
12457
12473
|
);
|
|
12458
12474
|
};
|
|
12459
12475
|
const clearaVal = (event) => {
|
|
@@ -12475,17 +12491,17 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
12475
12491
|
return /* @__PURE__ */ React.createElement(
|
|
12476
12492
|
"div",
|
|
12477
12493
|
{
|
|
12478
|
-
className: `${classPrefix2} ${disabled ? `${classPrefix2}
|
|
12494
|
+
className: `${classPrefix2} ${disabled ? `${classPrefix2}-disabled` : ""} ${className || ""}`,
|
|
12479
12495
|
style: { ...props.style }
|
|
12480
12496
|
},
|
|
12481
12497
|
renderLeft(),
|
|
12482
12498
|
/* @__PURE__ */ React.createElement(
|
|
12483
12499
|
"div",
|
|
12484
12500
|
{
|
|
12485
|
-
className: `${classPrefix2}
|
|
12501
|
+
className: `${classPrefix2}-content ${shape === "round" ? `${classPrefix2}-round` : ""}`
|
|
12486
12502
|
},
|
|
12487
12503
|
renderLeftIn(),
|
|
12488
|
-
/* @__PURE__ */ React.createElement("div", { className: "nut-
|
|
12504
|
+
/* @__PURE__ */ React.createElement("div", { className: "nut-searchbar-input-box" }, renderField()),
|
|
12489
12505
|
clearable && !value && renderRightIn(),
|
|
12490
12506
|
clearable && value && handleClear()
|
|
12491
12507
|
),
|
|
@@ -12571,21 +12587,9 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
12571
12587
|
onCloseIconClick: onClose,
|
|
12572
12588
|
...rest
|
|
12573
12589
|
},
|
|
12574
|
-
/* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
12575
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
12576
|
-
|
|
12577
|
-
{
|
|
12578
|
-
className: `${classPrefix2}__input-fake__li__icon`
|
|
12579
|
-
}
|
|
12580
|
-
)));
|
|
12581
|
-
}))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__message` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__message__error` }, error), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__message__forget`, onClick: onTips }, tips || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(a$2, { width: 11, height: 11, style: { marginRight: "3px" } }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__footer` }, /* @__PURE__ */ React.createElement(
|
|
12582
|
-
"div",
|
|
12583
|
-
{
|
|
12584
|
-
className: `${classPrefix2}__footer__cancel`,
|
|
12585
|
-
onClick: onCancel
|
|
12586
|
-
},
|
|
12587
|
-
locale.cancel
|
|
12588
|
-
), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}__footer__sure`, onClick: sure }, locale.confirm)))
|
|
12590
|
+
/* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title` }, title || locale.shortpassword.title), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-description` }, description || locale.shortpassword.description), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input`, onClick: onFocus }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-site` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake` }, [...new Array(comLen).keys()].map((item, index) => {
|
|
12591
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake-li`, key: index }, inputValue.length > index && /* @__PURE__ */ React.createElement(React.Fragment, null, plain ? inputValue[index] : /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake-li-icon` })));
|
|
12592
|
+
}))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(a$2, { size: 11, style: { marginRight: "3px" } }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-cancel`, onClick: onCancel }, locale.cancel), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-sure`, onClick: sure }, locale.confirm)))
|
|
12589
12593
|
);
|
|
12590
12594
|
};
|
|
12591
12595
|
ShortPassword.defaultProps = defaultProps$O;
|
|
@@ -12730,7 +12734,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
12730
12734
|
React.useEffect(() => {
|
|
12731
12735
|
initCanvas();
|
|
12732
12736
|
}, []);
|
|
12733
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
12737
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-inner spcanvas_WEAPP`, ref: wrapRef }, Taro.getEnv() === "WEAPP" || Taro.getEnv() === "JD" ? /* @__PURE__ */ React.createElement(
|
|
12734
12738
|
"canvas",
|
|
12735
12739
|
{
|
|
12736
12740
|
id: canvasId,
|
|
@@ -12882,7 +12886,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
12882
12886
|
className: classNames(
|
|
12883
12887
|
classPrefix2,
|
|
12884
12888
|
{
|
|
12885
|
-
[`${classPrefix2}
|
|
12889
|
+
[`${classPrefix2}-disabled`]: disabled
|
|
12886
12890
|
},
|
|
12887
12891
|
className
|
|
12888
12892
|
)
|
|
@@ -12901,7 +12905,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
12901
12905
|
compositionRef.current = false;
|
|
12902
12906
|
}
|
|
12903
12907
|
},
|
|
12904
|
-
className: `${classPrefix2}
|
|
12908
|
+
className: `${classPrefix2}-textarea`,
|
|
12905
12909
|
style: Taro.getEnv() === "WEB" ? void 0 : style,
|
|
12906
12910
|
disabled: Taro.getEnv() === "WEB" ? disabled : disabled || readOnly,
|
|
12907
12911
|
value: inputValue,
|
|
@@ -12914,7 +12918,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
12914
12918
|
...rest
|
|
12915
12919
|
}
|
|
12916
12920
|
),
|
|
12917
|
-
showCount && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
12921
|
+
showCount && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-limit` }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)
|
|
12918
12922
|
);
|
|
12919
12923
|
};
|
|
12920
12924
|
TextArea.defaultProps = defaultProps$L;
|
|
@@ -13150,7 +13154,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13150
13154
|
children || /* @__PURE__ */ React.createElement(
|
|
13151
13155
|
"div",
|
|
13152
13156
|
{
|
|
13153
|
-
className: `${classPrefix2}-
|
|
13157
|
+
className: `${classPrefix2}-text-inner`,
|
|
13154
13158
|
style: {
|
|
13155
13159
|
background: color
|
|
13156
13160
|
}
|
|
@@ -13182,7 +13186,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13182
13186
|
return /* @__PURE__ */ React.createElement(
|
|
13183
13187
|
"div",
|
|
13184
13188
|
{
|
|
13185
|
-
className: `nut-
|
|
13189
|
+
className: `nut-uploader-preview ${previewType}`,
|
|
13186
13190
|
key: item.uid
|
|
13187
13191
|
},
|
|
13188
13192
|
previewType === "picture" && deletable && /* @__PURE__ */ React.createElement(
|
|
@@ -13193,10 +13197,10 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13193
13197
|
onClick: () => onDeleteItem(item, index)
|
|
13194
13198
|
}
|
|
13195
13199
|
),
|
|
13196
|
-
previewType === "picture" && !children && /* @__PURE__ */ React.createElement("div", { className: "nut-
|
|
13200
|
+
previewType === "picture" && !children && /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-img" }, item.status === "ready" ? /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-progress" }, /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-progress-msg" }, item.message)) : item.status !== "success" && /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-progress" }, renderIcon(item), /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-progress-msg" }, item.message)), ((_a = item.type) == null ? void 0 : _a.includes("image")) ? /* @__PURE__ */ React.createElement(React.Fragment, null, item.url && /* @__PURE__ */ React.createElement(
|
|
13197
13201
|
components.Image,
|
|
13198
13202
|
{
|
|
13199
|
-
className: "nut-
|
|
13203
|
+
className: "nut-uploader-preview-img-c",
|
|
13200
13204
|
style: { objectFit: "fill" },
|
|
13201
13205
|
mode: "aspectFit",
|
|
13202
13206
|
src: item.url,
|
|
@@ -13205,24 +13209,24 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13205
13209
|
)) : /* @__PURE__ */ React.createElement(React.Fragment, null, previewUrl ? /* @__PURE__ */ React.createElement(
|
|
13206
13210
|
components.Image,
|
|
13207
13211
|
{
|
|
13208
|
-
className: "nut-
|
|
13212
|
+
className: "nut-uploader-preview-img-c",
|
|
13209
13213
|
mode: "aspectFit",
|
|
13210
13214
|
src: previewUrl,
|
|
13211
13215
|
onClick: () => handleItemClick(item, index)
|
|
13212
13216
|
}
|
|
13213
|
-
) : /* @__PURE__ */ React.createElement("div", { className: "nut-
|
|
13217
|
+
) : /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-img-file" }, /* @__PURE__ */ React.createElement(
|
|
13214
13218
|
"div",
|
|
13215
13219
|
{
|
|
13216
13220
|
onClick: () => handleItemClick(item, index),
|
|
13217
|
-
className: "nut-
|
|
13221
|
+
className: "nut-uploader-preview-img-file-name"
|
|
13218
13222
|
},
|
|
13219
13223
|
/* @__PURE__ */ React.createElement(t$2, { color: "#808080" }),
|
|
13220
13224
|
/* @__PURE__ */ React.createElement("span", null, " ", item.name)
|
|
13221
13225
|
))), item.status === "success" ? /* @__PURE__ */ React.createElement("div", { className: "tips" }, item.name) : null),
|
|
13222
|
-
previewType === "list" && /* @__PURE__ */ React.createElement("div", { className: "nut-
|
|
13226
|
+
previewType === "list" && /* @__PURE__ */ React.createElement("div", { className: "nut-uploader-preview-list" }, /* @__PURE__ */ React.createElement(
|
|
13223
13227
|
"div",
|
|
13224
13228
|
{
|
|
13225
|
-
className: `nut-
|
|
13229
|
+
className: `nut-uploader-preview-img-file-name ${item.status}`,
|
|
13226
13230
|
onClick: () => handleItemClick(item, index)
|
|
13227
13231
|
},
|
|
13228
13232
|
/* @__PURE__ */ React.createElement(t$2, null),
|
|
@@ -13231,7 +13235,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13231
13235
|
t$4,
|
|
13232
13236
|
{
|
|
13233
13237
|
color: "#808080",
|
|
13234
|
-
className: "nut-
|
|
13238
|
+
className: "nut-uploader-preview-img-file-del",
|
|
13235
13239
|
onClick: () => onDeleteItem(item, index)
|
|
13236
13240
|
}
|
|
13237
13241
|
), item.status === "uploading" && /* @__PURE__ */ React.createElement(
|
|
@@ -13573,7 +13577,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13573
13577
|
const handleItemClick = (file, index) => {
|
|
13574
13578
|
onFileItemClick == null ? void 0 : onFileItemClick(file, index);
|
|
13575
13579
|
};
|
|
13576
|
-
return /* @__PURE__ */ React.createElement("div", { className: classes, ...restProps }, (children || previewType === "list") && /* @__PURE__ */ React.createElement("div", { className: "nut-
|
|
13580
|
+
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$1, { size: "small", type: "primary" }, "上传文件"), maxCount > fileList.length && /* @__PURE__ */ React.createElement(Button$1, { className: "nut-uploader-input", onClick: _chooseImage }))), /* @__PURE__ */ React.createElement(
|
|
13577
13581
|
Preview,
|
|
13578
13582
|
{
|
|
13579
13583
|
...{
|
|
@@ -13589,10 +13593,10 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13589
13593
|
), maxCount > fileList.length && previewType === "picture" && !children && /* @__PURE__ */ React.createElement(
|
|
13590
13594
|
"div",
|
|
13591
13595
|
{
|
|
13592
|
-
className: `nut-
|
|
13596
|
+
className: `nut-uploader-upload ${previewType} ${disabled ? "nut-uploader-upload-disabled" : ""}`
|
|
13593
13597
|
},
|
|
13594
|
-
/* @__PURE__ */ React.createElement("div", { className: "nut-
|
|
13595
|
-
/* @__PURE__ */ React.createElement(Button$1, { className: "nut-
|
|
13598
|
+
/* @__PURE__ */ React.createElement("div", { className: "nut-uploader-icon" }, uploadIcon, /* @__PURE__ */ React.createElement("span", { className: "nut-uploader-icon-tip" }, uploadLabel)),
|
|
13599
|
+
/* @__PURE__ */ React.createElement(Button$1, { className: "nut-uploader-input", onClick: _chooseImage })
|
|
13596
13600
|
));
|
|
13597
13601
|
};
|
|
13598
13602
|
const Uploader = React.forwardRef(InternalUploader);
|
|
@@ -13647,21 +13651,21 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13647
13651
|
onCancel && onCancel();
|
|
13648
13652
|
}
|
|
13649
13653
|
},
|
|
13650
|
-
/* @__PURE__ */ React.createElement("div", { className: `${className}`, style }, options.length ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
13654
|
+
/* @__PURE__ */ React.createElement("div", { className: `${className}`, style }, options.length ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-list` }, options.map((item, index) => {
|
|
13651
13655
|
return /* @__PURE__ */ React.createElement(
|
|
13652
13656
|
"div",
|
|
13653
13657
|
{
|
|
13654
|
-
className: `${classPrefix2}
|
|
13658
|
+
className: `${classPrefix2}-item ${item.disabled ? "disabled" : ""} ${item.danger ? "danger" : ""}`,
|
|
13655
13659
|
key: index,
|
|
13656
13660
|
onClick: () => chooseItem(item, index)
|
|
13657
13661
|
},
|
|
13658
13662
|
item[optionKey.name],
|
|
13659
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
13663
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-item-description` }, item[optionKey.description])
|
|
13660
13664
|
);
|
|
13661
13665
|
})) : children, cancelText && /* @__PURE__ */ React.createElement(
|
|
13662
13666
|
"div",
|
|
13663
13667
|
{
|
|
13664
|
-
className: `${classPrefix2}
|
|
13668
|
+
className: `${classPrefix2}-cancel`,
|
|
13665
13669
|
onClick: () => cancelActionSheet()
|
|
13666
13670
|
},
|
|
13667
13671
|
cancelText
|
|
@@ -13674,13 +13678,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13674
13678
|
const { visible, title, header, footer, footerDirection, onClick, children } = props;
|
|
13675
13679
|
const classPrefix2 = "nut-dialog";
|
|
13676
13680
|
const renderHeader = () => {
|
|
13677
|
-
return title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
13681
|
+
return title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-header` }, title) : null;
|
|
13678
13682
|
};
|
|
13679
13683
|
const renderFooter = () => {
|
|
13680
13684
|
return footer ? /* @__PURE__ */ React.createElement(
|
|
13681
13685
|
"div",
|
|
13682
13686
|
{
|
|
13683
|
-
className: classNames(`${classPrefix2}
|
|
13687
|
+
className: classNames(`${classPrefix2}-footer`, {
|
|
13684
13688
|
[footerDirection]: footerDirection
|
|
13685
13689
|
})
|
|
13686
13690
|
},
|
|
@@ -13693,7 +13697,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13693
13697
|
return /* @__PURE__ */ React.createElement(
|
|
13694
13698
|
"div",
|
|
13695
13699
|
{
|
|
13696
|
-
className: classNames(`${classPrefix2}
|
|
13700
|
+
className: classNames(`${classPrefix2}-outer`, props.className),
|
|
13697
13701
|
style: props.style,
|
|
13698
13702
|
onClick: (e2) => handleClick(e2)
|
|
13699
13703
|
},
|
|
@@ -13705,7 +13709,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13705
13709
|
style: { display: visible ? "flex" : "none" }
|
|
13706
13710
|
},
|
|
13707
13711
|
renderHeader(),
|
|
13708
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
13712
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, /* @__PURE__ */ React.createElement(React.Fragment, null, children)),
|
|
13709
13713
|
renderFooter()
|
|
13710
13714
|
)
|
|
13711
13715
|
);
|
|
@@ -13833,7 +13837,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13833
13837
|
Button$1,
|
|
13834
13838
|
{
|
|
13835
13839
|
type: "default",
|
|
13836
|
-
className: `${classPrefix2}
|
|
13840
|
+
className: `${classPrefix2}-footer-cancel`,
|
|
13837
13841
|
onClick: (e2) => handleCancel(e2)
|
|
13838
13842
|
},
|
|
13839
13843
|
cancelText || locale.cancel
|
|
@@ -13841,7 +13845,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
13841
13845
|
Button$1,
|
|
13842
13846
|
{
|
|
13843
13847
|
type: "primary",
|
|
13844
|
-
className: classNames(`${classPrefix2}
|
|
13848
|
+
className: classNames(`${classPrefix2}-footer-ok`, {
|
|
13845
13849
|
disabled: disableConfirmButton
|
|
13846
13850
|
}),
|
|
13847
13851
|
disabled: disableConfirmButton,
|
|
@@ -14773,15 +14777,15 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
14773
14777
|
type: nativeType,
|
|
14774
14778
|
className: classNames(
|
|
14775
14779
|
prefixCls,
|
|
14776
|
-
`${prefixCls}
|
|
14777
|
-
props.fill ? `${prefixCls}
|
|
14778
|
-
children ? "" : `${prefixCls}
|
|
14780
|
+
`${prefixCls}-${type2}`,
|
|
14781
|
+
props.fill ? `${prefixCls}-${fill}` : null,
|
|
14782
|
+
children ? "" : `${prefixCls}-icononly`,
|
|
14779
14783
|
{
|
|
14780
|
-
[`${prefixCls}
|
|
14781
|
-
[`${prefixCls}
|
|
14782
|
-
[`${prefixCls}
|
|
14783
|
-
[`${prefixCls}
|
|
14784
|
-
[`${prefixCls}
|
|
14784
|
+
[`${prefixCls}-${size}`]: size,
|
|
14785
|
+
[`${prefixCls}-${shape}`]: shape,
|
|
14786
|
+
[`${prefixCls}-block`]: block,
|
|
14787
|
+
[`${prefixCls}-disabled`]: disabled,
|
|
14788
|
+
[`${prefixCls}-loading`]: loading
|
|
14785
14789
|
},
|
|
14786
14790
|
className
|
|
14787
14791
|
),
|
|
@@ -15000,7 +15004,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
15000
15004
|
},
|
|
15001
15005
|
/* @__PURE__ */ React.createElement("div", { className: "nut-infinite-top", ref: refreshTop, style: getStyle() }, /* @__PURE__ */ React.createElement("div", { className: "top-box" }, pullingText || locale.infiniteloading.pullRefreshText)),
|
|
15002
15006
|
/* @__PURE__ */ React.createElement("div", { className: "nut-infinite-container" }, children),
|
|
15003
|
-
/* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React.createElement("div", { className: "bottom-box" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React.createElement("div", { className: "
|
|
15007
|
+
/* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React.createElement("div", { className: "bottom-box" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React.createElement("div", { className: "bottom-box" }, loadMoreText || locale.infiniteloading.loadMoreText))
|
|
15004
15008
|
);
|
|
15005
15009
|
};
|
|
15006
15010
|
InfiniteLoading.defaultProps = defaultProps$D;
|
|
@@ -15370,26 +15374,24 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
15370
15374
|
};
|
|
15371
15375
|
const noticebarClass = classNames({
|
|
15372
15376
|
"nut-noticebar-box": true,
|
|
15373
|
-
|
|
15374
|
-
close: closeable,
|
|
15375
|
-
wrapable: wrap
|
|
15377
|
+
[`nut-noticebar-box-wrapable`]: wrap
|
|
15376
15378
|
});
|
|
15377
15379
|
React.useEffect(() => {
|
|
15378
15380
|
return () => {
|
|
15379
15381
|
stopAutoPlay();
|
|
15380
15382
|
};
|
|
15381
15383
|
}, []);
|
|
15382
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className || ""}`, style }, showNoticeBar && direction === "horizontal" ? /* @__PURE__ */ React.createElement("div", { className: noticebarClass, style: barStyle, onClick: handleClick }, leftIcon ? /* @__PURE__ */ React.createElement("div", { className: "left-icon" }, leftIcon) : null, /* @__PURE__ */ React.createElement("div", { ref: wrapRef, className: "wrap" }, /* @__PURE__ */ React.createElement(
|
|
15384
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className || ""}`, style }, showNoticeBar && direction === "horizontal" ? /* @__PURE__ */ React.createElement("div", { className: noticebarClass, style: barStyle, onClick: handleClick }, leftIcon ? /* @__PURE__ */ React.createElement("div", { className: "nut-noticebar-box-left-icon" }, leftIcon) : null, /* @__PURE__ */ React.createElement("div", { ref: wrapRef, className: "nut-noticebar-box-wrap" }, /* @__PURE__ */ React.createElement(
|
|
15383
15385
|
"div",
|
|
15384
15386
|
{
|
|
15385
15387
|
ref: contentRef,
|
|
15386
|
-
className: `content ${animationClass} ${isEllipsis() ? "nut-ellipsis" : ""}`,
|
|
15388
|
+
className: `nut-noticebar-box-wrap-content ${animationClass} ${isEllipsis() ? "nut-ellipsis" : ""}`,
|
|
15387
15389
|
style: contentStyle,
|
|
15388
15390
|
onAnimationEnd
|
|
15389
15391
|
},
|
|
15390
15392
|
children,
|
|
15391
15393
|
content
|
|
15392
|
-
)), closeable || rightIcon ? /* @__PURE__ */ React.createElement("div", { className: "right-icon", onClick: onClickIcon }, rightIcon || /* @__PURE__ */ React.createElement(t$5, { size: 12 })) : null) : null, showNoticeBar && scrollList.current.length > 0 && isVertical ? /* @__PURE__ */ React.createElement(
|
|
15394
|
+
)), closeable || rightIcon ? /* @__PURE__ */ React.createElement("div", { className: "nut-noticebar-box-right-icon", onClick: onClickIcon }, rightIcon || /* @__PURE__ */ React.createElement(t$5, { size: 12 })) : null) : null, showNoticeBar && scrollList.current.length > 0 && isVertical ? /* @__PURE__ */ React.createElement(
|
|
15393
15395
|
"div",
|
|
15394
15396
|
{
|
|
15395
15397
|
className: "nut-noticebar-vertical",
|
|
@@ -15397,12 +15399,11 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
15397
15399
|
ref: container,
|
|
15398
15400
|
onClick: handleClick
|
|
15399
15401
|
},
|
|
15400
|
-
leftIcon ? /* @__PURE__ */ React.createElement("div", { className: "left-icon" }, leftIcon) : null,
|
|
15401
|
-
children ? /* @__PURE__ */ React.createElement("div", { className: "nut-
|
|
15402
|
+
leftIcon ? /* @__PURE__ */ React.createElement("div", { className: "nut-noticebar-box-left-icon" }, leftIcon) : null,
|
|
15403
|
+
children ? /* @__PURE__ */ React.createElement("div", { className: "nut-noticebar-box-wrap", ref: innerRef }, scrollList.current.map((item, index) => {
|
|
15402
15404
|
return /* @__PURE__ */ React.createElement(
|
|
15403
15405
|
"div",
|
|
15404
15406
|
{
|
|
15405
|
-
className: "scroll-inner ",
|
|
15406
15407
|
style: itemStyle(index),
|
|
15407
15408
|
key: index,
|
|
15408
15409
|
onClick: (e2) => {
|
|
@@ -15411,27 +15412,34 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
15411
15412
|
},
|
|
15412
15413
|
item
|
|
15413
15414
|
);
|
|
15414
|
-
})) : /* @__PURE__ */ React.createElement(
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
|
|
15425
|
-
|
|
15426
|
-
|
|
15427
|
-
|
|
15428
|
-
|
|
15429
|
-
|
|
15430
|
-
|
|
15415
|
+
})) : /* @__PURE__ */ React.createElement(
|
|
15416
|
+
"div",
|
|
15417
|
+
{
|
|
15418
|
+
className: "nut-noticebar-box-horseLamp-list",
|
|
15419
|
+
style: horseLampStyle
|
|
15420
|
+
},
|
|
15421
|
+
scrollList.current.map((item, index) => {
|
|
15422
|
+
return (
|
|
15423
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
15424
|
+
/* @__PURE__ */ React.createElement(
|
|
15425
|
+
"div",
|
|
15426
|
+
{
|
|
15427
|
+
className: "nut-noticebar-box-horseLamp-list-item",
|
|
15428
|
+
style: { height },
|
|
15429
|
+
key: index,
|
|
15430
|
+
onClick: (e2) => {
|
|
15431
|
+
handleItemClick(e2, item);
|
|
15432
|
+
}
|
|
15433
|
+
},
|
|
15434
|
+
item
|
|
15435
|
+
)
|
|
15436
|
+
);
|
|
15437
|
+
})
|
|
15438
|
+
),
|
|
15431
15439
|
/* @__PURE__ */ React.createElement(
|
|
15432
15440
|
"div",
|
|
15433
15441
|
{
|
|
15434
|
-
className: "
|
|
15442
|
+
className: "nut-noticebar-box-right-icon",
|
|
15435
15443
|
onClick: (e2) => {
|
|
15436
15444
|
handleClickIcon(e2);
|
|
15437
15445
|
}
|
|
@@ -15504,10 +15512,10 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
15504
15512
|
onClose();
|
|
15505
15513
|
};
|
|
15506
15514
|
const classes = classNames({
|
|
15507
|
-
[`${classPrefix$d}
|
|
15508
|
-
[`${classPrefix$d}
|
|
15515
|
+
[`${classPrefix$d}-popup-top`]: position === "top",
|
|
15516
|
+
[`${classPrefix$d}-popup-bottom`]: position === "bottom",
|
|
15509
15517
|
[`${classPrefix$d}`]: true,
|
|
15510
|
-
[`${classPrefix$d}
|
|
15518
|
+
[`${classPrefix$d}-${type2}`]: true
|
|
15511
15519
|
});
|
|
15512
15520
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
15513
15521
|
CSSTransition$1,
|
|
@@ -15657,7 +15665,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
15657
15665
|
const prefixCls2 = "nut-popover-arrow";
|
|
15658
15666
|
const loca = location;
|
|
15659
15667
|
const direction = loca.split("-")[0];
|
|
15660
|
-
return `${prefixCls2} ${prefixCls2}-${direction} ${prefixCls2}
|
|
15668
|
+
return `${prefixCls2} ${prefixCls2}-${direction} ${prefixCls2}-${loca}`;
|
|
15661
15669
|
};
|
|
15662
15670
|
const getRootPosition = () => {
|
|
15663
15671
|
const styles = {};
|
|
@@ -15770,7 +15778,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
15770
15778
|
), /* @__PURE__ */ React.createElement("div", { className: classes, style: getRootPosition() }, /* @__PURE__ */ React.createElement(
|
|
15771
15779
|
Popup,
|
|
15772
15780
|
{
|
|
15773
|
-
className: `nut-popover-content nut-popover-content
|
|
15781
|
+
className: `nut-popover-content nut-popover-content-${location}`,
|
|
15774
15782
|
position: "default",
|
|
15775
15783
|
overlay,
|
|
15776
15784
|
visible: showPopup,
|
|
@@ -16173,7 +16181,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16173
16181
|
const classes = classNames(classPrefix2, className);
|
|
16174
16182
|
const avatarClass = classNames({
|
|
16175
16183
|
avatar: true,
|
|
16176
|
-
[`avatar
|
|
16184
|
+
[`avatar-${avatarShape}`]: avatarShape
|
|
16177
16185
|
});
|
|
16178
16186
|
const repeatLines = (num) => {
|
|
16179
16187
|
return Array.from({ length: num }, (v, i) => i);
|
|
@@ -16190,7 +16198,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16190
16198
|
height: "50px"
|
|
16191
16199
|
};
|
|
16192
16200
|
};
|
|
16193
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, visible ? /* @__PURE__ */ React.createElement("div", null, children) : /* @__PURE__ */ React.createElement("div", { className: classes, ...rest }, animated && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
16201
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, visible ? /* @__PURE__ */ React.createElement("div", null, children) : /* @__PURE__ */ React.createElement("div", { className: classes, ...rest }, animated && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-animation` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, avatar && /* @__PURE__ */ React.createElement(
|
|
16194
16202
|
Avatar,
|
|
16195
16203
|
{
|
|
16196
16204
|
className: avatarClass,
|
|
@@ -16199,8 +16207,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16199
16207
|
style: getStyle(),
|
|
16200
16208
|
icon: "null"
|
|
16201
16209
|
}
|
|
16202
|
-
), rows === 1 ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
16203
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
16210
|
+
), rows === 1 ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-block` }) : /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content-line` }, title && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title` }), repeatLines(rows).map((item, index) => {
|
|
16211
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-block`, key: index });
|
|
16204
16212
|
})))));
|
|
16205
16213
|
};
|
|
16206
16214
|
Skeleton.defaultProps = defaultProps$v;
|
|
@@ -16401,7 +16409,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16401
16409
|
icon: null,
|
|
16402
16410
|
iconSize: "20",
|
|
16403
16411
|
msg: "",
|
|
16404
|
-
duration:
|
|
16412
|
+
duration: 30,
|
|
16405
16413
|
// 时长,duration为0则一直展示
|
|
16406
16414
|
position: "center",
|
|
16407
16415
|
type: "text",
|
|
@@ -16508,10 +16516,10 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16508
16516
|
return icon;
|
|
16509
16517
|
}
|
|
16510
16518
|
return {
|
|
16511
|
-
success: /* @__PURE__ */ React.createElement(e, { color: "#ffffff",
|
|
16512
|
-
fail: /* @__PURE__ */ React.createElement(e$5, { color: "#ffffff",
|
|
16513
|
-
warn: /* @__PURE__ */ React.createElement(a$2, { color: "#ffffff",
|
|
16514
|
-
loading: /* @__PURE__ */ React.createElement(m$3, { color: "#ffffff",
|
|
16519
|
+
success: /* @__PURE__ */ React.createElement(e, { color: "#ffffff", size: iconSize }),
|
|
16520
|
+
fail: /* @__PURE__ */ React.createElement(e$5, { color: "#ffffff", size: iconSize }),
|
|
16521
|
+
warn: /* @__PURE__ */ React.createElement(a$2, { color: "#ffffff", size: iconSize }),
|
|
16522
|
+
loading: /* @__PURE__ */ React.createElement(m$3, { color: "#ffffff", size: iconSize })
|
|
16515
16523
|
}[type2];
|
|
16516
16524
|
};
|
|
16517
16525
|
const classes = classNames({
|
|
@@ -16523,7 +16531,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16523
16531
|
{
|
|
16524
16532
|
visible: innerVisible,
|
|
16525
16533
|
style,
|
|
16526
|
-
className: `${classPrefix$9}
|
|
16534
|
+
className: `${classPrefix$9}-overlay-default ${className}`,
|
|
16527
16535
|
closeOnOverlayClick,
|
|
16528
16536
|
lockScroll,
|
|
16529
16537
|
onClick: () => {
|
|
@@ -16533,10 +16541,10 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16533
16541
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix$9} ${classes}`, id }, /* @__PURE__ */ React.createElement(
|
|
16534
16542
|
"div",
|
|
16535
16543
|
{
|
|
16536
|
-
className: `${classPrefix$9}
|
|
16544
|
+
className: `${classPrefix$9}-inner ${classPrefix$9}-${position} ${contentClassName} ${wordBreak}`,
|
|
16537
16545
|
style: contentStyle
|
|
16538
16546
|
},
|
|
16539
|
-
hasIcon() ? /* @__PURE__ */ React.createElement("p", { className: `${classPrefix$9}
|
|
16547
|
+
hasIcon() ? /* @__PURE__ */ React.createElement("p", { className: `${classPrefix$9}-icon-wrapper` }, iconName()) : null,
|
|
16540
16548
|
title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$9}-title` }, title) : null,
|
|
16541
16549
|
/* @__PURE__ */ React.createElement("span", { className: `${classPrefix$9}-text` }, msg)
|
|
16542
16550
|
))
|
|
@@ -16625,7 +16633,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16625
16633
|
const isLoaded = React.useRef(false);
|
|
16626
16634
|
const setNumberTransform = () => {
|
|
16627
16635
|
if (countupRef.current && numerArr.length) {
|
|
16628
|
-
Taro.createSelectorQuery().selectAll(".nut-
|
|
16636
|
+
Taro.createSelectorQuery().selectAll(".nut-countup-listitem").node((numberItems) => {
|
|
16629
16637
|
const transformArrCache = [];
|
|
16630
16638
|
Object.keys(numberItems).forEach((key) => {
|
|
16631
16639
|
const elem = numberItems[Number(key)];
|
|
@@ -16661,23 +16669,23 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16661
16669
|
window.clearTimeout(timerRef.current);
|
|
16662
16670
|
};
|
|
16663
16671
|
}, [value]);
|
|
16664
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, ref: countupRef }, /* @__PURE__ */ React.createElement("ul", { className: `${classPrefix2}
|
|
16672
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2} ${className}`, ref: countupRef }, /* @__PURE__ */ React.createElement("ul", { className: `${classPrefix2}-list` }, numerArr.map((item, idx) => {
|
|
16665
16673
|
return /* @__PURE__ */ React.createElement(
|
|
16666
16674
|
"li",
|
|
16667
16675
|
{
|
|
16668
|
-
className: `${classPrefix2}
|
|
16676
|
+
className: `${classPrefix2}-listitem ${!Number.isNaN(Number(item)) ? `${classPrefix2}-listitem-number` : ""}`,
|
|
16669
16677
|
key: idx
|
|
16670
16678
|
},
|
|
16671
16679
|
!Number.isNaN(Number(item)) ? /* @__PURE__ */ React.createElement(
|
|
16672
16680
|
"span",
|
|
16673
16681
|
{
|
|
16674
|
-
className: `${classPrefix2}
|
|
16682
|
+
className: `${classPrefix2}-number`,
|
|
16675
16683
|
style: numberEaseStyle(idx)
|
|
16676
16684
|
},
|
|
16677
16685
|
[...numbers, ...numbers].map((number2, subidx) => {
|
|
16678
16686
|
return /* @__PURE__ */ React.createElement("span", { key: subidx }, number2);
|
|
16679
16687
|
})
|
|
16680
|
-
) : /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}
|
|
16688
|
+
) : /* @__PURE__ */ React.createElement("span", { className: `${classPrefix2}-separator` }, item)
|
|
16681
16689
|
);
|
|
16682
16690
|
})));
|
|
16683
16691
|
};
|
|
@@ -16832,17 +16840,17 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16832
16840
|
}
|
|
16833
16841
|
};
|
|
16834
16842
|
const renderIcon = () => {
|
|
16835
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
16843
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-icon` }, /* @__PURE__ */ React.createElement(
|
|
16836
16844
|
"div",
|
|
16837
16845
|
{
|
|
16838
|
-
className: `${classPrefix2}
|
|
16846
|
+
className: `${classPrefix2}-icon-box} ${playing ? `${classPrefix2}-icon-play}` : `${classPrefix2}-icon-stop}`}`,
|
|
16839
16847
|
onClick: handleStatusChange
|
|
16840
16848
|
},
|
|
16841
16849
|
/* @__PURE__ */ React.createElement(m$1, { className: playing ? "nut-icon-loading" : "" })
|
|
16842
16850
|
)));
|
|
16843
16851
|
};
|
|
16844
16852
|
const renderProgerss = () => {
|
|
16845
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
16853
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-progress` }, /* @__PURE__ */ React.createElement("div", { className: "time" }, currentDuration), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-progress-bar-wrapper` }, /* @__PURE__ */ React.createElement(
|
|
16846
16854
|
Range,
|
|
16847
16855
|
{
|
|
16848
16856
|
value: percent,
|
|
@@ -16885,7 +16893,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
16885
16893
|
return /* @__PURE__ */ React.createElement(
|
|
16886
16894
|
"div",
|
|
16887
16895
|
{
|
|
16888
|
-
className: `${classPrefix2}
|
|
16896
|
+
className: `${classPrefix2}-none-container`,
|
|
16889
16897
|
onClick: handleStatusChange
|
|
16890
16898
|
},
|
|
16891
16899
|
children
|
|
@@ -17062,7 +17070,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
17062
17070
|
const wrapperRef = React.useRef(null);
|
|
17063
17071
|
const contentRef = React.useRef(null);
|
|
17064
17072
|
const [refRandomId] = React.useState(() => Math.random().toString(36).slice(-8));
|
|
17065
|
-
const target = `#nut-
|
|
17073
|
+
const target = `#nut-collapse-content-${refRandomId}`;
|
|
17066
17074
|
const expanded = React.useMemo(() => {
|
|
17067
17075
|
if (context) {
|
|
17068
17076
|
return context.isOpen(name);
|
|
@@ -17139,16 +17147,16 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
17139
17147
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style, ...rest }, /* @__PURE__ */ React.createElement(
|
|
17140
17148
|
"div",
|
|
17141
17149
|
{
|
|
17142
|
-
className: classNames(`${classPrefix2}
|
|
17150
|
+
className: classNames(`${classPrefix2}-header`, { disabled }),
|
|
17143
17151
|
onClick: handleClick
|
|
17144
17152
|
},
|
|
17145
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
17146
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
17147
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
17153
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title` }, title),
|
|
17154
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-extra` }, extra),
|
|
17155
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-icon-box` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-icon`, style: iconStyle }, expandIcon || context.expandIcon))
|
|
17148
17156
|
), /* @__PURE__ */ React.createElement(
|
|
17149
17157
|
"div",
|
|
17150
17158
|
{
|
|
17151
|
-
className: `${classPrefix2}
|
|
17159
|
+
className: `${classPrefix2}-content`,
|
|
17152
17160
|
ref: wrapperRef,
|
|
17153
17161
|
style: {
|
|
17154
17162
|
willChange: "height",
|
|
@@ -17159,8 +17167,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
17159
17167
|
"div",
|
|
17160
17168
|
{
|
|
17161
17169
|
ref: contentRef,
|
|
17162
|
-
className: `${classPrefix2}
|
|
17163
|
-
id: `nut-
|
|
17170
|
+
className: `${classPrefix2}-content-text`,
|
|
17171
|
+
id: `nut-collapse-content-${refRandomId}`
|
|
17164
17172
|
},
|
|
17165
17173
|
children
|
|
17166
17174
|
)
|
|
@@ -17481,7 +17489,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
17481
17489
|
children || /* @__PURE__ */ React.createElement(
|
|
17482
17490
|
"div",
|
|
17483
17491
|
{
|
|
17484
|
-
className: `${classPrefix2}
|
|
17492
|
+
className: `${classPrefix2}-block`,
|
|
17485
17493
|
dangerouslySetInnerHTML: {
|
|
17486
17494
|
__html: `${renderTime}`
|
|
17487
17495
|
}
|
|
@@ -17880,8 +17888,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
17880
17888
|
"div",
|
|
17881
17889
|
{
|
|
17882
17890
|
className: classNames({
|
|
17883
|
-
[`${classPrefix$4}
|
|
17884
|
-
[`${classPrefix$4}
|
|
17891
|
+
[`${classPrefix$4}-indicator`]: true,
|
|
17892
|
+
[`${classPrefix$4}-indicator-vertical`]: direction === "vertical"
|
|
17885
17893
|
})
|
|
17886
17894
|
},
|
|
17887
17895
|
/* @__PURE__ */ React.createElement(
|
|
@@ -17932,7 +17940,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
17932
17940
|
/* @__PURE__ */ React.createElement(
|
|
17933
17941
|
components.View,
|
|
17934
17942
|
{
|
|
17935
|
-
className: "nut-
|
|
17943
|
+
className: "nut-swiper-inner",
|
|
17936
17944
|
style: {
|
|
17937
17945
|
width: !width ? "100%" : pxCheck(width),
|
|
17938
17946
|
height: !height ? "150px" : pxCheck(height)
|
|
@@ -18306,19 +18314,19 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
18306
18314
|
"div",
|
|
18307
18315
|
{
|
|
18308
18316
|
className: classNames(
|
|
18309
|
-
`${classPrefix2}
|
|
18317
|
+
`${classPrefix2}-prev`,
|
|
18310
18318
|
mode === "multi" ? "" : "simple-border",
|
|
18311
18319
|
currentPage === 1 ? "disabled" : ""
|
|
18312
18320
|
),
|
|
18313
18321
|
onClick: (e2) => handleSelectPage(currentPage - 1)
|
|
18314
18322
|
},
|
|
18315
18323
|
prev || locale.pagination.prev
|
|
18316
|
-
), mode === "multi" && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
18324
|
+
), mode === "multi" && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-contain` }, pages.map((item, index) => {
|
|
18317
18325
|
return /* @__PURE__ */ React.createElement(
|
|
18318
18326
|
"div",
|
|
18319
18327
|
{
|
|
18320
18328
|
key: `${index}pagination`,
|
|
18321
|
-
className: classNames(`${classPrefix2}
|
|
18329
|
+
className: classNames(`${classPrefix2}-item`, {
|
|
18322
18330
|
active: item.number === currentPage
|
|
18323
18331
|
}),
|
|
18324
18332
|
onClick: (e2) => {
|
|
@@ -18327,11 +18335,11 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
18327
18335
|
},
|
|
18328
18336
|
itemRender ? itemRender(item) : item.text
|
|
18329
18337
|
);
|
|
18330
|
-
})), mode === "simple" && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
18338
|
+
})), mode === "simple" && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-contain` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-simple` }, currentPage, "/", pageCount)), /* @__PURE__ */ React.createElement(
|
|
18331
18339
|
"div",
|
|
18332
18340
|
{
|
|
18333
18341
|
className: classNames(
|
|
18334
|
-
`${classPrefix2}
|
|
18342
|
+
`${classPrefix2}-next`,
|
|
18335
18343
|
currentPage >= pageCount ? "disabled" : ""
|
|
18336
18344
|
),
|
|
18337
18345
|
onClick: (e2) => handleSelectPage(currentPage + 1)
|
|
@@ -18416,7 +18424,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
18416
18424
|
return /* @__PURE__ */ React.createElement(
|
|
18417
18425
|
"div",
|
|
18418
18426
|
{
|
|
18419
|
-
className: `${classPrefix2}
|
|
18427
|
+
className: `${classPrefix2}-symbol ${classPrefix2}-symbol-${size}`,
|
|
18420
18428
|
dangerouslySetInnerHTML: showSymbol()
|
|
18421
18429
|
}
|
|
18422
18430
|
);
|
|
@@ -18424,32 +18432,20 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
18424
18432
|
return /* @__PURE__ */ React.createElement(
|
|
18425
18433
|
"div",
|
|
18426
18434
|
{
|
|
18427
|
-
className: `${classPrefix2} ${line ? `${classPrefix2}
|
|
18435
|
+
className: `${classPrefix2} ${line ? `${classPrefix2}-line` : ""} ${className}`,
|
|
18428
18436
|
style,
|
|
18429
18437
|
...rest
|
|
18430
18438
|
},
|
|
18431
18439
|
symbol && position === "before" ? renderSymbol() : null,
|
|
18432
|
-
/* @__PURE__ */ React.createElement(
|
|
18433
|
-
"div",
|
|
18434
|
-
{
|
|
18435
|
-
className: `${classPrefix2}__integer ${classPrefix2}__integer-${size}`
|
|
18436
|
-
},
|
|
18437
|
-
formatThousands(price)
|
|
18438
|
-
),
|
|
18440
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-integer ${classPrefix2}-integer-${size}` }, formatThousands(price)),
|
|
18439
18441
|
digits !== 0 ? /* @__PURE__ */ React.createElement(
|
|
18440
18442
|
"div",
|
|
18441
18443
|
{
|
|
18442
|
-
className: `${classPrefix2}
|
|
18444
|
+
className: `${classPrefix2}-decimal ${classPrefix2}-decimal-${size}`
|
|
18443
18445
|
},
|
|
18444
18446
|
"."
|
|
18445
18447
|
) : null,
|
|
18446
|
-
/* @__PURE__ */ React.createElement(
|
|
18447
|
-
"div",
|
|
18448
|
-
{
|
|
18449
|
-
className: `${classPrefix2}__decimal ${classPrefix2}__decimal-${size}`
|
|
18450
|
-
},
|
|
18451
|
-
formatDecimal(price)
|
|
18452
|
-
),
|
|
18448
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-decimal ${classPrefix2}-decimal-${size}` }, formatDecimal(price)),
|
|
18453
18449
|
symbol && position === "after" ? renderSymbol() : null
|
|
18454
18450
|
);
|
|
18455
18451
|
};
|
|
@@ -18581,8 +18577,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
18581
18577
|
setValue(data);
|
|
18582
18578
|
}, [data]);
|
|
18583
18579
|
const classPrefix2 = "nut-table";
|
|
18584
|
-
const headerClassPrefix = `${classPrefix2}
|
|
18585
|
-
const bodyClassPrefix = `${classPrefix2}
|
|
18580
|
+
const headerClassPrefix = `${classPrefix2}-main-head-tr`;
|
|
18581
|
+
const bodyClassPrefix = `${classPrefix2}-main-body-tr`;
|
|
18586
18582
|
const cls = classNames(classPrefix2, className);
|
|
18587
18583
|
const handleSorterClick = (item) => {
|
|
18588
18584
|
if (item.sorter && !sortedMapping.current[item.key]) {
|
|
@@ -18602,8 +18598,8 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
18602
18598
|
};
|
|
18603
18599
|
const cellClasses = (item) => {
|
|
18604
18600
|
return {
|
|
18605
|
-
[`${headerClassPrefix}
|
|
18606
|
-
[`${headerClassPrefix}
|
|
18601
|
+
[`${headerClassPrefix}-border`]: props.bordered,
|
|
18602
|
+
[`${headerClassPrefix}-align${item.align ? item.align : ""}`]: true
|
|
18607
18603
|
};
|
|
18608
18604
|
};
|
|
18609
18605
|
const getColumnItem = (value) => {
|
|
@@ -18614,7 +18610,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
18614
18610
|
return /* @__PURE__ */ React.createElement(
|
|
18615
18611
|
"span",
|
|
18616
18612
|
{
|
|
18617
|
-
className: classNames(`${headerClassPrefix}
|
|
18613
|
+
className: classNames(`${headerClassPrefix}-th`, cellClasses(item)),
|
|
18618
18614
|
key: item.key,
|
|
18619
18615
|
onClick: () => handleSorterClick(item)
|
|
18620
18616
|
},
|
|
@@ -18635,7 +18631,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
18635
18631
|
"span",
|
|
18636
18632
|
{
|
|
18637
18633
|
className: classNames(
|
|
18638
|
-
`${bodyClassPrefix}
|
|
18634
|
+
`${bodyClassPrefix}-td`,
|
|
18639
18635
|
cellClasses(getColumnItem(value))
|
|
18640
18636
|
),
|
|
18641
18637
|
key: value
|
|
@@ -18652,13 +18648,13 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
18652
18648
|
return /* @__PURE__ */ React.createElement("div", { className: cls, style, ...rest }, /* @__PURE__ */ React.createElement(
|
|
18653
18649
|
"div",
|
|
18654
18650
|
{
|
|
18655
|
-
className: classNames(`${classPrefix2}
|
|
18656
|
-
[`${classPrefix2}
|
|
18651
|
+
className: classNames(`${classPrefix2}-main`, {
|
|
18652
|
+
[`${classPrefix2}-main-striped`]: striped
|
|
18657
18653
|
})
|
|
18658
18654
|
},
|
|
18659
|
-
showHeader && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
18660
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
18661
|
-
), (summary || innerValue.length === 0) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
18655
|
+
showHeader && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-main-head` }, /* @__PURE__ */ React.createElement("div", { className: headerClassPrefix }, renderHeadCells())),
|
|
18656
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-main-body` }, renderBoyTrs())
|
|
18657
|
+
), (summary || innerValue.length === 0) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-summary` }, summary || noData));
|
|
18662
18658
|
};
|
|
18663
18659
|
Table.defaultProps = defaultProps$b;
|
|
18664
18660
|
Table.displayName = "NutTable";
|
|
@@ -18700,11 +18696,11 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
18700
18696
|
const classPrefix2 = "nut-tag";
|
|
18701
18697
|
const classes = classNames({
|
|
18702
18698
|
[classPrefix2]: true,
|
|
18703
|
-
[`${classPrefix2}
|
|
18704
|
-
[`${classPrefix2}
|
|
18705
|
-
[`${classPrefix2}
|
|
18706
|
-
[`${classPrefix2}
|
|
18707
|
-
[`${classPrefix2}
|
|
18699
|
+
[`${classPrefix2}-${type2}`]: type2,
|
|
18700
|
+
[`${classPrefix2}-plain`]: plain,
|
|
18701
|
+
[`${classPrefix2}-round`]: round,
|
|
18702
|
+
[`${classPrefix2}-mark`]: mark,
|
|
18703
|
+
[`${classPrefix2}-close`]: closeable,
|
|
18708
18704
|
[`${className}`]: className
|
|
18709
18705
|
});
|
|
18710
18706
|
const handleClick = (e2) => {
|
|
@@ -19277,7 +19273,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
19277
19273
|
const classes = classNames(
|
|
19278
19274
|
classPrefix$1,
|
|
19279
19275
|
{
|
|
19280
|
-
[`${classPrefix$1}
|
|
19276
|
+
[`${classPrefix$1}-body${timeId.current}`]: true
|
|
19281
19277
|
},
|
|
19282
19278
|
className
|
|
19283
19279
|
);
|
|
@@ -19304,10 +19300,10 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
19304
19300
|
const query = Taro.createSelectorQuery();
|
|
19305
19301
|
setTimeout(() => {
|
|
19306
19302
|
let width = 100;
|
|
19307
|
-
query.select(`.${classPrefix$1}
|
|
19303
|
+
query.select(`.${classPrefix$1}-body${timeId.current}`).boundingClientRect((rec) => {
|
|
19308
19304
|
width = rec.width || 300;
|
|
19309
19305
|
});
|
|
19310
|
-
query.select(`.${classPrefix$1}
|
|
19306
|
+
query.select(`.${classPrefix$1}-item${index}`).boundingClientRect((recs) => {
|
|
19311
19307
|
const height = recs.height;
|
|
19312
19308
|
const nodeTop = `${index % rows * (height + gapY) + 20}px`;
|
|
19313
19309
|
styleInfo(index, nodeTop, width);
|
|
@@ -19333,7 +19329,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
19333
19329
|
return /* @__PURE__ */ React.createElement(
|
|
19334
19330
|
"div",
|
|
19335
19331
|
{
|
|
19336
|
-
className: `barrage-item ${classPrefix$1}
|
|
19332
|
+
className: `barrage-item ${classPrefix$1}-item${index} move`,
|
|
19337
19333
|
style: styleList[index],
|
|
19338
19334
|
key: index
|
|
19339
19335
|
},
|
|
@@ -19436,7 +19432,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
19436
19432
|
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className) }, timeList[optionKey.childrenKey].map((item) => /* @__PURE__ */ React.createElement(
|
|
19437
19433
|
"span",
|
|
19438
19434
|
{
|
|
19439
|
-
className: classNames(`${classPrefix2}
|
|
19435
|
+
className: classNames(`${classPrefix2}-item`, {
|
|
19440
19436
|
active: isActive(item[optionKey.valueKey])
|
|
19441
19437
|
}),
|
|
19442
19438
|
key: item[optionKey.valueKey],
|
|
@@ -19561,7 +19557,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
19561
19557
|
onClose: closeFun,
|
|
19562
19558
|
...rest
|
|
19563
19559
|
},
|
|
19564
|
-
/* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className) }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}
|
|
19560
|
+
/* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className) }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content-left` }, options.map((item) => /* @__PURE__ */ React.createElement(
|
|
19565
19561
|
"div",
|
|
19566
19562
|
{
|
|
19567
19563
|
key: item[optionKey.valueKey],
|