@nutui/nutui-react-taro 3.0.19 → 3.0.20-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 +28 -59
- package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
- package/dist/cjs/hooks/use-ref-state.js +3 -3
- package/dist/cjs/hooks/use-touch.js +1 -2
- 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/style/style.harmony.css +38 -17
- package/dist/cjs/packages/address/utils.js +3 -3
- package/dist/cjs/packages/animatingnumbers/countup.js +3 -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 +18 -34
- package/dist/cjs/packages/badge/badge.js +20 -10
- package/dist/cjs/packages/barrage/barrage.js +14 -24
- 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/calendar/utils.js +8 -8
- package/dist/cjs/packages/calendarcard/calendarcard.js +30 -8
- package/dist/cjs/packages/calendarcard/icon.js +17 -28
- 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/calendarcard/utils.js +6 -6
- package/dist/cjs/packages/card/style/style.harmony.css +1 -1
- package/dist/cjs/packages/cascader/cascader.js +12 -21
- package/dist/cjs/packages/cascader/style/style.harmony.css +38 -17
- package/dist/cjs/packages/cascader/utils.js +3 -3
- package/dist/cjs/packages/collapseitem/collapseitem.js +4 -7
- package/dist/cjs/packages/configprovider/configprovider.js +7 -7
- package/dist/cjs/packages/configprovider/index.js +6 -6
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/countdown.js +1 -2
- package/dist/cjs/packages/datepicker/style/style.harmony.css +39 -18
- package/dist/cjs/packages/datepicker/utils.js +9 -9
- package/dist/cjs/packages/dialog/content.js +3 -3
- package/dist/cjs/packages/dialog/dialog.js +26 -23
- 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 +2 -2
- package/dist/cjs/packages/drag/drag.js +4 -7
- package/dist/cjs/packages/elevator/elevator.js +7 -10
- package/dist/cjs/packages/ellipsis/ellipsis.js +17 -30
- 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/index.js +0 -2
- package/dist/cjs/packages/form/style/style.harmony.css +0 -5
- package/dist/cjs/packages/form/useform.js +50 -57
- 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/image/image.js +11 -3
- package/dist/cjs/packages/imagepreview/style/style.harmony.css +38 -17
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/cjs/packages/input/input.js +10 -3
- package/dist/cjs/packages/inputnumber/inputnumber.js +17 -29
- package/dist/cjs/packages/lottie/lottiemp.js +10 -18
- package/dist/cjs/packages/lottie/types.js +0 -2
- package/dist/cjs/packages/menuitem/menuitem.js +24 -22
- package/dist/cjs/packages/noticebar/noticebar.js +74 -70
- package/dist/cjs/packages/notify/notify.js +4 -4
- 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 +123 -119
- package/dist/cjs/packages/nutui.react.d.ts +4 -1
- package/dist/cjs/packages/nutui.react.js +124 -119
- 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 +6 -6
- 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 +4 -7
- package/dist/cjs/packages/pickerview/pickerview.js +1 -2
- package/dist/cjs/packages/pickerview/utils.js +3 -3
- package/dist/cjs/packages/popover/popover.js +75 -77
- package/dist/cjs/packages/popover/style/style.harmony.css +38 -17
- package/dist/cjs/packages/popup/popup.js +192 -113
- 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 +2 -4
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
- 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/index.js +0 -2
- package/dist/cjs/packages/range/range.js +44 -28
- 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/searchbar/searchbar.js +23 -9
- package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
- package/dist/cjs/packages/shortpassword/style/style.harmony.css +38 -17
- 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 +4 -7
- package/dist/cjs/packages/swipe/swipe.js +84 -122
- package/dist/cjs/packages/swiper/index.js +0 -1
- package/dist/cjs/packages/switch/switch.js +4 -7
- 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/tabs/tabs.js +12 -5
- 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/timeselect/style/style.harmony.css +38 -17
- 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 +5 -5
- package/dist/cjs/packages/tour/style/style.harmony.css +38 -17
- package/dist/cjs/packages/uploader/uploader.js +38 -51
- package/dist/cjs/packages/virtuallist/utils.js +6 -6
- package/dist/cjs/packages/watermark/watermark.js +4 -8
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/spec/address/base.js +0 -2
- 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/date.js +5 -5
- package/dist/cjs/utils/event-mocker.js +10 -18
- package/dist/cjs/utils/get-rect.js +4 -4
- package/dist/cjs/utils/get-scroll-parent.js +3 -3
- package/dist/cjs/utils/merge-props.js +3 -3
- package/dist/cjs/utils/merge.js +6 -6
- package/dist/cjs/utils/raf.js +3 -3
- package/dist/cjs/utils/render.js +5 -9
- package/dist/cjs/utils/rubberband.js +3 -3
- 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.d.ts +15 -0
- package/dist/cjs/utils/taro/ConfigurableCSSTransition.js +90 -0
- package/dist/cjs/utils/taro/get-rect.js +18 -26
- package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
- package/dist/cjs/utils/taro/get-system-info.js +5 -10
- package/dist/cjs/utils/taro/platform.js +5 -5
- package/dist/es/hooks/taro/use-custom-event.js +1 -0
- package/dist/es/hooks/use-touch.js +1 -1
- package/dist/es/locales/base.d.ts +9 -0
- package/dist/es/locales/en-US.js +21 -2
- package/dist/es/locales/id-ID.js +21 -2
- package/dist/es/locales/ja-JP.js +19 -2
- package/dist/es/locales/tr-TR.js +21 -2
- package/dist/es/locales/zh-CN.js +19 -2
- package/dist/es/locales/zh-TW.js +19 -2
- package/dist/es/locales/zh-UG.js +21 -2
- 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/style/style.harmony.css +38 -17
- package/dist/es/packages/animatingnumbers/countup.js +3 -1
- package/dist/es/packages/audio/style/style.harmony.css +0 -3
- package/dist/es/packages/avatar/avatar.js +32 -6
- package/dist/es/packages/avatarcropper/avatarcropper.js +20 -36
- package/dist/es/packages/badge/badge.js +20 -10
- package/dist/es/packages/barrage/barrage.js +14 -24
- package/dist/es/packages/button/button.d.ts +2 -24
- package/dist/es/packages/button/button.js +10 -12
- 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/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/calendarcard/calendarcard.js +31 -9
- package/dist/es/packages/calendarcard/icon.js +13 -24
- 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/card/style/style.harmony.css +1 -1
- package/dist/es/packages/cascader/cascader.js +12 -21
- package/dist/es/packages/cascader/style/style.harmony.css +38 -17
- package/dist/es/packages/collapseitem/collapseitem.js +4 -7
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/countdown.js +1 -2
- package/dist/es/packages/datepicker/style/style.harmony.css +39 -18
- package/dist/es/packages/dialog/dialog.js +33 -28
- 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 +1 -1
- package/dist/es/packages/drag/drag.js +4 -7
- package/dist/es/packages/elevator/elevator.js +4 -7
- package/dist/es/packages/ellipsis/ellipsis.js +17 -30
- package/dist/es/packages/empty/empty.d.ts +4 -4
- package/dist/es/packages/empty/style/style.harmony.css +0 -3
- package/dist/es/packages/form/index.js +0 -1
- package/dist/es/packages/form/style/style.harmony.css +0 -5
- package/dist/es/packages/form/useform.js +46 -53
- 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/image/image.js +11 -3
- package/dist/es/packages/imagepreview/style/style.harmony.css +38 -17
- package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/es/packages/input/input.js +10 -3
- package/dist/es/packages/inputnumber/inputnumber.js +17 -29
- package/dist/es/packages/lottie/lottiemp.js +12 -20
- package/dist/es/packages/lottie/types.js +1 -1
- package/dist/es/packages/menuitem/menuitem.js +24 -22
- package/dist/es/packages/noticebar/noticebar.js +74 -70
- 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 +3 -3
- 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 +4 -7
- package/dist/es/packages/pickerview/pickerview.js +1 -2
- package/dist/es/packages/popover/popover.js +75 -77
- package/dist/es/packages/popover/style/style.harmony.css +38 -17
- package/dist/es/packages/popup/popup.js +193 -114
- 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 +53 -14
- package/dist/es/packages/progress/progress.js +2 -4
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
- 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/index.js +0 -1
- package/dist/es/packages/range/range.js +45 -29
- package/dist/es/packages/rate/rate.js +6 -9
- package/dist/es/packages/resultpage/resultpage.js +2 -1
- package/dist/es/packages/resultpage/style/style.harmony.css +0 -3
- package/dist/es/packages/searchbar/searchbar.js +23 -9
- package/dist/es/packages/shortpassword/style/style.harmony.css +38 -17
- package/dist/es/packages/step/step.js +3 -8
- 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/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 +4 -7
- package/dist/es/packages/swipe/swipe.js +85 -123
- package/dist/es/packages/swiper/index.js +0 -1
- package/dist/es/packages/switch/switch.js +4 -7
- 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/tabs/tabs.js +12 -5
- 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/timeselect/style/style.harmony.css +38 -17
- 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 +1 -1
- package/dist/es/packages/tour/style/style.harmony.css +38 -17
- package/dist/es/packages/uploader/uploader.js +38 -51
- package/dist/es/packages/watermark/watermark.js +4 -8
- package/dist/es/types/index.d.ts +3 -0
- package/dist/es/types/index.js +3 -0
- package/dist/es/types/spec/address/base.js +1 -1
- 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/event-mocker.js +4 -12
- package/dist/es/utils/render.js +2 -6
- 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/taro/ConfigurableCSSTransition.d.ts +15 -0
- package/dist/es/utils/taro/ConfigurableCSSTransition.js +79 -0
- package/dist/es/utils/taro/get-rect.js +14 -22
- package/dist/es/utils/taro/get-system-info.d.ts +0 -5
- package/dist/es/utils/taro/get-system-info.js +8 -7
- package/dist/nutui.react.umd.js +8698 -7523
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +47 -46
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +32 -31
- package/dist/style.css +1 -1
- package/dist/style.scss +32 -31
- 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
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get hasNonPriceChars () {
|
|
13
|
+
return hasNonPriceChars;
|
|
14
|
+
},
|
|
15
|
+
get shouldRenderPriceAsRaw () {
|
|
16
|
+
return shouldRenderPriceAsRaw;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var RE_NUM = /\d+(?:\.\d+)?/g;
|
|
20
|
+
// 价格合法字符:数字、小数点、负号、大写货币代码(HK USD EUR 等)、常见货币符号 Unicode 区块(含全角 ¥)
|
|
21
|
+
var PRICE_CHARS = /^[\d.\-A-Z¥¥$€£₩₹₽₺₴₪฿\u20A0-\u20CF\uFE69\uFF04\uFFE5]*$/;
|
|
22
|
+
// 无法提取出有效价格时直接按原文展示,避免把纯文案误格式化成 0 或空串
|
|
23
|
+
function hasNoExtractablePrice(s) {
|
|
24
|
+
var t = s.trim();
|
|
25
|
+
if (!t) return true;
|
|
26
|
+
if (!/\d/.test(t)) return true;
|
|
27
|
+
if (t.replace(/[^\d.]/g, '') === '') return true;
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
function shouldRenderPriceAsRaw(s) {
|
|
31
|
+
if (hasNoExtractablePrice(s)) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
var t = s.trim();
|
|
35
|
+
var matches = Array.from(t.matchAll(RE_NUM));
|
|
36
|
+
if (matches.length < 2) return false;
|
|
37
|
+
var a = matches[0];
|
|
38
|
+
var b = matches[1];
|
|
39
|
+
var i0 = a.index;
|
|
40
|
+
var i1 = b.index;
|
|
41
|
+
var between = t.slice(i0 + a[0].length, i1);
|
|
42
|
+
return !PRICE_CHARS.test(between);
|
|
43
|
+
}
|
|
44
|
+
function hasNonPriceChars(s) {
|
|
45
|
+
return !PRICE_CHARS.test(s);
|
|
46
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TransitionStatus = 'entering' | 'entered' | 'exiting' | 'exited' | 'unmounted';
|
|
3
|
+
interface CSSTransitionProps {
|
|
4
|
+
in?: boolean;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
classNames?: string;
|
|
7
|
+
nodeRef?: React.RefObject<any>;
|
|
8
|
+
mountOnEnter?: boolean;
|
|
9
|
+
unmountOnExit?: boolean;
|
|
10
|
+
onEntered?: () => void;
|
|
11
|
+
onExited?: () => void;
|
|
12
|
+
children: React.ReactElement;
|
|
13
|
+
}
|
|
14
|
+
declare const ConfigurableCSSTransition: React.FC<CSSTransitionProps>;
|
|
15
|
+
export default ConfigurableCSSTransition;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
var _sliced_to_array = require("@swc/helpers/_/_sliced_to_array");
|
|
13
|
+
var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
+
var ConfigurableCSSTransition = function ConfigurableCSSTransition(props) {
|
|
15
|
+
var inPhase = props.in, _props_timeout = props.timeout, timeout = _props_timeout === void 0 ? 300 : _props_timeout, tmp = props.classNames, baseClassName = tmp === void 0 ? '' : tmp, nodeRef = props.nodeRef, mountOnEnter = props.mountOnEnter, unmountOnExit = props.unmountOnExit, onEntered = props.onEntered, onExited = props.onExited, children = props.children;
|
|
16
|
+
var _useState = (0, _sliced_to_array._)((0, _react.useState)(function() {
|
|
17
|
+
if (inPhase) return 'entered';
|
|
18
|
+
return unmountOnExit || mountOnEnter ? 'unmounted' : 'exited';
|
|
19
|
+
}), 2), status = _useState[0], setStatus = _useState[1];
|
|
20
|
+
var _useState1 = (0, _sliced_to_array._)((0, _react.useState)(function() {
|
|
21
|
+
if (inPhase) return "".concat(baseClassName, "-enter-done");
|
|
22
|
+
return "".concat(baseClassName, "-exit-done");
|
|
23
|
+
}), 2), classes = _useState1[0], setClasses = _useState1[1];
|
|
24
|
+
var timerRef = (0, _react.useRef)(null);
|
|
25
|
+
var statusRef = (0, _react.useRef)(status);
|
|
26
|
+
var prevInPhase = (0, _react.useRef)(inPhase);
|
|
27
|
+
var updateStatus = (0, _react.useCallback)(function(nextStatus) {
|
|
28
|
+
statusRef.current = nextStatus;
|
|
29
|
+
setStatus(nextStatus);
|
|
30
|
+
}, []);
|
|
31
|
+
var enter = (0, _react.useCallback)(function() {
|
|
32
|
+
if (timerRef.current) clearTimeout(timerRef.current);
|
|
33
|
+
if (statusRef.current === 'unmounted') {
|
|
34
|
+
updateStatus('exited');
|
|
35
|
+
}
|
|
36
|
+
updateStatus('entering');
|
|
37
|
+
setClasses("".concat(baseClassName, "-enter ").concat(baseClassName, "-enter-active"));
|
|
38
|
+
timerRef.current = setTimeout(function() {
|
|
39
|
+
updateStatus('entered');
|
|
40
|
+
setClasses("".concat(baseClassName, "-enter-done"));
|
|
41
|
+
onEntered === null || onEntered === void 0 ? void 0 : onEntered();
|
|
42
|
+
}, timeout);
|
|
43
|
+
}, [
|
|
44
|
+
baseClassName,
|
|
45
|
+
onEntered,
|
|
46
|
+
timeout,
|
|
47
|
+
updateStatus
|
|
48
|
+
]);
|
|
49
|
+
var exit = (0, _react.useCallback)(function() {
|
|
50
|
+
if (timerRef.current) clearTimeout(timerRef.current);
|
|
51
|
+
updateStatus('exiting');
|
|
52
|
+
setClasses("".concat(baseClassName, "-exit ").concat(baseClassName, "-exit-active"));
|
|
53
|
+
timerRef.current = setTimeout(function() {
|
|
54
|
+
updateStatus('exited');
|
|
55
|
+
setClasses("".concat(baseClassName, "-exit-done"));
|
|
56
|
+
if (unmountOnExit) {
|
|
57
|
+
updateStatus('unmounted');
|
|
58
|
+
}
|
|
59
|
+
onExited === null || onExited === void 0 ? void 0 : onExited();
|
|
60
|
+
}, timeout);
|
|
61
|
+
}, [
|
|
62
|
+
baseClassName,
|
|
63
|
+
onExited,
|
|
64
|
+
timeout,
|
|
65
|
+
unmountOnExit,
|
|
66
|
+
updateStatus
|
|
67
|
+
]);
|
|
68
|
+
(0, _react.useEffect)(function() {
|
|
69
|
+
if (prevInPhase.current !== inPhase) {
|
|
70
|
+
if (inPhase) {
|
|
71
|
+
enter();
|
|
72
|
+
} else {
|
|
73
|
+
exit();
|
|
74
|
+
}
|
|
75
|
+
prevInPhase.current = inPhase;
|
|
76
|
+
}
|
|
77
|
+
return function() {
|
|
78
|
+
if (timerRef.current) clearTimeout(timerRef.current);
|
|
79
|
+
};
|
|
80
|
+
}, [
|
|
81
|
+
inPhase,
|
|
82
|
+
enter,
|
|
83
|
+
exit
|
|
84
|
+
]);
|
|
85
|
+
if (status === 'unmounted') return null;
|
|
86
|
+
return /*#__PURE__*/ (0, _react.cloneElement)(children, {
|
|
87
|
+
className: "".concat(children.props.className || '', " ").concat(classes)
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
var _default = ConfigurableCSSTransition;
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
getRectInMultiPlatform
|
|
12
|
+
get getRectInMultiPlatform () {
|
|
13
13
|
return getRectInMultiPlatform;
|
|
14
14
|
},
|
|
15
|
-
getRectInMultiPlatformWithoutCache
|
|
15
|
+
get getRectInMultiPlatformWithoutCache () {
|
|
16
16
|
return getRectInMultiPlatformWithoutCache;
|
|
17
17
|
},
|
|
18
|
-
makeRect
|
|
18
|
+
get makeRect () {
|
|
19
19
|
return makeRect;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
@@ -36,12 +36,10 @@ function makeRect(width, height) {
|
|
|
36
36
|
height: height
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
var getRectInMultiPlatform =
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
var _arguments = arguments;
|
|
39
|
+
var getRectInMultiPlatform = function getRectInMultiPlatform(element) {
|
|
40
|
+
var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
|
|
41
|
+
return (0, _async_to_generator._)(function() {
|
|
43
42
|
return (0, _ts_generator._)(this, function(_state) {
|
|
44
|
-
harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : '';
|
|
45
43
|
if (element) {
|
|
46
44
|
if (_getrect.inBrowser) {
|
|
47
45
|
return [
|
|
@@ -57,7 +55,8 @@ var getRectInMultiPlatform = /*#__PURE__*/ function() {
|
|
|
57
55
|
resolve(lru.get(element));
|
|
58
56
|
return;
|
|
59
57
|
}
|
|
60
|
-
(0, _taro.createSelectorQuery)()
|
|
58
|
+
(0, _taro.createSelectorQuery)() // https://taro.jd.com/docs/reference/config/page/
|
|
59
|
+
.in((element === null || element === void 0 ? void 0 : element._scope) || element).select("#".concat(harmonyId || element.uid)).boundingClientRect().exec(function(param) {
|
|
61
60
|
var _param = (0, _sliced_to_array._)(param, 1), rects = _param[0];
|
|
62
61
|
if (rects) {
|
|
63
62
|
lru.set(element, rects);
|
|
@@ -72,17 +71,12 @@ var getRectInMultiPlatform = /*#__PURE__*/ function() {
|
|
|
72
71
|
Promise.resolve(makeRect(0, 0))
|
|
73
72
|
];
|
|
74
73
|
});
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var getRectInMultiPlatformWithoutCache = /*#__PURE__*/ function() {
|
|
81
|
-
var _ref = (0, _async_to_generator._)(function(element) {
|
|
82
|
-
var harmonyId;
|
|
83
|
-
var _arguments = arguments;
|
|
74
|
+
})();
|
|
75
|
+
};
|
|
76
|
+
var getRectInMultiPlatformWithoutCache = function getRectInMultiPlatformWithoutCache(element) {
|
|
77
|
+
var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
|
|
78
|
+
return (0, _async_to_generator._)(function() {
|
|
84
79
|
return (0, _ts_generator._)(this, function(_state) {
|
|
85
|
-
harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : '';
|
|
86
80
|
if (element) {
|
|
87
81
|
if (_getrect.inBrowser) {
|
|
88
82
|
return [
|
|
@@ -93,7 +87,8 @@ var getRectInMultiPlatformWithoutCache = /*#__PURE__*/ function() {
|
|
|
93
87
|
return [
|
|
94
88
|
2,
|
|
95
89
|
new Promise(function(resolve, reject) {
|
|
96
|
-
(0, _taro.createSelectorQuery)()
|
|
90
|
+
(0, _taro.createSelectorQuery)() // https://taro.jd.com/docs/reference/config/page/
|
|
91
|
+
.in((element === null || element === void 0 ? void 0 : element._scope) || element).select("#".concat(harmonyId || element.uid)).boundingClientRect().exec(function(param) {
|
|
97
92
|
var _param = (0, _sliced_to_array._)(param, 1), rects = _param[0];
|
|
98
93
|
resolve(rects);
|
|
99
94
|
});
|
|
@@ -105,8 +100,5 @@ var getRectInMultiPlatformWithoutCache = /*#__PURE__*/ function() {
|
|
|
105
100
|
Promise.resolve(makeRect(0, 0))
|
|
106
101
|
];
|
|
107
102
|
});
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
return _ref.apply(this, arguments);
|
|
111
|
-
};
|
|
112
|
-
}();
|
|
103
|
+
})();
|
|
104
|
+
};
|
|
@@ -14,9 +14,4 @@ export declare const getDeviceInfo: () => IDeviceInfo;
|
|
|
14
14
|
* @returns {Taro.getWindowInfo.Result} 窗口信息
|
|
15
15
|
*/
|
|
16
16
|
export declare const getWindowInfo: () => Taro.getWindowInfo.Result;
|
|
17
|
-
/**
|
|
18
|
-
* 获取应用基础信息,兼容新旧 API
|
|
19
|
-
* @returns {Taro.getAppBaseInfo.Result} 应用基础信息
|
|
20
|
-
*/
|
|
21
|
-
export declare const getAppBaseInfo: () => Taro.getAppBaseInfo.Result;
|
|
22
17
|
export {};
|
|
@@ -5,17 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
13
|
-
return getAppBaseInfo;
|
|
14
|
-
},
|
|
15
|
-
getDeviceInfo: function() {
|
|
12
|
+
get getDeviceInfo () {
|
|
16
13
|
return getDeviceInfo;
|
|
17
14
|
},
|
|
18
|
-
getWindowInfo
|
|
15
|
+
get getWindowInfo () {
|
|
19
16
|
return getWindowInfo;
|
|
20
17
|
}
|
|
21
18
|
});
|
|
@@ -26,7 +23,5 @@ var getDeviceInfo = function getDeviceInfo() {
|
|
|
26
23
|
};
|
|
27
24
|
var getWindowInfo = function getWindowInfo() {
|
|
28
25
|
return typeof _taro.default.getWindowInfo === 'function' ? _taro.default.getWindowInfo() : _taro.default.getSystemInfoSync();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return typeof _taro.default.getAppBaseInfo === 'function' ? _taro.default.getAppBaseInfo() : _taro.default.getSystemInfoSync();
|
|
32
|
-
};
|
|
26
|
+
} // /**
|
|
27
|
+
;
|
|
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
harmony
|
|
12
|
+
get harmony () {
|
|
13
13
|
return harmony;
|
|
14
14
|
},
|
|
15
|
-
miniprogram
|
|
15
|
+
get miniprogram () {
|
|
16
16
|
return miniprogram;
|
|
17
17
|
},
|
|
18
|
-
td
|
|
18
|
+
get td () {
|
|
19
19
|
return td;
|
|
20
20
|
},
|
|
21
|
-
web
|
|
21
|
+
get web () {
|
|
22
22
|
return web;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
@@ -3,6 +3,7 @@ import { useEffect, useRef } from "react";
|
|
|
3
3
|
import isEqual from "react-fast-compare";
|
|
4
4
|
import { eventCenter, getCurrentInstance } from "@tarojs/taro";
|
|
5
5
|
import { useForceUpdate } from "../use-force-update";
|
|
6
|
+
// export const customEvents = new Events()
|
|
6
7
|
export var customEvents = eventCenter;
|
|
7
8
|
export function useCustomEventsPath(selector) {
|
|
8
9
|
var _getCurrentInstance_router;
|
|
@@ -9,6 +9,11 @@ export interface BaseLang {
|
|
|
9
9
|
edit: string;
|
|
10
10
|
reset: string;
|
|
11
11
|
close: string;
|
|
12
|
+
back: string;
|
|
13
|
+
clear: string;
|
|
14
|
+
image: {
|
|
15
|
+
errorTip: string;
|
|
16
|
+
};
|
|
12
17
|
video: {
|
|
13
18
|
errorTip: string;
|
|
14
19
|
clickRetry: string;
|
|
@@ -39,6 +44,7 @@ export interface BaseLang {
|
|
|
39
44
|
today: string;
|
|
40
45
|
loadPreviousMonth: string;
|
|
41
46
|
noEarlierMonth: string;
|
|
47
|
+
dayAriaLabel?: Function;
|
|
42
48
|
};
|
|
43
49
|
shortpassword: {
|
|
44
50
|
title: string;
|
|
@@ -142,4 +148,7 @@ export interface BaseLang {
|
|
|
142
148
|
errorCanvasTips: string;
|
|
143
149
|
};
|
|
144
150
|
mask: string;
|
|
151
|
+
quickenter: {
|
|
152
|
+
title: string;
|
|
153
|
+
};
|
|
145
154
|
}
|
package/dist/es/locales/en-US.js
CHANGED
|
@@ -9,6 +9,11 @@ var enUS = {
|
|
|
9
9
|
edit: 'Edit',
|
|
10
10
|
reset: 'Reset',
|
|
11
11
|
close: 'Close',
|
|
12
|
+
back: 'Back',
|
|
13
|
+
clear: 'Clear',
|
|
14
|
+
image: {
|
|
15
|
+
errorTip: 'Image failed to load'
|
|
16
|
+
},
|
|
12
17
|
video: {
|
|
13
18
|
errorTip: 'Error Tip',
|
|
14
19
|
clickRetry: 'Click Retry'
|
|
@@ -48,7 +53,18 @@ var enUS = {
|
|
|
48
53
|
},
|
|
49
54
|
today: 'Today',
|
|
50
55
|
loadPreviousMonth: 'Load Previous Month',
|
|
51
|
-
noEarlierMonth: 'No Earlier Month'
|
|
56
|
+
noEarlierMonth: 'No Earlier Month',
|
|
57
|
+
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
58
|
+
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
59
|
+
var label = today ? "Today, ".concat(dateStr) : dateStr;
|
|
60
|
+
if (isActive) {
|
|
61
|
+
label = "Selected ".concat(label);
|
|
62
|
+
}
|
|
63
|
+
if (isDisable) {
|
|
64
|
+
label = "".concat(label, " disabled");
|
|
65
|
+
}
|
|
66
|
+
return label;
|
|
67
|
+
}
|
|
52
68
|
},
|
|
53
69
|
shortpassword: {
|
|
54
70
|
title: 'Please input a password',
|
|
@@ -155,6 +171,9 @@ var enUS = {
|
|
|
155
171
|
watermark: {
|
|
156
172
|
errorCanvasTips: 'Canvas is not supported in the current environment'
|
|
157
173
|
},
|
|
158
|
-
mask: 'Mask'
|
|
174
|
+
mask: 'Mask',
|
|
175
|
+
quickenter: {
|
|
176
|
+
title: 'Quick Enter'
|
|
177
|
+
}
|
|
159
178
|
};
|
|
160
179
|
export default enUS;
|
package/dist/es/locales/id-ID.js
CHANGED
|
@@ -9,6 +9,11 @@ var idID = {
|
|
|
9
9
|
edit: 'Sunting',
|
|
10
10
|
reset: 'Mengatur Ulang',
|
|
11
11
|
close: 'Tutup',
|
|
12
|
+
back: 'Kembali',
|
|
13
|
+
clear: 'Bersihkan',
|
|
14
|
+
image: {
|
|
15
|
+
errorTip: 'Gambar gagal dimuat'
|
|
16
|
+
},
|
|
12
17
|
video: {
|
|
13
18
|
errorTip: 'Terjadi Kesalahan',
|
|
14
19
|
clickRetry: 'Coba Lagi'
|
|
@@ -48,7 +53,18 @@ var idID = {
|
|
|
48
53
|
},
|
|
49
54
|
today: 'Hari ini',
|
|
50
55
|
loadPreviousMonth: 'Muat Bulan Sebelumnya',
|
|
51
|
-
noEarlierMonth: 'Tidak Ada Bulan Sebelumnya'
|
|
56
|
+
noEarlierMonth: 'Tidak Ada Bulan Sebelumnya',
|
|
57
|
+
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
58
|
+
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
59
|
+
var label = today ? "Hari ini, ".concat(dateStr) : dateStr;
|
|
60
|
+
if (isActive) {
|
|
61
|
+
label = "Dipilih ".concat(label);
|
|
62
|
+
}
|
|
63
|
+
if (isDisable) {
|
|
64
|
+
label = "".concat(label, " dinonaktifkan");
|
|
65
|
+
}
|
|
66
|
+
return label;
|
|
67
|
+
}
|
|
52
68
|
},
|
|
53
69
|
shortpassword: {
|
|
54
70
|
title: 'SIlakan masukan kata sandi',
|
|
@@ -155,6 +171,9 @@ var idID = {
|
|
|
155
171
|
watermark: {
|
|
156
172
|
errorCanvasTips: 'Canvas is not supported in the current environment'
|
|
157
173
|
},
|
|
158
|
-
mask: 'Masker'
|
|
174
|
+
mask: 'Masker',
|
|
175
|
+
quickenter: {
|
|
176
|
+
title: 'Masuk Cepat'
|
|
177
|
+
}
|
|
159
178
|
};
|
|
160
179
|
export default idID;
|
package/dist/es/locales/ja-JP.js
CHANGED
|
@@ -8,6 +8,12 @@ var jaJP = {
|
|
|
8
8
|
select: '選択してください',
|
|
9
9
|
edit: '編集',
|
|
10
10
|
reset: 'リセット',
|
|
11
|
+
close: '閉じる',
|
|
12
|
+
back: '戻る',
|
|
13
|
+
clear: 'クリア',
|
|
14
|
+
image: {
|
|
15
|
+
errorTip: '画像の読み込みに失敗しました'
|
|
16
|
+
},
|
|
11
17
|
video: {
|
|
12
18
|
errorTip: '動画の読み込みに失敗しました',
|
|
13
19
|
clickRetry: 'クリックして再試行'
|
|
@@ -47,7 +53,16 @@ var jaJP = {
|
|
|
47
53
|
},
|
|
48
54
|
today: '今日',
|
|
49
55
|
loadPreviousMonth: '前の月を読み込む',
|
|
50
|
-
noEarlierMonth: 'これより前の月はありません'
|
|
56
|
+
noEarlierMonth: 'これより前の月はありません',
|
|
57
|
+
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
58
|
+
if (isActive) {
|
|
59
|
+
return today ? "今日".concat(month, "月").concat(day, "日を選択しました") : "".concat(month, "月").concat(day, "日を選択しました");
|
|
60
|
+
}
|
|
61
|
+
if (isDisable) {
|
|
62
|
+
return today ? "今日".concat(month, "月").concat(day, "日は無効です") : "".concat(month, "月").concat(day, "日は無効です");
|
|
63
|
+
}
|
|
64
|
+
return today ? "今日".concat(month, "月").concat(day, "日") : "".concat(month, "月").concat(day, "日");
|
|
65
|
+
}
|
|
51
66
|
},
|
|
52
67
|
shortpassword: {
|
|
53
68
|
title: 'パスワードを入力してください',
|
|
@@ -155,6 +170,8 @@ var jaJP = {
|
|
|
155
170
|
errorCanvasTips: '現在の環境はCanvasをサポートしていません'
|
|
156
171
|
},
|
|
157
172
|
mask: 'マスク',
|
|
158
|
-
|
|
173
|
+
quickenter: {
|
|
174
|
+
title: 'クイックアクセス'
|
|
175
|
+
}
|
|
159
176
|
};
|
|
160
177
|
export default jaJP;
|
package/dist/es/locales/tr-TR.js
CHANGED
|
@@ -9,6 +9,11 @@ var trTR = {
|
|
|
9
9
|
edit: 'düzenlemek',
|
|
10
10
|
reset: 'sıfırlama',
|
|
11
11
|
close: 'Kapat',
|
|
12
|
+
back: 'Geri',
|
|
13
|
+
clear: 'Temizle',
|
|
14
|
+
image: {
|
|
15
|
+
errorTip: 'Resim yüklenemedi'
|
|
16
|
+
},
|
|
12
17
|
video: {
|
|
13
18
|
errorTip: 'Video yüklenemedi',
|
|
14
19
|
clickRetry: 'Yeniden Tıklayın'
|
|
@@ -48,7 +53,18 @@ var trTR = {
|
|
|
48
53
|
},
|
|
49
54
|
today: 'Bugün',
|
|
50
55
|
loadPreviousMonth: 'Önceki ayı yükle',
|
|
51
|
-
noEarlierMonth: 'Önceki ay yok'
|
|
56
|
+
noEarlierMonth: 'Önceki ay yok',
|
|
57
|
+
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
58
|
+
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
59
|
+
var label = today ? "Bug\xfcn, ".concat(dateStr) : dateStr;
|
|
60
|
+
if (isActive) {
|
|
61
|
+
label = "Se\xe7ili ".concat(label);
|
|
62
|
+
}
|
|
63
|
+
if (isDisable) {
|
|
64
|
+
label = "".concat(label, " devre dışı");
|
|
65
|
+
}
|
|
66
|
+
return label;
|
|
67
|
+
}
|
|
52
68
|
},
|
|
53
69
|
shortpassword: {
|
|
54
70
|
title: 'Lütfen şifrenizi girin',
|
|
@@ -155,6 +171,9 @@ var trTR = {
|
|
|
155
171
|
watermark: {
|
|
156
172
|
errorCanvasTips: 'Geçerli ortam Canvası desteklemiyor'
|
|
157
173
|
},
|
|
158
|
-
mask: 'Maske'
|
|
174
|
+
mask: 'Maske',
|
|
175
|
+
quickenter: {
|
|
176
|
+
title: 'Hızlı Giriş'
|
|
177
|
+
}
|
|
159
178
|
};
|
|
160
179
|
export default trTR;
|
package/dist/es/locales/zh-CN.js
CHANGED
|
@@ -9,6 +9,11 @@ var zhCN = {
|
|
|
9
9
|
edit: '编辑',
|
|
10
10
|
reset: '重置',
|
|
11
11
|
close: '关闭',
|
|
12
|
+
back: '返回',
|
|
13
|
+
clear: '清除',
|
|
14
|
+
image: {
|
|
15
|
+
errorTip: '图片加载失败'
|
|
16
|
+
},
|
|
12
17
|
video: {
|
|
13
18
|
errorTip: '视频加载失败',
|
|
14
19
|
clickRetry: '点击重试'
|
|
@@ -48,7 +53,16 @@ var zhCN = {
|
|
|
48
53
|
},
|
|
49
54
|
today: '今天',
|
|
50
55
|
loadPreviousMonth: '加载上一个月',
|
|
51
|
-
noEarlierMonth: '没有更早月份'
|
|
56
|
+
noEarlierMonth: '没有更早月份',
|
|
57
|
+
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
58
|
+
if (isActive) {
|
|
59
|
+
return today ? "已选定今日".concat(month, "月").concat(day, "号") : "已选定".concat(month, "月").concat(day, "号");
|
|
60
|
+
}
|
|
61
|
+
if (isDisable) {
|
|
62
|
+
return today ? "".concat(month, "月").concat(day, "号今日按钮变暗") : "".concat(month, "月").concat(day, "号按钮变暗");
|
|
63
|
+
}
|
|
64
|
+
return today ? "".concat(month, "月").concat(day, "号今日") : "".concat(month, "月").concat(day, "号");
|
|
65
|
+
}
|
|
52
66
|
},
|
|
53
67
|
shortpassword: {
|
|
54
68
|
title: '请输入密码',
|
|
@@ -155,6 +169,9 @@ var zhCN = {
|
|
|
155
169
|
watermark: {
|
|
156
170
|
errorCanvasTips: '当前环境不支持Canvas'
|
|
157
171
|
},
|
|
158
|
-
mask: '蒙层'
|
|
172
|
+
mask: '蒙层',
|
|
173
|
+
quickenter: {
|
|
174
|
+
title: '快捷入口'
|
|
175
|
+
}
|
|
159
176
|
};
|
|
160
177
|
export default zhCN;
|
package/dist/es/locales/zh-TW.js
CHANGED
|
@@ -9,6 +9,11 @@ var zhCN = {
|
|
|
9
9
|
edit: '編輯',
|
|
10
10
|
reset: '重置',
|
|
11
11
|
close: '關閉',
|
|
12
|
+
back: '返回',
|
|
13
|
+
clear: '清除',
|
|
14
|
+
image: {
|
|
15
|
+
errorTip: '圖片加載失敗'
|
|
16
|
+
},
|
|
12
17
|
video: {
|
|
13
18
|
errorTip: '視頻加載失敗',
|
|
14
19
|
clickRetry: '點擊重試'
|
|
@@ -48,7 +53,16 @@ var zhCN = {
|
|
|
48
53
|
},
|
|
49
54
|
today: '今天',
|
|
50
55
|
loadPreviousMonth: '加載上一個月',
|
|
51
|
-
noEarlierMonth: '沒有更早月份'
|
|
56
|
+
noEarlierMonth: '沒有更早月份',
|
|
57
|
+
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
58
|
+
if (isActive) {
|
|
59
|
+
return today ? "已選定今日".concat(month, "月").concat(day, "號") : "已選定".concat(month, "月").concat(day, "號");
|
|
60
|
+
}
|
|
61
|
+
if (isDisable) {
|
|
62
|
+
return today ? "".concat(month, "月").concat(day, "號今日按鈕變暗") : "".concat(month, "月").concat(day, "號按鈕變暗");
|
|
63
|
+
}
|
|
64
|
+
return today ? "".concat(month, "月").concat(day, "號今日") : "".concat(month, "月").concat(day, "號");
|
|
65
|
+
}
|
|
52
66
|
},
|
|
53
67
|
shortpassword: {
|
|
54
68
|
title: '請輸入密碼',
|
|
@@ -155,6 +169,9 @@ var zhCN = {
|
|
|
155
169
|
watermark: {
|
|
156
170
|
errorCanvasTips: '當前環境不支持Canvas'
|
|
157
171
|
},
|
|
158
|
-
mask: '蒙層'
|
|
172
|
+
mask: '蒙層',
|
|
173
|
+
quickenter: {
|
|
174
|
+
title: '快捷入口'
|
|
175
|
+
}
|
|
159
176
|
};
|
|
160
177
|
export default zhCN;
|
package/dist/es/locales/zh-UG.js
CHANGED
|
@@ -9,6 +9,11 @@ var zhUG = {
|
|
|
9
9
|
edit: 'يحرر',
|
|
10
10
|
reset: 'إعادة ضبط',
|
|
11
11
|
close: 'تاقاش',
|
|
12
|
+
back: 'قايتىش',
|
|
13
|
+
clear: 'تاقاش',
|
|
14
|
+
image: {
|
|
15
|
+
errorTip: 'رەسىم يۈكلەش مەغلۇپ بولدى'
|
|
16
|
+
},
|
|
12
17
|
video: {
|
|
13
18
|
errorTip: 'فىلىمنى قويۇش مەغلۇپ بولدى',
|
|
14
19
|
clickRetry: 'قايتا سىناش'
|
|
@@ -48,7 +53,18 @@ var zhUG = {
|
|
|
48
53
|
},
|
|
49
54
|
today: 'بۈگۈن',
|
|
50
55
|
loadPreviousMonth: 'ئالدىنقى ئاي',
|
|
51
|
-
noEarlierMonth: 'تۈگىدى'
|
|
56
|
+
noEarlierMonth: 'تۈگىدى',
|
|
57
|
+
dayAriaLabel: function(year, month, day, today, isActive, isDisable) {
|
|
58
|
+
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
59
|
+
var label = today ? "بۈگۈن, ".concat(dateStr) : dateStr;
|
|
60
|
+
if (isActive) {
|
|
61
|
+
label = "تاللانغان ".concat(label);
|
|
62
|
+
}
|
|
63
|
+
if (isDisable) {
|
|
64
|
+
label = "".concat(label, " چەكلەنگەن");
|
|
65
|
+
}
|
|
66
|
+
return label;
|
|
67
|
+
}
|
|
52
68
|
},
|
|
53
69
|
shortpassword: {
|
|
54
70
|
title: 'مەخپى نومۇرنى كىرگۈزۈڭ',
|
|
@@ -155,6 +171,9 @@ var zhUG = {
|
|
|
155
171
|
watermark: {
|
|
156
172
|
errorCanvasTips: 'Canvas نى قوللىمايدۇ'
|
|
157
173
|
},
|
|
158
|
-
mask: '
|
|
174
|
+
mask: 'mask',
|
|
175
|
+
quickenter: {
|
|
176
|
+
title: 'تېز كىرگۈزۈش'
|
|
177
|
+
}
|
|
159
178
|
};
|
|
160
179
|
export default zhUG;
|