@nutui/nutui-react-taro 1.5.2 → 1.5.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -1
- package/dist/esm/ActionSheet.js +14 -90
- package/dist/esm/Address.js +21 -620
- package/dist/esm/Animate.js +7 -53
- package/dist/esm/AnimatingNumbers.js +7 -125
- package/dist/esm/Audio.js +19 -264
- package/dist/esm/Avatar.js +11 -130
- package/dist/esm/{AvatarContext-15733596.js → AvatarContext-c96afdcc.js} +3 -1
- package/dist/esm/AvatarGroup.js +11 -41
- package/dist/esm/BackTop.js +10 -138
- package/dist/esm/Badge.js +9 -71
- package/dist/esm/Barrage.js +8 -97
- package/dist/esm/Button.js +9 -108
- package/dist/esm/Calendar.js +20 -128
- package/dist/esm/CalendarItem.js +12 -674
- package/dist/esm/Card.js +11 -61
- package/dist/esm/Cascader.js +16 -671
- package/dist/esm/Cell.js +9 -101
- package/dist/esm/CellGroup.js +5 -2
- package/dist/esm/Checkbox.js +7 -5
- package/dist/esm/CheckboxGroup.js +8 -111
- package/dist/esm/CircleProgress.js +8 -114
- package/dist/esm/Col.js +7 -57
- package/dist/esm/Collapse.js +7 -97
- package/dist/esm/CollapseItem.js +8 -146
- package/dist/esm/ConfigProvider.js +8 -187
- package/dist/esm/CountDown.js +9 -247
- package/dist/esm/DatePicker.js +25 -309
- package/dist/esm/Dialog.js +17 -296
- package/dist/esm/Divider.js +7 -34
- package/dist/esm/Drag.js +7 -118
- package/dist/esm/Elevator.js +8 -234
- package/dist/esm/Ellipsis.js +10 -176
- package/dist/esm/Empty.js +8 -79
- package/dist/esm/FixedNav.js +14 -103
- package/dist/esm/Form.js +10 -215
- package/dist/esm/FormItem.js +10 -3
- package/dist/esm/Grid.js +11 -81
- package/dist/esm/GridItem.js +13 -123
- package/dist/esm/Icon.js +5 -2
- package/dist/esm/Image.js +11 -169
- package/dist/esm/ImagePreview.js +19 -225
- package/dist/esm/Indicator.js +7 -50
- package/dist/esm/Infiniteloading.js +14 -215
- package/dist/esm/Input.js +12 -362
- package/dist/esm/InputNumber.js +9 -275
- package/dist/esm/Layout.js +5 -13
- package/dist/esm/Menu.js +10 -153
- package/dist/esm/MenuItem.js +15 -175
- package/dist/esm/NavBar.js +9 -114
- package/dist/esm/NoticeBar.js +10 -568
- package/dist/esm/Notify.js +8 -234
- package/dist/esm/NumberKeyboard.js +17 -247
- package/dist/esm/Overlay.js +6 -2
- package/dist/esm/Pagination.js +9 -168
- package/dist/esm/Picker.js +22 -494
- package/dist/esm/Popover.js +12 -223
- package/dist/esm/Popup.js +13 -193
- package/dist/esm/Price.js +6 -84
- package/dist/esm/Progress.js +9 -122
- package/dist/esm/PullToRefresh.js +13 -276
- package/dist/esm/Radio.js +8 -4
- package/dist/esm/RadioGroup.js +7 -120
- package/dist/esm/Range.js +15 -406
- package/dist/esm/Rate.js +9 -121
- package/dist/esm/Row.js +7 -49
- package/dist/esm/SearchBar.js +12 -235
- package/dist/esm/ShortPassword.js +17 -191
- package/dist/esm/SideNavBar.js +19 -57
- package/dist/esm/SideNavBarItem.js +5 -24
- package/dist/esm/Signature.js +13 -153
- package/dist/esm/Skeleton.js +12 -98
- package/dist/esm/Step.js +10 -87
- package/dist/esm/Steps.js +8 -38
- package/dist/esm/Sticky.js +11 -190
- package/dist/esm/SubSideNavBar.js +6 -78
- package/dist/esm/Swipe.js +10 -230
- package/dist/esm/Swiper.js +9 -490
- package/dist/esm/SwiperItem.js +8 -36
- package/dist/esm/Switch.js +6 -71
- package/dist/esm/TabPane.js +5 -2
- package/dist/esm/Tabbar.js +6 -68
- package/dist/esm/TabbarItem.js +9 -78
- package/dist/esm/Table.js +12 -140
- package/dist/esm/Tabs.js +8 -5
- package/dist/esm/Tag.js +10 -110
- package/dist/esm/TextArea.js +9 -148
- package/dist/esm/TimeDetail.js +9 -67
- package/dist/esm/TimePannel.js +9 -29
- package/dist/esm/TimeSelect.js +19 -171
- package/dist/esm/Toast.js +7 -268
- package/dist/esm/TrendArrow.js +7 -99
- package/dist/esm/Uploader.js +17 -566
- package/dist/esm/{UserContext-101ad4a4.js → UserContext-0aac9a82.js} +3 -1
- package/dist/esm/{UserContext-2629d479.js → UserContext-e402e1a6.js} +3 -1
- package/dist/esm/{UserContext-b33bcf21.js → UserContext-e8176108.js} +3 -1
- package/dist/esm/Video.js +7 -90
- package/dist/esm/VirtualList.js +9 -313
- package/dist/esm/WaterMark.js +11 -111
- package/dist/esm/actionsheet.taro-e6a51446.js +53 -0
- package/dist/esm/address.taro-3a9b6396.js +461 -0
- package/dist/esm/animate.taro-fb7986d6.js +40 -0
- package/dist/esm/animatingnumbers.taro-03e5d61d.js +104 -0
- package/dist/esm/audio.taro-87ec8bf2.js +161 -0
- package/dist/esm/avatar.taro-3676f38f.js +103 -0
- package/dist/esm/avatargroup-f3574510.js +34 -0
- package/dist/esm/backtop.taro-66394a36.js +48 -0
- package/dist/esm/badge.taro-a4e59c11.js +52 -0
- package/dist/esm/barrage.taro-0495a1b2.js +94 -0
- package/dist/esm/{bem-3b438e61.js → bem-350c1702.js} +3 -6
- package/dist/esm/button.taro-9244d065.js +100 -0
- package/dist/esm/calendar.taro-670842ea.js +65 -0
- package/dist/esm/calendaritem.taro-2a603571.js +787 -0
- package/dist/esm/can-use-dom-3eeb5af4.js +6 -0
- package/dist/esm/card.taro-e4c76dad.js +33 -0
- package/dist/esm/cascader.taro-eb1fb011.js +438 -0
- package/dist/esm/cell.taro-a10a74d3.js +64 -0
- package/dist/esm/cellgroup.taro-abe501bc.js +25 -0
- package/dist/esm/checkbox.taro-6120e3e3.js +171 -0
- package/dist/esm/circleprogress.taro-79854448.js +109 -0
- package/dist/esm/col.taro-53eed3cc.js +41 -0
- package/dist/esm/collapse.taro-1a9e4ba2.js +83 -0
- package/dist/esm/collapseitem-4d0bc55d.js +83 -0
- package/dist/esm/configprovider-67d19d3a.js +19 -0
- package/dist/esm/configprovider.taro-8d71eb49.js +42 -0
- package/dist/esm/countdown.taro-5b17c607.js +226 -0
- package/dist/esm/datepicker.taro-6e9b4b8f.js +275 -0
- package/dist/esm/dialog.taro-a3267d29.js +118 -0
- package/dist/esm/divider.taro-26d1d8b4.js +35 -0
- package/dist/esm/drag.taro-79bb8744.js +110 -0
- package/dist/esm/elevator.taro-6019669e.js +178 -0
- package/dist/esm/ellipsis.taro-f15f26da.js +241 -0
- package/dist/esm/empty.taro-04ae4389.js +62 -0
- package/dist/esm/fixednav.taro-1f05acaf.js +53 -0
- package/dist/esm/form.taro-0c8e7a39.js +179 -0
- package/dist/esm/formitem.taro-190a3326.js +89 -0
- package/dist/esm/get-scroll-parent-b4a07e65.js +25 -0
- package/dist/esm/grid.taro-3503b82c.js +61 -0
- package/dist/esm/{grid.context-2ee27d95.js → grid.taro.context-c2bbfb4f.js} +4 -2
- package/dist/esm/griditem.taro-cdb3f119.js +98 -0
- package/dist/esm/icon-296a1bec.js +63 -0
- package/dist/esm/icon.taro-296a1bec.js +63 -0
- package/dist/esm/image.taro-142cf512.js +64 -0
- package/dist/esm/imagepreview.taro-c50bb0a3.js +167 -0
- package/dist/esm/index-5bcb0ff8.js +7 -0
- package/dist/esm/indicator.taro-cba8b010.js +37 -0
- package/dist/esm/infiniteloading.taro-183bccbf.js +144 -0
- package/dist/esm/input.taro-97af6c96.js +240 -0
- package/dist/esm/inputnumber.taro-91f65d17.js +130 -0
- package/dist/esm/layout.taro-9046d093.js +11 -0
- package/dist/esm/menu.taro-7e4038a1.js +99 -0
- package/dist/esm/menuitem.taro-96cc4f15.js +130 -0
- package/dist/esm/navbar.taro-777c4705.js +79 -0
- package/dist/esm/noticebar.taro-4a23cdee.js +448 -0
- package/dist/esm/notify.taro-e17c6f82.js +75 -0
- package/dist/esm/numberkeyboard.taro-1bc24744.js +159 -0
- package/dist/esm/nutui-react.es.js +119 -94
- package/dist/esm/offsetContext-c2a746fa.js +5 -0
- package/dist/esm/overlay.taro-21e87fb1.js +69 -0
- package/dist/esm/pagination.taro-715a173b.js +124 -0
- package/dist/esm/picker.taro-9ad1b7c5.js +473 -0
- package/dist/esm/popover.taro-ad5e76ea.js +156 -0
- package/dist/esm/popup.taro-01676bff.js +137 -0
- package/dist/esm/price.taro-776ed16e.js +83 -0
- package/dist/esm/progress.taro-f0ce38e9.js +90 -0
- package/dist/esm/pulltorefresh.taro-a294f656.js +181 -0
- package/dist/esm/radio.taro-a6eff96c.js +168 -0
- package/dist/esm/range.taro-d8fc7656.js +332 -0
- package/dist/esm/rate.taro-6cdf03bd.js +75 -0
- package/dist/esm/row.taro-f64d4a13.js +46 -0
- package/dist/esm/searchbar.taro-0c25927b.js +152 -0
- package/dist/esm/shortpassword.taro-9ee034f7.js +111 -0
- package/dist/esm/sidenavbar.taro-c307b35e.js +35 -0
- package/dist/esm/sidenavbaritem.taro-5a7965d0.js +12 -0
- package/dist/esm/signature.taro-ec4e713b.js +143 -0
- package/dist/esm/skeleton.taro-76faf63f.js +62 -0
- package/dist/esm/step.taro-b7903e8c.js +59 -0
- package/dist/esm/steps.taro-c82d2252.js +30 -0
- package/dist/esm/sticky.taro-218bda37.js +138 -0
- package/dist/esm/subsidenavbar.taro-69cb9752.js +63 -0
- package/dist/esm/supports-passive-c85ef996.js +18 -0
- package/dist/esm/swipe.taro-ea35f07f.js +177 -0
- package/dist/esm/swiper.taro-7a94e211.js +451 -0
- package/dist/esm/swiperitem-c9e3d0d5.js +29 -0
- package/dist/esm/switch.taro-34ca8228.js +50 -0
- package/dist/esm/tabbar.taro-9acfc2fa.js +59 -0
- package/dist/esm/tabbaritem.taro-bf517487.js +58 -0
- package/dist/esm/table.taro-91fc0c01.js +93 -0
- package/dist/esm/tabpane.taro-4ca340ef.js +23 -0
- package/dist/esm/tabs.taro-6a7524a4.js +140 -0
- package/dist/esm/tag.taro-23ba0834.js +92 -0
- package/dist/esm/textarea.taro-442e7350.js +94 -0
- package/dist/esm/timedetail.taro-5b2f2269.js +44 -0
- package/dist/esm/timepannel.taro-d6e40180.js +22 -0
- package/dist/esm/timeselect.taro-a07036f4.js +133 -0
- package/dist/esm/toast.taro-d6c14811.js +109 -0
- package/dist/esm/trendarrow.taro-b8c5ccd9.js +73 -0
- package/dist/esm/typings-b9828dba.js +9 -0
- package/dist/esm/uploader.taro-587e6bf3.js +492 -0
- package/dist/esm/useClientRect-1f8ed1fe.js +18 -0
- package/dist/esm/useTouch-db24bb5c.js +69 -0
- package/dist/esm/video-f1be8a91.js +67 -0
- package/dist/esm/virtuallist.taro-f0b0270d.js +214 -0
- package/dist/esm/watermark.taro-9ce2ae37.js +114 -0
- package/dist/esm/zh-CN-c779e6c1.js +131 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +13030 -14863
- package/dist/nutui.react.umd.js +13029 -14864
- package/dist/style.mjs +1 -1
- package/dist/types/index.d.ts +176 -183
- package/package.json +1 -1
- package/dist/esm/cellgroup-fcc72767.js +0 -34
- package/dist/esm/checkbox-44e13cd0.js +0 -137
- package/dist/esm/date-c7aad4c0.js +0 -97
- package/dist/esm/formitem-8a73a5fb.js +0 -157
- package/dist/esm/get-scroll-parent-5f85dee8.js +0 -24
- package/dist/esm/icon-4ef1581c.js +0 -70
- package/dist/esm/index-030b7245.js +0 -11
- package/dist/esm/offsetContext-3ab00d40.js +0 -16
- package/dist/esm/overlay-de6c79d5.js +0 -83
- package/dist/esm/radio-9f141e6b.js +0 -118
- package/dist/esm/render-bbebb760.js +0 -79
- package/dist/esm/tabpane-01075e6c.js +0 -29
- package/dist/esm/tabs-e1b4e4b1.js +0 -181
- package/dist/esm/typings-f27b58f4.js +0 -8
- package/dist/esm/useClientRect-56bb675b.js +0 -39
- package/dist/esm/useTouch-cf73a407.js +0 -99
|
@@ -1,94 +1,119 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
72
|
-
export {
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
77
|
-
export {
|
|
78
|
-
export {
|
|
79
|
-
export {
|
|
80
|
-
export {
|
|
81
|
-
export {
|
|
82
|
-
export {
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
85
|
-
export {
|
|
86
|
-
export {
|
|
87
|
-
export {
|
|
88
|
-
export {
|
|
89
|
-
export {
|
|
90
|
-
export {
|
|
91
|
-
export {
|
|
92
|
-
export {
|
|
93
|
-
|
|
94
|
-
|
|
1
|
+
export { B as Button } from './button.taro-9244d065.js';
|
|
2
|
+
export { C as Cell } from './cell.taro-a10a74d3.js';
|
|
3
|
+
export { C as CellGroup } from './cellgroup.taro-abe501bc.js';
|
|
4
|
+
export { C as ConfigProvider } from './configprovider.taro-8d71eb49.js';
|
|
5
|
+
export { I as Icon } from './icon.taro-296a1bec.js';
|
|
6
|
+
export { I as Image } from './image.taro-142cf512.js';
|
|
7
|
+
export { O as Overlay } from './overlay.taro-21e87fb1.js';
|
|
8
|
+
export { P as Popup } from './popup.taro-01676bff.js';
|
|
9
|
+
export { C as Col } from './col.taro-53eed3cc.js';
|
|
10
|
+
export { D as Divider } from './divider.taro-26d1d8b4.js';
|
|
11
|
+
export { G as Grid } from './grid.taro-3503b82c.js';
|
|
12
|
+
export { G as GridItem } from './griditem.taro-cdb3f119.js';
|
|
13
|
+
export { L as Layout } from './layout.taro-9046d093.js';
|
|
14
|
+
export { R as Row } from './row.taro-f64d4a13.js';
|
|
15
|
+
export { S as Sticky } from './sticky.taro-218bda37.js';
|
|
16
|
+
export { E as Elevator } from './elevator.taro-6019669e.js';
|
|
17
|
+
export { F as FixedNav } from './fixednav.taro-1f05acaf.js';
|
|
18
|
+
export { I as Indicator } from './indicator.taro-cba8b010.js';
|
|
19
|
+
export { M as Menu } from './menu.taro-7e4038a1.js';
|
|
20
|
+
export { M as MenuItem } from './menuitem.taro-96cc4f15.js';
|
|
21
|
+
export { N as NavBar } from './navbar.taro-777c4705.js';
|
|
22
|
+
export { P as Pagination } from './pagination.taro-715a173b.js';
|
|
23
|
+
export { S as SideNavBar } from './sidenavbar.taro-c307b35e.js';
|
|
24
|
+
export { S as SideNavBarItem } from './sidenavbaritem.taro-5a7965d0.js';
|
|
25
|
+
export { S as SubSideNavBar } from './subsidenavbar.taro-69cb9752.js';
|
|
26
|
+
export { T as Tabbar } from './tabbar.taro-9acfc2fa.js';
|
|
27
|
+
export { T as TabbarItem } from './tabbaritem.taro-bf517487.js';
|
|
28
|
+
export { T as TabPane } from './tabpane.taro-4ca340ef.js';
|
|
29
|
+
export { T as Tabs } from './tabs.taro-6a7524a4.js';
|
|
30
|
+
export { C as Calendar } from './calendar.taro-670842ea.js';
|
|
31
|
+
export { C as CalendarItem } from './calendaritem.taro-2a603571.js';
|
|
32
|
+
export { C as Cascader } from './cascader.taro-eb1fb011.js';
|
|
33
|
+
export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-6120e3e3.js';
|
|
34
|
+
export { D as DatePicker } from './datepicker.taro-6e9b4b8f.js';
|
|
35
|
+
export { F as Form } from './form.taro-0c8e7a39.js';
|
|
36
|
+
export { F as FormItem } from './formitem.taro-190a3326.js';
|
|
37
|
+
export { I as Input } from './input.taro-97af6c96.js';
|
|
38
|
+
export { I as InputNumber } from './inputnumber.taro-91f65d17.js';
|
|
39
|
+
export { N as NumberKeyboard } from './numberkeyboard.taro-1bc24744.js';
|
|
40
|
+
export { P as Picker } from './picker.taro-9ad1b7c5.js';
|
|
41
|
+
export { R as Radio, a as RadioGroup } from './radio.taro-a6eff96c.js';
|
|
42
|
+
export { R as Range } from './range.taro-d8fc7656.js';
|
|
43
|
+
export { R as Rate } from './rate.taro-6cdf03bd.js';
|
|
44
|
+
export { S as SearchBar } from './searchbar.taro-0c25927b.js';
|
|
45
|
+
export { S as ShortPassword } from './shortpassword.taro-9ee034f7.js';
|
|
46
|
+
export { T as TextArea } from './textarea.taro-442e7350.js';
|
|
47
|
+
export { U as Uploader } from './uploader.taro-587e6bf3.js';
|
|
48
|
+
export { A as ActionSheet } from './actionsheet.taro-e6a51446.js';
|
|
49
|
+
export { B as BackTop } from './backtop.taro-66394a36.js';
|
|
50
|
+
export { B as Dialog } from './dialog.taro-a3267d29.js';
|
|
51
|
+
export { D as Drag } from './drag.taro-79bb8744.js';
|
|
52
|
+
export { I as Infiniteloading } from './infiniteloading.taro-183bccbf.js';
|
|
53
|
+
export { N as Notify } from './notify.taro-e17c6f82.js';
|
|
54
|
+
export { P as PullToRefresh } from './pulltorefresh.taro-a294f656.js';
|
|
55
|
+
export { S as Swipe } from './swipe.taro-ea35f07f.js';
|
|
56
|
+
export { S as Switch } from './switch.taro-34ca8228.js';
|
|
57
|
+
export { T as Toast } from './toast.taro-d6c14811.js';
|
|
58
|
+
export { A as Animate } from './animate.taro-fb7986d6.js';
|
|
59
|
+
export { A as AnimatingNumbers } from './animatingnumbers.taro-03e5d61d.js';
|
|
60
|
+
export { A as Audio } from './audio.taro-87ec8bf2.js';
|
|
61
|
+
export { A as Avatar } from './avatar.taro-3676f38f.js';
|
|
62
|
+
export { A as AvatarGroup } from './avatargroup-f3574510.js';
|
|
63
|
+
export { B as Badge } from './badge.taro-a4e59c11.js';
|
|
64
|
+
export { C as CircleProgress } from './circleprogress.taro-79854448.js';
|
|
65
|
+
export { C as Collapse } from './collapse.taro-1a9e4ba2.js';
|
|
66
|
+
export { C as CollapseItem } from './collapseitem-4d0bc55d.js';
|
|
67
|
+
export { C as CountDown } from './countdown.taro-5b17c607.js';
|
|
68
|
+
export { E as Ellipsis } from './ellipsis.taro-f15f26da.js';
|
|
69
|
+
export { E as Empty } from './empty.taro-04ae4389.js';
|
|
70
|
+
export { I as ImagePreview } from './imagepreview.taro-c50bb0a3.js';
|
|
71
|
+
export { N as NoticeBar } from './noticebar.taro-4a23cdee.js';
|
|
72
|
+
export { P as Popover } from './popover.taro-ad5e76ea.js';
|
|
73
|
+
export { P as Price } from './price.taro-776ed16e.js';
|
|
74
|
+
export { P as Progress } from './progress.taro-f0ce38e9.js';
|
|
75
|
+
export { S as Skeleton } from './skeleton.taro-76faf63f.js';
|
|
76
|
+
export { S as Step } from './step.taro-b7903e8c.js';
|
|
77
|
+
export { S as Steps } from './steps.taro-c82d2252.js';
|
|
78
|
+
export { S as Swiper } from './swiper.taro-7a94e211.js';
|
|
79
|
+
export { S as SwiperItem } from './swiperitem-c9e3d0d5.js';
|
|
80
|
+
export { T as Table } from './table.taro-91fc0c01.js';
|
|
81
|
+
export { T as Tag } from './tag.taro-23ba0834.js';
|
|
82
|
+
export { T as TrendArrow } from './trendarrow.taro-b8c5ccd9.js';
|
|
83
|
+
export { V as Video } from './video-f1be8a91.js';
|
|
84
|
+
export { V as VirtualList } from './virtuallist.taro-f0b0270d.js';
|
|
85
|
+
export { W as WaterMark } from './watermark.taro-9ce2ae37.js';
|
|
86
|
+
export { A as Address } from './address.taro-3a9b6396.js';
|
|
87
|
+
export { B as Barrage } from './barrage.taro-0495a1b2.js';
|
|
88
|
+
export { C as Card } from './card.taro-e4c76dad.js';
|
|
89
|
+
export { S as Signature } from './signature.taro-ec4e713b.js';
|
|
90
|
+
export { T as TimeDetail } from './timedetail.taro-5b2f2269.js';
|
|
91
|
+
export { T as TimePannel } from './timepannel.taro-d6e40180.js';
|
|
92
|
+
export { T as TimeSelect } from './timeselect.taro-a07036f4.js';
|
|
93
|
+
import 'react';
|
|
94
|
+
import './typings-b9828dba.js';
|
|
95
|
+
import '@tarojs/taro';
|
|
96
|
+
import './bem-350c1702.js';
|
|
97
|
+
import '@bem-react/classname';
|
|
98
|
+
import 'lodash.kebabcase';
|
|
99
|
+
import './zh-CN-c779e6c1.js';
|
|
100
|
+
import 'classnames';
|
|
101
|
+
import '@tarojs/components';
|
|
102
|
+
import 'react-dom';
|
|
103
|
+
import 'react-transition-group';
|
|
104
|
+
import './UserContext-0aac9a82.js';
|
|
105
|
+
import './grid.taro.context-c2bbfb4f.js';
|
|
106
|
+
import './useClientRect-1f8ed1fe.js';
|
|
107
|
+
import './get-scroll-parent-b4a07e65.js';
|
|
108
|
+
import './can-use-dom-3eeb5af4.js';
|
|
109
|
+
import './offsetContext-c2a746fa.js';
|
|
110
|
+
import './configprovider-67d19d3a.js';
|
|
111
|
+
import './useTouch-db24bb5c.js';
|
|
112
|
+
import './supports-passive-c85ef996.js';
|
|
113
|
+
import './icon-296a1bec.js';
|
|
114
|
+
import './index-5bcb0ff8.js';
|
|
115
|
+
import '@use-gesture/react';
|
|
116
|
+
import '@react-spring/web';
|
|
117
|
+
import './AvatarContext-c96afdcc.js';
|
|
118
|
+
import './UserContext-e402e1a6.js';
|
|
119
|
+
import './UserContext-e8176108.js';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React__default, { useState, useRef, useEffect } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { c as cn } from './bem-350c1702.js';
|
|
4
|
+
import { View } from '@tarojs/components';
|
|
5
|
+
|
|
6
|
+
const defaultOverlayProps = {
|
|
7
|
+
zIndex: 2000,
|
|
8
|
+
duration: 0.3,
|
|
9
|
+
overlayClass: '',
|
|
10
|
+
closeOnClickOverlay: true,
|
|
11
|
+
visible: false,
|
|
12
|
+
lockScroll: true,
|
|
13
|
+
overlayStyle: {},
|
|
14
|
+
};
|
|
15
|
+
const Overlay = (props) => {
|
|
16
|
+
const { children, zIndex, duration, overlayClass, closeOnClickOverlay, visible, lockScroll, overlayStyle, onClick, ...rest } = {
|
|
17
|
+
...defaultOverlayProps,
|
|
18
|
+
...props,
|
|
19
|
+
};
|
|
20
|
+
const [show, setShow] = useState(visible);
|
|
21
|
+
const renderRef = useRef(true);
|
|
22
|
+
const intervalRef = useRef(0);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
visible && setShow(visible);
|
|
25
|
+
lock();
|
|
26
|
+
}, [visible]);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
return () => {
|
|
29
|
+
clearTimeout(intervalRef.current);
|
|
30
|
+
document.body.classList.remove('nut-overflow-hidden');
|
|
31
|
+
};
|
|
32
|
+
}, []);
|
|
33
|
+
const b = cn('overlay');
|
|
34
|
+
const classes = classNames({
|
|
35
|
+
'overlay-fade-leave-active': !renderRef.current && !visible,
|
|
36
|
+
'overlay-fade-enter-active': visible,
|
|
37
|
+
'first-render': renderRef.current && !visible,
|
|
38
|
+
'hidden-render': !visible,
|
|
39
|
+
}, overlayClass, b(''));
|
|
40
|
+
const styles = {
|
|
41
|
+
zIndex,
|
|
42
|
+
animationDuration: `${props.duration}s`,
|
|
43
|
+
...overlayStyle,
|
|
44
|
+
};
|
|
45
|
+
const lock = () => {
|
|
46
|
+
if (lockScroll && visible) {
|
|
47
|
+
document.body.classList.add('nut-overflow-hidden');
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
document.body.classList.remove('nut-overflow-hidden');
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const handleClick = (event) => {
|
|
54
|
+
if (closeOnClickOverlay) {
|
|
55
|
+
onClick && onClick(event);
|
|
56
|
+
renderRef.current = false;
|
|
57
|
+
const id = window.setTimeout(() => {
|
|
58
|
+
setShow(!visible);
|
|
59
|
+
}, duration * 1000 * 0.8);
|
|
60
|
+
intervalRef.current = id;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return (React__default.createElement(React__default.Fragment, null,
|
|
64
|
+
React__default.createElement(View, { className: classes, style: styles, ...rest, catchMove: lockScroll, onClick: handleClick }, children)));
|
|
65
|
+
};
|
|
66
|
+
Overlay.defaultProps = defaultOverlayProps;
|
|
67
|
+
Overlay.displayName = 'NutOverlay';
|
|
68
|
+
|
|
69
|
+
export { Overlay as O, defaultOverlayProps as d };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import React__default, { useState, useEffect } from 'react';
|
|
2
|
+
import { u as useConfig } from './configprovider.taro-8d71eb49.js';
|
|
3
|
+
import { c as cn } from './bem-350c1702.js';
|
|
4
|
+
|
|
5
|
+
const defaultProps = {
|
|
6
|
+
defaultValue: 1,
|
|
7
|
+
mode: 'multi',
|
|
8
|
+
prevText: '',
|
|
9
|
+
nextText: '',
|
|
10
|
+
pageCount: '',
|
|
11
|
+
totalItems: '0',
|
|
12
|
+
itemsPerPage: '10',
|
|
13
|
+
showPageSize: '5',
|
|
14
|
+
forceEllipses: false,
|
|
15
|
+
className: '',
|
|
16
|
+
pageNodeRender: (item) => {
|
|
17
|
+
return item.text;
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
const Pagination = (props) => {
|
|
21
|
+
const { locale } = useConfig();
|
|
22
|
+
({ ...defaultProps, ...props });
|
|
23
|
+
const { modelValue, mode, prevText, nextText, pageCount, totalItems, itemsPerPage, showPageSize, onChange, updatecurrent, forceEllipses, pageNodeRender, defaultValue, className, ...rest } = props;
|
|
24
|
+
const [currentPage, setCurrent] = useState(1);
|
|
25
|
+
const [pages, setPages] = useState([]);
|
|
26
|
+
const [countRef, setCountRef] = useState(Number(pageCount));
|
|
27
|
+
const paginationBem = cn('pagination');
|
|
28
|
+
// 计算页面的数量
|
|
29
|
+
const computedCountRef = () => {
|
|
30
|
+
const num = Number(pageCount) || Math.ceil(Number(totalItems) / Number(itemsPerPage));
|
|
31
|
+
return Number.isNaN(num) ? 1 : Math.max(1, num);
|
|
32
|
+
};
|
|
33
|
+
// 生成pages数组,用来遍历
|
|
34
|
+
const computedPages = (_currentPage, _countRef) => {
|
|
35
|
+
if (mode === 'simple')
|
|
36
|
+
return [];
|
|
37
|
+
const items = [];
|
|
38
|
+
const pageCount = _countRef || countRef; // 总的页面数量
|
|
39
|
+
const pageSize = Number(showPageSize); // 展示的页面个数
|
|
40
|
+
const _current = _currentPage || Number(currentPage); // 当前页
|
|
41
|
+
let startPage = 1;
|
|
42
|
+
let endPage = pageCount;
|
|
43
|
+
const partialShow = pageCount > pageSize;
|
|
44
|
+
if (partialShow) {
|
|
45
|
+
// 选中的page在展示的page中间
|
|
46
|
+
startPage = Math.max(_current - Math.floor(pageSize / 2), 1);
|
|
47
|
+
endPage = startPage + pageSize - 1;
|
|
48
|
+
if (endPage > pageCount) {
|
|
49
|
+
endPage = pageCount;
|
|
50
|
+
startPage = endPage - pageSize + 1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// 遍历生成数组
|
|
54
|
+
for (let i = startPage; i <= endPage; i++) {
|
|
55
|
+
const page = setPage(i, i, _current === i);
|
|
56
|
+
items.push(page);
|
|
57
|
+
}
|
|
58
|
+
// 判断是否有折叠
|
|
59
|
+
if (partialShow && pageSize > 0 && forceEllipses) {
|
|
60
|
+
if (startPage > 1) {
|
|
61
|
+
const prevPage = setPage(startPage - 1, '...');
|
|
62
|
+
items.unshift(prevPage);
|
|
63
|
+
}
|
|
64
|
+
if (endPage < pageCount) {
|
|
65
|
+
const nextPage = setPage(endPage + 1, '...');
|
|
66
|
+
items.push(nextPage);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return items;
|
|
70
|
+
};
|
|
71
|
+
// 点击选择page
|
|
72
|
+
const selectPage = (curPage, isSelect) => {
|
|
73
|
+
if (curPage > countRef || curPage < 1)
|
|
74
|
+
return;
|
|
75
|
+
// 是否传入modelValue
|
|
76
|
+
if (!('modelValue' in props)) {
|
|
77
|
+
setCurrent(Number(curPage));
|
|
78
|
+
if (curPage !== currentPage) {
|
|
79
|
+
setPages(computedPages(curPage));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (curPage !== currentPage) {
|
|
83
|
+
updatecurrent && updatecurrent(curPage);
|
|
84
|
+
}
|
|
85
|
+
if (isSelect)
|
|
86
|
+
onChange && onChange(curPage);
|
|
87
|
+
};
|
|
88
|
+
// set page 对象
|
|
89
|
+
const setPage = (number, text, active) => {
|
|
90
|
+
return { number, text, active };
|
|
91
|
+
};
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
// 初始化 判断是否传入值 计算 当前页,总页数,生成子节点
|
|
94
|
+
let currentValue = props.defaultValue || 1;
|
|
95
|
+
if ('modelValue' in props) {
|
|
96
|
+
currentValue = Number(props.modelValue);
|
|
97
|
+
}
|
|
98
|
+
const pageCount = computedCountRef();
|
|
99
|
+
setCountRef(pageCount);
|
|
100
|
+
setPages(computedPages(currentValue, pageCount));
|
|
101
|
+
}, []);
|
|
102
|
+
if ('modelValue' in props) {
|
|
103
|
+
const current = props.modelValue ? Number(props.modelValue) : 1;
|
|
104
|
+
if (current !== currentPage) {
|
|
105
|
+
setCurrent(current);
|
|
106
|
+
setPages(computedPages(Number(current)));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return (React__default.createElement("div", { className: `${paginationBem('')} ${className}`, ...rest },
|
|
110
|
+
React__default.createElement("div", { className: `${paginationBem('prev')} ${mode === 'multi' ? '' : 'simple-border'} ${currentPage === 1 ? 'disabled' : ''}`, onClick: (e) => selectPage(Number(currentPage) - 1, true) }, prevText || locale.pagination.prev),
|
|
111
|
+
mode === 'multi' ? (React__default.createElement("div", { className: `${paginationBem('contain')}` }, pages.map((item, index) => {
|
|
112
|
+
return (React__default.createElement("div", { key: `${index}pagination`, className: `${paginationBem('item')} ${item.active ? 'active' : ''}`, onClick: (e) => !item.active ? selectPage(item.number, true) : '' }, pageNodeRender ? pageNodeRender(item) : item.text));
|
|
113
|
+
}))) : (''),
|
|
114
|
+
mode === 'simple' ? (React__default.createElement("div", { className: `${paginationBem('contain')}` },
|
|
115
|
+
React__default.createElement("div", { className: `${paginationBem('simple')}` },
|
|
116
|
+
currentPage,
|
|
117
|
+
"/",
|
|
118
|
+
countRef))) : (''),
|
|
119
|
+
React__default.createElement("div", { className: `${paginationBem('next')} ${Number(currentPage) >= countRef ? 'disabled' : ''}`, onClick: (e) => selectPage(Number(currentPage) + 1, true) }, nextText || locale.pagination.next)));
|
|
120
|
+
};
|
|
121
|
+
Pagination.defaultProps = defaultProps;
|
|
122
|
+
Pagination.displayName = 'NutPagination';
|
|
123
|
+
|
|
124
|
+
export { Pagination as P };
|