@nutui/nutui-react-taro 3.0.20 → 3.0.22-cpp
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 +38 -68
- package/dist/cjs/hooks/use-props-value.js +1 -1
- package/dist/cjs/hooks/use-touch.js +4 -4
- package/dist/cjs/locales/base.d.ts +9 -0
- package/dist/cjs/locales/en-US.js +21 -2
- package/dist/cjs/locales/id-ID.js +21 -2
- package/dist/cjs/locales/ja-JP.js +19 -2
- package/dist/cjs/locales/tr-TR.js +21 -2
- package/dist/cjs/locales/zh-CN.js +19 -2
- package/dist/cjs/locales/zh-TW.js +19 -2
- package/dist/cjs/locales/zh-UG.js +21 -2
- package/dist/cjs/packages/actionsheet/style/style.harmony.css +38 -17
- package/dist/cjs/packages/address/address.d.ts +1 -1
- package/dist/cjs/packages/address/cascaderRender.js +1 -1
- package/dist/cjs/packages/address/existRender.js +1 -1
- package/dist/cjs/packages/address/style/style.harmony.css +38 -17
- package/dist/cjs/packages/animatingnumbers/countup.js +3 -1
- package/dist/cjs/packages/audio/audio.js +1 -1
- package/dist/cjs/packages/audio/style/style.harmony.css +0 -3
- package/dist/cjs/packages/avatar/avatar.js +32 -6
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +3 -7
- package/dist/cjs/packages/badge/badge.js +16 -3
- package/dist/cjs/packages/barrage/barrage.js +2 -1
- package/dist/cjs/packages/button/button.d.ts +2 -24
- package/dist/cjs/packages/button/button.js +9 -12
- package/dist/cjs/packages/button/index.d.ts +0 -1
- package/dist/cjs/packages/button/style/button.scss +0 -3
- package/dist/cjs/packages/button/style/style.css +0 -3
- package/dist/cjs/packages/button/style/style.harmony.css +0 -3
- package/dist/cjs/packages/button/style-jmapp/button.scss +0 -3
- package/dist/cjs/packages/button/style-jmapp/style.css +0 -3
- package/dist/cjs/packages/button/style-jrkf/button.scss +0 -3
- package/dist/cjs/packages/button/style-jrkf/style.css +0 -3
- package/dist/cjs/packages/calendar/style/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style/style.css +21 -1
- package/dist/cjs/packages/calendar/style/style.harmony.css +59 -18
- package/dist/cjs/packages/calendar/style-jmapp/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style-jmapp/style.css +21 -1
- package/dist/cjs/packages/calendar/style-jrkf/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style-jrkf/style.css +21 -1
- package/dist/cjs/packages/calendarcard/calendarcard.js +30 -8
- package/dist/cjs/packages/calendarcard/icon.js +12 -23
- package/dist/cjs/packages/calendarcard/style/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style/style.css +13 -0
- package/dist/cjs/packages/calendarcard/style/style.harmony.css +13 -0
- package/dist/cjs/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style-jmapp/style.css +13 -0
- package/dist/cjs/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style-jrkf/style.css +13 -0
- package/dist/cjs/packages/card/card.js +1 -1
- package/dist/cjs/packages/card/style/style.harmony.css +1 -1
- package/dist/cjs/packages/cascader/style/style.harmony.css +38 -17
- package/dist/cjs/packages/cascader/utils.js +4 -4
- package/dist/cjs/packages/cellgroup/cellgroup.js +1 -1
- package/dist/cjs/packages/checkboxgroup/checkboxgroup.js +3 -3
- package/dist/cjs/packages/circleprogress/circleprogress.js +1 -1
- package/dist/cjs/packages/collapseitem/collapseitem.js +1 -1
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/countdown.js +1 -1
- package/dist/cjs/packages/datepicker/datepicker.js +1 -1
- package/dist/cjs/packages/datepicker/style/style.harmony.css +39 -18
- package/dist/cjs/packages/dialog/dialog.js +20 -14
- package/dist/cjs/packages/dialog/style/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style/style.css +1 -1
- package/dist/cjs/packages/dialog/style/style.harmony.css +1 -4
- package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/divider/divider.js +3 -3
- package/dist/cjs/packages/elevator/elevator.js +1 -1
- package/dist/cjs/packages/ellipsis/ellipsis.js +1 -1
- package/dist/cjs/packages/empty/empty.d.ts +4 -4
- package/dist/cjs/packages/empty/style/style.harmony.css +0 -3
- package/dist/cjs/packages/form/form.js +1 -1
- package/dist/cjs/packages/form/style/style.harmony.css +0 -5
- package/dist/cjs/packages/formitem/style/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style/style.css +0 -5
- package/dist/cjs/packages/formitem/style/style.harmony.css +0 -5
- package/dist/cjs/packages/formitem/style-jmapp/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style-jmapp/style.css +0 -5
- package/dist/cjs/packages/formitem/style-jrkf/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style-jrkf/style.css +0 -5
- package/dist/cjs/packages/grid/grid.js +1 -1
- package/dist/cjs/packages/griditem/griditem.js +1 -1
- package/dist/cjs/packages/image/image.js +12 -4
- package/dist/cjs/packages/imagepreview/imagepreview.js +3 -2
- package/dist/cjs/packages/imagepreview/style/style.harmony.css +38 -17
- package/dist/cjs/packages/indicator/indicator.js +1 -1
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +3 -3
- package/dist/cjs/packages/input/input.js +11 -4
- package/dist/cjs/packages/inputnumber/inputnumber.js +2 -2
- package/dist/cjs/packages/loading/loading.js +1 -1
- package/dist/cjs/packages/lottie/lottiemp.js +10 -18
- package/dist/cjs/packages/menu/menu.js +1 -1
- package/dist/cjs/packages/numberkeyboard/style/style.css +1 -1
- package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +39 -18
- package/dist/cjs/packages/nutui.react.build.d.ts +3 -1
- package/dist/cjs/packages/nutui.react.build.js +18 -14
- package/dist/cjs/packages/nutui.react.d.ts +4 -1
- package/dist/cjs/packages/nutui.react.js +19 -14
- package/dist/cjs/packages/nutui.react.scss.d.ts +1 -0
- package/dist/cjs/packages/nutui.react.scss.js +1 -0
- package/dist/cjs/packages/overlay/overlay.js +4 -4
- package/dist/cjs/packages/pagination/pagination.js +1 -1
- package/dist/cjs/packages/picker/picker.js +1 -1
- package/dist/cjs/packages/picker/style/style.css +1 -1
- package/dist/cjs/packages/picker/style/style.harmony.css +39 -18
- package/dist/cjs/packages/pickerview/pickerroller.js +1 -1
- package/dist/cjs/packages/popover/popover.js +2 -2
- package/dist/cjs/packages/popover/style/style.harmony.css +38 -17
- package/dist/cjs/packages/popup/popup.js +188 -103
- package/dist/cjs/packages/popup/style/popup.scss +22 -1
- package/dist/cjs/packages/popup/style/style.css +38 -17
- package/dist/cjs/packages/popup/style/style.harmony.css +38 -17
- package/dist/cjs/packages/popup/style-jmapp/popup.scss +22 -1
- package/dist/cjs/packages/popup/style-jmapp/style.css +22 -1
- package/dist/cjs/packages/popup/style-jrkf/popup.scss +22 -1
- package/dist/cjs/packages/popup/style-jrkf/style.css +22 -1
- package/dist/cjs/packages/price/price.js +52 -13
- package/dist/cjs/packages/progress/progress.js +7 -12
- package/dist/cjs/packages/quickenter/index.d.ts +3 -0
- package/dist/cjs/packages/quickenter/index.js +13 -0
- package/dist/cjs/packages/quickenter/quickenter.d.ts +4 -0
- package/dist/cjs/packages/quickenter/quickenter.js +153 -0
- package/dist/cjs/packages/quickenter/style/css.js +2 -0
- package/dist/cjs/packages/quickenter/style/index.js +2 -0
- package/dist/cjs/packages/quickenter/style/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style/style.css +106 -0
- package/dist/cjs/packages/quickenter/style/style.harmony.css +506 -0
- package/dist/cjs/packages/quickenter/style-jmapp/css.js +2 -0
- package/dist/cjs/packages/quickenter/style-jmapp/index.js +2 -0
- package/dist/cjs/packages/quickenter/style-jmapp/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style-jmapp/style.css +106 -0
- package/dist/cjs/packages/quickenter/style-jrkf/css.js +2 -0
- package/dist/cjs/packages/quickenter/style-jrkf/index.js +2 -0
- package/dist/cjs/packages/quickenter/style-jrkf/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style-jrkf/style.css +106 -0
- package/dist/cjs/packages/radio/radio.js +1 -1
- package/dist/cjs/packages/radiogroup/radiogroup.js +3 -3
- package/dist/cjs/packages/range/range.js +35 -10
- package/dist/cjs/packages/rate/rate.js +5 -8
- package/dist/cjs/packages/resultpage/resultpage.js +2 -1
- package/dist/cjs/packages/resultpage/style/style.harmony.css +0 -3
- package/dist/cjs/packages/safearea/safearea.js +3 -12
- package/dist/cjs/packages/safearea/style/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style/style.css +0 -2
- package/dist/cjs/packages/safearea/style/style.harmony.css +0 -2
- package/dist/cjs/packages/safearea/style-jmapp/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style-jmapp/style.css +0 -2
- package/dist/cjs/packages/safearea/style-jrkf/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style-jrkf/style.css +0 -2
- package/dist/cjs/packages/searchbar/searchbar.js +23 -9
- package/dist/cjs/packages/shortpassword/shortpassword.js +1 -1
- package/dist/cjs/packages/shortpassword/style/style.harmony.css +38 -17
- package/dist/cjs/packages/sidebar/sidebar.js +1 -1
- package/dist/cjs/packages/signature/signature.js +2 -2
- package/dist/cjs/packages/skeleton/skeleton.js +1 -1
- package/dist/cjs/packages/step/step.js +3 -8
- package/dist/cjs/packages/step/style/step.scss +0 -2
- package/dist/cjs/packages/step/style/style.css +0 -2
- package/dist/cjs/packages/step/style/style.harmony.css +0 -2
- package/dist/cjs/packages/step/style-jmapp/step.scss +0 -2
- package/dist/cjs/packages/step/style-jmapp/style.css +0 -2
- package/dist/cjs/packages/step/style-jrkf/step.scss +0 -2
- package/dist/cjs/packages/step/style-jrkf/style.css +0 -2
- package/dist/cjs/packages/steps/style/steps.scss +10 -3
- package/dist/cjs/packages/steps/style/style.css +13 -7
- package/dist/cjs/packages/steps/style/style.harmony.css +13 -9
- package/dist/cjs/packages/steps/style-jmapp/steps.scss +10 -3
- package/dist/cjs/packages/steps/style-jmapp/style.css +9 -3
- package/dist/cjs/packages/steps/style-jrkf/steps.scss +10 -3
- package/dist/cjs/packages/steps/style-jrkf/style.css +9 -3
- package/dist/cjs/packages/sticky/sticky.js +3 -3
- package/dist/cjs/packages/swipe/swipe.js +84 -115
- package/dist/cjs/packages/swiper/swiper.js +1 -1
- package/dist/cjs/packages/switch/switch.js +1 -1
- package/dist/cjs/packages/tabbaritem/tabbaritem.js +1 -1
- package/dist/cjs/packages/table/style/style.css +1 -1
- package/dist/cjs/packages/table/style/style.harmony.css +1 -1
- package/dist/cjs/packages/table/style/table.scss +1 -1
- package/dist/cjs/packages/table/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/table/style-jmapp/table.scss +1 -1
- package/dist/cjs/packages/table/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/table/style-jrkf/table.scss +1 -1
- package/dist/cjs/packages/table/table.js +1 -1
- package/dist/cjs/packages/tabs/tabs.js +13 -6
- package/dist/cjs/packages/tag/style/style.css +1 -1
- package/dist/cjs/packages/tag/style/style.harmony.css +1 -1
- package/dist/cjs/packages/tag/style/tag.scss +1 -1
- package/dist/cjs/packages/tag/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/tag/style-jmapp/tag.scss +1 -1
- package/dist/cjs/packages/tag/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/tag/style-jrkf/tag.scss +1 -1
- package/dist/cjs/packages/textarea/textarea.js +1 -1
- package/dist/cjs/packages/timeselect/style/style.harmony.css +38 -17
- package/dist/cjs/packages/timeselect/timeselect.js +1 -1
- package/dist/cjs/packages/toast/style/style.css +2 -4
- package/dist/cjs/packages/toast/style/style.harmony.css +2 -4
- package/dist/cjs/packages/toast/style/toast.scss +2 -4
- package/dist/cjs/packages/toast/style-jmapp/style.css +2 -4
- package/dist/cjs/packages/toast/style-jmapp/toast.scss +2 -4
- package/dist/cjs/packages/toast/style-jrkf/style.css +2 -4
- package/dist/cjs/packages/toast/style-jrkf/toast.scss +2 -4
- package/dist/cjs/packages/toast/toast.js +3 -3
- package/dist/cjs/packages/tour/style/style.harmony.css +38 -17
- package/dist/cjs/packages/trendarrow/trendarrow.js +1 -1
- package/dist/cjs/packages/uploader/uploader.js +1 -1
- package/dist/cjs/packages/video/video.js +2 -2
- package/dist/cjs/packages/virtuallist/utils.js +1 -1
- package/dist/cjs/packages/virtuallist/virtuallist.js +1 -1
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/spec/button/base.d.ts +2 -1
- package/dist/cjs/types/spec/button/taro.d.ts +5 -1
- package/dist/cjs/types/spec/calendarcard/base.d.ts +2 -0
- package/dist/cjs/types/spec/dialog/base.d.ts +1 -0
- package/dist/cjs/types/spec/dialog/h5.d.ts +2 -0
- package/dist/cjs/types/spec/dialog/taro.d.ts +2 -0
- package/dist/cjs/types/spec/overlay/base.d.ts +1 -0
- package/dist/cjs/types/spec/popup/base.d.ts +2 -0
- package/dist/cjs/types/spec/price/base.d.ts +1 -0
- package/dist/cjs/types/spec/quickenter/base.d.ts +27 -0
- package/dist/cjs/types/spec/quickenter/base.js +4 -0
- package/dist/cjs/types/spec/quickenter/h5.d.ts +5 -0
- package/dist/cjs/types/spec/quickenter/h5.js +4 -0
- package/dist/cjs/types/spec/quickenter/taro.d.ts +5 -0
- package/dist/cjs/types/spec/quickenter/taro.js +4 -0
- package/dist/cjs/utils/should-render-price-raw.d.ts +2 -0
- package/dist/cjs/utils/should-render-price-raw.js +46 -0
- package/dist/cjs/utils/taro/{ConfigurableCSSTransition copy.js → ConfigurableCSSTransition.js} +13 -53
- package/dist/cjs/utils/taro/get-rect.js +4 -2
- package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
- package/dist/cjs/utils/taro/get-system-info.js +2 -7
- package/dist/es/hooks/taro/use-custom-event.js +4 -3
- package/dist/es/hooks/taro/use-lock-scoll.js +1 -1
- package/dist/es/hooks/use-click-away.js +2 -2
- package/dist/es/hooks/use-lock-scroll.js +3 -3
- package/dist/es/hooks/use-pagination.js +1 -1
- package/dist/es/hooks/use-ref-state.js +3 -3
- package/dist/es/hooks/use-touch.js +13 -13
- package/dist/es/hooks/use-watch.js +1 -1
- package/dist/es/locales/base.d.ts +9 -0
- package/dist/es/locales/en-US.js +24 -5
- package/dist/es/locales/id-ID.js +24 -5
- package/dist/es/locales/ja-JP.js +22 -5
- package/dist/es/locales/tr-TR.js +24 -5
- package/dist/es/locales/zh-CN.js +22 -5
- package/dist/es/locales/zh-TW.js +22 -5
- package/dist/es/locales/zh-UG.js +24 -5
- package/dist/es/packages/actionsheet/actionsheet.js +8 -8
- package/dist/es/packages/actionsheet/style/style.harmony.css +38 -17
- package/dist/es/packages/address/address.d.ts +1 -1
- package/dist/es/packages/address/address.js +10 -10
- package/dist/es/packages/address/cascaderRender.js +4 -4
- package/dist/es/packages/address/elevatorRender.js +17 -17
- package/dist/es/packages/address/existRender.js +5 -5
- package/dist/es/packages/address/style/style.harmony.css +38 -17
- package/dist/es/packages/address/utils.js +5 -5
- package/dist/es/packages/animate/animate.js +3 -3
- package/dist/es/packages/animatingnumbers/countup.js +4 -2
- package/dist/es/packages/audio/audio.js +16 -16
- package/dist/es/packages/audio/style/style.harmony.css +0 -3
- package/dist/es/packages/avatar/avatar.js +35 -9
- package/dist/es/packages/avatarcropper/avatarcropper.js +29 -33
- package/dist/es/packages/avatargroup/avatargroup.js +1 -1
- package/dist/es/packages/backtop/backtop.js +3 -3
- package/dist/es/packages/badge/badge.js +18 -5
- package/dist/es/packages/barrage/barrage.js +10 -9
- package/dist/es/packages/button/button.d.ts +2 -24
- package/dist/es/packages/button/button.js +12 -14
- package/dist/es/packages/button/index.d.ts +0 -1
- package/dist/es/packages/button/style/button.scss +0 -3
- package/dist/es/packages/button/style/style.css +0 -3
- package/dist/es/packages/button/style/style.harmony.css +0 -3
- package/dist/es/packages/button/style-jmapp/button.scss +0 -3
- package/dist/es/packages/button/style-jmapp/style.css +0 -3
- package/dist/es/packages/button/style-jrkf/button.scss +0 -3
- package/dist/es/packages/button/style-jrkf/style.css +0 -3
- package/dist/es/packages/calendar/calendar.js +12 -12
- package/dist/es/packages/calendar/style/calendar.scss +32 -1
- package/dist/es/packages/calendar/style/style.css +21 -1
- package/dist/es/packages/calendar/style/style.harmony.css +59 -18
- package/dist/es/packages/calendar/style-jmapp/calendar.scss +32 -1
- package/dist/es/packages/calendar/style-jmapp/style.css +21 -1
- package/dist/es/packages/calendar/style-jrkf/calendar.scss +32 -1
- package/dist/es/packages/calendar/style-jrkf/style.css +21 -1
- package/dist/es/packages/calendar/utils.js +7 -7
- package/dist/es/packages/calendarcard/calendarcard.js +53 -31
- package/dist/es/packages/calendarcard/icon.js +18 -29
- package/dist/es/packages/calendarcard/style/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style/style.css +13 -0
- package/dist/es/packages/calendarcard/style/style.harmony.css +13 -0
- package/dist/es/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style-jmapp/style.css +13 -0
- package/dist/es/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style-jrkf/style.css +13 -0
- package/dist/es/packages/calendarcard/utils.js +5 -5
- package/dist/es/packages/calendaritem/calendaritem.js +32 -32
- package/dist/es/packages/card/card.js +2 -2
- package/dist/es/packages/card/style/style.harmony.css +1 -1
- package/dist/es/packages/cascader/cascader.js +15 -15
- package/dist/es/packages/cascader/style/style.harmony.css +38 -17
- package/dist/es/packages/cascader/utils.js +6 -6
- package/dist/es/packages/cell/cell.js +4 -4
- package/dist/es/packages/cellgroup/cellgroup.js +2 -2
- package/dist/es/packages/checkbox/checkbox.js +10 -10
- package/dist/es/packages/checkboxgroup/checkboxgroup.js +7 -7
- package/dist/es/packages/circleprogress/circleprogress.js +7 -7
- package/dist/es/packages/col/col.js +2 -2
- package/dist/es/packages/collapse/collapse.js +3 -3
- package/dist/es/packages/collapse/context.js +2 -2
- package/dist/es/packages/collapseitem/collapseitem.js +5 -5
- package/dist/es/packages/configprovider/configprovider.js +5 -5
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/countdown.js +15 -15
- package/dist/es/packages/datepicker/datepicker.js +12 -12
- package/dist/es/packages/datepicker/style/style.harmony.css +39 -18
- package/dist/es/packages/datepicker/utils.js +7 -7
- package/dist/es/packages/datepickerview/datepickerview.js +5 -5
- package/dist/es/packages/dialog/content.js +6 -6
- package/dist/es/packages/dialog/dialog.js +53 -45
- package/dist/es/packages/dialog/style/dialog.scss +1 -1
- package/dist/es/packages/dialog/style/style.css +1 -1
- package/dist/es/packages/dialog/style/style.harmony.css +1 -4
- package/dist/es/packages/dialog/style-jmapp/dialog.scss +1 -1
- package/dist/es/packages/dialog/style-jmapp/style.css +1 -1
- package/dist/es/packages/dialog/style-jrkf/dialog.scss +1 -1
- package/dist/es/packages/dialog/style-jrkf/style.css +1 -1
- package/dist/es/packages/divider/divider.js +4 -4
- package/dist/es/packages/drag/drag.js +5 -5
- package/dist/es/packages/elevator/elevator.js +17 -17
- package/dist/es/packages/ellipsis/ellipsis.js +14 -14
- package/dist/es/packages/empty/empty.d.ts +4 -4
- package/dist/es/packages/empty/empty.js +1 -1
- package/dist/es/packages/empty/style/style.harmony.css +0 -3
- package/dist/es/packages/fixednav/fixednav.js +7 -7
- package/dist/es/packages/form/form.js +7 -7
- package/dist/es/packages/form/style/style.harmony.css +0 -5
- package/dist/es/packages/form/useform.js +4 -4
- package/dist/es/packages/formitem/formitem.js +1 -1
- package/dist/es/packages/formitem/style/formitem.scss +4 -4
- package/dist/es/packages/formitem/style/style.css +0 -5
- package/dist/es/packages/formitem/style/style.harmony.css +0 -5
- package/dist/es/packages/formitem/style-jmapp/formitem.scss +4 -4
- package/dist/es/packages/formitem/style-jmapp/style.css +0 -5
- package/dist/es/packages/formitem/style-jrkf/formitem.scss +4 -4
- package/dist/es/packages/formitem/style-jrkf/style.css +0 -5
- package/dist/es/packages/grid/context.js +1 -1
- package/dist/es/packages/grid/grid.js +4 -4
- package/dist/es/packages/griditem/griditem.js +6 -6
- package/dist/es/packages/hoverbutton/hoverbutton.js +1 -1
- package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +6 -6
- package/dist/es/packages/hoverbuttonitem/utils.js +1 -1
- package/dist/es/packages/image/image.js +18 -10
- package/dist/es/packages/imagepreview/imagepreview.js +16 -15
- package/dist/es/packages/imagepreview/style/style.harmony.css +38 -17
- package/dist/es/packages/indicator/indicator.js +5 -5
- package/dist/es/packages/infiniteloading/infiniteloading.js +14 -14
- package/dist/es/packages/input/input.js +23 -16
- package/dist/es/packages/inputnumber/inputnumber.js +13 -13
- package/dist/es/packages/layout/layout.js +1 -1
- package/dist/es/packages/loading/loading.js +3 -3
- package/dist/es/packages/lottie/index.js +1 -1
- package/dist/es/packages/lottie/lottiemp.js +12 -20
- package/dist/es/packages/menu/menu.js +13 -13
- package/dist/es/packages/menuitem/menuitem.js +12 -12
- package/dist/es/packages/navbar/navbar.js +7 -7
- package/dist/es/packages/noticebar/noticebar.js +22 -22
- package/dist/es/packages/notify/notify.js +8 -8
- package/dist/es/packages/numberkeyboard/numberkeyboard.js +12 -12
- package/dist/es/packages/numberkeyboard/style/style.css +1 -1
- package/dist/es/packages/numberkeyboard/style/style.harmony.css +39 -18
- package/dist/es/packages/nutui.react.build.d.ts +3 -1
- package/dist/es/packages/nutui.react.build.js +3 -1
- package/dist/es/packages/overlay/overlay.js +10 -10
- package/dist/es/packages/pagination/pagination.js +8 -8
- package/dist/es/packages/picker/picker.js +15 -15
- package/dist/es/packages/picker/style/style.css +1 -1
- package/dist/es/packages/picker/style/style.harmony.css +39 -18
- package/dist/es/packages/pickerview/pickerroller.js +12 -12
- package/dist/es/packages/pickerview/pickerview.js +3 -3
- package/dist/es/packages/pickerview/utils.js +6 -6
- package/dist/es/packages/popover/popover.js +16 -16
- package/dist/es/packages/popover/style/style.harmony.css +38 -17
- package/dist/es/packages/popup/popup.js +200 -115
- package/dist/es/packages/popup/style/popup.scss +22 -1
- package/dist/es/packages/popup/style/style.css +38 -17
- package/dist/es/packages/popup/style/style.harmony.css +38 -17
- package/dist/es/packages/popup/style-jmapp/popup.scss +22 -1
- package/dist/es/packages/popup/style-jmapp/style.css +22 -1
- package/dist/es/packages/popup/style-jrkf/popup.scss +22 -1
- package/dist/es/packages/popup/style-jrkf/style.css +22 -1
- package/dist/es/packages/price/price.js +60 -21
- package/dist/es/packages/progress/progress.js +17 -22
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +8 -8
- package/dist/es/packages/quickenter/index.d.ts +3 -0
- package/dist/es/packages/quickenter/index.js +2 -0
- package/dist/es/packages/quickenter/quickenter.d.ts +4 -0
- package/dist/es/packages/quickenter/quickenter.js +141 -0
- package/dist/es/packages/quickenter/style/css.js +2 -0
- package/dist/es/packages/quickenter/style/index.js +2 -0
- package/dist/es/packages/quickenter/style/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style/style.css +106 -0
- package/dist/es/packages/quickenter/style/style.harmony.css +506 -0
- package/dist/es/packages/quickenter/style-jmapp/css.js +2 -0
- package/dist/es/packages/quickenter/style-jmapp/index.js +2 -0
- package/dist/es/packages/quickenter/style-jmapp/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style-jmapp/style.css +106 -0
- package/dist/es/packages/quickenter/style-jrkf/css.js +2 -0
- package/dist/es/packages/quickenter/style-jrkf/index.js +2 -0
- package/dist/es/packages/quickenter/style-jrkf/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style-jrkf/style.css +106 -0
- package/dist/es/packages/radio/radio.js +11 -11
- package/dist/es/packages/radiogroup/radiogroup.js +6 -6
- package/dist/es/packages/range/range.js +44 -19
- package/dist/es/packages/rate/rate.js +16 -19
- package/dist/es/packages/resultpage/resultpage.js +3 -2
- package/dist/es/packages/resultpage/style/style.harmony.css +0 -3
- package/dist/es/packages/row/row.js +4 -4
- package/dist/es/packages/safearea/safearea.js +4 -13
- package/dist/es/packages/safearea/style/safearea.scss +0 -6
- package/dist/es/packages/safearea/style/style.css +0 -2
- package/dist/es/packages/safearea/style/style.harmony.css +0 -2
- package/dist/es/packages/safearea/style-jmapp/safearea.scss +0 -6
- package/dist/es/packages/safearea/style-jmapp/style.css +0 -2
- package/dist/es/packages/safearea/style-jrkf/safearea.scss +0 -6
- package/dist/es/packages/safearea/style-jrkf/style.css +0 -2
- package/dist/es/packages/searchbar/searchbar.js +27 -13
- package/dist/es/packages/segmented/segmented.js +4 -4
- package/dist/es/packages/shortpassword/shortpassword.js +7 -7
- package/dist/es/packages/shortpassword/style/style.harmony.css +38 -17
- package/dist/es/packages/sidebar/sidebar.js +11 -11
- package/dist/es/packages/sidebar/utils.js +1 -1
- package/dist/es/packages/sidebaritem/sidebaritem.js +1 -1
- package/dist/es/packages/signature/signature.js +15 -15
- package/dist/es/packages/skeleton/skeleton.js +4 -4
- package/dist/es/packages/space/space.js +1 -1
- package/dist/es/packages/step/step.js +4 -9
- package/dist/es/packages/step/style/step.scss +0 -2
- package/dist/es/packages/step/style/style.css +0 -2
- package/dist/es/packages/step/style/style.harmony.css +0 -2
- package/dist/es/packages/step/style-jmapp/step.scss +0 -2
- package/dist/es/packages/step/style-jmapp/style.css +0 -2
- package/dist/es/packages/step/style-jrkf/step.scss +0 -2
- package/dist/es/packages/step/style-jrkf/style.css +0 -2
- package/dist/es/packages/steps/steps.js +1 -1
- package/dist/es/packages/steps/style/steps.scss +10 -3
- package/dist/es/packages/steps/style/style.css +13 -7
- package/dist/es/packages/steps/style/style.harmony.css +13 -9
- package/dist/es/packages/steps/style-jmapp/steps.scss +10 -3
- package/dist/es/packages/steps/style-jmapp/style.css +9 -3
- package/dist/es/packages/steps/style-jrkf/steps.scss +10 -3
- package/dist/es/packages/steps/style-jrkf/style.css +9 -3
- package/dist/es/packages/sticky/sticky.js +5 -5
- package/dist/es/packages/swipe/swipe.js +98 -129
- package/dist/es/packages/swiper/swiper.js +7 -7
- package/dist/es/packages/swiperitem/swiperitem.js +1 -1
- package/dist/es/packages/switch/switch.js +6 -6
- package/dist/es/packages/tabbar/tabbar.js +2 -2
- package/dist/es/packages/tabbaritem/tabbaritem.js +10 -10
- package/dist/es/packages/table/style/style.css +1 -1
- package/dist/es/packages/table/style/style.harmony.css +1 -1
- package/dist/es/packages/table/style/table.scss +1 -1
- package/dist/es/packages/table/style-jmapp/style.css +1 -1
- package/dist/es/packages/table/style-jmapp/table.scss +1 -1
- package/dist/es/packages/table/style-jrkf/style.css +1 -1
- package/dist/es/packages/table/style-jrkf/table.scss +1 -1
- package/dist/es/packages/table/table.js +10 -10
- package/dist/es/packages/tabpane/tabpane.js +1 -1
- package/dist/es/packages/tabs/tabs.js +23 -16
- package/dist/es/packages/tag/style/style.css +1 -1
- package/dist/es/packages/tag/style/style.harmony.css +1 -1
- package/dist/es/packages/tag/style/tag.scss +1 -1
- package/dist/es/packages/tag/style-jmapp/style.css +1 -1
- package/dist/es/packages/tag/style-jmapp/tag.scss +1 -1
- package/dist/es/packages/tag/style-jrkf/style.css +1 -1
- package/dist/es/packages/tag/style-jrkf/tag.scss +1 -1
- package/dist/es/packages/tag/tag.js +10 -10
- package/dist/es/packages/textarea/textarea.js +11 -11
- package/dist/es/packages/timedetail/timedetail.js +3 -3
- package/dist/es/packages/timeselect/style/style.harmony.css +38 -17
- package/dist/es/packages/timeselect/timeselect.js +6 -6
- package/dist/es/packages/toast/style/style.css +2 -4
- package/dist/es/packages/toast/style/style.harmony.css +2 -4
- package/dist/es/packages/toast/style/toast.scss +2 -4
- package/dist/es/packages/toast/style-jmapp/style.css +2 -4
- package/dist/es/packages/toast/style-jmapp/toast.scss +2 -4
- package/dist/es/packages/toast/style-jrkf/style.css +2 -4
- package/dist/es/packages/toast/style-jrkf/toast.scss +2 -4
- package/dist/es/packages/toast/toast.js +11 -11
- package/dist/es/packages/tour/style/style.harmony.css +38 -17
- package/dist/es/packages/tour/tour.js +10 -10
- package/dist/es/packages/trendarrow/trendarrow.js +4 -4
- package/dist/es/packages/uploader/preview.js +8 -8
- package/dist/es/packages/uploader/uploader.js +19 -19
- package/dist/es/packages/video/video.js +3 -3
- package/dist/es/packages/virtuallist/utils.js +5 -5
- package/dist/es/packages/virtuallist/virtuallist.js +8 -8
- package/dist/es/packages/watermark/watermark.js +2 -2
- package/dist/es/types/index.d.ts +3 -0
- package/dist/es/types/index.js +3 -0
- package/dist/es/types/spec/button/base.d.ts +2 -1
- package/dist/es/types/spec/button/taro.d.ts +5 -1
- package/dist/es/types/spec/calendarcard/base.d.ts +2 -0
- package/dist/es/types/spec/dialog/base.d.ts +3 -8
- package/dist/es/types/spec/dialog/h5.d.ts +2 -0
- package/dist/es/types/spec/dialog/taro.d.ts +2 -0
- package/dist/es/types/spec/overlay/base.d.ts +1 -0
- package/dist/es/types/spec/popup/base.d.ts +4 -5
- package/dist/es/types/spec/price/base.d.ts +4 -0
- package/dist/es/types/spec/quickenter/base.d.ts +45 -0
- package/dist/es/types/spec/quickenter/base.js +1 -0
- package/dist/es/types/spec/quickenter/h5.d.ts +5 -0
- package/dist/es/types/spec/quickenter/h5.js +1 -0
- package/dist/es/types/spec/quickenter/taro.d.ts +5 -0
- package/dist/es/types/spec/quickenter/taro.js +1 -0
- package/dist/es/utils/clamp.js +1 -1
- package/dist/es/utils/date.js +3 -3
- package/dist/es/utils/get-rect.js +1 -1
- package/dist/es/utils/interceptor.js +1 -1
- package/dist/es/utils/is-date.js +1 -1
- package/dist/es/utils/is-empty.js +1 -1
- package/dist/es/utils/is-function.js +1 -1
- package/dist/es/utils/is-object.js +1 -1
- package/dist/es/utils/is-promise.js +1 -1
- package/dist/es/utils/pad-zero.js +1 -1
- package/dist/es/utils/px-check.js +1 -1
- package/dist/es/utils/should-render-price-raw.d.ts +2 -0
- package/dist/es/utils/should-render-price-raw.js +30 -0
- package/dist/es/utils/sleep.js +1 -1
- package/dist/es/utils/taro/{ConfigurableCSSTransition copy.js → ConfigurableCSSTransition.js} +14 -54
- package/dist/es/utils/taro/get-rect-by-id.js +1 -1
- package/dist/es/utils/taro/get-rect.js +6 -4
- package/dist/es/utils/taro/get-system-info.d.ts +0 -5
- package/dist/es/utils/taro/get-system-info.js +10 -9
- package/dist/es/utils/taro/platform.js +4 -4
- package/dist/es/utils/upper-case-first.js +1 -1
- package/dist/nutui.react.umd.js +11331 -10903
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +36 -35
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +32 -31
- package/dist/style.css +1 -1
- package/dist/style.scss +33 -32
- package/dist/styles/jd-font.scss +2 -2
- package/dist/styles/theme-dark.scss +1 -2
- package/dist/styles/themes/daojia.css +1 -1
- package/dist/styles/themes/dark-daojia.css +1 -1
- package/dist/styles/themes/dark.css +1 -1
- package/dist/styles/themes/default.css +1 -1
- package/dist/styles/variables-daojia.scss +41 -0
- package/dist/styles/variables-jmapp.scss +41 -0
- package/dist/styles/variables-jrkf.scss +41 -0
- package/dist/styles/variables.scss +49 -4
- package/package.json +1 -1
- package/dist/cjs/locales/vi-VN.d.ts +0 -3
- package/dist/cjs/locales/vi-VN.js +0 -170
- package/dist/es/locales/vi-VN.d.ts +0 -3
- package/dist/es/locales/vi-VN.js +0 -160
- /package/dist/cjs/utils/taro/{ConfigurableCSSTransition copy.d.ts → ConfigurableCSSTransition.d.ts} +0 -0
- /package/dist/es/utils/taro/{ConfigurableCSSTransition copy.d.ts → ConfigurableCSSTransition.d.ts} +0 -0
|
@@ -73,11 +73,9 @@
|
|
|
73
73
|
z-index: 1;
|
|
74
74
|
}
|
|
75
75
|
.nut-step-title {
|
|
76
|
-
height: 14px;
|
|
77
76
|
line-height: 14px;
|
|
78
77
|
font-size: var(--nutui-steps-base-title-font-size, var(--nutui-font-size-s, 12px));
|
|
79
78
|
color: var(--nutui-steps-base-title-color, var(--nutui-color-title, #1a1a1a));
|
|
80
|
-
overflow: hidden;
|
|
81
79
|
white-space: nowrap;
|
|
82
80
|
}
|
|
83
81
|
.nut-step-description {
|
|
@@ -215,7 +213,7 @@
|
|
|
215
213
|
}
|
|
216
214
|
.nut-steps-horizontal-double .nut-step-head {
|
|
217
215
|
justify-content: center;
|
|
218
|
-
margin-bottom:
|
|
216
|
+
margin-bottom: 5px;
|
|
219
217
|
}
|
|
220
218
|
.nut-steps-horizontal-double .nut-step-head-dot-wrap, .nut-steps-horizontal-double .nut-step-head-icon-wrap, .nut-steps-horizontal-double .nut-step-head-text-wrap {
|
|
221
219
|
background-color: var(--nutui-steps-background-color, #ffffff);
|
|
@@ -232,7 +230,13 @@
|
|
|
232
230
|
.nut-steps-horizontal-double .nut-step-main {
|
|
233
231
|
align-items: center;
|
|
234
232
|
margin-left: 0;
|
|
235
|
-
|
|
233
|
+
}
|
|
234
|
+
.nut-steps-horizontal-double .nut-step-title {
|
|
235
|
+
height: auto;
|
|
236
|
+
line-height: 20px;
|
|
237
|
+
white-space: normal;
|
|
238
|
+
overflow-wrap: break-word;
|
|
239
|
+
text-align: center;
|
|
236
240
|
}
|
|
237
241
|
.nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-line {
|
|
238
242
|
height: var(--nutui-steps-base-head-icon-size-right, 20px);
|
|
@@ -251,7 +255,7 @@
|
|
|
251
255
|
flex-direction: column;
|
|
252
256
|
}
|
|
253
257
|
.nut-steps-vertical .nut-step {
|
|
254
|
-
padding-bottom: var(--nutui-steps-vertical-item-padding-bottom,
|
|
258
|
+
padding-bottom: var(--nutui-steps-vertical-item-padding-bottom, 12px);
|
|
255
259
|
}
|
|
256
260
|
.nut-steps-vertical .nut-step-last {
|
|
257
261
|
padding-bottom: 0 !important;
|
|
@@ -267,7 +271,7 @@
|
|
|
267
271
|
.nut-steps-vertical .nut-step-head {
|
|
268
272
|
align-items: center;
|
|
269
273
|
justify-content: center;
|
|
270
|
-
height:
|
|
274
|
+
height: 20px;
|
|
271
275
|
}
|
|
272
276
|
.nut-steps-vertical .nut-step-head-icon {
|
|
273
277
|
width: var(--nutui-steps-vertical-item-icon-size, 20px);
|
|
@@ -286,18 +290,18 @@
|
|
|
286
290
|
.nut-steps-vertical .nut-step-title {
|
|
287
291
|
display: flex;
|
|
288
292
|
align-items: center;
|
|
289
|
-
height: var(--nutui-steps-vertical-line-height,
|
|
293
|
+
height: var(--nutui-steps-vertical-line-height, 20px);
|
|
290
294
|
font-size: var(--nutui-steps-vertical-title-font-size, var(--nutui-font-size-l, 15px));
|
|
291
295
|
/* #ifndef dynamic*/
|
|
292
296
|
overflow: auto;
|
|
293
297
|
/* #endif */
|
|
294
298
|
font-weight: 500;
|
|
295
|
-
margin-bottom: var(--nutui-steps-vertical-title-margin-bottom,
|
|
299
|
+
margin-bottom: var(--nutui-steps-vertical-title-margin-bottom, 3px);
|
|
296
300
|
}
|
|
297
301
|
.nut-steps-vertical .nut-step-description {
|
|
298
302
|
margin: var(--nutui-steps-vertical-description-margin, 0 0 1px);
|
|
299
303
|
height: auto;
|
|
300
|
-
line-height: var(--nutui-steps-vertical-line-height,
|
|
304
|
+
line-height: var(--nutui-steps-vertical-line-height, 20px);
|
|
301
305
|
color: var(--nutui-color-title, #1a1a1a);
|
|
302
306
|
font-size: var(--nutui-steps-vertical-description-font-size, var(--nutui-font-size-base, 14px));
|
|
303
307
|
box-sizing: border-box;
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
|
|
129
129
|
&-head {
|
|
130
130
|
justify-content: center;
|
|
131
|
-
margin-bottom:
|
|
131
|
+
margin-bottom: 5px;
|
|
132
132
|
|
|
133
133
|
&-dot-wrap,
|
|
134
134
|
&-icon-wrap,
|
|
@@ -151,7 +151,14 @@
|
|
|
151
151
|
&-main {
|
|
152
152
|
align-items: center;
|
|
153
153
|
margin-left: 0;
|
|
154
|
-
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&-title {
|
|
157
|
+
height: auto;
|
|
158
|
+
line-height: 20px;
|
|
159
|
+
white-space: normal;
|
|
160
|
+
overflow-wrap: break-word;
|
|
161
|
+
text-align: center;
|
|
155
162
|
}
|
|
156
163
|
}
|
|
157
164
|
|
|
@@ -212,7 +219,7 @@
|
|
|
212
219
|
&-head {
|
|
213
220
|
align-items: center;
|
|
214
221
|
justify-content: center;
|
|
215
|
-
height:
|
|
222
|
+
height: 20px;
|
|
216
223
|
|
|
217
224
|
&-icon {
|
|
218
225
|
width: $steps-vertical-head-icon-size;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
.nut-steps-horizontal-double .nut-step-head {
|
|
97
97
|
justify-content: center;
|
|
98
|
-
margin-bottom:
|
|
98
|
+
margin-bottom: 5px;
|
|
99
99
|
}
|
|
100
100
|
.nut-steps-horizontal-double .nut-step-head-dot-wrap, .nut-steps-horizontal-double .nut-step-head-icon-wrap, .nut-steps-horizontal-double .nut-step-head-text-wrap {
|
|
101
101
|
background-color: var(--nutui-steps-background-color, #ffffff);
|
|
@@ -112,7 +112,13 @@
|
|
|
112
112
|
.nut-steps-horizontal-double .nut-step-main {
|
|
113
113
|
align-items: center;
|
|
114
114
|
margin-left: 0;
|
|
115
|
-
|
|
115
|
+
}
|
|
116
|
+
.nut-steps-horizontal-double .nut-step-title {
|
|
117
|
+
height: auto;
|
|
118
|
+
line-height: 20px;
|
|
119
|
+
white-space: normal;
|
|
120
|
+
overflow-wrap: break-word;
|
|
121
|
+
text-align: center;
|
|
116
122
|
}
|
|
117
123
|
.nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-line {
|
|
118
124
|
height: var(--nutui-steps-base-head-icon-size-right, 20px);
|
|
@@ -147,7 +153,7 @@
|
|
|
147
153
|
.nut-steps-vertical .nut-step-head {
|
|
148
154
|
align-items: center;
|
|
149
155
|
justify-content: center;
|
|
150
|
-
height:
|
|
156
|
+
height: 20px;
|
|
151
157
|
}
|
|
152
158
|
.nut-steps-vertical .nut-step-head-icon {
|
|
153
159
|
width: var(--nutui-steps-vertical-item-icon-size, 20px);
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
|
|
129
129
|
&-head {
|
|
130
130
|
justify-content: center;
|
|
131
|
-
margin-bottom:
|
|
131
|
+
margin-bottom: 5px;
|
|
132
132
|
|
|
133
133
|
&-dot-wrap,
|
|
134
134
|
&-icon-wrap,
|
|
@@ -151,7 +151,14 @@
|
|
|
151
151
|
&-main {
|
|
152
152
|
align-items: center;
|
|
153
153
|
margin-left: 0;
|
|
154
|
-
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&-title {
|
|
157
|
+
height: auto;
|
|
158
|
+
line-height: 20px;
|
|
159
|
+
white-space: normal;
|
|
160
|
+
overflow-wrap: break-word;
|
|
161
|
+
text-align: center;
|
|
155
162
|
}
|
|
156
163
|
}
|
|
157
164
|
|
|
@@ -212,7 +219,7 @@
|
|
|
212
219
|
&-head {
|
|
213
220
|
align-items: center;
|
|
214
221
|
justify-content: center;
|
|
215
|
-
height:
|
|
222
|
+
height: 20px;
|
|
216
223
|
|
|
217
224
|
&-icon {
|
|
218
225
|
width: $steps-vertical-head-icon-size;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
.nut-steps-horizontal-double .nut-step-head {
|
|
97
97
|
justify-content: center;
|
|
98
|
-
margin-bottom:
|
|
98
|
+
margin-bottom: 5px;
|
|
99
99
|
}
|
|
100
100
|
.nut-steps-horizontal-double .nut-step-head-dot-wrap, .nut-steps-horizontal-double .nut-step-head-icon-wrap, .nut-steps-horizontal-double .nut-step-head-text-wrap {
|
|
101
101
|
background-color: var(--nutui-steps-background-color, #ffffff);
|
|
@@ -112,7 +112,13 @@
|
|
|
112
112
|
.nut-steps-horizontal-double .nut-step-main {
|
|
113
113
|
align-items: center;
|
|
114
114
|
margin-left: 0;
|
|
115
|
-
|
|
115
|
+
}
|
|
116
|
+
.nut-steps-horizontal-double .nut-step-title {
|
|
117
|
+
height: auto;
|
|
118
|
+
line-height: 20px;
|
|
119
|
+
white-space: normal;
|
|
120
|
+
overflow-wrap: break-word;
|
|
121
|
+
text-align: center;
|
|
116
122
|
}
|
|
117
123
|
.nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-line {
|
|
118
124
|
height: var(--nutui-steps-base-head-icon-size-right, 20px);
|
|
@@ -147,7 +153,7 @@
|
|
|
147
153
|
.nut-steps-vertical .nut-step-head {
|
|
148
154
|
align-items: center;
|
|
149
155
|
justify-content: center;
|
|
150
|
-
height:
|
|
156
|
+
height: 20px;
|
|
151
157
|
}
|
|
152
158
|
.nut-steps-vertical .nut-step-head-icon {
|
|
153
159
|
width: var(--nutui-steps-vertical-item-icon-size, 20px);
|
|
@@ -19,8 +19,8 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
19
19
|
zIndex: 900
|
|
20
20
|
});
|
|
21
21
|
var classPrefix = 'nut-sticky';
|
|
22
|
-
export var Sticky = function(props) {
|
|
23
|
-
var
|
|
22
|
+
export var Sticky = function Sticky(props) {
|
|
23
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), position = _$_object_spread.position, zIndex = _$_object_spread.zIndex, threshold = _$_object_spread.threshold, style = _$_object_spread.style, children = _$_object_spread.children, container = _$_object_spread.container, className = _$_object_spread.className, onChange = _$_object_spread.onChange, rest = _object_without_properties(_$_object_spread, [
|
|
24
24
|
"position",
|
|
25
25
|
"zIndex",
|
|
26
26
|
"threshold",
|
|
@@ -40,13 +40,13 @@ export var Sticky = function(props) {
|
|
|
40
40
|
onChange && onChange(fixed);
|
|
41
41
|
});
|
|
42
42
|
var rootStyle = useMemo(function() {
|
|
43
|
+
var _rootRect_height, _rootRect_width;
|
|
43
44
|
if (!fixed) {
|
|
44
45
|
return {
|
|
45
46
|
height: '',
|
|
46
47
|
width: ''
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
var _rootRect_height, _rootRect_width;
|
|
50
50
|
var style = {
|
|
51
51
|
height: (_rootRect_height = rootRect.height) !== null && _rootRect_height !== void 0 ? _rootRect_height : '',
|
|
52
52
|
width: (_rootRect_width = rootRect.width) !== null && _rootRect_width !== void 0 ? _rootRect_width : ''
|
|
@@ -58,13 +58,13 @@ export var Sticky = function(props) {
|
|
|
58
58
|
rootRect.width
|
|
59
59
|
]);
|
|
60
60
|
var stickyStyle = useMemo(function() {
|
|
61
|
+
var _rootRect_height, _rootRect_width;
|
|
61
62
|
if (!fixed) {
|
|
62
63
|
return _define_property({
|
|
63
64
|
height: '',
|
|
64
65
|
width: ''
|
|
65
66
|
}, position, '');
|
|
66
67
|
}
|
|
67
|
-
var _rootRect_height, _rootRect_width;
|
|
68
68
|
var _obj;
|
|
69
69
|
var style = (_obj = {
|
|
70
70
|
height: (_rootRect_height = rootRect.height) !== null && _rootRect_height !== void 0 ? _rootRect_height : '',
|
|
@@ -81,7 +81,7 @@ export var Sticky = function(props) {
|
|
|
81
81
|
threshold,
|
|
82
82
|
zIndex
|
|
83
83
|
]);
|
|
84
|
-
var handleScroll = function(scrollTop) {
|
|
84
|
+
var handleScroll = function handleScroll(scrollTop) {
|
|
85
85
|
return _async_to_generator(function() {
|
|
86
86
|
var curRootRect, stickyRect, containerRect, difference, curTransform, curFixed, windowHeight;
|
|
87
87
|
return _ts_generator(this, function(_state) {
|
|
@@ -3,13 +3,13 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
|
3
3
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
4
4
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
5
5
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
6
|
-
import React, { forwardRef, useCallback, useEffect, useImperativeHandle,
|
|
6
|
+
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
7
7
|
import classNames from "classnames";
|
|
8
8
|
import { View } from "@tarojs/components";
|
|
9
|
+
import { nextTick, useReady } from "@tarojs/taro";
|
|
9
10
|
import { useTouch } from "../../hooks/use-touch";
|
|
10
11
|
import { getRectInMultiPlatform } from "../../utils/taro/get-rect";
|
|
11
12
|
import { ComponentDefaults } from "../../utils/typings";
|
|
12
|
-
import { harmony } from "../../utils/taro/platform";
|
|
13
13
|
import { useRefState } from "../../hooks/use-ref-state";
|
|
14
14
|
import { useUuid } from "../../hooks/use-uuid";
|
|
15
15
|
function preventDefault(event, isStopPropagation) {
|
|
@@ -29,97 +29,9 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
29
29
|
var uid = useUuid();
|
|
30
30
|
var leftId = "swipe-left-".concat(uid);
|
|
31
31
|
var rightId = "swipe-right-".concat(uid);
|
|
32
|
-
var
|
|
33
|
-
var root = useRef();
|
|
34
|
-
var opened = useRef(false);
|
|
35
|
-
var lockClick = useRef(false);
|
|
36
|
-
var startOffset = useRef(0);
|
|
37
|
-
var _useState = _sliced_to_array(useState({
|
|
38
|
-
offset: 0,
|
|
39
|
-
dragging: false
|
|
40
|
-
}), 2), state = _useState[0], setState = _useState[1];
|
|
41
|
-
var _useRefState = _sliced_to_array(useRefState({
|
|
42
|
-
left: 0,
|
|
43
|
-
right: 0
|
|
44
|
-
}), 2), actionWidth = _useRefState[0], updateState = _useRefState[1];
|
|
45
|
-
var setActionWidth = useCallback(function(fn) {
|
|
46
|
-
var res = fn();
|
|
47
|
-
if (res.left !== undefined) {
|
|
48
|
-
updateState(_object_spread_props(_object_spread({}, actionWidth.current), {
|
|
49
|
-
left: res.left
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
if (res.right !== undefined) {
|
|
53
|
-
updateState(_object_spread_props(_object_spread({}, actionWidth.current), {
|
|
54
|
-
right: res.right
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
|
-
}, [
|
|
58
|
-
actionWidth,
|
|
59
|
-
updateState
|
|
60
|
-
]);
|
|
61
|
-
// 获取元素的时候要在页面 onReady 后,需要参考小程序的事件周期
|
|
62
|
-
useLayoutEffect(function() {
|
|
63
|
-
var getWidth = function() {
|
|
64
|
-
return _async_to_generator(function() {
|
|
65
|
-
var leftRect, rightRect;
|
|
66
|
-
return _ts_generator(this, function(_state) {
|
|
67
|
-
switch(_state.label){
|
|
68
|
-
case 0:
|
|
69
|
-
if (!leftWrapper.current) return [
|
|
70
|
-
3,
|
|
71
|
-
2
|
|
72
|
-
];
|
|
73
|
-
return [
|
|
74
|
-
4,
|
|
75
|
-
getRectInMultiPlatform(leftWrapper.current, leftId)
|
|
76
|
-
];
|
|
77
|
-
case 1:
|
|
78
|
-
leftRect = _state.sent();
|
|
79
|
-
leftRect && setActionWidth(function(v) {
|
|
80
|
-
return _object_spread_props(_object_spread({}, v), {
|
|
81
|
-
left: leftRect.width
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
_state.label = 2;
|
|
85
|
-
case 2:
|
|
86
|
-
if (!rightWrapper.current) return [
|
|
87
|
-
3,
|
|
88
|
-
4
|
|
89
|
-
];
|
|
90
|
-
return [
|
|
91
|
-
4,
|
|
92
|
-
getRectInMultiPlatform(rightWrapper.current, rightId)
|
|
93
|
-
];
|
|
94
|
-
case 3:
|
|
95
|
-
rightRect = _state.sent();
|
|
96
|
-
rightRect && setActionWidth(function(v) {
|
|
97
|
-
return _object_spread_props(_object_spread({}, v), {
|
|
98
|
-
right: rightRect.width
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
_state.label = 4;
|
|
102
|
-
case 4:
|
|
103
|
-
return [
|
|
104
|
-
2
|
|
105
|
-
];
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
})();
|
|
109
|
-
};
|
|
110
|
-
getWidth();
|
|
111
|
-
}, [
|
|
112
|
-
leftId,
|
|
113
|
-
rightId,
|
|
114
|
-
setActionWidth
|
|
115
|
-
]);
|
|
116
|
-
var wrapperStyle = {
|
|
117
|
-
transform: "translate(".concat(state.offset).concat(!harmony() ? 'px' : '', ", 0)"),
|
|
118
|
-
transitionDuration: state.dragging ? '0s' : '.6s'
|
|
119
|
-
};
|
|
120
|
-
var onTouchStart = function(event) {
|
|
32
|
+
var getWidth = function getWidth() {
|
|
121
33
|
return _async_to_generator(function() {
|
|
122
|
-
var leftRect, rightRect
|
|
34
|
+
var leftRect, rightRect;
|
|
123
35
|
return _ts_generator(this, function(_state) {
|
|
124
36
|
switch(_state.label){
|
|
125
37
|
case 0:
|
|
@@ -157,12 +69,6 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
157
69
|
});
|
|
158
70
|
_state.label = 4;
|
|
159
71
|
case 4:
|
|
160
|
-
if (!props.disabled) {
|
|
161
|
-
;
|
|
162
|
-
startOffset.current = state.offset;
|
|
163
|
-
touch.start(event);
|
|
164
|
-
(_props_onTouchStart = props.onTouchStart) === null || _props_onTouchStart === void 0 ? void 0 : _props_onTouchStart.call(props, event);
|
|
165
|
-
}
|
|
166
72
|
return [
|
|
167
73
|
2
|
|
168
74
|
];
|
|
@@ -170,31 +76,89 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
170
76
|
});
|
|
171
77
|
})();
|
|
172
78
|
};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
return;
|
|
79
|
+
// 获取元素的时候要在页面 onReady 后,需要参考小程序的事件周期
|
|
80
|
+
useReady(function() {
|
|
81
|
+
nextTick(function() {
|
|
82
|
+
return getWidth();
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), children = _$_object_spread.children, className = _$_object_spread.className, style = _$_object_spread.style;
|
|
86
|
+
var root = useRef();
|
|
87
|
+
var opened = useRef(false);
|
|
88
|
+
var lockClick = useRef(false);
|
|
89
|
+
var startOffset = useRef(0);
|
|
90
|
+
var _useState = _sliced_to_array(useState({
|
|
91
|
+
offset: 0,
|
|
92
|
+
dragging: false
|
|
93
|
+
}), 2), state = _useState[0], setState = _useState[1];
|
|
94
|
+
var _useRefState = _sliced_to_array(useRefState({
|
|
95
|
+
left: 0,
|
|
96
|
+
right: 0
|
|
97
|
+
}), 2), actionWidth = _useRefState[0], updateState = _useRefState[1];
|
|
98
|
+
var setActionWidth = function setActionWidth(fn) {
|
|
99
|
+
var res = fn();
|
|
100
|
+
if (res.left !== undefined) {
|
|
101
|
+
updateState(_object_spread_props(_object_spread({}, actionWidth.current), {
|
|
102
|
+
left: res.left
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
if (res.right !== undefined) {
|
|
106
|
+
updateState(_object_spread_props(_object_spread({}, actionWidth.current), {
|
|
107
|
+
right: res.right
|
|
108
|
+
}));
|
|
177
109
|
}
|
|
110
|
+
};
|
|
111
|
+
var wrapperStyle = useMemo(function() {
|
|
112
|
+
return {
|
|
113
|
+
transform: "translate(".concat(state.offset, "px, 0)"),
|
|
114
|
+
transitionDuration: state.dragging ? '0.01s' : '.6s'
|
|
115
|
+
};
|
|
116
|
+
}, [
|
|
117
|
+
state.offset,
|
|
118
|
+
state.dragging
|
|
119
|
+
]);
|
|
120
|
+
var onTouchStart = function onTouchStart(event) {
|
|
121
|
+
return _async_to_generator(function() {
|
|
122
|
+
var _props_onTouchStart;
|
|
123
|
+
return _ts_generator(this, function(_state) {
|
|
124
|
+
if (!props.disabled) {
|
|
125
|
+
;
|
|
126
|
+
getWidth();
|
|
127
|
+
startOffset.current = state.offset;
|
|
128
|
+
touch.start(event);
|
|
129
|
+
(_props_onTouchStart = props.onTouchStart) === null || _props_onTouchStart === void 0 ? void 0 : _props_onTouchStart.call(props, event);
|
|
130
|
+
}
|
|
131
|
+
return [
|
|
132
|
+
2
|
|
133
|
+
];
|
|
134
|
+
});
|
|
135
|
+
})();
|
|
136
|
+
};
|
|
137
|
+
var onTouchMove = function onTouchMove(event) {
|
|
138
|
+
var _props_onTouchMove;
|
|
139
|
+
if (props.disabled) return;
|
|
178
140
|
touch.move(event);
|
|
179
141
|
(_props_onTouchMove = props.onTouchMove) === null || _props_onTouchMove === void 0 ? void 0 : _props_onTouchMove.call(props, event);
|
|
180
142
|
if (touch.isHorizontal()) {
|
|
181
143
|
lockClick.current = true;
|
|
182
|
-
var newState = _object_spread_props(_object_spread({}, state), {
|
|
183
|
-
dragging: true
|
|
184
|
-
});
|
|
185
144
|
var isEdge = !opened || touch.deltaX.current * startOffset.current < 0;
|
|
186
145
|
if (isEdge) {
|
|
187
146
|
preventDefault(event, true);
|
|
188
147
|
}
|
|
189
|
-
|
|
190
|
-
setState(
|
|
148
|
+
var offset = rangeCalculation(touch.deltaX.current + startOffset.current, -actionWidth.current.right || 0, actionWidth.current.left || 0);
|
|
149
|
+
setState(function(prevState) {
|
|
150
|
+
return _object_spread_props(_object_spread({}, prevState), {
|
|
151
|
+
dragging: true,
|
|
152
|
+
offset: Number(offset) || 0
|
|
153
|
+
});
|
|
154
|
+
});
|
|
191
155
|
}
|
|
192
156
|
};
|
|
193
|
-
var onTouchEnd = function(event) {
|
|
157
|
+
var onTouchEnd = function onTouchEnd(event) {
|
|
194
158
|
if (state.dragging) {
|
|
195
159
|
var _props_onTouchEnd;
|
|
196
|
-
setState(function(
|
|
197
|
-
return _object_spread_props(_object_spread({},
|
|
160
|
+
setState(function(prevState) {
|
|
161
|
+
return _object_spread_props(_object_spread({}, prevState), {
|
|
198
162
|
dragging: false
|
|
199
163
|
});
|
|
200
164
|
});
|
|
@@ -205,7 +169,7 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
205
169
|
(_props_onTouchEnd = props.onTouchEnd) === null || _props_onTouchEnd === void 0 ? void 0 : _props_onTouchEnd.call(props, event);
|
|
206
170
|
}
|
|
207
171
|
};
|
|
208
|
-
var toggle = function(side) {
|
|
172
|
+
var toggle = function toggle(side) {
|
|
209
173
|
var offset = Math.abs(state.offset);
|
|
210
174
|
var base = 0.3;
|
|
211
175
|
var baseNum = opened ? 1 - base : base;
|
|
@@ -216,7 +180,7 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
216
180
|
close(side);
|
|
217
181
|
}
|
|
218
182
|
};
|
|
219
|
-
var open = function(side) {
|
|
183
|
+
var open = function open(side) {
|
|
220
184
|
var _props_onOpen;
|
|
221
185
|
opened.current = true;
|
|
222
186
|
var offset = side === 'left' ? actionWidth.current.left : -actionWidth.current.right;
|
|
@@ -225,13 +189,13 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
225
189
|
name: name,
|
|
226
190
|
position: side
|
|
227
191
|
});
|
|
228
|
-
setState(function(
|
|
229
|
-
return _object_spread_props(_object_spread({},
|
|
192
|
+
setState(function(prevState) {
|
|
193
|
+
return _object_spread_props(_object_spread({}, prevState), {
|
|
230
194
|
offset: Number(offset) || 0
|
|
231
195
|
});
|
|
232
196
|
});
|
|
233
197
|
};
|
|
234
|
-
var close = function(position) {
|
|
198
|
+
var close = useCallback(function(position) {
|
|
235
199
|
if (opened.current) {
|
|
236
200
|
var _props_onClose;
|
|
237
201
|
opened.current = false;
|
|
@@ -240,31 +204,33 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
240
204
|
position: position || 'left'
|
|
241
205
|
});
|
|
242
206
|
}
|
|
243
|
-
setState(function(
|
|
244
|
-
return _object_spread_props(_object_spread({},
|
|
207
|
+
setState(function(prevState) {
|
|
208
|
+
return _object_spread_props(_object_spread({}, prevState), {
|
|
245
209
|
offset: 0
|
|
246
210
|
});
|
|
247
211
|
});
|
|
248
|
-
}
|
|
249
|
-
|
|
212
|
+
}, [
|
|
213
|
+
props
|
|
214
|
+
]);
|
|
215
|
+
var rangeCalculation = function rangeCalculation(num, min, max) {
|
|
250
216
|
return Math.min(Math.max(Number(num), Number(min)), Number(max));
|
|
251
217
|
};
|
|
252
218
|
var leftWrapper = useRef(null);
|
|
253
219
|
var rightWrapper = useRef(null);
|
|
254
|
-
var renderActionContent = function(side) {
|
|
220
|
+
var renderActionContent = function renderActionContent(side) {
|
|
255
221
|
if (props["".concat(side, "Action")]) {
|
|
256
222
|
return /*#__PURE__*/ React.createElement(View, {
|
|
257
223
|
ref: side === 'left' ? leftWrapper : rightWrapper,
|
|
258
224
|
className: "".concat(classPrefix, "-").concat(side),
|
|
259
225
|
id: side === 'left' ? leftId : rightId,
|
|
260
|
-
onClick: function(e) {
|
|
226
|
+
onClick: function onClick(e) {
|
|
261
227
|
return handleOperate(e, side);
|
|
262
228
|
}
|
|
263
229
|
}, props["".concat(side, "Action")]);
|
|
264
230
|
}
|
|
265
231
|
return null;
|
|
266
232
|
};
|
|
267
|
-
var handleOperate = function(event, position) {
|
|
233
|
+
var handleOperate = function handleOperate(event, position) {
|
|
268
234
|
event.stopPropagation();
|
|
269
235
|
if (props.beforeClose) {
|
|
270
236
|
props.beforeClose(position);
|
|
@@ -276,14 +242,15 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
276
242
|
useImperativeHandle(instanceRef, function() {
|
|
277
243
|
return {
|
|
278
244
|
open: open,
|
|
279
|
-
close: function() {
|
|
245
|
+
close: function close1() {
|
|
280
246
|
return close();
|
|
281
247
|
}
|
|
282
248
|
};
|
|
283
249
|
});
|
|
284
250
|
useEffect(function() {
|
|
285
|
-
if (
|
|
286
|
-
|
|
251
|
+
if (typeof document === 'undefined' || typeof document.addEventListener !== 'function') return;
|
|
252
|
+
// 并没有生效
|
|
253
|
+
var handler = function handler(event) {
|
|
287
254
|
var targets = [
|
|
288
255
|
root
|
|
289
256
|
];
|
|
@@ -299,17 +266,19 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
299
266
|
return function() {
|
|
300
267
|
document.removeEventListener('touchstart', handler);
|
|
301
268
|
};
|
|
302
|
-
}, [
|
|
269
|
+
}, [
|
|
270
|
+
close
|
|
271
|
+
]);
|
|
303
272
|
return /*#__PURE__*/ React.createElement(View, {
|
|
304
273
|
ref: root,
|
|
305
274
|
className: classNames(classPrefix, className),
|
|
306
|
-
onTouchStart: function(e) {
|
|
275
|
+
onTouchStart: function onTouchStart1(e) {
|
|
307
276
|
return onTouchStart(e);
|
|
308
277
|
},
|
|
309
|
-
onTouchMove: function(e) {
|
|
278
|
+
onTouchMove: function onTouchMove1(e) {
|
|
310
279
|
return onTouchMove(e);
|
|
311
280
|
},
|
|
312
|
-
onTouchEnd: function(e) {
|
|
281
|
+
onTouchEnd: function onTouchEnd1(e) {
|
|
313
282
|
return onTouchEnd(e);
|
|
314
283
|
},
|
|
315
284
|
style: style
|
|
@@ -19,7 +19,7 @@ var defaultProps = {
|
|
|
19
19
|
};
|
|
20
20
|
var classPrefix = 'nut-swiper';
|
|
21
21
|
export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
22
|
-
var
|
|
22
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), width = _$_object_spread.width, height = _$_object_spread.height, className = _$_object_spread.className, children = _$_object_spread.children, indicator = _$_object_spread.indicator, indicatorDots = _$_object_spread.indicatorDots, loop = _$_object_spread.loop, circular = _$_object_spread.circular, autoPlay = _$_object_spread.autoPlay, autoplay = _$_object_spread.autoplay, vertical = _$_object_spread.vertical, direction = _$_object_spread.direction, defaultValue = _$_object_spread.defaultValue, current = _$_object_spread.current, onChange = _$_object_spread.onChange, style = _$_object_spread.style, rest = _object_without_properties(_$_object_spread, [
|
|
23
23
|
"width",
|
|
24
24
|
"height",
|
|
25
25
|
"className",
|
|
@@ -53,7 +53,7 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
53
53
|
defaultValue,
|
|
54
54
|
current
|
|
55
55
|
]);
|
|
56
|
-
var renderIndicator = function() {
|
|
56
|
+
var renderIndicator = function renderIndicator() {
|
|
57
57
|
if (/*#__PURE__*/ React.isValidElement(indicator)) return indicator;
|
|
58
58
|
if (indicator || indicatorDots) {
|
|
59
59
|
var _obj;
|
|
@@ -67,22 +67,22 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
67
67
|
}
|
|
68
68
|
return null;
|
|
69
69
|
};
|
|
70
|
-
var handleOnChange = function(value) {
|
|
70
|
+
var handleOnChange = function handleOnChange(value) {
|
|
71
71
|
setInnerValue(value.detail.current);
|
|
72
72
|
};
|
|
73
73
|
useImperativeHandle(ref, function() {
|
|
74
74
|
return {
|
|
75
|
-
to: function(value) {
|
|
75
|
+
to: function to(value) {
|
|
76
76
|
setInnerValue(value);
|
|
77
77
|
},
|
|
78
|
-
next: function() {
|
|
78
|
+
next: function next() {
|
|
79
79
|
if (loop) {
|
|
80
80
|
setInnerValue((innerValue + 1) % childrenCount);
|
|
81
81
|
} else {
|
|
82
82
|
setInnerValue(innerValue + 1 >= childrenCount ? innerValue : innerValue + 1);
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
prev: function() {
|
|
85
|
+
prev: function prev() {
|
|
86
86
|
if (loop) {
|
|
87
87
|
var next = innerValue - 1;
|
|
88
88
|
next = next < 0 ? childrenCount + next : next;
|
|
@@ -111,7 +111,7 @@ export var Swiper = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
111
111
|
autoplay: autoplay || autoPlay,
|
|
112
112
|
vertical: direction === 'vertical' || vertical,
|
|
113
113
|
indicatorDots: false,
|
|
114
|
-
onChange: function(e) {
|
|
114
|
+
onChange: function onChange(e) {
|
|
115
115
|
var _props_onChange;
|
|
116
116
|
handleOnChange(e);
|
|
117
117
|
(_props_onChange = props.onChange) === null || _props_onChange === void 0 ? void 0 : _props_onChange.call(props, e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
2
2
|
import React from "react";
|
|
3
|
-
export var SwiperItem = function(props) {
|
|
3
|
+
export var SwiperItem = function SwiperItem(props) {
|
|
4
4
|
var children = props.children, rest = _object_without_properties(props, [
|
|
5
5
|
"children"
|
|
6
6
|
]);
|