@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
|
@@ -4,9 +4,10 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
|
4
4
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
5
5
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
6
6
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
7
|
-
import React, { useCallback, useEffect,
|
|
7
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
import { Text, View } from "@tarojs/components";
|
|
10
|
+
import { useReady, nextTick } from "@tarojs/taro";
|
|
10
11
|
import { pxTransform } from "../../utils/taro/px-transform";
|
|
11
12
|
import { useTouch } from "../../hooks/use-touch";
|
|
12
13
|
import { ComponentDefaults } from "../../utils/typings";
|
|
@@ -26,13 +27,13 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
26
27
|
var isHm = harmony();
|
|
27
28
|
var classPrefix = 'nut-range';
|
|
28
29
|
var verticalClassPrefix = "".concat(classPrefix, "-vertical");
|
|
29
|
-
var isSameValue = function(newValue, oldValue) {
|
|
30
|
+
var isSameValue = function isSameValue(newValue, oldValue) {
|
|
30
31
|
return JSON.stringify(newValue) === JSON.stringify(oldValue);
|
|
31
32
|
};
|
|
32
|
-
var handleOverlap = function(value) {
|
|
33
|
+
var handleOverlap = function handleOverlap(value) {
|
|
33
34
|
return value[0] > value[1] ? value.slice(0).reverse() : value;
|
|
34
35
|
};
|
|
35
|
-
export var Range = function(props) {
|
|
36
|
+
export var Range = function Range(props) {
|
|
36
37
|
var rtl = useRtl();
|
|
37
38
|
var _mergeProps = mergeProps(defaultProps, props), className = _mergeProps.className, style = _mergeProps.style, range = _mergeProps.range, disabled = _mergeProps.disabled, button = _mergeProps.button, vertical = _mergeProps.vertical, marks = _mergeProps.marks, minDescription = _mergeProps.minDescription, maxDescription = _mergeProps.maxDescription, currentDescription = _mergeProps.currentDescription, min = _mergeProps.min, max = _mergeProps.max, step = _mergeProps.step, value = _mergeProps.value, defaultValue = _mergeProps.defaultValue, onChange = _mergeProps.onChange, onStart = _mergeProps.onStart, onEnd = _mergeProps.onEnd;
|
|
38
39
|
var rtlClassPrefix = useMemo(function() {
|
|
@@ -56,7 +57,7 @@ export var Range = function(props) {
|
|
|
56
57
|
max,
|
|
57
58
|
min
|
|
58
59
|
]);
|
|
59
|
-
var handleChange = function(value) {
|
|
60
|
+
var handleChange = function handleChange(value) {
|
|
60
61
|
onChange && onChange(value);
|
|
61
62
|
};
|
|
62
63
|
var _usePropsValue = _sliced_to_array(usePropsValue({
|
|
@@ -226,7 +227,7 @@ export var Range = function(props) {
|
|
|
226
227
|
]);
|
|
227
228
|
var handleClick = useCallback(function(event) {
|
|
228
229
|
return _async_to_generator(function() {
|
|
229
|
-
var _event_detail, rect,
|
|
230
|
+
var _ref, _event_detail, rect, x, delta, total, _ref1, _event_detail1, y, value, _innerValue, left, right, middle;
|
|
230
231
|
return _ts_generator(this, function(_state) {
|
|
231
232
|
switch(_state.label){
|
|
232
233
|
case 0:
|
|
@@ -244,14 +245,14 @@ export var Range = function(props) {
|
|
|
244
245
|
];
|
|
245
246
|
case 1:
|
|
246
247
|
rect = _state.sent();
|
|
247
|
-
x = (
|
|
248
|
+
x = (_ref = (_event_detail = event.detail) === null || _event_detail === void 0 ? void 0 : _event_detail.x) !== null && _ref !== void 0 ? _ref : event.clientX;
|
|
248
249
|
if (isHm) x = parseFloat(pxTransform(event.windowX || x));
|
|
249
250
|
delta = x - rect.left;
|
|
250
251
|
total = rect.width;
|
|
251
252
|
if (vertical) {
|
|
252
253
|
;
|
|
253
254
|
;
|
|
254
|
-
y = (
|
|
255
|
+
y = (_ref1 = (_event_detail1 = event.detail) === null || _event_detail1 === void 0 ? void 0 : _event_detail1.y) !== null && _ref1 !== void 0 ? _ref1 : event.clientY;
|
|
255
256
|
if (isHm) y = parseFloat(pxTransform(event.windowY || y));
|
|
256
257
|
delta = y - rect.top;
|
|
257
258
|
total = rect.height;
|
|
@@ -290,13 +291,37 @@ export var Range = function(props) {
|
|
|
290
291
|
updateValue,
|
|
291
292
|
vertical
|
|
292
293
|
]);
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
294
|
+
useReady(function() {
|
|
295
|
+
var getRootRect = function getRootRect() {
|
|
296
|
+
return _async_to_generator(function() {
|
|
297
|
+
var rect;
|
|
298
|
+
return _ts_generator(this, function(_state) {
|
|
299
|
+
switch(_state.label){
|
|
300
|
+
case 0:
|
|
301
|
+
if (!root.current) return [
|
|
302
|
+
3,
|
|
303
|
+
2
|
|
304
|
+
];
|
|
305
|
+
return [
|
|
306
|
+
4,
|
|
307
|
+
getRectInMultiPlatform(root.current)
|
|
308
|
+
];
|
|
309
|
+
case 1:
|
|
310
|
+
rect = _state.sent();
|
|
311
|
+
rootRect.current = rect;
|
|
312
|
+
_state.label = 2;
|
|
313
|
+
case 2:
|
|
314
|
+
return [
|
|
315
|
+
2
|
|
316
|
+
];
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
})();
|
|
320
|
+
};
|
|
321
|
+
nextTick(function() {
|
|
322
|
+
getRootRect();
|
|
323
|
+
});
|
|
324
|
+
});
|
|
300
325
|
var onTouchStart = useCallback(function(event) {
|
|
301
326
|
if (disabled) return;
|
|
302
327
|
touch.start(event);
|
|
@@ -327,7 +352,7 @@ export var Range = function(props) {
|
|
|
327
352
|
dragStatusRef.current = 'draging';
|
|
328
353
|
}
|
|
329
354
|
touch.move(event);
|
|
330
|
-
handleMove = function() {
|
|
355
|
+
handleMove = function handleMove() {
|
|
331
356
|
return _async_to_generator(function() {
|
|
332
357
|
var delta, total, diff, newValue;
|
|
333
358
|
return _ts_generator(this, function(_state) {
|
|
@@ -461,14 +486,14 @@ export var Range = function(props) {
|
|
|
461
486
|
style: {
|
|
462
487
|
transform: 'translate(-50%, -50%)'
|
|
463
488
|
},
|
|
464
|
-
onTouchStart: function(e) {
|
|
489
|
+
onTouchStart: function onTouchStart1(e) {
|
|
465
490
|
buttonRef.current = index;
|
|
466
491
|
onTouchStart(e);
|
|
467
492
|
},
|
|
468
493
|
onTouchMove: onTouchMove,
|
|
469
494
|
onTouchEnd: onTouchEnd,
|
|
470
495
|
onTouchCancel: onTouchEnd,
|
|
471
|
-
onClick: function(e) {
|
|
496
|
+
onClick: function onClick(e) {
|
|
472
497
|
return e.stopPropagation();
|
|
473
498
|
}
|
|
474
499
|
}, renderButton(index));
|
|
@@ -493,7 +518,7 @@ export var Range = function(props) {
|
|
|
493
518
|
onTouchMove: onTouchMove,
|
|
494
519
|
onTouchEnd: onTouchEnd,
|
|
495
520
|
onTouchCancel: onTouchEnd,
|
|
496
|
-
onClick: function(e) {
|
|
521
|
+
onClick: function onClick(e) {
|
|
497
522
|
return e.stopPropagation();
|
|
498
523
|
}
|
|
499
524
|
}, renderButton());
|
|
@@ -2,9 +2,10 @@ import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
|
|
2
2
|
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
|
-
import React, {
|
|
5
|
+
import React, { useEffect, useRef, useState } from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import { StarFill } from "@nutui/icons-react-taro";
|
|
8
|
+
import { useReady } from "@tarojs/taro";
|
|
8
9
|
import { Text, View } from "@tarojs/components";
|
|
9
10
|
import { ComponentDefaults } from "../../utils/typings";
|
|
10
11
|
import { usePropsValue } from "../../hooks/use-props-value";
|
|
@@ -22,7 +23,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
22
23
|
allowHalf: false,
|
|
23
24
|
touchable: false
|
|
24
25
|
});
|
|
25
|
-
export var Rate = function(props) {
|
|
26
|
+
export var Rate = function Rate(props) {
|
|
26
27
|
var _$_object_spread = _object_spread({}, defaultProps, props), className = _$_object_spread.className, style = _$_object_spread.style, size = _$_object_spread.size, showScore = _$_object_spread.showScore, count = _$_object_spread.count, value = _$_object_spread.value, defaultValue = _$_object_spread.defaultValue, min = _$_object_spread.min, checkedIcon = _$_object_spread.checkedIcon, uncheckedIcon = _$_object_spread.uncheckedIcon, disabled = _$_object_spread.disabled, readOnly = _$_object_spread.readOnly, allowHalf = _$_object_spread.allowHalf, touchable = _$_object_spread.touchable, onChange = _$_object_spread.onChange, onTouchEnd = _$_object_spread.onTouchEnd;
|
|
27
28
|
var classPrefix = 'nut-rate';
|
|
28
29
|
var _useState = _sliced_to_array(useState([
|
|
@@ -49,12 +50,12 @@ export var Rate = function(props) {
|
|
|
49
50
|
}, [
|
|
50
51
|
count
|
|
51
52
|
]);
|
|
52
|
-
var renderIcon = function(n) {
|
|
53
|
+
var renderIcon = function renderIcon(n) {
|
|
53
54
|
return n <= score ? checkedIcon || /*#__PURE__*/ React.createElement(StarFill, null) : uncheckedIcon || (checkedIcon ? /*#__PURE__*/ React.cloneElement(checkedIcon, {
|
|
54
55
|
color: undefined
|
|
55
56
|
}) : /*#__PURE__*/ React.createElement(StarFill, null));
|
|
56
57
|
};
|
|
57
|
-
var onClick = function(e, index) {
|
|
58
|
+
var onClick = function onClick(e, index) {
|
|
58
59
|
e.preventDefault();
|
|
59
60
|
e.stopPropagation();
|
|
60
61
|
if (disabled || readOnly) return;
|
|
@@ -65,13 +66,13 @@ export var Rate = function(props) {
|
|
|
65
66
|
value = Math.max(value, min);
|
|
66
67
|
setScore(value);
|
|
67
68
|
};
|
|
68
|
-
var onHalfClick = function(event, n) {
|
|
69
|
+
var onHalfClick = function onHalfClick(event, n) {
|
|
69
70
|
event.preventDefault();
|
|
70
71
|
event.stopPropagation();
|
|
71
72
|
var value = Math.max(min, n - 0.5);
|
|
72
73
|
setScore(value);
|
|
73
74
|
};
|
|
74
|
-
var getScoreByPosition = function(x) {
|
|
75
|
+
var getScoreByPosition = function getScoreByPosition(x) {
|
|
75
76
|
var _rateRects_current;
|
|
76
77
|
if ((_rateRects_current = rateRects.current) === null || _rateRects_current === void 0 ? void 0 : _rateRects_current.length) {
|
|
77
78
|
for(var index = rateRects.current.length - 1; index >= 0; index--){
|
|
@@ -83,7 +84,7 @@ export var Rate = function(props) {
|
|
|
83
84
|
return 0;
|
|
84
85
|
}
|
|
85
86
|
};
|
|
86
|
-
var updateRects =
|
|
87
|
+
var updateRects = function updateRects() {
|
|
87
88
|
var _loop = function(index) {
|
|
88
89
|
var item = refs[index];
|
|
89
90
|
if (item) {
|
|
@@ -93,15 +94,11 @@ export var Rate = function(props) {
|
|
|
93
94
|
}
|
|
94
95
|
};
|
|
95
96
|
for(var index = 0; index < refs.length; index++)_loop(index);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
]);
|
|
99
|
-
useLayoutEffect(function() {
|
|
97
|
+
};
|
|
98
|
+
useReady(function() {
|
|
100
99
|
updateRects();
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
]);
|
|
104
|
-
var handleTouchStart = function(e) {
|
|
100
|
+
});
|
|
101
|
+
var handleTouchStart = function handleTouchStart(e) {
|
|
105
102
|
if (!touchable || readOnly || disabled) {
|
|
106
103
|
return;
|
|
107
104
|
}
|
|
@@ -111,7 +108,7 @@ export var Rate = function(props) {
|
|
|
111
108
|
e.stopPropagation();
|
|
112
109
|
updateRects();
|
|
113
110
|
};
|
|
114
|
-
var handleTouchMove = function(e) {
|
|
111
|
+
var handleTouchMove = function handleTouchMove(e) {
|
|
115
112
|
if (!touchable || readOnly || disabled) {
|
|
116
113
|
return;
|
|
117
114
|
}
|
|
@@ -124,7 +121,7 @@ export var Rate = function(props) {
|
|
|
124
121
|
setScore(Math.max(min, val));
|
|
125
122
|
}
|
|
126
123
|
};
|
|
127
|
-
var handleTouchEnd = function(e) {
|
|
124
|
+
var handleTouchEnd = function handleTouchEnd(e) {
|
|
128
125
|
if (!touchable || readOnly || disabled) {
|
|
129
126
|
return;
|
|
130
127
|
}
|
|
@@ -154,14 +151,14 @@ export var Rate = function(props) {
|
|
|
154
151
|
className: "".concat(classPrefix, "-item ").concat(classPrefix, "-item-").concat(size),
|
|
155
152
|
key: n,
|
|
156
153
|
ref: setRefs(index),
|
|
157
|
-
onClick: function(event) {
|
|
154
|
+
onClick: function onClick1(event) {
|
|
158
155
|
return onClick(event, n);
|
|
159
156
|
}
|
|
160
157
|
}, /*#__PURE__*/ React.createElement(View, {
|
|
161
158
|
className: classNames("".concat(classPrefix, "-item-icon"), _define_property({}, "".concat(classPrefix, "-item-icon-disabled"), disabled || n > score))
|
|
162
159
|
}, renderIcon(n)), allowHalf && score > n - 1 && /*#__PURE__*/ React.createElement(View, {
|
|
163
160
|
className: classNames("".concat(classPrefix, "-item-half"), "".concat(classPrefix, "-item-icon"), "".concat(classPrefix, "-item-icon-half")),
|
|
164
|
-
onClick: function(event) {
|
|
161
|
+
onClick: function onClick(event) {
|
|
165
162
|
return onHalfClick(event, n);
|
|
166
163
|
}
|
|
167
164
|
}, renderIcon(n)));
|
|
@@ -14,7 +14,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
14
14
|
status: 'info',
|
|
15
15
|
actions: []
|
|
16
16
|
});
|
|
17
|
-
export var ResultPage = function(props) {
|
|
17
|
+
export var ResultPage = function ResultPage(props) {
|
|
18
18
|
var _$_object_spread = _object_spread({}, defaultProps, props), className = _$_object_spread.className, style = _$_object_spread.style, title = _$_object_spread.title, description = _$_object_spread.description, icon = _$_object_spread.icon, status = _$_object_spread.status, actions = _$_object_spread.actions, children = _$_object_spread.children;
|
|
19
19
|
var classPrefix = "nut-resultpage";
|
|
20
20
|
var cls = classNames(classPrefix, className);
|
|
@@ -39,7 +39,8 @@ export var ResultPage = function(props) {
|
|
|
39
39
|
className: cls,
|
|
40
40
|
style: style
|
|
41
41
|
}, /*#__PURE__*/ React.createElement(View, {
|
|
42
|
-
className: "".concat(classPrefix, "-icon")
|
|
42
|
+
className: "".concat(classPrefix, "-icon"),
|
|
43
|
+
ariaHidden: true
|
|
43
44
|
}, icon || defaultStatus[status]), typeof title === 'string' && title ? /*#__PURE__*/ React.createElement(View, {
|
|
44
45
|
className: "".concat(classPrefix, "-title")
|
|
45
46
|
}, title) : title, typeof description === 'string' && description ? /*#__PURE__*/ React.createElement(Text, {
|
|
@@ -13,15 +13,15 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
13
13
|
wrap: 'nowrap',
|
|
14
14
|
gutter: '0'
|
|
15
15
|
});
|
|
16
|
-
export var Row = function(props) {
|
|
16
|
+
export var Row = function Row(props) {
|
|
17
17
|
var _$_object_spread = _object_spread({}, defaultProps, props), className = _$_object_spread.className, style = _$_object_spread.style, children = _$_object_spread.children, type = _$_object_spread.type, justify = _$_object_spread.justify, align = _$_object_spread.align, wrap = _$_object_spread.wrap, gutter = _$_object_spread.gutter, onClick = _$_object_spread.onClick;
|
|
18
|
-
var getClass = function(prefix, type) {
|
|
18
|
+
var getClass = function getClass(prefix, type) {
|
|
19
19
|
var classType = type ? "nut-row-".concat(prefix, "-").concat(type) : '';
|
|
20
20
|
if (prefix) return classType;
|
|
21
21
|
if (type) return "nut-row-".concat(type);
|
|
22
22
|
return '';
|
|
23
23
|
};
|
|
24
|
-
var getClasses = function() {
|
|
24
|
+
var getClasses = function getClasses() {
|
|
25
25
|
return classNames(classPrefix, getClass('', type), getClass('justify', justify), getClass('align', align), getClass('flex', wrap));
|
|
26
26
|
};
|
|
27
27
|
var parentRow = {
|
|
@@ -32,7 +32,7 @@ export var Row = function(props) {
|
|
|
32
32
|
}, /*#__PURE__*/ React.createElement(View, {
|
|
33
33
|
className: classNames(getClasses(), className),
|
|
34
34
|
style: style,
|
|
35
|
-
onClick: function(e) {
|
|
35
|
+
onClick: function onClick1(e) {
|
|
36
36
|
onClick === null || onClick === void 0 ? void 0 : onClick(e, 'row');
|
|
37
37
|
}
|
|
38
38
|
}, React.Children.map(children, function(child, index) {
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
2
|
-
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
3
|
-
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
4
1
|
import React from "react";
|
|
5
2
|
import classNames from "classnames";
|
|
6
3
|
import { View } from "@tarojs/components";
|
|
7
4
|
var classPrefix = 'nut-safe-area';
|
|
8
|
-
export var SafeArea = function(props) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"position"
|
|
13
|
-
]);
|
|
14
|
-
return /*#__PURE__*/ React.createElement(View, _object_spread_props(_object_spread({}, rest), {
|
|
15
|
-
className: classNames(classPrefix, "".concat(classPrefix, "-position-").concat(position), className),
|
|
16
|
-
style: style
|
|
17
|
-
}));
|
|
5
|
+
export var SafeArea = function SafeArea(props) {
|
|
6
|
+
return /*#__PURE__*/ React.createElement(View, {
|
|
7
|
+
className: classNames(classPrefix, "".concat(classPrefix, "-position-").concat(props.position))
|
|
8
|
+
});
|
|
18
9
|
};
|
|
19
10
|
SafeArea.displayName = 'NutSafeArea';
|
|
@@ -3,18 +3,12 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
5
5
|
&-position-top {
|
|
6
|
-
padding-top: calc(
|
|
7
|
-
constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
|
-
);
|
|
9
6
|
padding-top: calc(
|
|
10
7
|
env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
11
8
|
);
|
|
12
9
|
}
|
|
13
10
|
|
|
14
11
|
&-position-bottom {
|
|
15
|
-
padding-bottom: calc(
|
|
16
|
-
constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
17
|
-
);
|
|
18
12
|
padding-bottom: calc(
|
|
19
13
|
env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
20
14
|
);
|
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
.nut-safe-area-position-top {
|
|
10
|
-
padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
11
10
|
padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
12
11
|
}
|
|
13
12
|
.nut-safe-area-position-bottom {
|
|
14
|
-
padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
15
13
|
padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
16
14
|
}
|
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
.nut-safe-area-position-top {
|
|
10
|
-
padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
11
10
|
padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
12
11
|
}
|
|
13
12
|
.nut-safe-area-position-bottom {
|
|
14
|
-
padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
15
13
|
padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
16
14
|
}
|
|
@@ -3,18 +3,12 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
5
5
|
&-position-top {
|
|
6
|
-
padding-top: calc(
|
|
7
|
-
constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
|
-
);
|
|
9
6
|
padding-top: calc(
|
|
10
7
|
env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
11
8
|
);
|
|
12
9
|
}
|
|
13
10
|
|
|
14
11
|
&-position-bottom {
|
|
15
|
-
padding-bottom: calc(
|
|
16
|
-
constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
17
|
-
);
|
|
18
12
|
padding-bottom: calc(
|
|
19
13
|
env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
20
14
|
);
|
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
.nut-safe-area-position-top {
|
|
10
|
-
padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
11
10
|
padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
12
11
|
}
|
|
13
12
|
.nut-safe-area-position-bottom {
|
|
14
|
-
padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
15
13
|
padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
16
14
|
}
|
|
@@ -3,18 +3,12 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
|
|
5
5
|
&-position-top {
|
|
6
|
-
padding-top: calc(
|
|
7
|
-
constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
8
|
-
);
|
|
9
6
|
padding-top: calc(
|
|
10
7
|
env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1)
|
|
11
8
|
);
|
|
12
9
|
}
|
|
13
10
|
|
|
14
11
|
&-position-bottom {
|
|
15
|
-
padding-bottom: calc(
|
|
16
|
-
constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
17
|
-
);
|
|
18
12
|
padding-bottom: calc(
|
|
19
13
|
env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1)
|
|
20
14
|
);
|
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
.nut-safe-area-position-top {
|
|
10
|
-
padding-top: calc(constant(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
11
10
|
padding-top: calc(env(safe-area-inset-top) * var(--nutui-safe-area-multiple, 1));
|
|
12
11
|
}
|
|
13
12
|
.nut-safe-area-position-bottom {
|
|
14
|
-
padding-bottom: calc(constant(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
15
13
|
padding-bottom: calc(env(safe-area-inset-bottom) * var(--nutui-safe-area-multiple, 1));
|
|
16
14
|
}
|
|
@@ -22,10 +22,12 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
22
22
|
left: '',
|
|
23
23
|
right: '',
|
|
24
24
|
rightIn: '',
|
|
25
|
-
leftIn: /*#__PURE__*/ React.createElement(Search,
|
|
25
|
+
leftIn: /*#__PURE__*/ React.createElement(Search, {
|
|
26
|
+
ariaHidden: true
|
|
27
|
+
}),
|
|
26
28
|
tag: false
|
|
27
29
|
});
|
|
28
|
-
export var SearchBar = function(props) {
|
|
30
|
+
export var SearchBar = function SearchBar(props) {
|
|
29
31
|
var classPrefix = 'nut-searchbar';
|
|
30
32
|
var locale = useConfig().locale;
|
|
31
33
|
var searchInputRef = useRef(null);
|
|
@@ -122,7 +124,7 @@ export var SearchBar = function(props) {
|
|
|
122
124
|
forceFocus,
|
|
123
125
|
innerTag
|
|
124
126
|
]);
|
|
125
|
-
var renderField = function() {
|
|
127
|
+
var renderField = function renderField() {
|
|
126
128
|
var inputCls = classNames("".concat(classPrefix, "-input"));
|
|
127
129
|
return /*#__PURE__*/ React.createElement(React.Fragment, null, Taro.getEnv() === 'WEB' ? /*#__PURE__*/ React.createElement(TaroInput, _object_spread({
|
|
128
130
|
className: inputCls,
|
|
@@ -174,15 +176,18 @@ export var SearchBar = function(props) {
|
|
|
174
176
|
return /*#__PURE__*/ React.createElement(View, {
|
|
175
177
|
key: "def-".concat(index),
|
|
176
178
|
className: "nut-searchbar-value",
|
|
177
|
-
onClick: function(e) {
|
|
179
|
+
onClick: function onClick(e) {
|
|
178
180
|
return onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(item, e);
|
|
179
181
|
}
|
|
180
|
-
}, item, /*#__PURE__*/ React.createElement(Close,
|
|
182
|
+
}, item, /*#__PURE__*/ React.createElement(Close, {
|
|
183
|
+
ariaLabel: locale.close
|
|
184
|
+
}));
|
|
181
185
|
}));
|
|
182
186
|
}, [
|
|
183
187
|
value,
|
|
184
188
|
onItemClick,
|
|
185
|
-
innerTag
|
|
189
|
+
innerTag,
|
|
190
|
+
locale.close
|
|
186
191
|
]);
|
|
187
192
|
var renderLeftIn = useCallback(function() {
|
|
188
193
|
if (!leftIn) return null;
|
|
@@ -195,11 +200,16 @@ export var SearchBar = function(props) {
|
|
|
195
200
|
var renderLeft = useCallback(function() {
|
|
196
201
|
if (!backable && !left) return null;
|
|
197
202
|
return /*#__PURE__*/ React.createElement(View, {
|
|
198
|
-
className: "".concat(classPrefix, "-left")
|
|
199
|
-
|
|
203
|
+
className: "".concat(classPrefix, "-left"),
|
|
204
|
+
ariaRole: backable ? 'button' : undefined,
|
|
205
|
+
ariaLabel: backable ? locale.back : undefined
|
|
206
|
+
}, backable ? /*#__PURE__*/ React.createElement(ArrowLeft, {
|
|
207
|
+
ariaHidden: true
|
|
208
|
+
}) : left);
|
|
200
209
|
}, [
|
|
201
210
|
backable,
|
|
202
|
-
left
|
|
211
|
+
left,
|
|
212
|
+
locale
|
|
203
213
|
]);
|
|
204
214
|
var renderRightIn = useCallback(function() {
|
|
205
215
|
if (!rightIn) return null;
|
|
@@ -226,15 +236,19 @@ export var SearchBar = function(props) {
|
|
|
226
236
|
visibility: "".concat(!innerTag && value && clearable ? 'visible' : 'hidden')
|
|
227
237
|
},
|
|
228
238
|
onClick: clearaVal,
|
|
229
|
-
|
|
230
|
-
|
|
239
|
+
ariaRole: "button",
|
|
240
|
+
ariaLabel: locale.clear
|
|
241
|
+
}, /*#__PURE__*/ React.createElement(MaskClose, {
|
|
242
|
+
ariaHidden: true
|
|
243
|
+
}));
|
|
231
244
|
}, [
|
|
232
245
|
value,
|
|
233
246
|
clearable,
|
|
234
247
|
clearaVal,
|
|
235
|
-
innerTag
|
|
248
|
+
innerTag,
|
|
249
|
+
locale
|
|
236
250
|
]);
|
|
237
|
-
var onConfirm = function() {
|
|
251
|
+
var onConfirm = function onConfirm() {
|
|
238
252
|
onSearch && onSearch(value);
|
|
239
253
|
};
|
|
240
254
|
return /*#__PURE__*/ React.createElement(View, {
|
|
@@ -8,9 +8,9 @@ import { usePropsValue } from "../../hooks/use-props-value";
|
|
|
8
8
|
import { mergeProps } from "../../utils/merge-props";
|
|
9
9
|
var defaultProps = {
|
|
10
10
|
options: [],
|
|
11
|
-
onChange: function(value) {}
|
|
11
|
+
onChange: function onChange(value) {}
|
|
12
12
|
};
|
|
13
|
-
export var Segmented = function(props) {
|
|
13
|
+
export var Segmented = function Segmented(props) {
|
|
14
14
|
var classPrefix = 'nut-segmented';
|
|
15
15
|
var itemClassPrefix = 'nut-segmented-item';
|
|
16
16
|
var mergedProps = mergeProps(defaultProps, props);
|
|
@@ -32,7 +32,7 @@ export var Segmented = function(props) {
|
|
|
32
32
|
return /*#__PURE__*/ React.createElement(View, {
|
|
33
33
|
className: classNames(itemClassPrefix, (_obj = {}, _define_property(_obj, "".concat(itemClassPrefix, "-active"), opt.value === value), _define_property(_obj, "".concat(opt.className), !!opt.className), _obj)),
|
|
34
34
|
key: opt.value,
|
|
35
|
-
onClick: function() {
|
|
35
|
+
onClick: function onClick() {
|
|
36
36
|
if (opt.disabled) return;
|
|
37
37
|
setValue(option.value);
|
|
38
38
|
}
|
|
@@ -47,7 +47,7 @@ export var Segmented = function(props) {
|
|
|
47
47
|
return /*#__PURE__*/ React.createElement(View, {
|
|
48
48
|
className: classNames(itemClassPrefix, _define_property({}, "".concat(itemClassPrefix, "-active"), index === value)),
|
|
49
49
|
key: option.toString(),
|
|
50
|
-
onClick: function() {
|
|
50
|
+
onClick: function onClick() {
|
|
51
51
|
setValue(index);
|
|
52
52
|
}
|
|
53
53
|
}, option);
|
|
@@ -19,9 +19,9 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
19
19
|
length: 6,
|
|
20
20
|
autoFocus: false
|
|
21
21
|
});
|
|
22
|
-
export var InternalShortPassword = function(props, ref) {
|
|
22
|
+
export var InternalShortPassword = function InternalShortPassword(props, ref) {
|
|
23
23
|
var locale = useConfig().locale;
|
|
24
|
-
var
|
|
24
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), title = _$_object_spread.title, description = _$_object_spread.description, tips = _$_object_spread.tips, outerVisible = _$_object_spread.visible, value = _$_object_spread.value, error = _$_object_spread.error, hideFooter = _$_object_spread.hideFooter, length = _$_object_spread.length, plain = _$_object_spread.plain, style = _$_object_spread.style, className = _$_object_spread.className, closeable = _$_object_spread.closeable, autoFocus = _$_object_spread.autoFocus, round = _$_object_spread.round, onFocus = _$_object_spread.onFocus, onChange = _$_object_spread.onChange, onConfirm = _$_object_spread.onConfirm, onTips = _$_object_spread.onTips, onCancel = _$_object_spread.onCancel, onClose = _$_object_spread.onClose, onComplete = _$_object_spread.onComplete, onOverlayClick = _$_object_spread.onOverlayClick, onCloseIconClick = _$_object_spread.onCloseIconClick, rest = _object_without_properties(_$_object_spread, [
|
|
25
25
|
"title",
|
|
26
26
|
"description",
|
|
27
27
|
"tips",
|
|
@@ -52,7 +52,7 @@ export var InternalShortPassword = function(props, ref) {
|
|
|
52
52
|
}, [
|
|
53
53
|
length
|
|
54
54
|
]);
|
|
55
|
-
var format = function(val) {
|
|
55
|
+
var format = function format(val) {
|
|
56
56
|
return val.slice(0, comLen);
|
|
57
57
|
};
|
|
58
58
|
var _usePropsValue = _sliced_to_array(usePropsValue({
|
|
@@ -60,15 +60,15 @@ export var InternalShortPassword = function(props, ref) {
|
|
|
60
60
|
defaultValue: false,
|
|
61
61
|
finalValue: false
|
|
62
62
|
}), 2), visible = _usePropsValue[0], setVisible = _usePropsValue[1];
|
|
63
|
-
var handleClose = function() {
|
|
63
|
+
var handleClose = function handleClose() {
|
|
64
64
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
65
65
|
setVisible(false);
|
|
66
66
|
};
|
|
67
67
|
var actions = {
|
|
68
|
-
open: function() {
|
|
68
|
+
open: function open() {
|
|
69
69
|
setVisible(true);
|
|
70
70
|
},
|
|
71
|
-
close: function() {
|
|
71
|
+
close: function close() {
|
|
72
72
|
setVisible(false);
|
|
73
73
|
}
|
|
74
74
|
};
|
|
@@ -95,7 +95,7 @@ export var InternalShortPassword = function(props, ref) {
|
|
|
95
95
|
}, [
|
|
96
96
|
value
|
|
97
97
|
]);
|
|
98
|
-
var sure = function() {
|
|
98
|
+
var sure = function sure() {
|
|
99
99
|
onConfirm && onConfirm(inputValue);
|
|
100
100
|
};
|
|
101
101
|
return /*#__PURE__*/ React.createElement(Popup, _object_spread({
|