@nutui/nutui-react-taro 1.5.1 → 2.0.0-alpha.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 +1 -35
- package/dist/esm/ActionSheet.js +6 -6
- package/dist/esm/Address/style/index.js +0 -1
- package/dist/esm/Address.js +11 -12
- package/dist/esm/Audio/style/index.js +0 -1
- package/dist/esm/Audio.js +11 -12
- package/dist/esm/Avatar.js +2 -3
- package/dist/esm/AvatarGroup.js +3 -3
- package/dist/esm/BackTop/style/index.js +1 -1
- package/dist/esm/BackTop.js +4 -5
- package/dist/esm/Badge.js +2 -3
- package/dist/esm/Barrage.js +1 -1
- package/dist/esm/Button/style/index.js +1 -1
- package/dist/esm/Button.js +4 -5
- package/dist/esm/Calendar.js +10 -10
- package/dist/esm/CalendarItem.js +4 -4
- package/dist/esm/Card.js +4 -4
- package/dist/esm/Cascader.js +7 -7
- package/dist/esm/Cell/style/index.js +1 -1
- package/dist/esm/Cell.js +3 -6
- package/dist/esm/CellGroup.js +3 -3
- package/dist/esm/Checkbox/style/index.js +0 -1
- package/dist/esm/Checkbox.js +3 -3
- package/dist/esm/CheckboxGroup.js +3 -3
- package/dist/esm/Collapse.js +1 -1
- package/dist/esm/CollapseItem/style/index.js +1 -1
- package/dist/esm/CollapseItem.js +1 -3
- package/dist/esm/ConfigProvider.js +3 -2
- package/dist/esm/CountDown.js +3 -3
- package/dist/esm/DatePicker.js +10 -12
- package/dist/esm/Dialog.js +6 -8
- package/dist/esm/Divider.js +1 -3
- package/dist/esm/Elevator.js +1 -1
- package/dist/esm/Ellipsis.js +4 -4
- package/dist/esm/Empty.js +3 -3
- package/dist/esm/FixedNav/style/index.js +0 -1
- package/dist/esm/FixedNav.js +6 -8
- package/dist/esm/Form.js +6 -9
- package/dist/esm/FormItem.js +4 -7
- package/dist/esm/Grid/style/index.js +1 -1
- package/dist/esm/Grid.js +4 -6
- package/dist/esm/GridItem.js +3 -8
- package/dist/esm/Icon.js +60 -4
- package/dist/esm/Image.js +4 -6
- package/dist/esm/ImagePreview.js +6 -6
- package/dist/esm/Indicator.js +1 -3
- package/dist/esm/Infiniteloading/style/index.js +1 -1
- package/dist/esm/Infiniteloading.js +4 -5
- package/dist/esm/Input/style/index.js +1 -1
- package/dist/esm/Input.js +5 -7
- package/dist/esm/InputNumber/style/index.js +1 -1
- package/dist/esm/InputNumber.js +4 -5
- package/dist/esm/Menu.js +3 -5
- package/dist/esm/MenuItem/style/index.js +0 -1
- package/dist/esm/MenuItem.js +6 -8
- package/dist/esm/NavBar/style/index.js +1 -1
- package/dist/esm/NavBar.js +3 -3
- package/dist/esm/NoticeBar/style/index.js +1 -1
- package/dist/esm/NoticeBar.js +4 -4
- package/dist/esm/NumberKeyboard.js +7 -7
- package/dist/esm/Overlay.js +2 -3
- package/dist/esm/Pagination.js +6 -5
- package/dist/esm/Picker.js +9 -10
- package/dist/esm/Popover/style/index.js +0 -1
- package/dist/esm/Popover.js +4 -7
- package/dist/esm/Popup/style/index.js +0 -1
- package/dist/esm/Popup.js +5 -5
- package/dist/esm/Progress/style/index.js +1 -1
- package/dist/esm/Progress.js +3 -3
- package/dist/esm/PullToRefresh.js +3 -3
- package/dist/esm/Radio/style/index.js +0 -1
- package/dist/esm/Radio.js +3 -3
- package/dist/esm/RadioGroup.js +3 -3
- package/dist/esm/Range.js +7 -7
- package/dist/esm/Rate/style/index.js +1 -1
- package/dist/esm/Rate.js +4 -5
- package/dist/esm/SearchBar/style/index.js +1 -1
- package/dist/esm/SearchBar.js +5 -5
- package/dist/esm/ShortPassword/style/index.js +0 -1
- package/dist/esm/ShortPassword.js +7 -7
- package/dist/esm/SideNavBar.js +8 -8
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature.js +7 -6
- package/dist/esm/Skeleton.js +3 -4
- package/dist/esm/Step/style/index.js +1 -1
- package/dist/esm/Step.js +2 -3
- package/dist/esm/Sticky.js +3 -4
- package/dist/esm/SubSideNavBar.js +1 -1
- package/dist/esm/Swipe.js +3 -3
- package/dist/esm/TabbarItem/style/index.js +1 -1
- package/dist/esm/TabbarItem.js +2 -3
- package/dist/esm/Table/style/index.js +1 -1
- package/dist/esm/Table.js +5 -5
- package/dist/esm/Tabs/style/index.js +1 -2
- package/dist/esm/Tabs.js +3 -3
- package/dist/esm/Tag/style/index.js +1 -1
- package/dist/esm/Tag.js +3 -5
- package/dist/esm/TextArea.js +3 -3
- package/dist/esm/TimeDetail.js +3 -3
- package/dist/esm/TimePannel.js +3 -3
- package/dist/esm/TimeSelect.js +10 -10
- package/dist/esm/Toast/style/index.js +1 -1
- package/dist/esm/Toast.js +2 -2
- package/dist/esm/TrendArrow/style/index.js +1 -1
- package/dist/esm/TrendArrow.js +2 -2
- package/dist/esm/Uploader/style/index.js +0 -1
- package/dist/esm/Uploader.js +8 -8
- package/dist/esm/Video.js +1 -1
- package/dist/esm/VirtualList.js +3 -3
- package/dist/esm/WaterMark.js +3 -3
- package/dist/esm/{actionsheet.taro-e6a51446.js → actionsheet.taro-b76a342e.js} +5 -5
- package/dist/esm/{address.taro-3a9b6396.js → address.taro-1812caeb.js} +24 -24
- package/dist/esm/{audio.taro-87ec8bf2.js → audio.taro-f672a68c.js} +7 -6
- package/dist/esm/{avatar.taro-3676f38f.js → avatar.taro-de157a1f.js} +8 -6
- package/dist/esm/{avatargroup-f3574510.js → avatargroup-b476ac68.js} +1 -1
- package/dist/esm/backtop.taro-ba271b8f.js +52 -0
- package/dist/esm/{badge.taro-a4e59c11.js → badge.taro-ae154f41.js} +4 -6
- package/dist/esm/{barrage.taro-0495a1b2.js → barrage.taro-80df08d3.js} +2 -2
- package/dist/esm/button.taro-a1c9512f.js +65 -0
- package/dist/esm/{calendar.taro-670842ea.js → calendar.taro-b6b147ca.js} +3 -3
- package/dist/esm/{calendaritem.taro-2a603571.js → calendaritem.taro-ae167e59.js} +3 -3
- package/dist/esm/{card.taro-e4c76dad.js → card.taro-5e9b34c8.js} +1 -1
- package/dist/esm/{cascader.taro-eb1fb011.js → cascader.taro-9c0a1a38.js} +17 -8
- package/dist/esm/cell.taro-26870740.js +43 -0
- package/dist/esm/cellgroup.taro-6e901b54.js +24 -0
- package/dist/esm/{checkbox.taro-6120e3e3.js → checkbox.taro-785c528b.js} +10 -13
- package/dist/esm/{collapse.taro-1a9e4ba2.js → collapse.taro-35a8a0d6.js} +3 -7
- package/dist/esm/{collapseitem-4d0bc55d.js → collapseitem-690eb91c.js} +6 -21
- package/dist/esm/{configprovider-67d19d3a.js → configprovider-9960f0fb.js} +1 -1
- package/dist/esm/{configprovider.taro-8d71eb49.js → configprovider.taro-c8c54556.js} +5 -2
- package/dist/esm/{countdown.taro-dbcb9a4f.js → countdown.taro-0e6bf7a2.js} +1 -1
- package/dist/esm/{datepicker.taro-6e9b4b8f.js → datepicker.taro-439e2080.js} +3 -3
- package/dist/esm/{dialog.taro-a3267d29.js → dialog.taro-00ac41fd.js} +5 -5
- package/dist/esm/divider.taro-6c1657ce.js +31 -0
- package/dist/esm/{elevator.taro-6019669e.js → elevator.taro-81a11ecc.js} +1 -1
- package/dist/esm/{ellipsis.taro-f15f26da.js → ellipsis.taro-b6cda065.js} +2 -2
- package/dist/esm/{empty.taro-04ae4389.js → empty.taro-fde835ca.js} +1 -1
- package/dist/esm/fixednav.taro-39fbd47a.js +54 -0
- package/dist/esm/{form.taro-0c8e7a39.js → form.taro-0d83f1e8.js} +3 -3
- package/dist/esm/{formitem.taro-190a3326.js → formitem.taro-0de07d1e.js} +2 -2
- package/dist/esm/{grid.taro-3503b82c.js → grid.taro-3797169c.js} +12 -24
- package/dist/esm/griditem.taro-04f59ae1.js +80 -0
- package/dist/esm/{image.taro-142cf512.js → image.taro-edb572bb.js} +4 -4
- package/dist/esm/{imagepreview.taro-c50bb0a3.js → imagepreview.taro-867ee24a.js} +1 -1
- package/dist/esm/indicator.taro-c10334e8.js +30 -0
- package/dist/esm/{infiniteloading.taro-183bccbf.js → infiniteloading.taro-73c9b8ca.js} +12 -15
- package/dist/esm/{input.taro-97af6c96.js → input.taro-10ed5500.js} +18 -21
- package/dist/esm/inputnumber.taro-108c4784.js +199 -0
- package/dist/esm/{menu.taro-7e4038a1.js → menu.taro-54951911.js} +6 -7
- package/dist/esm/{menuitem.taro-96cc4f15.js → menuitem.taro-86a6bb6c.js} +8 -10
- package/dist/esm/{navbar.taro-777c4705.js → navbar.taro-69f47d51.js} +8 -10
- package/dist/esm/{noticebar.taro-4a23cdee.js → noticebar.taro-49e7441f.js} +10 -31
- package/dist/esm/{numberkeyboard.taro-1bc24744.js → numberkeyboard.taro-81b36e5e.js} +2 -2
- package/dist/esm/nutui-react.es.js +87 -88
- package/dist/esm/{overlay.taro-21e87fb1.js → overlay.taro-ad0d4775.js} +20 -14
- package/dist/esm/pagination.taro-60b22b27.js +91 -0
- package/dist/esm/{picker.taro-9ad1b7c5.js → picker.taro-5c9030a7.js} +110 -160
- package/dist/esm/{popover.taro-ad5e76ea.js → popover.taro-2a57eae4.js} +12 -15
- package/dist/esm/{popup.taro-01676bff.js → popup.taro-124b9bab.js} +15 -10
- package/dist/esm/{progress.taro-f0ce38e9.js → progress.taro-24392ef3.js} +5 -7
- package/dist/esm/{pulltorefresh.taro-a294f656.js → pulltorefresh.taro-d5fcfcb0.js} +1 -1
- package/dist/esm/{radio.taro-a6eff96c.js → radio.taro-51e10152.js} +16 -7
- package/dist/esm/{range.taro-d8fc7656.js → range.taro-7a2b6ca1.js} +4 -4
- package/dist/esm/rate.taro-57341aa9.js +77 -0
- package/dist/esm/{searchbar.taro-0c25927b.js → searchbar.taro-eef468bb.js} +7 -7
- package/dist/esm/{shortpassword.taro-9ee034f7.js → shortpassword.taro-9a2c98ad.js} +17 -9
- package/dist/esm/{sidenavbar.taro-c307b35e.js → sidenavbar.taro-0265812f.js} +2 -2
- package/dist/esm/{sidenavbaritem.taro-5a7965d0.js → sidenavbaritem.taro-bb80dbf4.js} +2 -2
- package/dist/esm/{signature.taro-ec4e713b.js → signature.taro-f01b2b05.js} +2 -2
- package/dist/esm/{skeleton.taro-76faf63f.js → skeleton.taro-64e858a2.js} +1 -1
- package/dist/esm/{step.taro-b7903e8c.js → step.taro-2ec1f283.js} +5 -6
- package/dist/esm/{sticky.taro-218bda37.js → sticky.taro-b5bde7b1.js} +15 -17
- package/dist/esm/{subsidenavbar.taro-69cb9752.js → subsidenavbar.taro-3cce8442.js} +2 -2
- package/dist/esm/{swipe.taro-ea35f07f.js → swipe.taro-350c9a94.js} +2 -2
- package/dist/esm/{tabbaritem.taro-bf517487.js → tabbaritem.taro-42ba353f.js} +4 -7
- package/dist/esm/{table.taro-91fc0c01.js → table.taro-3946697c.js} +7 -5
- package/dist/esm/{tabs.taro-6a7524a4.js → tabs.taro-be8cacb5.js} +4 -4
- package/dist/esm/{tag.taro-23ba0834.js → tag.taro-0c2567de.js} +10 -10
- package/dist/esm/{textarea.taro-442e7350.js → textarea.taro-a0f79515.js} +1 -1
- package/dist/esm/{timedetail.taro-5b2f2269.js → timedetail.taro-fce4e614.js} +1 -1
- package/dist/esm/{timepannel.taro-d6e40180.js → timepannel.taro-fd3d008d.js} +1 -1
- package/dist/esm/{timeselect.taro-a07036f4.js → timeselect.taro-5b047850.js} +6 -6
- package/dist/esm/{toast.taro-d6c14811.js → toast.taro-e4f44812.js} +6 -7
- package/dist/esm/{trendarrow.taro-b8c5ccd9.js → trendarrow.taro-7cf90def.js} +5 -8
- package/dist/esm/typings-d8491423.js +6 -0
- package/dist/esm/{uploader.taro-5a53aa33.js → uploader.taro-0cca7e97.js} +57 -51
- package/dist/esm/use-props-value-ae7ee726.js +15 -0
- package/dist/esm/{video-f1be8a91.js → video-7ed508cc.js} +4 -4
- package/dist/esm/{virtuallist.taro-f0b0270d.js → virtuallist.taro-35b9bd9a.js} +2 -2
- package/dist/esm/{watermark.taro-9ce2ae37.js → watermark.taro-c780d360.js} +1 -1
- package/dist/esm/{zh-CN-c779e6c1.js → zh-CN-b4f493ba.js} +2 -2
- package/dist/locales/base.d.ts +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +3 -3
- package/dist/locales/id-ID.js +3 -3
- package/dist/locales/zh-CN.js +3 -3
- package/dist/locales/zh-TW.js +3 -3
- package/dist/locales/zh-UG.js +3 -3
- package/dist/nutui.react.mjs +7854 -5031
- package/dist/nutui.react.umd.js +7851 -5028
- package/dist/packages/actionsheet/actionsheet.scss +10 -2
- package/dist/packages/backtop/backtop.scss +0 -8
- package/dist/packages/badge/badge.scss +3 -4
- package/dist/packages/button/button.scss +80 -93
- package/dist/packages/cell/cell.scss +18 -90
- package/dist/packages/cellgroup/cellgroup.scss +26 -20
- package/dist/packages/collapseitem/collapseitem.scss +0 -1
- package/dist/packages/dialog/dialog.scss +1 -1
- package/dist/packages/divider/divider.scss +3 -17
- package/dist/packages/grid/grid.scss +1 -0
- package/dist/packages/griditem/griditem.scss +2 -17
- package/dist/packages/icon/icon.scss +0 -132
- package/dist/packages/image/image.scss +0 -12
- package/dist/packages/indicator/indicator.scss +21 -39
- package/dist/packages/infiniteloading/infiniteloading.scss +4 -12
- package/dist/packages/input/input.scss +4 -0
- package/dist/packages/inputnumber/inputnumber.scss +10 -26
- package/dist/packages/menuitem/menuitem.scss +2 -0
- package/dist/packages/navbar/navbar.scss +4 -5
- package/dist/packages/overlay/overlay.scss +0 -19
- package/dist/packages/picker/picker.scss +97 -103
- package/dist/packages/progress/progress.scss +0 -1
- package/dist/packages/radio/radio.scss +8 -0
- package/dist/packages/rate/rate.scss +29 -6
- package/dist/packages/searchbar/searchbar.scss +0 -1
- package/dist/packages/shortpassword/shortpassword.scss +4 -1
- package/dist/packages/step/step.scss +0 -1
- package/dist/packages/sticky/sticky.scss +1 -1
- package/dist/packages/swiper/swiper.scss +8 -0
- package/dist/packages/tabbaritem/tabbaritem.scss +0 -1
- package/dist/packages/table/table.scss +0 -1
- package/dist/packages/tag/tag.scss +9 -2
- package/dist/packages/timedetail/timedetail.scss +9 -3
- package/dist/packages/timeselect/timeselect.scss +1 -1
- package/dist/packages/toast/toast.scss +0 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/font-jmapp/config.json +175 -0
- package/dist/styles/font-jmapp/demo.css +539 -0
- package/dist/styles/font-jmapp/demo_index.html +1821 -0
- package/dist/styles/font-jmapp/iconfont.css +299 -0
- package/dist/styles/font-jmapp/iconfont.eot +0 -0
- package/dist/styles/font-jmapp/iconfont.js +68 -0
- package/dist/styles/font-jmapp/iconfont.json +506 -0
- package/dist/styles/font-jmapp/iconfont.svg +356 -0
- package/dist/styles/font-jmapp/iconfont.ttf +0 -0
- package/dist/styles/font-jmapp/iconfont.woff +0 -0
- package/dist/styles/font-jmapp/iconfont.woff2 +0 -0
- package/dist/styles/theme-default.scss +1 -0
- package/dist/styles/theme-jmapp.scss +41 -0
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/variables-jmapp.scss +2601 -0
- package/dist/styles/variables.scss +49 -73
- package/dist/types/index.d.ts +145 -242
- package/package.json +23 -154
- package/dist/esm/Icon/style/index.js +0 -4
- package/dist/esm/backtop.taro-66394a36.js +0 -48
- package/dist/esm/button.taro-9244d065.js +0 -100
- package/dist/esm/cell.taro-a10a74d3.js +0 -64
- package/dist/esm/cellgroup.taro-abe501bc.js +0 -25
- package/dist/esm/divider.taro-26d1d8b4.js +0 -35
- package/dist/esm/fixednav.taro-1f05acaf.js +0 -53
- package/dist/esm/grid.taro.context-c2bbfb4f.js +0 -8
- package/dist/esm/griditem.taro-cdb3f119.js +0 -98
- package/dist/esm/icon-296a1bec.js +0 -63
- package/dist/esm/icon.taro-296a1bec.js +0 -63
- package/dist/esm/indicator.taro-cba8b010.js +0 -37
- package/dist/esm/inputnumber.taro-91f65d17.js +0 -130
- package/dist/esm/pagination.taro-715a173b.js +0 -124
- package/dist/esm/rate.taro-6cdf03bd.js +0 -75
- package/dist/esm/typings-b9828dba.js +0 -9
- /package/dist/esm/{useClientRect-1f8ed1fe.js → use-client-rect-1f8ed1fe.js} +0 -0
- /package/dist/esm/{useTouch-db24bb5c.js → use-touch-db24bb5c.js} +0 -0
|
@@ -1,119 +1,118 @@
|
|
|
1
|
-
export { B as Button } from './button.taro-
|
|
2
|
-
export { C as Cell } from './cell.taro-
|
|
3
|
-
export { C as CellGroup } from './cellgroup.taro-
|
|
4
|
-
export { C as ConfigProvider } from './configprovider.taro-
|
|
5
|
-
export { I as
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export { P as Popup } from './popup.taro-01676bff.js';
|
|
1
|
+
export { B as Button } from './button.taro-a1c9512f.js';
|
|
2
|
+
export { C as Cell } from './cell.taro-26870740.js';
|
|
3
|
+
export { C as CellGroup } from './cellgroup.taro-6e901b54.js';
|
|
4
|
+
export { C as ConfigProvider } from './configprovider.taro-c8c54556.js';
|
|
5
|
+
export { I as Image } from './image.taro-edb572bb.js';
|
|
6
|
+
export { O as Overlay } from './overlay.taro-ad0d4775.js';
|
|
7
|
+
export { P as Popup } from './popup.taro-124b9bab.js';
|
|
9
8
|
export { C as Col } from './col.taro-53eed3cc.js';
|
|
10
|
-
export { D as Divider } from './divider.taro-
|
|
11
|
-
export { G as Grid } from './grid.taro-
|
|
12
|
-
export { G as GridItem } from './griditem.taro-
|
|
9
|
+
export { D as Divider } from './divider.taro-6c1657ce.js';
|
|
10
|
+
export { G as Grid } from './grid.taro-3797169c.js';
|
|
11
|
+
export { G as GridItem } from './griditem.taro-04f59ae1.js';
|
|
13
12
|
export { L as Layout } from './layout.taro-9046d093.js';
|
|
14
13
|
export { R as Row } from './row.taro-f64d4a13.js';
|
|
15
|
-
export { S as Sticky } from './sticky.taro-
|
|
16
|
-
export { E as Elevator } from './elevator.taro-
|
|
17
|
-
export { F as FixedNav } from './fixednav.taro-
|
|
18
|
-
export { I as Indicator } from './indicator.taro-
|
|
19
|
-
export { M as Menu } from './menu.taro-
|
|
20
|
-
export { M as MenuItem } from './menuitem.taro-
|
|
21
|
-
export { N as NavBar } from './navbar.taro-
|
|
22
|
-
export { P as Pagination } from './pagination.taro-
|
|
23
|
-
export { S as SideNavBar } from './sidenavbar.taro-
|
|
24
|
-
export { S as SideNavBarItem } from './sidenavbaritem.taro-
|
|
25
|
-
export { S as SubSideNavBar } from './subsidenavbar.taro-
|
|
14
|
+
export { S as Sticky } from './sticky.taro-b5bde7b1.js';
|
|
15
|
+
export { E as Elevator } from './elevator.taro-81a11ecc.js';
|
|
16
|
+
export { F as FixedNav } from './fixednav.taro-39fbd47a.js';
|
|
17
|
+
export { I as Indicator } from './indicator.taro-c10334e8.js';
|
|
18
|
+
export { M as Menu } from './menu.taro-54951911.js';
|
|
19
|
+
export { M as MenuItem } from './menuitem.taro-86a6bb6c.js';
|
|
20
|
+
export { N as NavBar } from './navbar.taro-69f47d51.js';
|
|
21
|
+
export { P as Pagination } from './pagination.taro-60b22b27.js';
|
|
22
|
+
export { S as SideNavBar } from './sidenavbar.taro-0265812f.js';
|
|
23
|
+
export { S as SideNavBarItem } from './sidenavbaritem.taro-bb80dbf4.js';
|
|
24
|
+
export { S as SubSideNavBar } from './subsidenavbar.taro-3cce8442.js';
|
|
26
25
|
export { T as Tabbar } from './tabbar.taro-9acfc2fa.js';
|
|
27
|
-
export { T as TabbarItem } from './tabbaritem.taro-
|
|
26
|
+
export { T as TabbarItem } from './tabbaritem.taro-42ba353f.js';
|
|
28
27
|
export { T as TabPane } from './tabpane.taro-4ca340ef.js';
|
|
29
|
-
export { T as Tabs } from './tabs.taro-
|
|
30
|
-
export { C as Calendar } from './calendar.taro-
|
|
31
|
-
export { C as CalendarItem } from './calendaritem.taro-
|
|
32
|
-
export { C as Cascader } from './cascader.taro-
|
|
33
|
-
export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-
|
|
34
|
-
export { D as DatePicker } from './datepicker.taro-
|
|
35
|
-
export { F as Form } from './form.taro-
|
|
36
|
-
export { F as FormItem } from './formitem.taro-
|
|
37
|
-
export { I as Input } from './input.taro-
|
|
38
|
-
export { I as InputNumber } from './inputnumber.taro-
|
|
39
|
-
export { N as NumberKeyboard } from './numberkeyboard.taro-
|
|
40
|
-
export { P as Picker } from './picker.taro-
|
|
41
|
-
export { R as Radio, a as RadioGroup } from './radio.taro-
|
|
42
|
-
export { R as Range } from './range.taro-
|
|
43
|
-
export { R as Rate } from './rate.taro-
|
|
44
|
-
export { S as SearchBar } from './searchbar.taro-
|
|
45
|
-
export { S as ShortPassword } from './shortpassword.taro-
|
|
46
|
-
export { T as TextArea } from './textarea.taro-
|
|
47
|
-
export { U as Uploader } from './uploader.taro-
|
|
48
|
-
export { A as ActionSheet } from './actionsheet.taro-
|
|
49
|
-
export { B as BackTop } from './backtop.taro-
|
|
50
|
-
export { B as Dialog } from './dialog.taro-
|
|
28
|
+
export { T as Tabs } from './tabs.taro-be8cacb5.js';
|
|
29
|
+
export { C as Calendar } from './calendar.taro-b6b147ca.js';
|
|
30
|
+
export { C as CalendarItem } from './calendaritem.taro-ae167e59.js';
|
|
31
|
+
export { C as Cascader } from './cascader.taro-9c0a1a38.js';
|
|
32
|
+
export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-785c528b.js';
|
|
33
|
+
export { D as DatePicker } from './datepicker.taro-439e2080.js';
|
|
34
|
+
export { F as Form } from './form.taro-0d83f1e8.js';
|
|
35
|
+
export { F as FormItem } from './formitem.taro-0de07d1e.js';
|
|
36
|
+
export { I as Input } from './input.taro-10ed5500.js';
|
|
37
|
+
export { I as InputNumber } from './inputnumber.taro-108c4784.js';
|
|
38
|
+
export { N as NumberKeyboard } from './numberkeyboard.taro-81b36e5e.js';
|
|
39
|
+
export { P as Picker } from './picker.taro-5c9030a7.js';
|
|
40
|
+
export { R as Radio, a as RadioGroup } from './radio.taro-51e10152.js';
|
|
41
|
+
export { R as Range } from './range.taro-7a2b6ca1.js';
|
|
42
|
+
export { R as Rate } from './rate.taro-57341aa9.js';
|
|
43
|
+
export { S as SearchBar } from './searchbar.taro-eef468bb.js';
|
|
44
|
+
export { S as ShortPassword } from './shortpassword.taro-9a2c98ad.js';
|
|
45
|
+
export { T as TextArea } from './textarea.taro-a0f79515.js';
|
|
46
|
+
export { U as Uploader } from './uploader.taro-0cca7e97.js';
|
|
47
|
+
export { A as ActionSheet } from './actionsheet.taro-b76a342e.js';
|
|
48
|
+
export { B as BackTop } from './backtop.taro-ba271b8f.js';
|
|
49
|
+
export { B as Dialog } from './dialog.taro-00ac41fd.js';
|
|
51
50
|
export { D as Drag } from './drag.taro-79bb8744.js';
|
|
52
|
-
export { I as Infiniteloading } from './infiniteloading.taro-
|
|
51
|
+
export { I as Infiniteloading } from './infiniteloading.taro-73c9b8ca.js';
|
|
53
52
|
export { N as Notify } from './notify.taro-e17c6f82.js';
|
|
54
|
-
export { P as PullToRefresh } from './pulltorefresh.taro-
|
|
55
|
-
export { S as Swipe } from './swipe.taro-
|
|
53
|
+
export { P as PullToRefresh } from './pulltorefresh.taro-d5fcfcb0.js';
|
|
54
|
+
export { S as Swipe } from './swipe.taro-350c9a94.js';
|
|
56
55
|
export { S as Switch } from './switch.taro-34ca8228.js';
|
|
57
|
-
export { T as Toast } from './toast.taro-
|
|
56
|
+
export { T as Toast } from './toast.taro-e4f44812.js';
|
|
58
57
|
export { A as Animate } from './animate.taro-fb7986d6.js';
|
|
59
58
|
export { A as AnimatingNumbers } from './animatingnumbers.taro-03e5d61d.js';
|
|
60
|
-
export { A as Audio } from './audio.taro-
|
|
61
|
-
export { A as Avatar } from './avatar.taro-
|
|
62
|
-
export { A as AvatarGroup } from './avatargroup-
|
|
63
|
-
export { B as Badge } from './badge.taro-
|
|
59
|
+
export { A as Audio } from './audio.taro-f672a68c.js';
|
|
60
|
+
export { A as Avatar } from './avatar.taro-de157a1f.js';
|
|
61
|
+
export { A as AvatarGroup } from './avatargroup-b476ac68.js';
|
|
62
|
+
export { B as Badge } from './badge.taro-ae154f41.js';
|
|
64
63
|
export { C as CircleProgress } from './circleprogress.taro-79854448.js';
|
|
65
|
-
export { C as Collapse } from './collapse.taro-
|
|
66
|
-
export { C as CollapseItem } from './collapseitem-
|
|
67
|
-
export { C as CountDown } from './countdown.taro-
|
|
68
|
-
export { E as Ellipsis } from './ellipsis.taro-
|
|
69
|
-
export { E as Empty } from './empty.taro-
|
|
70
|
-
export { I as ImagePreview } from './imagepreview.taro-
|
|
71
|
-
export { N as NoticeBar } from './noticebar.taro-
|
|
72
|
-
export { P as Popover } from './popover.taro-
|
|
64
|
+
export { C as Collapse } from './collapse.taro-35a8a0d6.js';
|
|
65
|
+
export { C as CollapseItem } from './collapseitem-690eb91c.js';
|
|
66
|
+
export { C as CountDown } from './countdown.taro-0e6bf7a2.js';
|
|
67
|
+
export { E as Ellipsis } from './ellipsis.taro-b6cda065.js';
|
|
68
|
+
export { E as Empty } from './empty.taro-fde835ca.js';
|
|
69
|
+
export { I as ImagePreview } from './imagepreview.taro-867ee24a.js';
|
|
70
|
+
export { N as NoticeBar } from './noticebar.taro-49e7441f.js';
|
|
71
|
+
export { P as Popover } from './popover.taro-2a57eae4.js';
|
|
73
72
|
export { P as Price } from './price.taro-776ed16e.js';
|
|
74
|
-
export { P as Progress } from './progress.taro-
|
|
75
|
-
export { S as Skeleton } from './skeleton.taro-
|
|
76
|
-
export { S as Step } from './step.taro-
|
|
73
|
+
export { P as Progress } from './progress.taro-24392ef3.js';
|
|
74
|
+
export { S as Skeleton } from './skeleton.taro-64e858a2.js';
|
|
75
|
+
export { S as Step } from './step.taro-2ec1f283.js';
|
|
77
76
|
export { S as Steps } from './steps.taro-c82d2252.js';
|
|
78
77
|
export { S as Swiper } from './swiper.taro-7a94e211.js';
|
|
79
78
|
export { S as SwiperItem } from './swiperitem-c9e3d0d5.js';
|
|
80
|
-
export { T as Table } from './table.taro-
|
|
81
|
-
export { T as Tag } from './tag.taro-
|
|
82
|
-
export { T as TrendArrow } from './trendarrow.taro-
|
|
83
|
-
export { V as Video } from './video-
|
|
84
|
-
export { V as VirtualList } from './virtuallist.taro-
|
|
85
|
-
export { W as WaterMark } from './watermark.taro-
|
|
86
|
-
export { A as Address } from './address.taro-
|
|
87
|
-
export { B as Barrage } from './barrage.taro-
|
|
88
|
-
export { C as Card } from './card.taro-
|
|
89
|
-
export { S as Signature } from './signature.taro-
|
|
90
|
-
export { T as TimeDetail } from './timedetail.taro-
|
|
91
|
-
export { T as TimePannel } from './timepannel.taro-
|
|
92
|
-
export { T as TimeSelect } from './timeselect.taro-
|
|
79
|
+
export { T as Table } from './table.taro-3946697c.js';
|
|
80
|
+
export { T as Tag } from './tag.taro-0c2567de.js';
|
|
81
|
+
export { T as TrendArrow } from './trendarrow.taro-7cf90def.js';
|
|
82
|
+
export { V as Video } from './video-7ed508cc.js';
|
|
83
|
+
export { V as VirtualList } from './virtuallist.taro-35b9bd9a.js';
|
|
84
|
+
export { W as WaterMark } from './watermark.taro-c780d360.js';
|
|
85
|
+
export { A as Address } from './address.taro-1812caeb.js';
|
|
86
|
+
export { B as Barrage } from './barrage.taro-80df08d3.js';
|
|
87
|
+
export { C as Card } from './card.taro-5e9b34c8.js';
|
|
88
|
+
export { S as Signature } from './signature.taro-f01b2b05.js';
|
|
89
|
+
export { T as TimeDetail } from './timedetail.taro-fce4e614.js';
|
|
90
|
+
export { T as TimePannel } from './timepannel.taro-fd3d008d.js';
|
|
91
|
+
export { T as TimeSelect } from './timeselect.taro-5b047850.js';
|
|
93
92
|
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
93
|
import 'classnames';
|
|
94
|
+
import '@nutui/icons-react-taro';
|
|
95
|
+
import './typings-d8491423.js';
|
|
96
|
+
import 'lodash.kebabcase';
|
|
97
|
+
import './zh-CN-b4f493ba.js';
|
|
101
98
|
import '@tarojs/components';
|
|
102
99
|
import 'react-dom';
|
|
103
100
|
import 'react-transition-group';
|
|
101
|
+
import './bem-350c1702.js';
|
|
102
|
+
import '@bem-react/classname';
|
|
104
103
|
import './UserContext-0aac9a82.js';
|
|
105
|
-
import '
|
|
106
|
-
import './
|
|
104
|
+
import '@tarojs/taro';
|
|
105
|
+
import './use-client-rect-1f8ed1fe.js';
|
|
107
106
|
import './get-scroll-parent-b4a07e65.js';
|
|
108
107
|
import './can-use-dom-3eeb5af4.js';
|
|
108
|
+
import './use-props-value-ae7ee726.js';
|
|
109
109
|
import './offsetContext-c2a746fa.js';
|
|
110
|
-
import './
|
|
111
|
-
import './useTouch-db24bb5c.js';
|
|
110
|
+
import './use-touch-db24bb5c.js';
|
|
112
111
|
import './supports-passive-c85ef996.js';
|
|
113
|
-
import './icon-296a1bec.js';
|
|
114
112
|
import './index-5bcb0ff8.js';
|
|
115
113
|
import '@use-gesture/react';
|
|
116
114
|
import '@react-spring/web';
|
|
117
115
|
import './AvatarContext-c96afdcc.js';
|
|
116
|
+
import './configprovider-9960f0fb.js';
|
|
118
117
|
import './UserContext-e402e1a6.js';
|
|
119
118
|
import './UserContext-e8176108.js';
|
|
@@ -1,46 +1,52 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import { c as cn } from './bem-350c1702.js';
|
|
4
3
|
import { View } from '@tarojs/components';
|
|
4
|
+
import { C as ComponentDefaults } from './typings-d8491423.js';
|
|
5
5
|
|
|
6
6
|
const defaultOverlayProps = {
|
|
7
|
+
...ComponentDefaults,
|
|
7
8
|
zIndex: 2000,
|
|
8
9
|
duration: 0.3,
|
|
9
|
-
|
|
10
|
-
closeOnClickOverlay: true,
|
|
10
|
+
closeOnOverlayClick: true,
|
|
11
11
|
visible: false,
|
|
12
12
|
lockScroll: true,
|
|
13
|
-
overlayStyle: {},
|
|
14
13
|
};
|
|
14
|
+
const classPrefix = `nut-overlay`;
|
|
15
15
|
const Overlay = (props) => {
|
|
16
|
-
const { children, zIndex, duration,
|
|
16
|
+
const { children, zIndex, duration, className, closeOnOverlayClick, visible, lockScroll, style, afterShow, afterClose, onClick, ...rest } = {
|
|
17
17
|
...defaultOverlayProps,
|
|
18
18
|
...props,
|
|
19
19
|
};
|
|
20
20
|
const [show, setShow] = useState(visible);
|
|
21
21
|
const renderRef = useRef(true);
|
|
22
|
-
const
|
|
22
|
+
const intervalCloseRef = useRef(0);
|
|
23
|
+
const intervalShowRef = useRef(0);
|
|
23
24
|
useEffect(() => {
|
|
24
|
-
|
|
25
|
+
if (visible) {
|
|
26
|
+
intervalShowRef.current = window.setTimeout(() => {
|
|
27
|
+
afterShow && afterShow();
|
|
28
|
+
}, duration * 1000 * 0.8);
|
|
29
|
+
setShow(visible);
|
|
30
|
+
}
|
|
25
31
|
lock();
|
|
26
32
|
}, [visible]);
|
|
27
33
|
useEffect(() => {
|
|
28
34
|
return () => {
|
|
29
|
-
clearTimeout(
|
|
35
|
+
clearTimeout(intervalCloseRef.current);
|
|
36
|
+
clearTimeout(intervalShowRef.current);
|
|
30
37
|
document.body.classList.remove('nut-overflow-hidden');
|
|
31
38
|
};
|
|
32
39
|
}, []);
|
|
33
|
-
const b = cn('overlay');
|
|
34
40
|
const classes = classNames({
|
|
35
41
|
'overlay-fade-leave-active': !renderRef.current && !visible,
|
|
36
42
|
'overlay-fade-enter-active': visible,
|
|
37
43
|
'first-render': renderRef.current && !visible,
|
|
38
44
|
'hidden-render': !visible,
|
|
39
|
-
},
|
|
45
|
+
}, className, classPrefix);
|
|
40
46
|
const styles = {
|
|
41
47
|
zIndex,
|
|
42
48
|
animationDuration: `${props.duration}s`,
|
|
43
|
-
...
|
|
49
|
+
...style,
|
|
44
50
|
};
|
|
45
51
|
const lock = () => {
|
|
46
52
|
if (lockScroll && visible) {
|
|
@@ -51,13 +57,13 @@ const Overlay = (props) => {
|
|
|
51
57
|
}
|
|
52
58
|
};
|
|
53
59
|
const handleClick = (event) => {
|
|
54
|
-
if (
|
|
60
|
+
if (closeOnOverlayClick) {
|
|
55
61
|
onClick && onClick(event);
|
|
56
62
|
renderRef.current = false;
|
|
57
|
-
|
|
63
|
+
intervalCloseRef.current = window.setTimeout(() => {
|
|
64
|
+
afterClose && afterClose();
|
|
58
65
|
setShow(!visible);
|
|
59
66
|
}, duration * 1000 * 0.8);
|
|
60
|
-
intervalRef.current = id;
|
|
61
67
|
}
|
|
62
68
|
};
|
|
63
69
|
return (React__default.createElement(React__default.Fragment, null,
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React__default, { useMemo } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { u as useConfig } from './configprovider.taro-c8c54556.js';
|
|
4
|
+
import { u as usePropsValue } from './use-props-value-ae7ee726.js';
|
|
5
|
+
import { C as ComponentDefaults } from './typings-d8491423.js';
|
|
6
|
+
|
|
7
|
+
const defaultProps = {
|
|
8
|
+
...ComponentDefaults,
|
|
9
|
+
defaultValue: 1,
|
|
10
|
+
mode: 'multi',
|
|
11
|
+
prev: null,
|
|
12
|
+
next: null,
|
|
13
|
+
total: 50,
|
|
14
|
+
pageSize: 10,
|
|
15
|
+
itemSize: 5,
|
|
16
|
+
ellipse: false,
|
|
17
|
+
};
|
|
18
|
+
const Pagination = (props) => {
|
|
19
|
+
const { locale } = useConfig();
|
|
20
|
+
const { value, mode, prev, next, total, pageSize, itemSize, onChange, ellipse, itemRender, defaultValue, className, ...rest } = {
|
|
21
|
+
...defaultProps,
|
|
22
|
+
...props,
|
|
23
|
+
};
|
|
24
|
+
const classPrefix = 'nut-pagination';
|
|
25
|
+
const [currentPage, setCurrentPage] = usePropsValue({
|
|
26
|
+
value,
|
|
27
|
+
defaultValue,
|
|
28
|
+
finalValue: 1,
|
|
29
|
+
onChange,
|
|
30
|
+
});
|
|
31
|
+
// (total + pageSize) => pageCount 计算页面的数量
|
|
32
|
+
const pageCount = useMemo(() => {
|
|
33
|
+
const num = Math.ceil(total / pageSize);
|
|
34
|
+
return Number.isNaN(num) ? 1 : Math.max(1, num);
|
|
35
|
+
}, [total, pageSize]);
|
|
36
|
+
// (currentPage + itemSize + pageCount) => pages 显示的 item 列表
|
|
37
|
+
const pages = useMemo(() => {
|
|
38
|
+
const items = [];
|
|
39
|
+
let startPage = 1;
|
|
40
|
+
let endPage = pageCount;
|
|
41
|
+
const partialShow = pageCount > itemSize;
|
|
42
|
+
if (partialShow) {
|
|
43
|
+
// 选中的 page 放在中间位置
|
|
44
|
+
startPage = Math.max(currentPage - Math.floor(itemSize / 2), 1);
|
|
45
|
+
endPage = startPage + itemSize - 1;
|
|
46
|
+
if (endPage > pageCount) {
|
|
47
|
+
endPage = pageCount;
|
|
48
|
+
startPage = endPage - itemSize + 1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// 遍历生成数组
|
|
52
|
+
for (let i = startPage; i <= endPage; i++) {
|
|
53
|
+
items.push({ number: i, text: i });
|
|
54
|
+
}
|
|
55
|
+
// 判断是否有折叠
|
|
56
|
+
if (partialShow && itemSize > 0 && ellipse) {
|
|
57
|
+
if (startPage > 1) {
|
|
58
|
+
items.unshift({ number: startPage - 1, text: '...' });
|
|
59
|
+
}
|
|
60
|
+
if (endPage < pageCount) {
|
|
61
|
+
items.push({ number: endPage + 1, text: '...' });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return items;
|
|
65
|
+
}, [currentPage, itemSize, pageCount]);
|
|
66
|
+
// 点击选择 page
|
|
67
|
+
const handleSelectPage = (curPage) => {
|
|
68
|
+
if (curPage > pageCount || curPage < 1)
|
|
69
|
+
return;
|
|
70
|
+
setCurrentPage(curPage);
|
|
71
|
+
};
|
|
72
|
+
return (React__default.createElement("div", { className: classNames(classPrefix, className), ...rest },
|
|
73
|
+
React__default.createElement("div", { className: classNames(`${classPrefix}__prev`, mode === 'multi' ? '' : 'simple-border', currentPage === 1 ? 'disabled' : ''), onClick: (e) => handleSelectPage(currentPage - 1) }, prev || locale.pagination.prev),
|
|
74
|
+
mode === 'multi' && (React__default.createElement("div", { className: `${classPrefix}__contain` }, pages.map((item, index) => {
|
|
75
|
+
return (React__default.createElement("div", { key: `${index}pagination`, className: classNames(`${classPrefix}__item`, {
|
|
76
|
+
active: item.number === currentPage,
|
|
77
|
+
}), onClick: (e) => {
|
|
78
|
+
item.number !== currentPage && handleSelectPage(item.number);
|
|
79
|
+
} }, itemRender ? itemRender(item) : item.text));
|
|
80
|
+
}))),
|
|
81
|
+
mode === 'simple' && (React__default.createElement("div", { className: `${classPrefix}__contain` },
|
|
82
|
+
React__default.createElement("div", { className: `${classPrefix}__simple` },
|
|
83
|
+
currentPage,
|
|
84
|
+
"/",
|
|
85
|
+
pageCount))),
|
|
86
|
+
React__default.createElement("div", { className: classNames(`${classPrefix}__next`, currentPage >= pageCount ? 'disabled' : ''), onClick: (e) => handleSelectPage(currentPage + 1) }, next || locale.pagination.next)));
|
|
87
|
+
};
|
|
88
|
+
Pagination.defaultProps = defaultProps;
|
|
89
|
+
Pagination.displayName = 'NutPagination';
|
|
90
|
+
|
|
91
|
+
export { Pagination as P };
|