@nutui/nutui-react-taro 3.0.19-cpp-beta.5 → 3.0.19-cpp.10
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/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/packages/actionsheet/style/style.harmony.css +2 -2
- package/dist/cjs/packages/address/style/style.harmony.css +9 -3
- package/dist/cjs/packages/address/utils.js +3 -3
- package/dist/cjs/packages/audio/style/style.harmony.css +8 -5
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +16 -28
- package/dist/cjs/packages/badge/badge.js +4 -7
- package/dist/cjs/packages/badge/style/badge.scss +1 -1
- package/dist/cjs/packages/badge/style/style.css +1 -1
- package/dist/cjs/packages/badge/style/style.harmony.css +1 -1
- package/dist/cjs/packages/badge/style-jmapp/badge.scss +1 -1
- package/dist/cjs/packages/badge/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/badge/style-jrkf/badge.scss +1 -1
- package/dist/cjs/packages/badge/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/barrage/barrage.js +14 -24
- package/dist/cjs/packages/button/style/button.scss +3 -0
- package/dist/cjs/packages/button/style/style.css +8 -5
- package/dist/cjs/packages/button/style/style.harmony.css +8 -5
- package/dist/cjs/packages/button/style-jmapp/button.scss +3 -0
- package/dist/cjs/packages/button/style-jmapp/style.css +3 -0
- package/dist/cjs/packages/button/style-jrkf/button.scss +3 -0
- package/dist/cjs/packages/button/style-jrkf/style.css +3 -0
- package/dist/cjs/packages/calendar/style/style.css +2 -2
- package/dist/cjs/packages/calendar/style/style.harmony.css +4 -4
- package/dist/cjs/packages/calendar/utils.js +8 -8
- package/dist/cjs/packages/calendarcard/icon.js +5 -5
- package/dist/cjs/packages/calendarcard/style/style.css +1 -1
- package/dist/cjs/packages/calendarcard/style/style.harmony.css +1 -1
- package/dist/cjs/packages/calendarcard/utils.js +6 -6
- package/dist/cjs/packages/card/style/style.harmony.css +4 -4
- package/dist/cjs/packages/cascader/cascader.js +12 -21
- package/dist/cjs/packages/cascader/style/cascader.scss +2 -0
- package/dist/cjs/packages/cascader/style/style.css +2 -0
- package/dist/cjs/packages/cascader/style/style.harmony.css +9 -3
- package/dist/cjs/packages/cascader/style-jmapp/cascader.scss +2 -0
- package/dist/cjs/packages/cascader/style-jmapp/style.css +2 -0
- package/dist/cjs/packages/cascader/style-jrkf/cascader.scss +2 -0
- package/dist/cjs/packages/cascader/style-jrkf/style.css +2 -0
- package/dist/cjs/packages/cascader/utils.js +3 -3
- package/dist/cjs/packages/checkbox/checkbox.js +1 -1
- package/dist/cjs/packages/checkbox/style/style.css +1 -1
- package/dist/cjs/packages/checkbox/style/style.harmony.css +1 -1
- package/dist/cjs/packages/circleprogress/style/style.css +1 -1
- package/dist/cjs/packages/circleprogress/style/style.harmony.css +1 -1
- package/dist/cjs/packages/col/col.js +16 -11
- 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/countdown/style/countdown.scss +1 -1
- package/dist/cjs/packages/countdown/style/style.css +1 -1
- package/dist/cjs/packages/countdown/style/style.harmony.css +1 -1
- package/dist/cjs/packages/countdown/style-jmapp/countdown.scss +1 -1
- package/dist/cjs/packages/countdown/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/countdown/style-jrkf/countdown.scss +1 -1
- package/dist/cjs/packages/countdown/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/datepicker/style/style.harmony.css +4 -4
- 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 +8 -11
- package/dist/cjs/packages/dialog/style/dialog.scss +8 -2
- package/dist/cjs/packages/dialog/style/style.css +11 -5
- package/dist/cjs/packages/dialog/style/style.harmony.css +19 -10
- package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +8 -2
- package/dist/cjs/packages/dialog/style-jmapp/style.css +8 -2
- package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +8 -2
- package/dist/cjs/packages/dialog/style-jrkf/style.css +8 -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/style/style.css +2 -2
- package/dist/cjs/packages/empty/style/style.harmony.css +10 -7
- package/dist/cjs/packages/fixednav/style/style.harmony.css +1 -1
- package/dist/cjs/packages/form/index.js +0 -2
- package/dist/cjs/packages/form/useform.js +50 -57
- package/dist/cjs/packages/imagepreview/style/style.harmony.css +2 -2
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/cjs/packages/input/style/input.scss +0 -1
- package/dist/cjs/packages/input/style/style.css +0 -1
- package/dist/cjs/packages/input/style/style.harmony.css +0 -1
- package/dist/cjs/packages/input/style-jmapp/input.scss +0 -1
- package/dist/cjs/packages/input/style-jmapp/style.css +0 -1
- package/dist/cjs/packages/input/style-jrkf/input.scss +0 -1
- package/dist/cjs/packages/input/style-jrkf/style.css +0 -1
- package/dist/cjs/packages/inputnumber/inputnumber.js +16 -28
- 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 +119 -109
- package/dist/cjs/packages/noticebar/style/noticebar.scss +4 -0
- package/dist/cjs/packages/noticebar/style/style.css +4 -0
- package/dist/cjs/packages/noticebar/style/style.harmony.css +4 -0
- package/dist/cjs/packages/noticebar/style-jmapp/noticebar.scss +4 -0
- package/dist/cjs/packages/noticebar/style-jmapp/style.css +4 -0
- package/dist/cjs/packages/noticebar/style-jrkf/noticebar.scss +4 -0
- package/dist/cjs/packages/noticebar/style-jrkf/style.css +4 -0
- package/dist/cjs/packages/notify/notify.js +4 -4
- package/dist/cjs/packages/numberkeyboard/style/style.css +3 -3
- package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +5 -5
- package/dist/cjs/packages/nutui.react.build.js +105 -105
- package/dist/cjs/packages/nutui.react.js +105 -105
- package/dist/cjs/packages/overlay/overlay.js +3 -3
- package/dist/cjs/packages/picker/style/style.css +2 -2
- package/dist/cjs/packages/picker/style/style.harmony.css +4 -4
- 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 +2 -2
- package/dist/cjs/packages/popup/popup.js +8 -14
- package/dist/cjs/packages/popup/style/style.css +2 -2
- package/dist/cjs/packages/popup/style/style.harmony.css +2 -2
- package/dist/cjs/packages/price/style/price.scss +3 -3
- package/dist/cjs/packages/price/style/style.css +4 -4
- package/dist/cjs/packages/price/style/style.harmony.css +4 -4
- package/dist/cjs/packages/price/style-jmapp/price.scss +3 -3
- package/dist/cjs/packages/price/style-jmapp/style.css +3 -3
- package/dist/cjs/packages/price/style-jrkf/price.scss +3 -3
- package/dist/cjs/packages/price/style-jrkf/style.css +3 -3
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
- package/dist/cjs/packages/radio/index.js +0 -2
- package/dist/cjs/packages/radio/style/style.css +1 -1
- package/dist/cjs/packages/radio/style/style.harmony.css +1 -1
- package/dist/cjs/packages/range/range.js +16 -28
- package/dist/cjs/packages/rate/style/rate.scss +1 -1
- package/dist/cjs/packages/rate/style/style.css +1 -1
- package/dist/cjs/packages/rate/style/style.harmony.css +1 -1
- package/dist/cjs/packages/rate/style-jmapp/rate.scss +1 -1
- package/dist/cjs/packages/rate/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/rate/style-jrkf/rate.scss +1 -1
- package/dist/cjs/packages/rate/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/resultpage/style/style.harmony.css +8 -5
- package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
- package/dist/cjs/packages/shortpassword/style/style.css +1 -1
- package/dist/cjs/packages/shortpassword/style/style.harmony.css +3 -3
- package/dist/cjs/packages/sidebar/style/style.css +1 -1
- package/dist/cjs/packages/sidebar/style/style.harmony.css +1 -1
- package/dist/cjs/packages/steps/style/style.css +1 -1
- package/dist/cjs/packages/steps/style/style.harmony.css +1 -1
- package/dist/cjs/packages/sticky/sticky.js +4 -7
- package/dist/cjs/packages/swipe/swipe.js +8 -15
- package/dist/cjs/packages/swiper/index.js +0 -1
- package/dist/cjs/packages/switch/switch.js +4 -7
- package/dist/cjs/packages/tabbar/style/style.harmony.css +3 -3
- package/dist/cjs/packages/tabbaritem/style/style.css +2 -2
- package/dist/cjs/packages/tabbaritem/style/style.harmony.css +3 -3
- package/dist/cjs/packages/tabs/style/style.css +5 -1
- package/dist/cjs/packages/tabs/style/style.harmony.css +5 -1
- package/dist/cjs/packages/tabs/style/tabs.scss +4 -0
- package/dist/cjs/packages/tabs/style-jmapp/style.css +4 -0
- package/dist/cjs/packages/tabs/style-jmapp/tabs.scss +4 -0
- package/dist/cjs/packages/tabs/style-jrkf/style.css +4 -0
- package/dist/cjs/packages/tabs/style-jrkf/tabs.scss +4 -0
- package/dist/cjs/packages/timeselect/style/style.harmony.css +2 -2
- package/dist/cjs/packages/toast/style/style.css +7 -1
- package/dist/cjs/packages/toast/style/style.harmony.css +7 -1
- package/dist/cjs/packages/toast/style/toast.scss +6 -0
- package/dist/cjs/packages/toast/style-jmapp/style.css +6 -0
- package/dist/cjs/packages/toast/style-jmapp/toast.scss +6 -0
- package/dist/cjs/packages/toast/style-jrkf/style.css +6 -0
- package/dist/cjs/packages/toast/style-jrkf/toast.scss +6 -0
- package/dist/cjs/packages/toast/toast.js +5 -5
- package/dist/cjs/packages/tour/style/style.harmony.css +2 -2
- 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/spec/address/base.js +0 -2
- 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/taro/get-rect.js +14 -24
- package/dist/cjs/utils/taro/get-system-info.js +4 -4
- package/dist/cjs/utils/taro/platform.js +5 -5
- package/dist/es/hooks/use-touch.js +1 -1
- package/dist/es/packages/actionsheet/style/style.harmony.css +2 -2
- package/dist/es/packages/address/style/style.harmony.css +9 -3
- package/dist/es/packages/audio/style/style.harmony.css +8 -5
- package/dist/es/packages/avatarcropper/avatarcropper.js +16 -28
- package/dist/es/packages/badge/badge.js +4 -7
- package/dist/es/packages/badge/style/badge.scss +1 -1
- package/dist/es/packages/badge/style/style.css +1 -1
- package/dist/es/packages/badge/style/style.harmony.css +1 -1
- package/dist/es/packages/badge/style-jmapp/badge.scss +1 -1
- package/dist/es/packages/badge/style-jmapp/style.css +1 -1
- package/dist/es/packages/badge/style-jrkf/badge.scss +1 -1
- package/dist/es/packages/badge/style-jrkf/style.css +1 -1
- package/dist/es/packages/barrage/barrage.js +14 -24
- package/dist/es/packages/button/style/button.scss +3 -0
- package/dist/es/packages/button/style/style.css +8 -5
- package/dist/es/packages/button/style/style.harmony.css +8 -5
- package/dist/es/packages/button/style-jmapp/button.scss +3 -0
- package/dist/es/packages/button/style-jmapp/style.css +3 -0
- package/dist/es/packages/button/style-jrkf/button.scss +3 -0
- package/dist/es/packages/button/style-jrkf/style.css +3 -0
- package/dist/es/packages/calendar/style/style.css +2 -2
- package/dist/es/packages/calendar/style/style.harmony.css +4 -4
- package/dist/es/packages/calendarcard/style/style.css +1 -1
- package/dist/es/packages/calendarcard/style/style.harmony.css +1 -1
- package/dist/es/packages/card/style/style.harmony.css +4 -4
- package/dist/es/packages/cascader/cascader.js +12 -21
- package/dist/es/packages/cascader/style/cascader.scss +2 -0
- package/dist/es/packages/cascader/style/style.css +2 -0
- package/dist/es/packages/cascader/style/style.harmony.css +9 -3
- package/dist/es/packages/cascader/style-jmapp/cascader.scss +2 -0
- package/dist/es/packages/cascader/style-jmapp/style.css +2 -0
- package/dist/es/packages/cascader/style-jrkf/cascader.scss +2 -0
- package/dist/es/packages/cascader/style-jrkf/style.css +2 -0
- package/dist/es/packages/checkbox/checkbox.js +1 -1
- package/dist/es/packages/checkbox/style/style.css +1 -1
- package/dist/es/packages/checkbox/style/style.harmony.css +1 -1
- package/dist/es/packages/circleprogress/style/style.css +1 -1
- package/dist/es/packages/circleprogress/style/style.harmony.css +1 -1
- package/dist/es/packages/col/col.js +17 -12
- 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/countdown/style/countdown.scss +1 -1
- package/dist/es/packages/countdown/style/style.css +1 -1
- package/dist/es/packages/countdown/style/style.harmony.css +1 -1
- package/dist/es/packages/countdown/style-jmapp/countdown.scss +1 -1
- package/dist/es/packages/countdown/style-jmapp/style.css +1 -1
- package/dist/es/packages/countdown/style-jrkf/countdown.scss +1 -1
- package/dist/es/packages/countdown/style-jrkf/style.css +1 -1
- package/dist/es/packages/datepicker/style/style.harmony.css +4 -4
- package/dist/es/packages/dialog/dialog.js +4 -7
- package/dist/es/packages/dialog/style/dialog.scss +8 -2
- package/dist/es/packages/dialog/style/style.css +11 -5
- package/dist/es/packages/dialog/style/style.harmony.css +19 -10
- package/dist/es/packages/dialog/style-jmapp/dialog.scss +8 -2
- package/dist/es/packages/dialog/style-jmapp/style.css +8 -2
- package/dist/es/packages/dialog/style-jrkf/dialog.scss +8 -2
- package/dist/es/packages/dialog/style-jrkf/style.css +8 -2
- 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/style/style.css +2 -2
- package/dist/es/packages/empty/style/style.harmony.css +10 -7
- package/dist/es/packages/fixednav/style/style.harmony.css +1 -1
- package/dist/es/packages/form/index.js +0 -1
- package/dist/es/packages/form/useform.js +46 -53
- package/dist/es/packages/imagepreview/style/style.harmony.css +2 -2
- package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/es/packages/input/style/input.scss +0 -1
- package/dist/es/packages/input/style/style.css +0 -1
- package/dist/es/packages/input/style/style.harmony.css +0 -1
- package/dist/es/packages/input/style-jmapp/input.scss +0 -1
- package/dist/es/packages/input/style-jmapp/style.css +0 -1
- package/dist/es/packages/input/style-jrkf/input.scss +0 -1
- package/dist/es/packages/input/style-jrkf/style.css +0 -1
- package/dist/es/packages/inputnumber/inputnumber.js +16 -28
- 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 +151 -145
- package/dist/es/packages/noticebar/style/noticebar.scss +4 -0
- package/dist/es/packages/noticebar/style/style.css +4 -0
- package/dist/es/packages/noticebar/style/style.harmony.css +4 -0
- package/dist/es/packages/noticebar/style-jmapp/noticebar.scss +4 -0
- package/dist/es/packages/noticebar/style-jmapp/style.css +4 -0
- package/dist/es/packages/noticebar/style-jrkf/noticebar.scss +4 -0
- package/dist/es/packages/noticebar/style-jrkf/style.css +4 -0
- package/dist/es/packages/numberkeyboard/style/style.css +3 -3
- package/dist/es/packages/numberkeyboard/style/style.harmony.css +5 -5
- package/dist/es/packages/picker/style/style.css +2 -2
- package/dist/es/packages/picker/style/style.harmony.css +4 -4
- 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 +2 -2
- package/dist/es/packages/popup/popup.js +8 -14
- package/dist/es/packages/popup/style/style.css +2 -2
- package/dist/es/packages/popup/style/style.harmony.css +2 -2
- package/dist/es/packages/price/style/price.scss +3 -3
- package/dist/es/packages/price/style/style.css +4 -4
- package/dist/es/packages/price/style/style.harmony.css +4 -4
- package/dist/es/packages/price/style-jmapp/price.scss +3 -3
- package/dist/es/packages/price/style-jmapp/style.css +3 -3
- package/dist/es/packages/price/style-jrkf/price.scss +3 -3
- package/dist/es/packages/price/style-jrkf/style.css +3 -3
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
- package/dist/es/packages/radio/index.js +0 -1
- package/dist/es/packages/radio/style/style.css +1 -1
- package/dist/es/packages/radio/style/style.harmony.css +1 -1
- package/dist/es/packages/range/range.js +16 -28
- package/dist/es/packages/rate/style/rate.scss +1 -1
- package/dist/es/packages/rate/style/style.css +1 -1
- package/dist/es/packages/rate/style/style.harmony.css +1 -1
- package/dist/es/packages/rate/style-jmapp/rate.scss +1 -1
- package/dist/es/packages/rate/style-jmapp/style.css +1 -1
- package/dist/es/packages/rate/style-jrkf/rate.scss +1 -1
- package/dist/es/packages/rate/style-jrkf/style.css +1 -1
- package/dist/es/packages/resultpage/style/style.harmony.css +8 -5
- package/dist/es/packages/shortpassword/style/style.css +1 -1
- package/dist/es/packages/shortpassword/style/style.harmony.css +3 -3
- package/dist/es/packages/sidebar/style/style.css +1 -1
- package/dist/es/packages/sidebar/style/style.harmony.css +1 -1
- package/dist/es/packages/steps/style/style.css +1 -1
- package/dist/es/packages/steps/style/style.harmony.css +1 -1
- package/dist/es/packages/sticky/sticky.js +4 -7
- package/dist/es/packages/swipe/swipe.js +8 -15
- package/dist/es/packages/swiper/index.js +0 -1
- package/dist/es/packages/switch/switch.js +4 -7
- package/dist/es/packages/tabbar/style/style.harmony.css +3 -3
- package/dist/es/packages/tabbaritem/style/style.css +2 -2
- package/dist/es/packages/tabbaritem/style/style.harmony.css +3 -3
- package/dist/es/packages/tabs/style/style.css +5 -1
- package/dist/es/packages/tabs/style/style.harmony.css +5 -1
- package/dist/es/packages/tabs/style/tabs.scss +4 -0
- package/dist/es/packages/tabs/style-jmapp/style.css +4 -0
- package/dist/es/packages/tabs/style-jmapp/tabs.scss +4 -0
- package/dist/es/packages/tabs/style-jrkf/style.css +4 -0
- package/dist/es/packages/tabs/style-jrkf/tabs.scss +4 -0
- package/dist/es/packages/timeselect/style/style.harmony.css +2 -2
- package/dist/es/packages/toast/style/style.css +7 -1
- package/dist/es/packages/toast/style/style.harmony.css +7 -1
- package/dist/es/packages/toast/style/toast.scss +6 -0
- package/dist/es/packages/toast/style-jmapp/style.css +6 -0
- package/dist/es/packages/toast/style-jmapp/toast.scss +6 -0
- package/dist/es/packages/toast/style-jrkf/style.css +6 -0
- package/dist/es/packages/toast/style-jrkf/toast.scss +6 -0
- package/dist/es/packages/toast/toast.js +1 -1
- package/dist/es/packages/tour/style/style.harmony.css +2 -2
- package/dist/es/packages/uploader/uploader.js +38 -51
- package/dist/es/packages/watermark/watermark.js +4 -8
- package/dist/es/types/spec/address/base.js +1 -1
- package/dist/es/utils/event-mocker.js +4 -12
- package/dist/es/utils/render.js +2 -6
- package/dist/es/utils/taro/get-rect.js +10 -20
- package/dist/nutui.react.umd.js +662 -871
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +35 -35
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +29 -29
- package/dist/style.css +1 -1
- package/dist/style.scss +29 -29
- package/dist/styles/jd-font.scss +4 -4
- package/dist/styles/theme-default.scss +4 -1
- package/dist/styles/themes/dark.css +1 -1
- package/dist/styles/themes/default.css +1 -1
- package/dist/styles/variables-jmapp.scss +9 -0
- package/dist/styles/variables-jrkf.scss +9 -0
- package/dist/styles/variables.scss +20 -10
- package/package.json +1 -1
package/dist/nutui.react.umd.js
CHANGED
|
@@ -152,7 +152,6 @@
|
|
|
152
152
|
var classnamesExports = classnames.exports;
|
|
153
153
|
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
154
154
|
const globalConfig = {
|
|
155
|
-
useSvg: true,
|
|
156
155
|
classPrefix: "nut-icon",
|
|
157
156
|
tag: "i",
|
|
158
157
|
fontClassName: "nutui-iconfont"
|
|
@@ -179,7 +178,6 @@
|
|
|
179
178
|
height: height2,
|
|
180
179
|
size,
|
|
181
180
|
svg64,
|
|
182
|
-
svgSrc,
|
|
183
181
|
children,
|
|
184
182
|
onClick,
|
|
185
183
|
fallback = false
|
|
@@ -1881,14 +1879,16 @@
|
|
|
1881
1879
|
});
|
|
1882
1880
|
var Col = function(props) {
|
|
1883
1881
|
var _$_object_spread = _object_spread({}, defaultProps$1u, props), className = _$_object_spread.className, style = _$_object_spread.style, span = _$_object_spread.span, offset = _$_object_spread.offset, children = _$_object_spread.children, isFirst = _$_object_spread.isFirst, isLast = _$_object_spread.isLast, onClick = _$_object_spread.onClick;
|
|
1884
|
-
var _useState = _sliced_to_array(React.useState(""), 2), colName = _useState[0], setColName = _useState[1];
|
|
1885
|
-
var _useState1 = _sliced_to_array(React.useState({}), 2), colStyle = _useState1[0], setColStyle = _useState1[1];
|
|
1886
1882
|
var gutter = React.useContext(DataContext$1).gutter;
|
|
1887
|
-
var classs = function() {
|
|
1883
|
+
var classs = React.useMemo(function() {
|
|
1888
1884
|
var prefixCls2 = "nut-col";
|
|
1889
1885
|
return "".concat(prefixCls2, " ").concat(prefixCls2, "-").concat(span, " ").concat(gutter ? "".concat(prefixCls2, "-gutter") : "", " ").concat(prefixCls2, "-offset-").concat(offset);
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1886
|
+
}, [
|
|
1887
|
+
offset,
|
|
1888
|
+
span,
|
|
1889
|
+
gutter
|
|
1890
|
+
]);
|
|
1891
|
+
var getStyle = React.useMemo(function() {
|
|
1892
1892
|
var style2 = {};
|
|
1893
1893
|
if (!isFirst) {
|
|
1894
1894
|
style2.paddingLeft = pxTransform(gutter / 2);
|
|
@@ -1897,14 +1897,19 @@
|
|
|
1897
1897
|
style2.paddingRight = pxTransform(gutter / 2);
|
|
1898
1898
|
}
|
|
1899
1899
|
return style2;
|
|
1900
|
-
}
|
|
1900
|
+
}, [
|
|
1901
|
+
isFirst,
|
|
1902
|
+
isLast,
|
|
1903
|
+
gutter
|
|
1904
|
+
]);
|
|
1905
|
+
var _useState = _sliced_to_array(React.useState(classs), 2), colName = _useState[0], setColName = _useState[1];
|
|
1906
|
+
var _useState1 = _sliced_to_array(React.useState(getStyle), 2), colStyle = _useState1[0], setColStyle = _useState1[1];
|
|
1901
1907
|
React.useEffect(function() {
|
|
1902
1908
|
setColName(classs);
|
|
1903
1909
|
setColStyle(getStyle);
|
|
1904
1910
|
}, [
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
gutter
|
|
1911
|
+
classs,
|
|
1912
|
+
getStyle
|
|
1908
1913
|
]);
|
|
1909
1914
|
return /* @__PURE__ */ React.createElement(components.View, {
|
|
1910
1915
|
className: classNames(colName, className),
|
|
@@ -2224,12 +2229,10 @@
|
|
|
2224
2229
|
height: height2
|
|
2225
2230
|
};
|
|
2226
2231
|
}
|
|
2227
|
-
var getRectInMultiPlatform =
|
|
2228
|
-
var
|
|
2229
|
-
|
|
2230
|
-
var _arguments = arguments;
|
|
2232
|
+
var getRectInMultiPlatform = function(element) {
|
|
2233
|
+
var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
2234
|
+
return _async_to_generator(function() {
|
|
2231
2235
|
return __generator(this, function(_state) {
|
|
2232
|
-
harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "";
|
|
2233
2236
|
if (element) {
|
|
2234
2237
|
if (inBrowser) {
|
|
2235
2238
|
return [
|
|
@@ -2259,17 +2262,12 @@
|
|
|
2259
2262
|
Promise.resolve(makeRect(0, 0))
|
|
2260
2263
|
];
|
|
2261
2264
|
});
|
|
2262
|
-
});
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
var getRectInMultiPlatformWithoutCache = /* @__PURE__ */ function() {
|
|
2268
|
-
var _ref = _async_to_generator(function(element) {
|
|
2269
|
-
var harmonyId;
|
|
2270
|
-
var _arguments = arguments;
|
|
2265
|
+
})();
|
|
2266
|
+
};
|
|
2267
|
+
var getRectInMultiPlatformWithoutCache = function(element) {
|
|
2268
|
+
var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
2269
|
+
return _async_to_generator(function() {
|
|
2271
2270
|
return __generator(this, function(_state) {
|
|
2272
|
-
harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "";
|
|
2273
2271
|
if (element) {
|
|
2274
2272
|
if (inBrowser) {
|
|
2275
2273
|
return [
|
|
@@ -2292,11 +2290,8 @@
|
|
|
2292
2290
|
Promise.resolve(makeRect(0, 0))
|
|
2293
2291
|
];
|
|
2294
2292
|
});
|
|
2295
|
-
});
|
|
2296
|
-
|
|
2297
|
-
return _ref.apply(this, arguments);
|
|
2298
|
-
};
|
|
2299
|
-
}();
|
|
2293
|
+
})();
|
|
2294
|
+
};
|
|
2300
2295
|
var defaultProps$1r = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
2301
2296
|
position: "top",
|
|
2302
2297
|
zIndex: 900
|
|
@@ -2365,8 +2360,8 @@
|
|
|
2365
2360
|
threshold,
|
|
2366
2361
|
zIndex
|
|
2367
2362
|
]);
|
|
2368
|
-
var handleScroll =
|
|
2369
|
-
|
|
2363
|
+
var handleScroll = function(scrollTop) {
|
|
2364
|
+
return _async_to_generator(function() {
|
|
2370
2365
|
var curRootRect, stickyRect, containerRect, difference, curTransform, curFixed, windowHeight;
|
|
2371
2366
|
return __generator(this, function(_state) {
|
|
2372
2367
|
switch (_state.label) {
|
|
@@ -2434,11 +2429,8 @@
|
|
|
2434
2429
|
];
|
|
2435
2430
|
}
|
|
2436
2431
|
});
|
|
2437
|
-
});
|
|
2438
|
-
|
|
2439
|
-
return _ref2.apply(this, arguments);
|
|
2440
|
-
};
|
|
2441
|
-
}();
|
|
2432
|
+
})();
|
|
2433
|
+
};
|
|
2442
2434
|
var getElement = React.useCallback(function() {
|
|
2443
2435
|
return getScrollParent(rootRef.current);
|
|
2444
2436
|
}, []);
|
|
@@ -2915,16 +2907,7 @@
|
|
|
2915
2907
|
return months.slice(preDates - days);
|
|
2916
2908
|
};
|
|
2917
2909
|
var ENV_TYPE$1 = {
|
|
2918
|
-
|
|
2919
|
-
SWAN: "SWAN",
|
|
2920
|
-
ALIPAY: "ALIPAY",
|
|
2921
|
-
TT: "TT",
|
|
2922
|
-
QQ: "QQ",
|
|
2923
|
-
JD: "JD",
|
|
2924
|
-
WEB: "WEB",
|
|
2925
|
-
RN: "RN",
|
|
2926
|
-
HARMONY: "HARMONY",
|
|
2927
|
-
QUICKAPP: "QUICKAPP"
|
|
2910
|
+
WEB: "WEB"
|
|
2928
2911
|
};
|
|
2929
2912
|
var getRectById = function(id) {
|
|
2930
2913
|
return new Promise(function(resolve, reject) {
|
|
@@ -3146,10 +3129,7 @@
|
|
|
3146
3129
|
return unmountComponentAtNode(container);
|
|
3147
3130
|
}
|
|
3148
3131
|
function concurrentUnmount(container) {
|
|
3149
|
-
return
|
|
3150
|
-
}
|
|
3151
|
-
function _concurrentUnmount() {
|
|
3152
|
-
_concurrentUnmount = _async_to_generator(function(container) {
|
|
3132
|
+
return _async_to_generator(function() {
|
|
3153
3133
|
return __generator(this, function(_state) {
|
|
3154
3134
|
return [
|
|
3155
3135
|
2,
|
|
@@ -3160,8 +3140,7 @@
|
|
|
3160
3140
|
})
|
|
3161
3141
|
];
|
|
3162
3142
|
});
|
|
3163
|
-
});
|
|
3164
|
-
return _concurrentUnmount.apply(this, arguments);
|
|
3143
|
+
})();
|
|
3165
3144
|
}
|
|
3166
3145
|
function unmount(container) {
|
|
3167
3146
|
if (createRoot) {
|
|
@@ -3463,8 +3442,8 @@
|
|
|
3463
3442
|
}
|
|
3464
3443
|
});
|
|
3465
3444
|
};
|
|
3466
|
-
var scrollTo =
|
|
3467
|
-
|
|
3445
|
+
var scrollTo = function(index2) {
|
|
3446
|
+
return _async_to_generator(function() {
|
|
3468
3447
|
var cacheIndex, scrollTop2;
|
|
3469
3448
|
return __generator(this, function(_state) {
|
|
3470
3449
|
switch (_state.label) {
|
|
@@ -3504,11 +3483,8 @@
|
|
|
3504
3483
|
];
|
|
3505
3484
|
}
|
|
3506
3485
|
});
|
|
3507
|
-
});
|
|
3508
|
-
|
|
3509
|
-
return _ref2.apply(this, arguments);
|
|
3510
|
-
};
|
|
3511
|
-
}();
|
|
3486
|
+
})();
|
|
3487
|
+
};
|
|
3512
3488
|
var touchMove = function(e) {
|
|
3513
3489
|
var firstTouch = e.touches[0];
|
|
3514
3490
|
touchState.current.y2 = firstTouch.pageY;
|
|
@@ -3687,8 +3663,8 @@
|
|
|
3687
3663
|
getPositionStyle();
|
|
3688
3664
|
}
|
|
3689
3665
|
}, []);
|
|
3690
|
-
var getPositionStyle =
|
|
3691
|
-
|
|
3666
|
+
var getPositionStyle = function() {
|
|
3667
|
+
return _async_to_generator(function() {
|
|
3692
3668
|
var style2;
|
|
3693
3669
|
return __generator(this, function(_state) {
|
|
3694
3670
|
style2 = _define_property({
|
|
@@ -3699,11 +3675,8 @@
|
|
|
3699
3675
|
2
|
|
3700
3676
|
];
|
|
3701
3677
|
});
|
|
3702
|
-
});
|
|
3703
|
-
|
|
3704
|
-
return _ref.apply(this, arguments);
|
|
3705
|
-
};
|
|
3706
|
-
}();
|
|
3678
|
+
})();
|
|
3679
|
+
};
|
|
3707
3680
|
var _obj1;
|
|
3708
3681
|
return /* @__PURE__ */ React.createElement(components.View, {
|
|
3709
3682
|
className: classes,
|
|
@@ -4491,8 +4464,8 @@
|
|
|
4491
4464
|
}
|
|
4492
4465
|
onOpen && onOpen();
|
|
4493
4466
|
};
|
|
4494
|
-
var getPopupHeight =
|
|
4495
|
-
|
|
4467
|
+
var getPopupHeight = function() {
|
|
4468
|
+
return _async_to_generator(function() {
|
|
4496
4469
|
var _nodeRef_current, rect, height2;
|
|
4497
4470
|
return __generator(this, function(_state) {
|
|
4498
4471
|
switch (_state.label) {
|
|
@@ -4510,11 +4483,8 @@
|
|
|
4510
4483
|
];
|
|
4511
4484
|
}
|
|
4512
4485
|
});
|
|
4513
|
-
});
|
|
4514
|
-
|
|
4515
|
-
return _ref.apply(this, arguments);
|
|
4516
|
-
};
|
|
4517
|
-
}();
|
|
4486
|
+
})();
|
|
4487
|
+
};
|
|
4518
4488
|
React.useEffect(function() {
|
|
4519
4489
|
if (innerVisible && topNodeRef.current && nodeRef.current) {
|
|
4520
4490
|
Taro.nextTick(function() {
|
|
@@ -4581,8 +4551,8 @@
|
|
|
4581
4551
|
return renderCloseIcon();
|
|
4582
4552
|
}
|
|
4583
4553
|
};
|
|
4584
|
-
var handleTouchStart =
|
|
4585
|
-
|
|
4554
|
+
var handleTouchStart = function(event) {
|
|
4555
|
+
return _async_to_generator(function() {
|
|
4586
4556
|
var _nodeRef_current, _rootRect_current, e, rect;
|
|
4587
4557
|
return __generator(this, function(_state) {
|
|
4588
4558
|
switch (_state.label) {
|
|
@@ -4608,11 +4578,8 @@
|
|
|
4608
4578
|
];
|
|
4609
4579
|
}
|
|
4610
4580
|
});
|
|
4611
|
-
});
|
|
4612
|
-
|
|
4613
|
-
return _ref.apply(this, arguments);
|
|
4614
|
-
};
|
|
4615
|
-
}();
|
|
4581
|
+
})();
|
|
4582
|
+
};
|
|
4616
4583
|
var handleTouchMove = function(event) {
|
|
4617
4584
|
if (position2 !== "bottom" || !resizable || !nodeRef.current || !rootRect.current) return;
|
|
4618
4585
|
var e = event;
|
|
@@ -5292,8 +5259,8 @@
|
|
|
5292
5259
|
outerOptions
|
|
5293
5260
|
]);
|
|
5294
5261
|
React.useEffect(function() {
|
|
5295
|
-
var load =
|
|
5296
|
-
|
|
5262
|
+
var load = function() {
|
|
5263
|
+
return _async_to_generator(function() {
|
|
5297
5264
|
var parent2, error;
|
|
5298
5265
|
return __generator(this, function(_state) {
|
|
5299
5266
|
switch (_state.label) {
|
|
@@ -5311,8 +5278,8 @@
|
|
|
5311
5278
|
]);
|
|
5312
5279
|
return [
|
|
5313
5280
|
4,
|
|
5314
|
-
innerValue.reduce(
|
|
5315
|
-
|
|
5281
|
+
innerValue.reduce(function(promise, val2, key2) {
|
|
5282
|
+
return _async_to_generator(function() {
|
|
5316
5283
|
var pane, parent3, node;
|
|
5317
5284
|
return __generator(this, function(_state2) {
|
|
5318
5285
|
switch (_state2.label) {
|
|
@@ -5352,11 +5319,8 @@
|
|
|
5352
5319
|
];
|
|
5353
5320
|
}
|
|
5354
5321
|
});
|
|
5355
|
-
});
|
|
5356
|
-
|
|
5357
|
-
return _ref2.apply(this, arguments);
|
|
5358
|
-
};
|
|
5359
|
-
}(), Promise.resolve(parent2))
|
|
5322
|
+
})();
|
|
5323
|
+
}, Promise.resolve(parent2))
|
|
5360
5324
|
];
|
|
5361
5325
|
case 2:
|
|
5362
5326
|
_state.sent();
|
|
@@ -5378,17 +5342,14 @@
|
|
|
5378
5342
|
];
|
|
5379
5343
|
}
|
|
5380
5344
|
});
|
|
5381
|
-
});
|
|
5382
|
-
|
|
5383
|
-
return _ref.apply(this, arguments);
|
|
5384
|
-
};
|
|
5385
|
-
}();
|
|
5345
|
+
})();
|
|
5346
|
+
};
|
|
5386
5347
|
if (lazy) load();
|
|
5387
5348
|
}, [
|
|
5388
5349
|
lazy
|
|
5389
5350
|
]);
|
|
5390
|
-
var chooseItem =
|
|
5391
|
-
|
|
5351
|
+
var chooseItem = function(pane, levelIndex) {
|
|
5352
|
+
return _async_to_generator(function() {
|
|
5392
5353
|
var nextValue, nextPathNodes, _props_onPathChange, asyncOptions;
|
|
5393
5354
|
return __generator(this, function(_state) {
|
|
5394
5355
|
switch (_state.label) {
|
|
@@ -5440,11 +5401,8 @@
|
|
|
5440
5401
|
];
|
|
5441
5402
|
}
|
|
5442
5403
|
});
|
|
5443
|
-
});
|
|
5444
|
-
|
|
5445
|
-
return _ref.apply(this, arguments);
|
|
5446
|
-
};
|
|
5447
|
-
}();
|
|
5404
|
+
})();
|
|
5405
|
+
};
|
|
5448
5406
|
var renderCascaderItem = function(item, levelIndex) {
|
|
5449
5407
|
var _item_pane;
|
|
5450
5408
|
return (_item_pane = item.pane) === null || _item_pane === void 0 ? void 0 : _item_pane.map(function(pane, index2) {
|
|
@@ -7086,7 +7044,7 @@
|
|
|
7086
7044
|
};
|
|
7087
7045
|
var _obj;
|
|
7088
7046
|
return /* @__PURE__ */ React.createElement(components.View, _object_spread_props(_object_spread({
|
|
7089
|
-
className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), _define_property(_obj, "nut-checkbox-list-item", ctx === null || ctx === void 0 ? void 0 : ctx.list), _obj), className)
|
|
7047
|
+
className: classNames(classPrefix$j, (_obj = {}, _define_property(_obj, "".concat(classPrefix$j, "-reverse"), labelPosition === "left"), _define_property(_obj, "nut-checkbox-list-item", ctx === null || ctx === void 0 ? void 0 : ctx.list), _define_property(_obj, "".concat(classPrefix$j, "-active"), innerChecked), _obj), className)
|
|
7090
7048
|
}, rest), {
|
|
7091
7049
|
onClick: handleClick
|
|
7092
7050
|
}), renderCheckboxItem());
|
|
@@ -7343,8 +7301,8 @@
|
|
|
7343
7301
|
setTouchTime(0);
|
|
7344
7302
|
selectValue(scrollDistance);
|
|
7345
7303
|
};
|
|
7346
|
-
var getReactHeight =
|
|
7347
|
-
|
|
7304
|
+
var getReactHeight = function() {
|
|
7305
|
+
return _async_to_generator(function() {
|
|
7348
7306
|
var placeholder, placeholderHeight, error;
|
|
7349
7307
|
return __generator(this, function(_state) {
|
|
7350
7308
|
switch (_state.label) {
|
|
@@ -7379,11 +7337,8 @@
|
|
|
7379
7337
|
];
|
|
7380
7338
|
}
|
|
7381
7339
|
});
|
|
7382
|
-
});
|
|
7383
|
-
|
|
7384
|
-
return _ref.apply(this, arguments);
|
|
7385
|
-
};
|
|
7386
|
-
}();
|
|
7340
|
+
})();
|
|
7341
|
+
};
|
|
7387
7342
|
React.useEffect(function() {
|
|
7388
7343
|
var element = pickerRollerRef.current;
|
|
7389
7344
|
var currentLineSpacing;
|
|
@@ -7527,8 +7482,6 @@
|
|
|
7527
7482
|
if (!options2.length) return [];
|
|
7528
7483
|
var formatted = [];
|
|
7529
7484
|
var columnOptions = {
|
|
7530
|
-
label: "",
|
|
7531
|
-
value: "",
|
|
7532
7485
|
children: options2
|
|
7533
7486
|
};
|
|
7534
7487
|
var columnIndex = 0;
|
|
@@ -9288,7 +9241,6 @@
|
|
|
9288
9241
|
var _this = this;
|
|
9289
9242
|
var _this1 = this;
|
|
9290
9243
|
_class_call_check(this, FormStore2);
|
|
9291
|
-
var _this2 = this;
|
|
9292
9244
|
_define_property(this, "initialValues", {});
|
|
9293
9245
|
_define_property(this, "updateList", []);
|
|
9294
9246
|
_define_property(this, "store", {});
|
|
@@ -9357,8 +9309,8 @@
|
|
|
9357
9309
|
_define_property(this, "setCallback", function(callback) {
|
|
9358
9310
|
_this.callbacks = _object_spread({}, _this.callbacks, callback);
|
|
9359
9311
|
});
|
|
9360
|
-
_define_property(this, "validateEntities",
|
|
9361
|
-
|
|
9312
|
+
_define_property(this, "validateEntities", function(entity, errs) {
|
|
9313
|
+
return _async_to_generator(function() {
|
|
9362
9314
|
var _entity_props, name2, _entity_props_rules, rules2, descriptor, validator, _this_store, param, errors, _errs;
|
|
9363
9315
|
return __generator(this, function(_state) {
|
|
9364
9316
|
switch (_state.label) {
|
|
@@ -9392,7 +9344,7 @@
|
|
|
9392
9344
|
]);
|
|
9393
9345
|
return [
|
|
9394
9346
|
4,
|
|
9395
|
-
validator.validate(_define_property({}, name2, (_this_store =
|
|
9347
|
+
validator.validate(_define_property({}, name2, (_this_store = this.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
|
|
9396
9348
|
];
|
|
9397
9349
|
case 2:
|
|
9398
9350
|
_state.sent();
|
|
@@ -9405,7 +9357,7 @@
|
|
|
9405
9357
|
errors = param.errors;
|
|
9406
9358
|
if (errors) {
|
|
9407
9359
|
(_errs = errs).push.apply(_errs, _to_consumable_array(errors));
|
|
9408
|
-
|
|
9360
|
+
this.errors[name2] = errors;
|
|
9409
9361
|
}
|
|
9410
9362
|
return [
|
|
9411
9363
|
3,
|
|
@@ -9413,7 +9365,7 @@
|
|
|
9413
9365
|
];
|
|
9414
9366
|
case 4:
|
|
9415
9367
|
if (!errs || errs.length === 0) {
|
|
9416
|
-
|
|
9368
|
+
this.errors[name2] = [];
|
|
9417
9369
|
}
|
|
9418
9370
|
return [
|
|
9419
9371
|
7
|
|
@@ -9425,22 +9377,20 @@
|
|
|
9425
9377
|
];
|
|
9426
9378
|
}
|
|
9427
9379
|
});
|
|
9428
|
-
});
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
_define_property(this, "validateFields", /* @__PURE__ */ function() {
|
|
9434
|
-
var _ref = _async_to_generator(function(nameList) {
|
|
9435
|
-
var filterEntities, errs;
|
|
9380
|
+
}).call(_this);
|
|
9381
|
+
});
|
|
9382
|
+
_define_property(this, "validateFields", function(nameList) {
|
|
9383
|
+
return _async_to_generator(function() {
|
|
9384
|
+
var _this2, filterEntities, errs;
|
|
9436
9385
|
return __generator(this, function(_state) {
|
|
9437
9386
|
switch (_state.label) {
|
|
9438
9387
|
case 0:
|
|
9388
|
+
_this2 = this;
|
|
9439
9389
|
filterEntities = [];
|
|
9440
9390
|
if (!nameList || nameList.length === 0) {
|
|
9441
|
-
filterEntities =
|
|
9391
|
+
filterEntities = this.fieldEntities;
|
|
9442
9392
|
} else {
|
|
9443
|
-
filterEntities =
|
|
9393
|
+
filterEntities = this.fieldEntities.filter(function(param) {
|
|
9444
9394
|
var name2 = param.props.name;
|
|
9445
9395
|
return nameList.includes(name2);
|
|
9446
9396
|
});
|
|
@@ -9448,14 +9398,14 @@
|
|
|
9448
9398
|
errs = [];
|
|
9449
9399
|
return [
|
|
9450
9400
|
4,
|
|
9451
|
-
Promise.all(filterEntities.map(
|
|
9452
|
-
|
|
9401
|
+
Promise.all(filterEntities.map(function(entity) {
|
|
9402
|
+
return _async_to_generator(function() {
|
|
9453
9403
|
return __generator(this, function(_state2) {
|
|
9454
9404
|
switch (_state2.label) {
|
|
9455
9405
|
case 0:
|
|
9456
9406
|
return [
|
|
9457
9407
|
4,
|
|
9458
|
-
|
|
9408
|
+
this.validateEntities(entity, errs)
|
|
9459
9409
|
];
|
|
9460
9410
|
case 1:
|
|
9461
9411
|
_state2.sent();
|
|
@@ -9464,11 +9414,8 @@
|
|
|
9464
9414
|
];
|
|
9465
9415
|
}
|
|
9466
9416
|
});
|
|
9467
|
-
});
|
|
9468
|
-
|
|
9469
|
-
return _ref2.apply(this, arguments);
|
|
9470
|
-
};
|
|
9471
|
-
}()))
|
|
9417
|
+
}).call(_this2);
|
|
9418
|
+
}))
|
|
9472
9419
|
];
|
|
9473
9420
|
case 1:
|
|
9474
9421
|
_state.sent();
|
|
@@ -9478,33 +9425,32 @@
|
|
|
9478
9425
|
];
|
|
9479
9426
|
}
|
|
9480
9427
|
});
|
|
9481
|
-
});
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
}));
|
|
9428
|
+
}).call(_this);
|
|
9429
|
+
});
|
|
9430
|
+
_define_property(this, "submit", function() {
|
|
9431
|
+
return _async_to_generator(function() {
|
|
9432
|
+
var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
|
|
9433
|
+
return __generator(this, function(_state) {
|
|
9434
|
+
switch (_state.label) {
|
|
9435
|
+
case 0:
|
|
9436
|
+
return [
|
|
9437
|
+
4,
|
|
9438
|
+
this.validateFields()
|
|
9439
|
+
];
|
|
9440
|
+
case 1:
|
|
9441
|
+
errors = _state.sent();
|
|
9442
|
+
if (errors.length === 0) {
|
|
9443
|
+
(_this_callbacks_onFinish = (_this_callbacks = this.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, this.store);
|
|
9444
|
+
} else if (errors.length > 0) {
|
|
9445
|
+
(_this_callbacks_onFinishFailed = (_this_callbacks1 = this.callbacks).onFinishFailed) === null || _this_callbacks_onFinishFailed === void 0 ? void 0 : _this_callbacks_onFinishFailed.call(_this_callbacks1, this.store, errors);
|
|
9446
|
+
}
|
|
9447
|
+
return [
|
|
9448
|
+
2
|
|
9449
|
+
];
|
|
9450
|
+
}
|
|
9451
|
+
});
|
|
9452
|
+
}).call(_this);
|
|
9453
|
+
});
|
|
9508
9454
|
_define_property(this, "resetFields", function(namePaths) {
|
|
9509
9455
|
if (namePaths && namePaths.length) {
|
|
9510
9456
|
namePaths.forEach(function(path) {
|
|
@@ -10009,16 +9955,7 @@
|
|
|
10009
9955
|
return value2.replace(regExp, "");
|
|
10010
9956
|
}
|
|
10011
9957
|
var ENV_TYPE = {
|
|
10012
|
-
|
|
10013
|
-
SWAN: "SWAN",
|
|
10014
|
-
ALIPAY: "ALIPAY",
|
|
10015
|
-
TT: "TT",
|
|
10016
|
-
QQ: "QQ",
|
|
10017
|
-
JD: "JD",
|
|
10018
|
-
WEB: "WEB",
|
|
10019
|
-
RN: "RN",
|
|
10020
|
-
HARMONY: "HARMONY",
|
|
10021
|
-
QUICKAPP: "QUICKAPP"
|
|
9958
|
+
WEB: "WEB"
|
|
10022
9959
|
};
|
|
10023
9960
|
var defaultProps$Y = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
10024
9961
|
type: "text",
|
|
@@ -10293,8 +10230,8 @@
|
|
|
10293
10230
|
var stepAmount = parseFloat(stepValue) * symbol;
|
|
10294
10231
|
return (currentValue * dig + stepAmount * dig) / dig;
|
|
10295
10232
|
};
|
|
10296
|
-
var update =
|
|
10297
|
-
|
|
10233
|
+
var update = function(negative, e) {
|
|
10234
|
+
return _async_to_generator(function() {
|
|
10298
10235
|
var shouldOverBoundary, maybeResume, nextValue;
|
|
10299
10236
|
return __generator(this, function(_state) {
|
|
10300
10237
|
switch (_state.label) {
|
|
@@ -10325,13 +10262,10 @@
|
|
|
10325
10262
|
];
|
|
10326
10263
|
}
|
|
10327
10264
|
});
|
|
10328
|
-
});
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
}();
|
|
10333
|
-
var handleReduce = /* @__PURE__ */ function() {
|
|
10334
|
-
var _ref2 = _async_to_generator(function(e) {
|
|
10265
|
+
})();
|
|
10266
|
+
};
|
|
10267
|
+
var handleReduce = function(e) {
|
|
10268
|
+
return _async_to_generator(function() {
|
|
10335
10269
|
return __generator(this, function(_state) {
|
|
10336
10270
|
switch (_state.label) {
|
|
10337
10271
|
case 0:
|
|
@@ -10349,13 +10283,10 @@
|
|
|
10349
10283
|
];
|
|
10350
10284
|
}
|
|
10351
10285
|
});
|
|
10352
|
-
});
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
}();
|
|
10357
|
-
var handlePlus = /* @__PURE__ */ function() {
|
|
10358
|
-
var _ref2 = _async_to_generator(function(e) {
|
|
10286
|
+
})();
|
|
10287
|
+
};
|
|
10288
|
+
var handlePlus = function(e) {
|
|
10289
|
+
return _async_to_generator(function() {
|
|
10359
10290
|
return __generator(this, function(_state) {
|
|
10360
10291
|
switch (_state.label) {
|
|
10361
10292
|
case 0:
|
|
@@ -10373,18 +10304,15 @@
|
|
|
10373
10304
|
];
|
|
10374
10305
|
}
|
|
10375
10306
|
});
|
|
10376
|
-
});
|
|
10377
|
-
|
|
10378
|
-
return _ref2.apply(this, arguments);
|
|
10379
|
-
};
|
|
10380
|
-
}();
|
|
10307
|
+
})();
|
|
10308
|
+
};
|
|
10381
10309
|
var parseValue = function(text2) {
|
|
10382
10310
|
if (text2 === "") return null;
|
|
10383
10311
|
if (text2 === "-") return null;
|
|
10384
10312
|
return text2;
|
|
10385
10313
|
};
|
|
10386
|
-
var handleInputChange =
|
|
10387
|
-
|
|
10314
|
+
var handleInputChange = function(e) {
|
|
10315
|
+
return _async_to_generator(function() {
|
|
10388
10316
|
var valueStr, maybeResume;
|
|
10389
10317
|
return __generator(this, function(_state) {
|
|
10390
10318
|
switch (_state.label) {
|
|
@@ -10414,11 +10342,8 @@
|
|
|
10414
10342
|
];
|
|
10415
10343
|
}
|
|
10416
10344
|
});
|
|
10417
|
-
});
|
|
10418
|
-
|
|
10419
|
-
return _ref2.apply(this, arguments);
|
|
10420
|
-
};
|
|
10421
|
-
}();
|
|
10345
|
+
})();
|
|
10346
|
+
};
|
|
10422
10347
|
var handleFocus = function(e) {
|
|
10423
10348
|
setFocused(true);
|
|
10424
10349
|
setInputValue(shadowValue !== void 0 && shadowValue !== null ? bound(Number(shadowValue), Number(min), Number(max)).toString() : "");
|
|
@@ -10472,7 +10397,7 @@
|
|
|
10472
10397
|
if (null == r) return {};
|
|
10473
10398
|
var t = {};
|
|
10474
10399
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
10475
|
-
if (e.
|
|
10400
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
10476
10401
|
t[n] = r[n];
|
|
10477
10402
|
}
|
|
10478
10403
|
return t;
|
|
@@ -12184,28 +12109,30 @@
|
|
|
12184
12109
|
show2
|
|
12185
12110
|
]);
|
|
12186
12111
|
var getParentOffset = React.useCallback(function() {
|
|
12187
|
-
setTimeout(
|
|
12188
|
-
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12112
|
+
setTimeout(function() {
|
|
12113
|
+
return _async_to_generator(function() {
|
|
12114
|
+
var p, rect;
|
|
12115
|
+
return __generator(this, function(_state) {
|
|
12116
|
+
switch (_state.label) {
|
|
12117
|
+
case 0:
|
|
12118
|
+
p = parent2.menuRef.current;
|
|
12119
|
+
return [
|
|
12120
|
+
4,
|
|
12121
|
+
getRectInMultiPlatform(p)
|
|
12122
|
+
];
|
|
12123
|
+
case 1:
|
|
12124
|
+
rect = _state.sent();
|
|
12125
|
+
setPosition({
|
|
12126
|
+
height: rect.height,
|
|
12127
|
+
top: rect.top
|
|
12128
|
+
});
|
|
12129
|
+
return [
|
|
12130
|
+
2
|
|
12131
|
+
];
|
|
12132
|
+
}
|
|
12133
|
+
});
|
|
12134
|
+
})();
|
|
12135
|
+
}, 100);
|
|
12209
12136
|
}, [
|
|
12210
12137
|
parent2.menuRef
|
|
12211
12138
|
]);
|
|
@@ -13087,8 +13014,8 @@
|
|
|
13087
13014
|
onEnd,
|
|
13088
13015
|
setInnerValue
|
|
13089
13016
|
]);
|
|
13090
|
-
var handleClick = React.useCallback(
|
|
13091
|
-
|
|
13017
|
+
var handleClick = React.useCallback(function(event) {
|
|
13018
|
+
return _async_to_generator(function() {
|
|
13092
13019
|
var _event_detail, rect, _event_detail_x, x, delta, total, _event_detail1, _event_detail_y, y, value3, _innerValue, left2, right2, middle;
|
|
13093
13020
|
return __generator(this, function(_state) {
|
|
13094
13021
|
switch (_state.label) {
|
|
@@ -13140,11 +13067,8 @@
|
|
|
13140
13067
|
];
|
|
13141
13068
|
}
|
|
13142
13069
|
});
|
|
13143
|
-
});
|
|
13144
|
-
|
|
13145
|
-
return _ref.apply(this, arguments);
|
|
13146
|
-
};
|
|
13147
|
-
}(), [
|
|
13070
|
+
})();
|
|
13071
|
+
}, [
|
|
13148
13072
|
innerValue,
|
|
13149
13073
|
disabled,
|
|
13150
13074
|
isRange,
|
|
@@ -13154,8 +13078,8 @@
|
|
|
13154
13078
|
vertical
|
|
13155
13079
|
]);
|
|
13156
13080
|
Taro.useReady(function() {
|
|
13157
|
-
var getRootRect =
|
|
13158
|
-
|
|
13081
|
+
var getRootRect = function() {
|
|
13082
|
+
return _async_to_generator(function() {
|
|
13159
13083
|
var rect;
|
|
13160
13084
|
return __generator(this, function(_state) {
|
|
13161
13085
|
switch (_state.label) {
|
|
@@ -13178,11 +13102,8 @@
|
|
|
13178
13102
|
];
|
|
13179
13103
|
}
|
|
13180
13104
|
});
|
|
13181
|
-
});
|
|
13182
|
-
|
|
13183
|
-
return _ref.apply(this, arguments);
|
|
13184
|
-
};
|
|
13185
|
-
}();
|
|
13105
|
+
})();
|
|
13106
|
+
};
|
|
13186
13107
|
Taro.nextTick(function() {
|
|
13187
13108
|
getRootRect();
|
|
13188
13109
|
});
|
|
@@ -13204,8 +13125,8 @@
|
|
|
13204
13125
|
isRange,
|
|
13205
13126
|
touch
|
|
13206
13127
|
]);
|
|
13207
|
-
var onTouchMove = React.useCallback(
|
|
13208
|
-
|
|
13128
|
+
var onTouchMove = React.useCallback(function(event) {
|
|
13129
|
+
return _async_to_generator(function() {
|
|
13209
13130
|
var handleMove;
|
|
13210
13131
|
return __generator(this, function(_state) {
|
|
13211
13132
|
if (disabled || !root2.current) return [
|
|
@@ -13216,8 +13137,8 @@
|
|
|
13216
13137
|
dragStatusRef.current = "draging";
|
|
13217
13138
|
}
|
|
13218
13139
|
touch.move(event);
|
|
13219
|
-
handleMove =
|
|
13220
|
-
|
|
13140
|
+
handleMove = function() {
|
|
13141
|
+
return _async_to_generator(function() {
|
|
13221
13142
|
var delta, total, diff, newValue;
|
|
13222
13143
|
return __generator(this, function(_state2) {
|
|
13223
13144
|
if (!rootRect.current) return [
|
|
@@ -13243,21 +13164,15 @@
|
|
|
13243
13164
|
2
|
|
13244
13165
|
];
|
|
13245
13166
|
});
|
|
13246
|
-
});
|
|
13247
|
-
|
|
13248
|
-
return _ref2.apply(this, arguments);
|
|
13249
|
-
};
|
|
13250
|
-
}();
|
|
13167
|
+
})();
|
|
13168
|
+
};
|
|
13251
13169
|
requestAnimationFrame(handleMove);
|
|
13252
13170
|
return [
|
|
13253
13171
|
2
|
|
13254
13172
|
];
|
|
13255
13173
|
});
|
|
13256
|
-
});
|
|
13257
|
-
|
|
13258
|
-
return _ref.apply(this, arguments);
|
|
13259
|
-
};
|
|
13260
|
-
}(), [
|
|
13174
|
+
})();
|
|
13175
|
+
}, [
|
|
13261
13176
|
disabled,
|
|
13262
13177
|
isRange,
|
|
13263
13178
|
onStart,
|
|
@@ -14167,8 +14082,8 @@
|
|
|
14167
14082
|
(_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-close"), !value2), _define_property(_obj2, "".concat(classPrefix2, "-disabled"), disabled), _define_property(_obj2, "".concat(classPrefix2, "-disabled-close"), disabled && !value2), _obj2)
|
|
14168
14083
|
]);
|
|
14169
14084
|
};
|
|
14170
|
-
var onClick =
|
|
14171
|
-
|
|
14085
|
+
var onClick = function() {
|
|
14086
|
+
return _async_to_generator(function() {
|
|
14172
14087
|
return __generator(this, function(_state) {
|
|
14173
14088
|
switch (_state.label) {
|
|
14174
14089
|
case 0:
|
|
@@ -14212,11 +14127,8 @@
|
|
|
14212
14127
|
];
|
|
14213
14128
|
}
|
|
14214
14129
|
});
|
|
14215
|
-
});
|
|
14216
|
-
|
|
14217
|
-
return _ref2.apply(this, arguments);
|
|
14218
|
-
};
|
|
14219
|
-
}();
|
|
14130
|
+
})();
|
|
14131
|
+
};
|
|
14220
14132
|
var _obj, _obj1;
|
|
14221
14133
|
return /* @__PURE__ */ React.createElement(components.View, _object_spread({
|
|
14222
14134
|
className: classes(),
|
|
@@ -14724,22 +14636,24 @@
|
|
|
14724
14636
|
var classes = classNames(className, "nut-uploader");
|
|
14725
14637
|
React.useImperativeHandle(ref, function() {
|
|
14726
14638
|
return {
|
|
14727
|
-
submit:
|
|
14728
|
-
return
|
|
14729
|
-
|
|
14730
|
-
|
|
14731
|
-
|
|
14732
|
-
|
|
14733
|
-
|
|
14734
|
-
|
|
14735
|
-
|
|
14736
|
-
|
|
14737
|
-
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14639
|
+
submit: function() {
|
|
14640
|
+
return _async_to_generator(function() {
|
|
14641
|
+
return __generator(this, function(_state) {
|
|
14642
|
+
switch (_state.label) {
|
|
14643
|
+
case 0:
|
|
14644
|
+
return [
|
|
14645
|
+
4,
|
|
14646
|
+
uploadAction(uploadQueue)
|
|
14647
|
+
];
|
|
14648
|
+
case 1:
|
|
14649
|
+
_state.sent();
|
|
14650
|
+
return [
|
|
14651
|
+
2
|
|
14652
|
+
];
|
|
14653
|
+
}
|
|
14654
|
+
});
|
|
14655
|
+
})();
|
|
14656
|
+
},
|
|
14743
14657
|
clear: function() {
|
|
14744
14658
|
clearUploadQueue();
|
|
14745
14659
|
}
|
|
@@ -14812,8 +14726,8 @@
|
|
|
14812
14726
|
});
|
|
14813
14727
|
}
|
|
14814
14728
|
};
|
|
14815
|
-
var uploadAction =
|
|
14816
|
-
|
|
14729
|
+
var uploadAction = function(tasks) {
|
|
14730
|
+
return _async_to_generator(function() {
|
|
14817
14731
|
var taskIds, list;
|
|
14818
14732
|
return __generator(this, function(_state) {
|
|
14819
14733
|
switch (_state.label) {
|
|
@@ -14833,8 +14747,8 @@
|
|
|
14833
14747
|
setFileList(list);
|
|
14834
14748
|
return [
|
|
14835
14749
|
4,
|
|
14836
|
-
Promise.all(tasks.map(
|
|
14837
|
-
|
|
14750
|
+
Promise.all(tasks.map(function(currentTask, index2) {
|
|
14751
|
+
return _async_to_generator(function() {
|
|
14838
14752
|
var result, list2, e, list1;
|
|
14839
14753
|
return __generator(this, function(_state2) {
|
|
14840
14754
|
switch (_state2.label) {
|
|
@@ -14881,11 +14795,8 @@
|
|
|
14881
14795
|
];
|
|
14882
14796
|
}
|
|
14883
14797
|
});
|
|
14884
|
-
});
|
|
14885
|
-
|
|
14886
|
-
return _ref3.apply(this, arguments);
|
|
14887
|
-
};
|
|
14888
|
-
}())).catch(function(errs) {
|
|
14798
|
+
})();
|
|
14799
|
+
})).catch(function(errs) {
|
|
14889
14800
|
return console.error(errs);
|
|
14890
14801
|
})
|
|
14891
14802
|
];
|
|
@@ -14896,14 +14807,11 @@
|
|
|
14896
14807
|
];
|
|
14897
14808
|
}
|
|
14898
14809
|
});
|
|
14899
|
-
});
|
|
14900
|
-
|
|
14901
|
-
return _ref2.apply(this, arguments);
|
|
14902
|
-
};
|
|
14903
|
-
}();
|
|
14810
|
+
})();
|
|
14811
|
+
};
|
|
14904
14812
|
var idCountRef = React.useRef(0);
|
|
14905
|
-
var readFile =
|
|
14906
|
-
|
|
14813
|
+
var readFile = function(files) {
|
|
14814
|
+
return _async_to_generator(function() {
|
|
14907
14815
|
var tasks;
|
|
14908
14816
|
return __generator(this, function(_state) {
|
|
14909
14817
|
switch (_state.label) {
|
|
@@ -14961,11 +14869,8 @@
|
|
|
14961
14869
|
];
|
|
14962
14870
|
}
|
|
14963
14871
|
});
|
|
14964
|
-
});
|
|
14965
|
-
|
|
14966
|
-
return _ref2.apply(this, arguments);
|
|
14967
|
-
};
|
|
14968
|
-
}();
|
|
14872
|
+
})();
|
|
14873
|
+
};
|
|
14969
14874
|
var filterFiles = function(files) {
|
|
14970
14875
|
var maximum = maxCount * 1;
|
|
14971
14876
|
var maximize = maxFileSize * 1;
|
|
@@ -15004,8 +14909,8 @@
|
|
|
15004
14909
|
}
|
|
15005
14910
|
});
|
|
15006
14911
|
};
|
|
15007
|
-
var onChangeMedia =
|
|
15008
|
-
|
|
14912
|
+
var onChangeMedia = function(res) {
|
|
14913
|
+
return _async_to_generator(function() {
|
|
15009
14914
|
var tempFiles, _files;
|
|
15010
14915
|
return __generator(this, function(_state) {
|
|
15011
14916
|
tempFiles = res.tempFiles;
|
|
@@ -15023,13 +14928,10 @@
|
|
|
15023
14928
|
2
|
|
15024
14929
|
];
|
|
15025
14930
|
});
|
|
15026
|
-
});
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
|
|
15030
|
-
}();
|
|
15031
|
-
var onChangeImage = /* @__PURE__ */ function() {
|
|
15032
|
-
var _ref2 = _async_to_generator(function(res) {
|
|
14931
|
+
})();
|
|
14932
|
+
};
|
|
14933
|
+
var onChangeImage = function(res) {
|
|
14934
|
+
return _async_to_generator(function() {
|
|
15033
14935
|
var tempFiles, _files;
|
|
15034
14936
|
return __generator(this, function(_state) {
|
|
15035
14937
|
tempFiles = res.tempFiles;
|
|
@@ -15047,11 +14949,8 @@
|
|
|
15047
14949
|
2
|
|
15048
14950
|
];
|
|
15049
14951
|
});
|
|
15050
|
-
});
|
|
15051
|
-
|
|
15052
|
-
return _ref2.apply(this, arguments);
|
|
15053
|
-
};
|
|
15054
|
-
}();
|
|
14952
|
+
})();
|
|
14953
|
+
};
|
|
15055
14954
|
var handleItemClick = function(file, index2) {
|
|
15056
14955
|
onFileItemClick === null || onFileItemClick === void 0 ? void 0 : onFileItemClick(file, index2);
|
|
15057
14956
|
};
|
|
@@ -15264,8 +15163,8 @@
|
|
|
15264
15163
|
if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
|
|
15265
15164
|
onCancel();
|
|
15266
15165
|
};
|
|
15267
|
-
var handleOk =
|
|
15268
|
-
|
|
15166
|
+
var handleOk = function(e) {
|
|
15167
|
+
return _async_to_generator(function() {
|
|
15269
15168
|
return __generator(this, function(_state) {
|
|
15270
15169
|
switch (_state.label) {
|
|
15271
15170
|
case 0:
|
|
@@ -15304,11 +15203,8 @@
|
|
|
15304
15203
|
];
|
|
15305
15204
|
}
|
|
15306
15205
|
});
|
|
15307
|
-
});
|
|
15308
|
-
|
|
15309
|
-
return _ref.apply(this, arguments);
|
|
15310
|
-
};
|
|
15311
|
-
}();
|
|
15206
|
+
})();
|
|
15207
|
+
};
|
|
15312
15208
|
var btnClass = hideCancelButton || hideConfirmButton ? "".concat(classPrefix2, "-footer-block") : "";
|
|
15313
15209
|
var renderCancelOfVertical = function() {
|
|
15314
15210
|
return !hideCancelButton && /* @__PURE__ */ React.createElement(components.View, {
|
|
@@ -15452,9 +15348,9 @@
|
|
|
15452
15348
|
var translateX = React.useRef(0);
|
|
15453
15349
|
var translateY = React.useRef(0);
|
|
15454
15350
|
var middleLine = React.useRef(0);
|
|
15455
|
-
var getInfo =
|
|
15456
|
-
|
|
15457
|
-
var el, top, left2, bottom, right2, _getWindowInfo, screenWidth, windowHeight,
|
|
15351
|
+
var getInfo = function() {
|
|
15352
|
+
return _async_to_generator(function() {
|
|
15353
|
+
var el, top, left2, bottom, right2, _getWindowInfo, screenWidth, windowHeight, _ref, width2, height2, dragTop, dragLeft;
|
|
15458
15354
|
return __generator(this, function(_state) {
|
|
15459
15355
|
switch (_state.label) {
|
|
15460
15356
|
case 0:
|
|
@@ -15470,7 +15366,7 @@
|
|
|
15470
15366
|
getRectInMultiPlatform(dragRef.current)
|
|
15471
15367
|
];
|
|
15472
15368
|
case 1:
|
|
15473
|
-
|
|
15369
|
+
_ref = _state.sent(), width2 = _ref.width, height2 = _ref.height, dragTop = _ref.top, dragLeft = _ref.left;
|
|
15474
15370
|
setBoundaryState({
|
|
15475
15371
|
top: -dragTop + top,
|
|
15476
15372
|
left: -dragLeft + left2,
|
|
@@ -15485,11 +15381,8 @@
|
|
|
15485
15381
|
];
|
|
15486
15382
|
}
|
|
15487
15383
|
});
|
|
15488
|
-
});
|
|
15489
|
-
|
|
15490
|
-
return _ref.apply(this, arguments);
|
|
15491
|
-
};
|
|
15492
|
-
}();
|
|
15384
|
+
})();
|
|
15385
|
+
};
|
|
15493
15386
|
var touchStart = function(e) {
|
|
15494
15387
|
onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart();
|
|
15495
15388
|
var touches = e.touches[0];
|
|
@@ -15741,8 +15634,8 @@
|
|
|
15741
15634
|
}
|
|
15742
15635
|
onScroll && onScroll(e.target.scrollTop);
|
|
15743
15636
|
};
|
|
15744
|
-
var lower =
|
|
15745
|
-
|
|
15637
|
+
var lower = function() {
|
|
15638
|
+
return _async_to_generator(function() {
|
|
15746
15639
|
return __generator(this, function(_state) {
|
|
15747
15640
|
switch (_state.label) {
|
|
15748
15641
|
case 0:
|
|
@@ -15765,11 +15658,8 @@
|
|
|
15765
15658
|
];
|
|
15766
15659
|
}
|
|
15767
15660
|
});
|
|
15768
|
-
});
|
|
15769
|
-
|
|
15770
|
-
return _ref2.apply(this, arguments);
|
|
15771
|
-
};
|
|
15772
|
-
}();
|
|
15661
|
+
})();
|
|
15662
|
+
};
|
|
15773
15663
|
var touchStart = function(event) {
|
|
15774
15664
|
if (scrollTop.current === 0 && !isTouching.current && pullRefresh) {
|
|
15775
15665
|
y.current = event.touches[0].pageY;
|
|
@@ -15791,8 +15681,8 @@
|
|
|
15791
15681
|
isTouching.current = false;
|
|
15792
15682
|
}
|
|
15793
15683
|
};
|
|
15794
|
-
var touchEnd =
|
|
15795
|
-
|
|
15684
|
+
var touchEnd = function() {
|
|
15685
|
+
return _async_to_generator(function() {
|
|
15796
15686
|
return __generator(this, function(_state) {
|
|
15797
15687
|
switch (_state.label) {
|
|
15798
15688
|
case 0:
|
|
@@ -15822,11 +15712,8 @@
|
|
|
15822
15712
|
];
|
|
15823
15713
|
}
|
|
15824
15714
|
});
|
|
15825
|
-
});
|
|
15826
|
-
|
|
15827
|
-
return _ref2.apply(this, arguments);
|
|
15828
|
-
};
|
|
15829
|
-
}();
|
|
15715
|
+
})();
|
|
15716
|
+
};
|
|
15830
15717
|
return /* @__PURE__ */ React.createElement(components.ScrollView, _object_spread_props(_object_spread({}, rest), {
|
|
15831
15718
|
className: classes,
|
|
15832
15719
|
scrollY: true,
|
|
@@ -15916,7 +15803,10 @@
|
|
|
15916
15803
|
var classPrefix2 = "nut-noticebar";
|
|
15917
15804
|
var wrapRef = React.useRef(null);
|
|
15918
15805
|
var contentRef = React.useRef(null);
|
|
15919
|
-
var
|
|
15806
|
+
var uid = useUuid();
|
|
15807
|
+
var wrapRefId = "wrap-ref-".concat(uid);
|
|
15808
|
+
var contentRefId = "content-ref-".concat(uid);
|
|
15809
|
+
var _useState = _sliced_to_array(React.useState(true), 2), showNoticeBar = _useState[0], setShowNoticeBar = _useState[1];
|
|
15920
15810
|
var scrollList = React.useRef([]);
|
|
15921
15811
|
var _useState1 = _sliced_to_array(React.useState(0), 2), wrapWidth = _useState1[0], SetWrapWidth = _useState1[1];
|
|
15922
15812
|
var _useState2 = _sliced_to_array(React.useState(true), 2), firstRound = _useState2[0], SetFirstRound = _useState2[1];
|
|
@@ -15994,61 +15884,47 @@
|
|
|
15994
15884
|
}, [
|
|
15995
15885
|
list
|
|
15996
15886
|
]);
|
|
15997
|
-
var initScrollWrap = function(
|
|
15887
|
+
var initScrollWrap = function() {
|
|
15998
15888
|
if (showNoticeBar === false) {
|
|
15999
15889
|
return;
|
|
16000
15890
|
}
|
|
16001
|
-
setTimeout(
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
if (!wrapRef.current || !contentRef.current) {
|
|
16007
|
-
return [
|
|
16008
|
-
2
|
|
16009
|
-
];
|
|
16010
|
-
}
|
|
16011
|
-
return [
|
|
16012
|
-
4,
|
|
16013
|
-
getRectInMultiPlatform(wrapRef.current)
|
|
16014
|
-
];
|
|
16015
|
-
case 1:
|
|
16016
|
-
warpRes = _state.sent();
|
|
16017
|
-
return [
|
|
16018
|
-
4,
|
|
16019
|
-
getRectInMultiPlatform(contentRef.current)
|
|
16020
|
-
];
|
|
16021
|
-
case 2:
|
|
16022
|
-
contentRes = _state.sent();
|
|
16023
|
-
wrapW = warpRes.width;
|
|
16024
|
-
offsetW = contentRes.width;
|
|
16025
|
-
canScroll = align === "left" && scrollable == null ? offsetW > wrapW : scrollable;
|
|
16026
|
-
SetIsCanScroll(canScroll);
|
|
16027
|
-
if (canScroll) {
|
|
16028
|
-
SetWrapWidth(wrapW);
|
|
16029
|
-
SetOffsetW(offsetW);
|
|
16030
|
-
SetAnimationDuration(offsetW / speed);
|
|
16031
|
-
SetAnimationClass("play");
|
|
16032
|
-
} else {
|
|
16033
|
-
SetAnimationClass("");
|
|
16034
|
-
}
|
|
15891
|
+
setTimeout(function() {
|
|
15892
|
+
return _async_to_generator(function() {
|
|
15893
|
+
var warpRes, contentRes, wrapW, offsetW, canScroll;
|
|
15894
|
+
return __generator(this, function(_state) {
|
|
15895
|
+
if (!wrapRef.current || !contentRef.current) {
|
|
16035
15896
|
return [
|
|
16036
15897
|
2
|
|
16037
15898
|
];
|
|
16038
|
-
|
|
16039
|
-
|
|
16040
|
-
|
|
15899
|
+
}
|
|
15900
|
+
warpRes = wrapRef.current.getBoundingClientRect();
|
|
15901
|
+
contentRes = contentRef.current.getBoundingClientRect();
|
|
15902
|
+
if (!warpRes || !contentRes) return [
|
|
15903
|
+
2
|
|
15904
|
+
];
|
|
15905
|
+
wrapW = warpRes.width;
|
|
15906
|
+
offsetW = contentRes.width;
|
|
15907
|
+
canScroll = align === "left" && scrollable == null ? offsetW > wrapW : scrollable;
|
|
15908
|
+
SetIsCanScroll(canScroll);
|
|
15909
|
+
if (canScroll) {
|
|
15910
|
+
SetWrapWidth(wrapW);
|
|
15911
|
+
SetOffsetW(offsetW);
|
|
15912
|
+
SetAnimationDuration(offsetW / speed);
|
|
15913
|
+
SetAnimationClass("play");
|
|
15914
|
+
} else {
|
|
15915
|
+
SetAnimationClass("");
|
|
15916
|
+
}
|
|
15917
|
+
return [
|
|
15918
|
+
2
|
|
15919
|
+
];
|
|
15920
|
+
});
|
|
15921
|
+
})();
|
|
15922
|
+
}, 0);
|
|
16041
15923
|
};
|
|
16042
15924
|
var handleClick = function(event) {
|
|
16043
15925
|
click && click(event);
|
|
16044
15926
|
onClick && onClick(event);
|
|
16045
15927
|
};
|
|
16046
|
-
var onClickIcon = function(event) {
|
|
16047
|
-
event.stopPropagation();
|
|
16048
|
-
SetShowNoticeBar(!closeable);
|
|
16049
|
-
close2 && close2(event);
|
|
16050
|
-
onClose && onClose(event);
|
|
16051
|
-
};
|
|
16052
15928
|
var onAnimationEnd = function() {
|
|
16053
15929
|
SetFirstRound(false);
|
|
16054
15930
|
setTimeout(function() {
|
|
@@ -16071,12 +15947,16 @@
|
|
|
16071
15947
|
SetAnimate(false);
|
|
16072
15948
|
}, time2);
|
|
16073
15949
|
};
|
|
16074
|
-
var handleClickIcon = function(event) {
|
|
15950
|
+
var handleClickIcon = React.useCallback(function(event) {
|
|
16075
15951
|
event.stopPropagation();
|
|
16076
|
-
|
|
15952
|
+
setShowNoticeBar(!closeable);
|
|
16077
15953
|
close2 && close2(event);
|
|
16078
15954
|
onClose && onClose(event);
|
|
16079
|
-
}
|
|
15955
|
+
}, [
|
|
15956
|
+
close2,
|
|
15957
|
+
onClose,
|
|
15958
|
+
closeable
|
|
15959
|
+
]);
|
|
16080
15960
|
var isEllipsis = function() {
|
|
16081
15961
|
if (isCanScroll == null && align === "left") {
|
|
16082
15962
|
return wrap;
|
|
@@ -16100,35 +15980,37 @@
|
|
|
16100
15980
|
var init = function() {
|
|
16101
15981
|
var activeIndex = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
16102
15982
|
if (!(container === null || container === void 0 ? void 0 : container.current)) return;
|
|
16103
|
-
setTimeout(
|
|
16104
|
-
|
|
16105
|
-
|
|
16106
|
-
|
|
16107
|
-
|
|
16108
|
-
|
|
16109
|
-
|
|
16110
|
-
|
|
16111
|
-
|
|
16112
|
-
|
|
16113
|
-
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16119
|
-
|
|
16120
|
-
|
|
16121
|
-
|
|
16122
|
-
|
|
16123
|
-
|
|
16124
|
-
|
|
16125
|
-
|
|
16126
|
-
|
|
16127
|
-
|
|
16128
|
-
|
|
16129
|
-
|
|
16130
|
-
|
|
16131
|
-
|
|
15983
|
+
setTimeout(function() {
|
|
15984
|
+
return _async_to_generator(function() {
|
|
15985
|
+
var rects, _active, _height, targetOffset;
|
|
15986
|
+
return __generator(this, function(_state) {
|
|
15987
|
+
switch (_state.label) {
|
|
15988
|
+
case 0:
|
|
15989
|
+
return [
|
|
15990
|
+
4,
|
|
15991
|
+
getRectInMultiPlatform(container === null || container === void 0 ? void 0 : container.current)
|
|
15992
|
+
];
|
|
15993
|
+
case 1:
|
|
15994
|
+
rects = _state.sent();
|
|
15995
|
+
_active = Math.max(Math.min(childCount - 1, activeIndex), 0);
|
|
15996
|
+
_height = rects === null || rects === void 0 ? void 0 : rects.height;
|
|
15997
|
+
trackSize = childCount * Number(_height);
|
|
15998
|
+
targetOffset = getOffset(_active);
|
|
15999
|
+
activeRef.current = _active;
|
|
16000
|
+
setRect(rects);
|
|
16001
|
+
setOffset(targetOffset);
|
|
16002
|
+
setChildOffset(new Array(childCount).fill(0));
|
|
16003
|
+
swiperRef.current.moving = true;
|
|
16004
|
+
setStyle(targetOffset, rects);
|
|
16005
|
+
swiperRef.current.moving = false;
|
|
16006
|
+
setReady(true);
|
|
16007
|
+
return [
|
|
16008
|
+
2
|
|
16009
|
+
];
|
|
16010
|
+
}
|
|
16011
|
+
});
|
|
16012
|
+
})();
|
|
16013
|
+
}, 0);
|
|
16132
16014
|
};
|
|
16133
16015
|
React.useEffect(function() {
|
|
16134
16016
|
if (ready) {
|
|
@@ -16213,10 +16095,11 @@
|
|
|
16213
16095
|
target.style.transform = "translate3D(0,".concat(_offset, "px,0)");
|
|
16214
16096
|
};
|
|
16215
16097
|
var itemStyle = function(index2) {
|
|
16216
|
-
var style2 = {
|
|
16098
|
+
var style2 = {
|
|
16099
|
+
width: "100%"
|
|
16100
|
+
};
|
|
16217
16101
|
if (height2) {
|
|
16218
16102
|
style2.height = "".concat(height2, "px");
|
|
16219
|
-
style2.lineHeight = "".concat(height2, "px");
|
|
16220
16103
|
}
|
|
16221
16104
|
var offset2 = childOffset[index2];
|
|
16222
16105
|
if (offset2) {
|
|
@@ -16280,6 +16163,32 @@
|
|
|
16280
16163
|
container.current = ref;
|
|
16281
16164
|
setIsContainerReady(true);
|
|
16282
16165
|
}, []);
|
|
16166
|
+
var renderLeftIcon = React.useCallback(function() {
|
|
16167
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, leftIcon ? /* @__PURE__ */ React.createElement(components.View, {
|
|
16168
|
+
className: "nut-noticebar-box-left-icon"
|
|
16169
|
+
}, leftIcon) : null);
|
|
16170
|
+
}, [
|
|
16171
|
+
leftIcon
|
|
16172
|
+
]);
|
|
16173
|
+
var renderRight = React.useCallback(function() {
|
|
16174
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, right2 ? /* @__PURE__ */ React.createElement(components.View, {
|
|
16175
|
+
className: "nut-noticebar-box-right"
|
|
16176
|
+
}, right2) : null);
|
|
16177
|
+
}, [
|
|
16178
|
+
right2
|
|
16179
|
+
]);
|
|
16180
|
+
var renderRightIcon = React.useCallback(function() {
|
|
16181
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, rightIcon || closeable ? /* @__PURE__ */ React.createElement(components.View, {
|
|
16182
|
+
className: "nut-noticebar-box-right-icon",
|
|
16183
|
+
onClick: handleClickIcon
|
|
16184
|
+
}, rightIcon || /* @__PURE__ */ React.createElement(IconSVG$p, {
|
|
16185
|
+
size: 12
|
|
16186
|
+
})) : null);
|
|
16187
|
+
}, [
|
|
16188
|
+
rightIcon,
|
|
16189
|
+
closeable,
|
|
16190
|
+
handleClickIcon
|
|
16191
|
+
]);
|
|
16283
16192
|
return /* @__PURE__ */ React.createElement(components.View, {
|
|
16284
16193
|
className: cls,
|
|
16285
16194
|
style
|
|
@@ -16287,31 +16196,22 @@
|
|
|
16287
16196
|
className: noticebarClass,
|
|
16288
16197
|
style: barStyle,
|
|
16289
16198
|
onClick: handleClick
|
|
16290
|
-
},
|
|
16291
|
-
className: "nut-noticebar-box-left-icon"
|
|
16292
|
-
}, leftIcon) : null, /* @__PURE__ */ React.createElement(components.View, {
|
|
16199
|
+
}, renderLeftIcon(), /* @__PURE__ */ React.createElement(components.View, {
|
|
16293
16200
|
ref: wrapRef,
|
|
16294
|
-
className: "nut-noticebar-box-wrap"
|
|
16201
|
+
className: "nut-noticebar-box-wrap",
|
|
16202
|
+
id: wrapRefId
|
|
16295
16203
|
}, /* @__PURE__ */ React.createElement(components.View, {
|
|
16296
16204
|
ref: contentRef,
|
|
16205
|
+
id: contentRefId,
|
|
16297
16206
|
className: "nut-noticebar-box-wrap-content ".concat(animationClass, " ").concat(isEllipsis() ? "nut-ellipsis" : ""),
|
|
16298
16207
|
style: contentStyle,
|
|
16299
16208
|
onAnimationEnd
|
|
16300
|
-
}, children, content2)),
|
|
16301
|
-
className: "nut-noticebar-box-right"
|
|
16302
|
-
}, right2) : null, closeable || rightIcon ? /* @__PURE__ */ React.createElement(components.View, {
|
|
16303
|
-
className: "nut-noticebar-box-right-icon",
|
|
16304
|
-
onClick: onClickIcon
|
|
16305
|
-
}, rightIcon || /* @__PURE__ */ React.createElement(IconSVG$p, {
|
|
16306
|
-
size: 12
|
|
16307
|
-
})) : null) : null, showNoticeBar && hasVerticalContent && isVertical ? /* @__PURE__ */ React.createElement(components.View, {
|
|
16209
|
+
}, children, content2)), renderRight(), renderRightIcon()) : null, showNoticeBar && hasVerticalContent && isVertical ? /* @__PURE__ */ React.createElement(components.View, {
|
|
16308
16210
|
className: "nut-noticebar-vertical",
|
|
16309
16211
|
style: barStyle,
|
|
16310
16212
|
ref: containerRefCallback,
|
|
16311
16213
|
onClick: handleClick
|
|
16312
|
-
},
|
|
16313
|
-
className: "nut-noticebar-box-left-icon"
|
|
16314
|
-
}, leftIcon) : null, children ? /* @__PURE__ */ React.createElement(components.View, {
|
|
16214
|
+
}, renderLeftIcon(), children ? /* @__PURE__ */ React.createElement(components.View, {
|
|
16315
16215
|
className: "nut-noticebar-box-wrap",
|
|
16316
16216
|
ref: innerRef
|
|
16317
16217
|
}, scrollList.current.map(function(item, index2) {
|
|
@@ -16326,27 +16226,17 @@
|
|
|
16326
16226
|
className: "nut-noticebar-box-horseLamp-list",
|
|
16327
16227
|
style: horseLampStyle
|
|
16328
16228
|
}, scrollList.current.map(function(item, index2) {
|
|
16329
|
-
return (
|
|
16330
|
-
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16334
|
-
|
|
16335
|
-
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
|
|
16339
|
-
|
|
16340
|
-
}, item)
|
|
16341
|
-
);
|
|
16342
|
-
})), /* @__PURE__ */ React.createElement(components.View, {
|
|
16343
|
-
className: "nut-noticebar-box-right-icon",
|
|
16344
|
-
onClick: function(e) {
|
|
16345
|
-
handleClickIcon(e);
|
|
16346
|
-
}
|
|
16347
|
-
}, rightIcon || (closeable ? /* @__PURE__ */ React.createElement(IconSVG$p, {
|
|
16348
|
-
size: 12
|
|
16349
|
-
}) : null))) : null);
|
|
16229
|
+
return /* @__PURE__ */ React.createElement(components.View, {
|
|
16230
|
+
className: "nut-noticebar-box-horseLamp-list-item",
|
|
16231
|
+
style: {
|
|
16232
|
+
height: height2
|
|
16233
|
+
},
|
|
16234
|
+
key: index2,
|
|
16235
|
+
onClick: function(e) {
|
|
16236
|
+
handleItemClick(e, item);
|
|
16237
|
+
}
|
|
16238
|
+
}, item);
|
|
16239
|
+
})), renderRight(), renderRightIcon()) : null);
|
|
16350
16240
|
};
|
|
16351
16241
|
NoticeBar.displayName = "NutNoticeBar";
|
|
16352
16242
|
var defaultProps$B = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
@@ -16517,93 +16407,91 @@
|
|
|
16517
16407
|
]);
|
|
16518
16408
|
var uid = useUuid();
|
|
16519
16409
|
var popoverId = "popover-".concat(uid);
|
|
16520
|
-
var getWrapperPosition =
|
|
16521
|
-
|
|
16410
|
+
var getWrapperPosition = function() {
|
|
16411
|
+
return _async_to_generator(function() {
|
|
16522
16412
|
return __generator(this, function(_state) {
|
|
16523
|
-
Taro.nextTick(
|
|
16524
|
-
|
|
16525
|
-
|
|
16526
|
-
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16555
|
-
|
|
16556
|
-
|
|
16557
|
-
|
|
16558
|
-
|
|
16559
|
-
|
|
16560
|
-
|
|
16561
|
-
|
|
16562
|
-
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16413
|
+
Taro.nextTick(function() {
|
|
16414
|
+
return _async_to_generator(function() {
|
|
16415
|
+
var rect, _tmp, width2, height2, right2, left2, top;
|
|
16416
|
+
return __generator(this, function(_state2) {
|
|
16417
|
+
switch (_state2.label) {
|
|
16418
|
+
case 0:
|
|
16419
|
+
if (!targetId) return [
|
|
16420
|
+
3,
|
|
16421
|
+
2
|
|
16422
|
+
];
|
|
16423
|
+
return [
|
|
16424
|
+
4,
|
|
16425
|
+
getRectInMultiPlatform(document.querySelector("#".concat(targetId)), targetId)
|
|
16426
|
+
];
|
|
16427
|
+
case 1:
|
|
16428
|
+
_tmp = _state2.sent();
|
|
16429
|
+
return [
|
|
16430
|
+
3,
|
|
16431
|
+
4
|
|
16432
|
+
];
|
|
16433
|
+
case 2:
|
|
16434
|
+
return [
|
|
16435
|
+
4,
|
|
16436
|
+
getRectInMultiPlatform(popoverRef.current, popoverId)
|
|
16437
|
+
];
|
|
16438
|
+
case 3:
|
|
16439
|
+
_tmp = _state2.sent();
|
|
16440
|
+
_state2.label = 4;
|
|
16441
|
+
case 4:
|
|
16442
|
+
rect = _tmp;
|
|
16443
|
+
width2 = rect.width, height2 = rect.height, right2 = rect.right, left2 = rect.left, top = rect.top;
|
|
16444
|
+
setWrapperPosition({
|
|
16445
|
+
width: width2,
|
|
16446
|
+
height: height2,
|
|
16447
|
+
left: rtl ? right2 : left2,
|
|
16448
|
+
top,
|
|
16449
|
+
right: rtl ? left2 : right2
|
|
16450
|
+
});
|
|
16451
|
+
getPopoverContentW();
|
|
16452
|
+
return [
|
|
16453
|
+
2
|
|
16454
|
+
];
|
|
16455
|
+
}
|
|
16456
|
+
});
|
|
16457
|
+
})();
|
|
16458
|
+
});
|
|
16567
16459
|
return [
|
|
16568
16460
|
2
|
|
16569
16461
|
];
|
|
16570
16462
|
});
|
|
16571
|
-
});
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
}();
|
|
16576
|
-
var getPopoverContentW = /* @__PURE__ */ function() {
|
|
16577
|
-
var _ref2 = _async_to_generator(function() {
|
|
16463
|
+
})();
|
|
16464
|
+
};
|
|
16465
|
+
var getPopoverContentW = function() {
|
|
16466
|
+
return _async_to_generator(function() {
|
|
16578
16467
|
return __generator(this, function(_state) {
|
|
16579
|
-
Taro.nextTick(
|
|
16580
|
-
|
|
16581
|
-
|
|
16582
|
-
|
|
16583
|
-
|
|
16584
|
-
|
|
16585
|
-
|
|
16586
|
-
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
|
|
16590
|
-
|
|
16591
|
-
|
|
16592
|
-
|
|
16593
|
-
|
|
16594
|
-
|
|
16595
|
-
|
|
16596
|
-
|
|
16597
|
-
|
|
16468
|
+
Taro.nextTick(function() {
|
|
16469
|
+
return _async_to_generator(function() {
|
|
16470
|
+
var rectContent;
|
|
16471
|
+
return __generator(this, function(_state2) {
|
|
16472
|
+
switch (_state2.label) {
|
|
16473
|
+
case 0:
|
|
16474
|
+
return [
|
|
16475
|
+
4,
|
|
16476
|
+
getRectInMultiPlatform(popoverContentRef.current)
|
|
16477
|
+
];
|
|
16478
|
+
case 1:
|
|
16479
|
+
rectContent = _state2.sent();
|
|
16480
|
+
setPopWidth(rectContent.width);
|
|
16481
|
+
setPopHeight(rectContent.height);
|
|
16482
|
+
return [
|
|
16483
|
+
2
|
|
16484
|
+
];
|
|
16485
|
+
}
|
|
16486
|
+
});
|
|
16487
|
+
})();
|
|
16488
|
+
});
|
|
16598
16489
|
return [
|
|
16599
16490
|
2
|
|
16600
16491
|
];
|
|
16601
16492
|
});
|
|
16602
|
-
});
|
|
16603
|
-
|
|
16604
|
-
return _ref2.apply(this, arguments);
|
|
16605
|
-
};
|
|
16606
|
-
}();
|
|
16493
|
+
})();
|
|
16494
|
+
};
|
|
16607
16495
|
var clickAway = function() {
|
|
16608
16496
|
if (closeOnOutsideClick) {
|
|
16609
16497
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
@@ -16794,7 +16682,58 @@
|
|
|
16794
16682
|
});
|
|
16795
16683
|
var PullToRefresh = function(p) {
|
|
16796
16684
|
var doRefresh = function doRefresh2() {
|
|
16797
|
-
return
|
|
16685
|
+
return _async_to_generator(function() {
|
|
16686
|
+
var e;
|
|
16687
|
+
return __generator(this, function(_state) {
|
|
16688
|
+
switch (_state.label) {
|
|
16689
|
+
case 0:
|
|
16690
|
+
setHeight(headHeight);
|
|
16691
|
+
setStatus("refreshing");
|
|
16692
|
+
_state.label = 1;
|
|
16693
|
+
case 1:
|
|
16694
|
+
_state.trys.push([
|
|
16695
|
+
1,
|
|
16696
|
+
3,
|
|
16697
|
+
,
|
|
16698
|
+
4
|
|
16699
|
+
]);
|
|
16700
|
+
return [
|
|
16701
|
+
4,
|
|
16702
|
+
props.onRefresh()
|
|
16703
|
+
];
|
|
16704
|
+
case 2:
|
|
16705
|
+
_state.sent();
|
|
16706
|
+
setStatus("complete");
|
|
16707
|
+
return [
|
|
16708
|
+
3,
|
|
16709
|
+
4
|
|
16710
|
+
];
|
|
16711
|
+
case 3:
|
|
16712
|
+
e = _state.sent();
|
|
16713
|
+
setHeight(0);
|
|
16714
|
+
setStatus("pulling");
|
|
16715
|
+
throw e;
|
|
16716
|
+
case 4:
|
|
16717
|
+
if (!(props.completeDelay > 0)) return [
|
|
16718
|
+
3,
|
|
16719
|
+
6
|
|
16720
|
+
];
|
|
16721
|
+
return [
|
|
16722
|
+
4,
|
|
16723
|
+
sleep(props.completeDelay)
|
|
16724
|
+
];
|
|
16725
|
+
case 5:
|
|
16726
|
+
_state.sent();
|
|
16727
|
+
_state.label = 6;
|
|
16728
|
+
case 6:
|
|
16729
|
+
setHeight(0);
|
|
16730
|
+
setStatus("pulling");
|
|
16731
|
+
return [
|
|
16732
|
+
2
|
|
16733
|
+
];
|
|
16734
|
+
}
|
|
16735
|
+
});
|
|
16736
|
+
})();
|
|
16798
16737
|
};
|
|
16799
16738
|
var classPrefix2 = "nut-pulltorefresh";
|
|
16800
16739
|
var locale = useConfig().locale;
|
|
@@ -16850,61 +16789,6 @@
|
|
|
16850
16789
|
}
|
|
16851
16790
|
clearTimeout(timer.current);
|
|
16852
16791
|
};
|
|
16853
|
-
function _doRefresh() {
|
|
16854
|
-
_doRefresh = _async_to_generator(function() {
|
|
16855
|
-
var e;
|
|
16856
|
-
return __generator(this, function(_state) {
|
|
16857
|
-
switch (_state.label) {
|
|
16858
|
-
case 0:
|
|
16859
|
-
setHeight(headHeight);
|
|
16860
|
-
setStatus("refreshing");
|
|
16861
|
-
_state.label = 1;
|
|
16862
|
-
case 1:
|
|
16863
|
-
_state.trys.push([
|
|
16864
|
-
1,
|
|
16865
|
-
3,
|
|
16866
|
-
,
|
|
16867
|
-
4
|
|
16868
|
-
]);
|
|
16869
|
-
return [
|
|
16870
|
-
4,
|
|
16871
|
-
props.onRefresh()
|
|
16872
|
-
];
|
|
16873
|
-
case 2:
|
|
16874
|
-
_state.sent();
|
|
16875
|
-
setStatus("complete");
|
|
16876
|
-
return [
|
|
16877
|
-
3,
|
|
16878
|
-
4
|
|
16879
|
-
];
|
|
16880
|
-
case 3:
|
|
16881
|
-
e = _state.sent();
|
|
16882
|
-
setHeight(0);
|
|
16883
|
-
setStatus("pulling");
|
|
16884
|
-
throw e;
|
|
16885
|
-
case 4:
|
|
16886
|
-
if (!(props.completeDelay > 0)) return [
|
|
16887
|
-
3,
|
|
16888
|
-
6
|
|
16889
|
-
];
|
|
16890
|
-
return [
|
|
16891
|
-
4,
|
|
16892
|
-
sleep(props.completeDelay)
|
|
16893
|
-
];
|
|
16894
|
-
case 5:
|
|
16895
|
-
_state.sent();
|
|
16896
|
-
_state.label = 6;
|
|
16897
|
-
case 6:
|
|
16898
|
-
setHeight(0);
|
|
16899
|
-
setStatus("pulling");
|
|
16900
|
-
return [
|
|
16901
|
-
2
|
|
16902
|
-
];
|
|
16903
|
-
}
|
|
16904
|
-
});
|
|
16905
|
-
});
|
|
16906
|
-
return _doRefresh.apply(this, arguments);
|
|
16907
|
-
}
|
|
16908
16792
|
var handleTouchEnd = function() {
|
|
16909
16793
|
if (props.disabled) return;
|
|
16910
16794
|
pullingRef.current = false;
|
|
@@ -17095,8 +16979,8 @@
|
|
|
17095
16979
|
var uid = useUuid();
|
|
17096
16980
|
var leftId = "swipe-left-".concat(uid);
|
|
17097
16981
|
var rightId = "swipe-right-".concat(uid);
|
|
17098
|
-
var getWidth =
|
|
17099
|
-
|
|
16982
|
+
var getWidth = function() {
|
|
16983
|
+
return _async_to_generator(function() {
|
|
17100
16984
|
var leftRect, rightRect;
|
|
17101
16985
|
return __generator(this, function(_state) {
|
|
17102
16986
|
switch (_state.label) {
|
|
@@ -17140,11 +17024,8 @@
|
|
|
17140
17024
|
];
|
|
17141
17025
|
}
|
|
17142
17026
|
});
|
|
17143
|
-
});
|
|
17144
|
-
|
|
17145
|
-
return _ref.apply(this, arguments);
|
|
17146
|
-
};
|
|
17147
|
-
}();
|
|
17027
|
+
})();
|
|
17028
|
+
};
|
|
17148
17029
|
Taro.useReady(function() {
|
|
17149
17030
|
Taro.nextTick(function() {
|
|
17150
17031
|
return getWidth();
|
|
@@ -17185,8 +17066,8 @@
|
|
|
17185
17066
|
state.offset,
|
|
17186
17067
|
state.dragging
|
|
17187
17068
|
]);
|
|
17188
|
-
var onTouchStart =
|
|
17189
|
-
|
|
17069
|
+
var onTouchStart = function(event) {
|
|
17070
|
+
return _async_to_generator(function() {
|
|
17190
17071
|
var _props_onTouchStart;
|
|
17191
17072
|
return __generator(this, function(_state) {
|
|
17192
17073
|
if (!props.disabled) {
|
|
@@ -17199,11 +17080,8 @@
|
|
|
17199
17080
|
2
|
|
17200
17081
|
];
|
|
17201
17082
|
});
|
|
17202
|
-
});
|
|
17203
|
-
|
|
17204
|
-
return _ref.apply(this, arguments);
|
|
17205
|
-
};
|
|
17206
|
-
}();
|
|
17083
|
+
})();
|
|
17084
|
+
};
|
|
17207
17085
|
var onTouchMove = function(event) {
|
|
17208
17086
|
var _props_onTouchMove;
|
|
17209
17087
|
if (props.disabled) return;
|
|
@@ -17319,7 +17197,6 @@
|
|
|
17319
17197
|
});
|
|
17320
17198
|
React.useEffect(function() {
|
|
17321
17199
|
var handler = function(event) {
|
|
17322
|
-
console.log("~~hanyu handler---- window", event);
|
|
17323
17200
|
var targets = [
|
|
17324
17201
|
root2
|
|
17325
17202
|
];
|
|
@@ -17480,7 +17357,7 @@
|
|
|
17480
17357
|
style: _object_spread({}, styles, contentStyle)
|
|
17481
17358
|
}, renderIcon(), title && /* @__PURE__ */ React.createElement(components.Text, {
|
|
17482
17359
|
className: "".concat(classPrefix2, "-title")
|
|
17483
|
-
}, title), content2 && /* @__PURE__ */ React.createElement(components.
|
|
17360
|
+
}, title), content2 && /* @__PURE__ */ React.createElement(components.Text, {
|
|
17484
17361
|
className: "".concat(classPrefix2, "-text")
|
|
17485
17362
|
}, content2)))));
|
|
17486
17363
|
};
|
|
@@ -18175,8 +18052,8 @@
|
|
|
18175
18052
|
var _useState = _sliced_to_array(React.useState(0), 2), tran = _useState[0], setTran = _useState[1];
|
|
18176
18053
|
var _useRefState = _sliced_to_array(useRefState(0), 2), currentHeight = _useRefState[0], setCurrentHeight = _useRefState[1];
|
|
18177
18054
|
var _useState1 = _sliced_to_array(React.useState(0), 2), wrapperHeight = _useState1[0], setWrapperHeight = _useState1[1];
|
|
18178
|
-
var updateRectHeight =
|
|
18179
|
-
|
|
18055
|
+
var updateRectHeight = function() {
|
|
18056
|
+
return _async_to_generator(function() {
|
|
18180
18057
|
var res;
|
|
18181
18058
|
return __generator(this, function(_state) {
|
|
18182
18059
|
switch (_state.label) {
|
|
@@ -18199,11 +18076,8 @@
|
|
|
18199
18076
|
];
|
|
18200
18077
|
}
|
|
18201
18078
|
});
|
|
18202
|
-
});
|
|
18203
|
-
|
|
18204
|
-
return _ref2.apply(this, arguments);
|
|
18205
|
-
};
|
|
18206
|
-
}();
|
|
18079
|
+
})();
|
|
18080
|
+
};
|
|
18207
18081
|
React.useEffect(function() {
|
|
18208
18082
|
Taro.nextTick(function() {
|
|
18209
18083
|
updateRectHeight();
|
|
@@ -18606,8 +18480,8 @@
|
|
|
18606
18480
|
}, [
|
|
18607
18481
|
content2
|
|
18608
18482
|
]);
|
|
18609
|
-
var getSymbolInfo =
|
|
18610
|
-
|
|
18483
|
+
var getSymbolInfo = function() {
|
|
18484
|
+
return _async_to_generator(function() {
|
|
18611
18485
|
var refe;
|
|
18612
18486
|
return __generator(this, function(_state) {
|
|
18613
18487
|
switch (_state.label) {
|
|
@@ -18624,19 +18498,16 @@
|
|
|
18624
18498
|
];
|
|
18625
18499
|
}
|
|
18626
18500
|
});
|
|
18627
|
-
});
|
|
18628
|
-
|
|
18629
|
-
return _ref2.apply(this, arguments);
|
|
18630
|
-
};
|
|
18631
|
-
}();
|
|
18501
|
+
})();
|
|
18502
|
+
};
|
|
18632
18503
|
var symbolText = function() {
|
|
18633
18504
|
if (direction === "end" || direction === "middle") {
|
|
18634
18505
|
return "".concat(symbol).concat(expandText);
|
|
18635
18506
|
}
|
|
18636
18507
|
return "".concat(symbol).concat(expandText).concat(symbol);
|
|
18637
18508
|
};
|
|
18638
|
-
var getReference =
|
|
18639
|
-
|
|
18509
|
+
var getReference = function() {
|
|
18510
|
+
return _async_to_generator(function() {
|
|
18640
18511
|
var query;
|
|
18641
18512
|
return __generator(this, function(_state) {
|
|
18642
18513
|
query = Taro.createSelectorQuery();
|
|
@@ -18672,13 +18543,10 @@
|
|
|
18672
18543
|
2
|
|
18673
18544
|
];
|
|
18674
18545
|
});
|
|
18675
|
-
});
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
|
|
18679
|
-
}();
|
|
18680
|
-
var calcEllipse = /* @__PURE__ */ function() {
|
|
18681
|
-
var _ref2 = _async_to_generator(function() {
|
|
18546
|
+
})();
|
|
18547
|
+
};
|
|
18548
|
+
var calcEllipse = function() {
|
|
18549
|
+
return _async_to_generator(function() {
|
|
18682
18550
|
var refe, rowNum, end, end1, start;
|
|
18683
18551
|
return __generator(this, function(_state) {
|
|
18684
18552
|
switch (_state.label) {
|
|
@@ -18715,13 +18583,10 @@
|
|
|
18715
18583
|
];
|
|
18716
18584
|
}
|
|
18717
18585
|
});
|
|
18718
|
-
});
|
|
18719
|
-
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
}();
|
|
18723
|
-
var verifyEllipsis = /* @__PURE__ */ function() {
|
|
18724
|
-
var _ref2 = _async_to_generator(function() {
|
|
18586
|
+
})();
|
|
18587
|
+
};
|
|
18588
|
+
var verifyEllipsis = function() {
|
|
18589
|
+
return _async_to_generator(function() {
|
|
18725
18590
|
var refe, _ellipsis_current_leading, _ellipsis_current4, _ellipsis_current_leading1, _ellipsis_current12, _ellipsis_current22, _ellipsis_current_tailing, _ellipsis_current32;
|
|
18726
18591
|
return __generator(this, function(_state) {
|
|
18727
18592
|
switch (_state.label) {
|
|
@@ -18748,11 +18613,8 @@
|
|
|
18748
18613
|
];
|
|
18749
18614
|
}
|
|
18750
18615
|
});
|
|
18751
|
-
});
|
|
18752
|
-
|
|
18753
|
-
return _ref2.apply(this, arguments);
|
|
18754
|
-
};
|
|
18755
|
-
}();
|
|
18616
|
+
})();
|
|
18617
|
+
};
|
|
18756
18618
|
var assignContent = function() {
|
|
18757
18619
|
var _ellipsis_current4, _ellipsis_current12, _ellipsis_current22, _ellipsis_current32;
|
|
18758
18620
|
var newContent = "".concat(((_ellipsis_current4 = ellipsis.current) === null || _ellipsis_current4 === void 0 ? void 0 : _ellipsis_current4.leading) || "").concat(((_ellipsis_current12 = ellipsis.current) === null || _ellipsis_current12 === void 0 ? void 0 : _ellipsis_current12.leading) ? symbol : "").concat(expandText || "").concat(((_ellipsis_current22 = ellipsis.current) === null || _ellipsis_current22 === void 0 ? void 0 : _ellipsis_current22.tailing) ? symbol : "").concat(((_ellipsis_current32 = ellipsis.current) === null || _ellipsis_current32 === void 0 ? void 0 : _ellipsis_current32.tailing) || "");
|
|
@@ -19298,7 +19160,7 @@
|
|
|
19298
19160
|
ImagePreview.displayName = "NutImagePreview";
|
|
19299
19161
|
var lottie$2 = { exports: {} };
|
|
19300
19162
|
(function(module, exports) {
|
|
19301
|
-
typeof navigator !== "undefined" && function(global2, factory2) {
|
|
19163
|
+
typeof document !== "undefined" && typeof navigator !== "undefined" && function(global2, factory2) {
|
|
19302
19164
|
module.exports = factory2();
|
|
19303
19165
|
}(commonjsGlobal, function() {
|
|
19304
19166
|
var svgNS = "http://www.w3.org/2000/svg";
|
|
@@ -19468,18 +19330,13 @@
|
|
|
19468
19330
|
length: len2
|
|
19469
19331
|
});
|
|
19470
19332
|
}
|
|
19471
|
-
function _typeof$6(
|
|
19333
|
+
function _typeof$6(o) {
|
|
19472
19334
|
"@babel/helpers - typeof";
|
|
19473
|
-
|
|
19474
|
-
|
|
19475
|
-
|
|
19476
|
-
|
|
19477
|
-
}
|
|
19478
|
-
_typeof$6 = function _typeof2(obj2) {
|
|
19479
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
19480
|
-
};
|
|
19481
|
-
}
|
|
19482
|
-
return _typeof$6(obj);
|
|
19335
|
+
return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
19336
|
+
return typeof o2;
|
|
19337
|
+
} : function(o2) {
|
|
19338
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
19339
|
+
}, _typeof$6(o);
|
|
19483
19340
|
}
|
|
19484
19341
|
var subframeEnabled = true;
|
|
19485
19342
|
var expressionsPlugin = null;
|
|
@@ -19726,18 +19583,13 @@
|
|
|
19726
19583
|
function createNS(type2) {
|
|
19727
19584
|
return document.createElementNS(svgNS, type2);
|
|
19728
19585
|
}
|
|
19729
|
-
function _typeof$5(
|
|
19586
|
+
function _typeof$5(o) {
|
|
19730
19587
|
"@babel/helpers - typeof";
|
|
19731
|
-
|
|
19732
|
-
|
|
19733
|
-
|
|
19734
|
-
|
|
19735
|
-
}
|
|
19736
|
-
_typeof$5 = function _typeof2(obj2) {
|
|
19737
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
19738
|
-
};
|
|
19739
|
-
}
|
|
19740
|
-
return _typeof$5(obj);
|
|
19588
|
+
return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
19589
|
+
return typeof o2;
|
|
19590
|
+
} : function(o2) {
|
|
19591
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
19592
|
+
}, _typeof$5(o);
|
|
19741
19593
|
}
|
|
19742
19594
|
var dataManager = /* @__PURE__ */ function() {
|
|
19743
19595
|
var _counterId = 1;
|
|
@@ -20693,18 +20545,13 @@
|
|
|
20693
20545
|
}
|
|
20694
20546
|
return "";
|
|
20695
20547
|
}
|
|
20696
|
-
function _typeof$4(
|
|
20548
|
+
function _typeof$4(o) {
|
|
20697
20549
|
"@babel/helpers - typeof";
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20702
|
-
}
|
|
20703
|
-
_typeof$4 = function _typeof2(obj2) {
|
|
20704
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
20705
|
-
};
|
|
20706
|
-
}
|
|
20707
|
-
return _typeof$4(obj);
|
|
20550
|
+
return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
20551
|
+
return typeof o2;
|
|
20552
|
+
} : function(o2) {
|
|
20553
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
20554
|
+
}, _typeof$4(o);
|
|
20708
20555
|
}
|
|
20709
20556
|
var AnimationItem = function AnimationItem2() {
|
|
20710
20557
|
this._cbs = [];
|
|
@@ -23473,18 +23320,13 @@
|
|
|
23473
23320
|
this.reset();
|
|
23474
23321
|
};
|
|
23475
23322
|
}();
|
|
23476
|
-
function _typeof$3(
|
|
23323
|
+
function _typeof$3(o) {
|
|
23477
23324
|
"@babel/helpers - typeof";
|
|
23478
|
-
|
|
23479
|
-
|
|
23480
|
-
|
|
23481
|
-
|
|
23482
|
-
}
|
|
23483
|
-
_typeof$3 = function _typeof2(obj2) {
|
|
23484
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
23485
|
-
};
|
|
23486
|
-
}
|
|
23487
|
-
return _typeof$3(obj);
|
|
23325
|
+
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
23326
|
+
return typeof o2;
|
|
23327
|
+
} : function(o2) {
|
|
23328
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
23329
|
+
}, _typeof$3(o);
|
|
23488
23330
|
}
|
|
23489
23331
|
var lottie = {};
|
|
23490
23332
|
function setLocation(href) {
|
|
@@ -23568,7 +23410,7 @@
|
|
|
23568
23410
|
lottie.useWebWorker = setWebWorker;
|
|
23569
23411
|
lottie.setIDPrefix = setPrefix;
|
|
23570
23412
|
lottie.__getFactory = getFactory;
|
|
23571
|
-
lottie.version = "5.
|
|
23413
|
+
lottie.version = "5.13.0";
|
|
23572
23414
|
function checkReady() {
|
|
23573
23415
|
if (document.readyState === "complete") {
|
|
23574
23416
|
clearInterval(readyStateCheckInterval);
|
|
@@ -26162,7 +26004,7 @@
|
|
|
26162
26004
|
}
|
|
26163
26005
|
}
|
|
26164
26006
|
}
|
|
26165
|
-
if (this.finalTransform._matMdf) {
|
|
26007
|
+
if (!this.localTransforms || this.finalTransform._matMdf) {
|
|
26166
26008
|
this.finalTransform._localMatMdf = this.finalTransform._matMdf;
|
|
26167
26009
|
}
|
|
26168
26010
|
if (this.finalTransform._opMdf) {
|
|
@@ -27400,7 +27242,7 @@
|
|
|
27400
27242
|
itemData.of.setAttribute("r", rad);
|
|
27401
27243
|
}
|
|
27402
27244
|
}
|
|
27403
|
-
if (itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
|
|
27245
|
+
if (itemData.s._mdf || itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
|
|
27404
27246
|
if (!rad) {
|
|
27405
27247
|
rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
|
|
27406
27248
|
}
|
|
@@ -27597,7 +27439,7 @@
|
|
|
27597
27439
|
var j;
|
|
27598
27440
|
var jLen = this.stylesList.length;
|
|
27599
27441
|
for (j = 0; j < jLen; j += 1) {
|
|
27600
|
-
if (!this.stylesList[j].closed) {
|
|
27442
|
+
if (arr.indexOf(this.stylesList[j]) === -1 && !this.stylesList[j].closed) {
|
|
27601
27443
|
arr.push(this.stylesList[j]);
|
|
27602
27444
|
}
|
|
27603
27445
|
}
|
|
@@ -27639,7 +27481,7 @@
|
|
|
27639
27481
|
if (!processedPos) {
|
|
27640
27482
|
itemsData[i2] = this.createStyleElement(arr[i2], level);
|
|
27641
27483
|
} else {
|
|
27642
|
-
itemsData[i2].style.closed =
|
|
27484
|
+
itemsData[i2].style.closed = arr[i2].hd;
|
|
27643
27485
|
}
|
|
27644
27486
|
if (arr[i2]._render) {
|
|
27645
27487
|
if (itemsData[i2].style.pElem.parentNode !== container) {
|
|
@@ -32476,18 +32318,13 @@
|
|
|
32476
32318
|
return _thisLayerFunction;
|
|
32477
32319
|
};
|
|
32478
32320
|
}();
|
|
32479
|
-
function _typeof$2(
|
|
32321
|
+
function _typeof$2(o) {
|
|
32480
32322
|
"@babel/helpers - typeof";
|
|
32481
|
-
|
|
32482
|
-
|
|
32483
|
-
|
|
32484
|
-
|
|
32485
|
-
}
|
|
32486
|
-
_typeof$2 = function _typeof2(obj2) {
|
|
32487
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
32488
|
-
};
|
|
32489
|
-
}
|
|
32490
|
-
return _typeof$2(obj);
|
|
32323
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
32324
|
+
return typeof o2;
|
|
32325
|
+
} : function(o2) {
|
|
32326
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
32327
|
+
}, _typeof$2(o);
|
|
32491
32328
|
}
|
|
32492
32329
|
function seedRandom(pool, math) {
|
|
32493
32330
|
var global2 = this, width2 = 256, chunks = 6, digits = 52, rngname = "random", startdenom = math.pow(width2, chunks), significance = math.pow(2, digits), overflow = significance * 2, mask2 = width2 - 1, nodecrypto;
|
|
@@ -32606,18 +32443,13 @@
|
|
|
32606
32443
|
var propTypes = {
|
|
32607
32444
|
SHAPE: "shape"
|
|
32608
32445
|
};
|
|
32609
|
-
function _typeof$1(
|
|
32446
|
+
function _typeof$1(o) {
|
|
32610
32447
|
"@babel/helpers - typeof";
|
|
32611
|
-
|
|
32612
|
-
|
|
32613
|
-
|
|
32614
|
-
|
|
32615
|
-
}
|
|
32616
|
-
_typeof$1 = function _typeof2(obj2) {
|
|
32617
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
32618
|
-
};
|
|
32619
|
-
}
|
|
32620
|
-
return _typeof$1(obj);
|
|
32448
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
32449
|
+
return typeof o2;
|
|
32450
|
+
} : function(o2) {
|
|
32451
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
32452
|
+
}, _typeof$1(o);
|
|
32621
32453
|
}
|
|
32622
32454
|
var ExpressionManager = function() {
|
|
32623
32455
|
var ob = {};
|
|
@@ -32985,6 +32817,7 @@
|
|
|
32985
32817
|
var content;
|
|
32986
32818
|
var effect;
|
|
32987
32819
|
var thisProperty = property;
|
|
32820
|
+
thisProperty._name = elem.data.nm;
|
|
32988
32821
|
thisProperty.valueAtTime = thisProperty.getValueAtTime;
|
|
32989
32822
|
Object.defineProperty(thisProperty, "value", {
|
|
32990
32823
|
get: function get() {
|
|
@@ -33421,6 +33254,7 @@
|
|
|
33421
33254
|
if (expressionValue.value !== val2) {
|
|
33422
33255
|
expressionValue = new Number(val2);
|
|
33423
33256
|
expressionValue.value = val2;
|
|
33257
|
+
expressionValue[0] = val2;
|
|
33424
33258
|
completeProperty(expressionValue, property2, "unidimensional");
|
|
33425
33259
|
}
|
|
33426
33260
|
return expressionValue;
|
|
@@ -34460,18 +34294,13 @@
|
|
|
34460
34294
|
return _thisLayerFunction;
|
|
34461
34295
|
};
|
|
34462
34296
|
}();
|
|
34463
|
-
function _typeof(
|
|
34297
|
+
function _typeof(o) {
|
|
34464
34298
|
"@babel/helpers - typeof";
|
|
34465
|
-
|
|
34466
|
-
|
|
34467
|
-
|
|
34468
|
-
|
|
34469
|
-
}
|
|
34470
|
-
_typeof = function _typeof2(obj2) {
|
|
34471
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
34472
|
-
};
|
|
34473
|
-
}
|
|
34474
|
-
return _typeof(obj);
|
|
34299
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
34300
|
+
return typeof o2;
|
|
34301
|
+
} : function(o2) {
|
|
34302
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
34303
|
+
}, _typeof(o);
|
|
34475
34304
|
}
|
|
34476
34305
|
var FootageInterface = /* @__PURE__ */ function() {
|
|
34477
34306
|
var outlineInterfaceFactory = function outlineInterfaceFactory2(elem2) {
|
|
@@ -35583,122 +35412,106 @@
|
|
|
35583
35412
|
})(lottie$2, lottie$2.exports);
|
|
35584
35413
|
var lottieExports = lottie$2.exports;
|
|
35585
35414
|
const lottie$1 = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports);
|
|
35586
|
-
function
|
|
35587
|
-
|
|
35588
|
-
|
|
35589
|
-
|
|
35415
|
+
function _arrayLikeToArray(r, a) {
|
|
35416
|
+
(null == a || a > r.length) && (a = r.length);
|
|
35417
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
35418
|
+
return n;
|
|
35419
|
+
}
|
|
35420
|
+
function _arrayWithHoles(r) {
|
|
35421
|
+
if (Array.isArray(r)) return r;
|
|
35422
|
+
}
|
|
35423
|
+
function _defineProperty(e, r, t) {
|
|
35424
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
35425
|
+
value: t,
|
|
35426
|
+
enumerable: true,
|
|
35427
|
+
configurable: true,
|
|
35428
|
+
writable: true
|
|
35429
|
+
}) : e[r] = t, e;
|
|
35430
|
+
}
|
|
35431
|
+
function _iterableToArrayLimit(r, l) {
|
|
35432
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
35433
|
+
if (null != t) {
|
|
35434
|
+
var e, n, i2, u, a = [], f = true, o = false;
|
|
35590
35435
|
try {
|
|
35591
|
-
if (
|
|
35592
|
-
else for (; !(
|
|
35593
|
-
} catch (
|
|
35594
|
-
|
|
35436
|
+
if (i2 = (t = t.call(r)).next, 0 === l) ;
|
|
35437
|
+
else for (; !(f = (e = i2.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
|
|
35438
|
+
} catch (r2) {
|
|
35439
|
+
o = true, n = r2;
|
|
35595
35440
|
} finally {
|
|
35596
35441
|
try {
|
|
35597
|
-
if (!
|
|
35442
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
35598
35443
|
} finally {
|
|
35599
|
-
if (
|
|
35444
|
+
if (o) throw n;
|
|
35600
35445
|
}
|
|
35601
35446
|
}
|
|
35602
|
-
return
|
|
35447
|
+
return a;
|
|
35603
35448
|
}
|
|
35604
35449
|
}
|
|
35605
|
-
function
|
|
35606
|
-
|
|
35450
|
+
function _nonIterableRest() {
|
|
35451
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35452
|
+
}
|
|
35453
|
+
function ownKeys(e, r) {
|
|
35454
|
+
var t = Object.keys(e);
|
|
35607
35455
|
if (Object.getOwnPropertySymbols) {
|
|
35608
|
-
var
|
|
35609
|
-
|
|
35610
|
-
return Object.getOwnPropertyDescriptor(
|
|
35611
|
-
})),
|
|
35456
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
35457
|
+
r && (o = o.filter(function(r2) {
|
|
35458
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
35459
|
+
})), t.push.apply(t, o);
|
|
35612
35460
|
}
|
|
35613
|
-
return
|
|
35461
|
+
return t;
|
|
35614
35462
|
}
|
|
35615
|
-
function _objectSpread2(
|
|
35616
|
-
for (var
|
|
35617
|
-
var
|
|
35618
|
-
|
|
35619
|
-
_defineProperty(
|
|
35620
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
35621
|
-
Object.defineProperty(
|
|
35463
|
+
function _objectSpread2(e) {
|
|
35464
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
35465
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
35466
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
35467
|
+
_defineProperty(e, r2, t[r2]);
|
|
35468
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
35469
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
35622
35470
|
});
|
|
35623
35471
|
}
|
|
35624
|
-
return
|
|
35472
|
+
return e;
|
|
35625
35473
|
}
|
|
35626
|
-
function
|
|
35627
|
-
|
|
35628
|
-
|
|
35629
|
-
Object.defineProperty(obj, key2, {
|
|
35630
|
-
value: value2,
|
|
35631
|
-
enumerable: true,
|
|
35632
|
-
configurable: true,
|
|
35633
|
-
writable: true
|
|
35634
|
-
});
|
|
35635
|
-
} else {
|
|
35636
|
-
obj[key2] = value2;
|
|
35637
|
-
}
|
|
35638
|
-
return obj;
|
|
35639
|
-
}
|
|
35640
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
35641
|
-
if (source == null) return {};
|
|
35642
|
-
var target = {};
|
|
35643
|
-
var sourceKeys = Object.keys(source);
|
|
35644
|
-
var key2, i2;
|
|
35645
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
35646
|
-
key2 = sourceKeys[i2];
|
|
35647
|
-
if (excluded.indexOf(key2) >= 0) continue;
|
|
35648
|
-
target[key2] = source[key2];
|
|
35649
|
-
}
|
|
35650
|
-
return target;
|
|
35651
|
-
}
|
|
35652
|
-
function _objectWithoutProperties(source, excluded) {
|
|
35653
|
-
if (source == null) return {};
|
|
35654
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
35655
|
-
var key2, i2;
|
|
35474
|
+
function _objectWithoutProperties(e, t) {
|
|
35475
|
+
if (null == e) return {};
|
|
35476
|
+
var o, r, i2 = _objectWithoutPropertiesLoose(e, t);
|
|
35656
35477
|
if (Object.getOwnPropertySymbols) {
|
|
35657
|
-
var
|
|
35658
|
-
for (
|
|
35659
|
-
key2 = sourceSymbolKeys[i2];
|
|
35660
|
-
if (excluded.indexOf(key2) >= 0) continue;
|
|
35661
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key2)) continue;
|
|
35662
|
-
target[key2] = source[key2];
|
|
35663
|
-
}
|
|
35478
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
35479
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i2[o] = e[o]);
|
|
35664
35480
|
}
|
|
35665
|
-
return
|
|
35481
|
+
return i2;
|
|
35666
35482
|
}
|
|
35667
|
-
function
|
|
35668
|
-
|
|
35669
|
-
|
|
35670
|
-
|
|
35671
|
-
|
|
35672
|
-
|
|
35673
|
-
|
|
35674
|
-
|
|
35675
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
35676
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
35677
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
35678
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
35679
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
35680
|
-
}
|
|
35681
|
-
function _arrayLikeToArray(arr, len2) {
|
|
35682
|
-
if (len2 == null || len2 > arr.length) len2 = arr.length;
|
|
35683
|
-
for (var i2 = 0, arr2 = new Array(len2); i2 < len2; i2++) arr2[i2] = arr[i2];
|
|
35684
|
-
return arr2;
|
|
35483
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
35484
|
+
if (null == r) return {};
|
|
35485
|
+
var t = {};
|
|
35486
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
35487
|
+
if (e.includes(n)) continue;
|
|
35488
|
+
t[n] = r[n];
|
|
35489
|
+
}
|
|
35490
|
+
return t;
|
|
35685
35491
|
}
|
|
35686
|
-
function
|
|
35687
|
-
|
|
35492
|
+
function _slicedToArray(r, e) {
|
|
35493
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
35688
35494
|
}
|
|
35689
|
-
function _toPrimitive(
|
|
35690
|
-
if (
|
|
35691
|
-
var
|
|
35692
|
-
if (
|
|
35693
|
-
var
|
|
35694
|
-
if (
|
|
35495
|
+
function _toPrimitive(t, r) {
|
|
35496
|
+
if ("object" != typeof t || !t) return t;
|
|
35497
|
+
var e = t[Symbol.toPrimitive];
|
|
35498
|
+
if (void 0 !== e) {
|
|
35499
|
+
var i2 = e.call(t, r);
|
|
35500
|
+
if ("object" != typeof i2) return i2;
|
|
35695
35501
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
35696
35502
|
}
|
|
35697
|
-
return (
|
|
35503
|
+
return ("string" === r ? String : Number)(t);
|
|
35698
35504
|
}
|
|
35699
|
-
function _toPropertyKey(
|
|
35700
|
-
var
|
|
35701
|
-
return
|
|
35505
|
+
function _toPropertyKey(t) {
|
|
35506
|
+
var i2 = _toPrimitive(t, "string");
|
|
35507
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
35508
|
+
}
|
|
35509
|
+
function _unsupportedIterableToArray(r, a) {
|
|
35510
|
+
if (r) {
|
|
35511
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
35512
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
35513
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
35514
|
+
}
|
|
35702
35515
|
}
|
|
35703
35516
|
var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"];
|
|
35704
35517
|
var useLottie = function useLottie2(props, style) {
|
|
@@ -36151,7 +35964,7 @@
|
|
|
36151
35964
|
if ("object" != s(t3) || !t3) return t3;
|
|
36152
35965
|
var r2 = t3[Symbol.toPrimitive];
|
|
36153
35966
|
if (void 0 !== r2) {
|
|
36154
|
-
var i3 = r2.call(t3, e3
|
|
35967
|
+
var i3 = r2.call(t3, e3);
|
|
36155
35968
|
if ("object" != s(i3)) return i3;
|
|
36156
35969
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
36157
35970
|
}
|
|
@@ -39051,7 +38864,7 @@
|
|
|
39051
38864
|
var parent, randSeed = Math.floor(1e6 * Math.random());
|
|
39052
38865
|
elem.globalData;
|
|
39053
38866
|
function executeExpression(t) {
|
|
39054
|
-
return value = t, _needsRandom && seedRandom(randSeed), this.frameExpressionId === elem.globalData.frameId && "textSelector" !== this.propType ? value : ("textSelector" === this.propType && (this.textIndex, this.textTotal, this.selectorValue), thisLayer || (elem.layerInterface.text, thisLayer = elem.layerInterface, elem.comp.compInterface, thisLayer.toWorld.bind(thisLayer), thisLayer.fromWorld.bind(thisLayer), fromComp = thisLayer.fromComp.bind(thisLayer), thisLayer.toComp.bind(thisLayer), thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null, fromComp), transform || (transform = elem.layerInterface("ADBE Transform Group"), transform && transform.anchorPoint), 4 !== elemType || content || (content = thisLayer("ADBE Root Vectors Group")), effect || (effect = thisLayer(4)), !(!elem.hierarchy || !elem.hierarchy.length) && !parent && (parent = elem.hierarchy[0].layerInterface), time = this.comp.renderedFrame / this.comp.globalData.frameRate, needsVelocity && velocityAtTime(time), expression_function(), this.frameExpressionId = elem.globalData.frameId, "shape" === scoped_bm_rt.propType, scoped_bm_rt);
|
|
38867
|
+
return value = t, _needsRandom && seedRandom(randSeed), this.frameExpressionId === elem.globalData.frameId && "textSelector" !== this.propType ? value : ("textSelector" === this.propType && (this.textIndex, this.textTotal, this.selectorValue), thisLayer || (elem.layerInterface.text, thisLayer = elem.layerInterface, elem.comp.compInterface, thisLayer.toWorld.bind(thisLayer), thisLayer.fromWorld.bind(thisLayer), fromComp = thisLayer.fromComp.bind(thisLayer), thisLayer.toComp.bind(thisLayer), thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null, fromComp), transform || (transform = elem.layerInterface("ADBE Transform Group"), transform && transform.anchorPoint), 4 !== elemType || content || (content = thisLayer("ADBE Root Vectors Group")), effect || (effect = thisLayer(4)), !(!elem.hierarchy || !elem.hierarchy.length) && !parent && (parent = elem.hierarchy[0].layerInterface), time = this.comp.renderedFrame / this.comp.globalData.frameRate, needsVelocity && velocityAtTime(time), expression_function(), this.frameExpressionId = elem.globalData.frameId, "shape" === scoped_bm_rt.propType && (scoped_bm_rt = scoped_bm_rt.v), scoped_bm_rt);
|
|
39055
38868
|
}
|
|
39056
38869
|
return executeExpression;
|
|
39057
38870
|
}
|
|
@@ -41228,8 +41041,8 @@
|
|
|
41228
41041
|
maxMoveY,
|
|
41229
41042
|
draw
|
|
41230
41043
|
]);
|
|
41231
|
-
var setDrawImgInfo =
|
|
41232
|
-
|
|
41044
|
+
var setDrawImgInfo = function(image) {
|
|
41045
|
+
return _async_to_generator(function() {
|
|
41233
41046
|
var displayWidth, cropperWidth, copyDrawImg, imgWidth, imgHeight, isPortrait, rate, scale2;
|
|
41234
41047
|
return __generator(this, function(_state) {
|
|
41235
41048
|
switch (_state.label) {
|
|
@@ -41279,11 +41092,8 @@
|
|
|
41279
41092
|
];
|
|
41280
41093
|
}
|
|
41281
41094
|
});
|
|
41282
|
-
});
|
|
41283
|
-
|
|
41284
|
-
return _ref2.apply(this, arguments);
|
|
41285
|
-
};
|
|
41286
|
-
}();
|
|
41095
|
+
})();
|
|
41096
|
+
};
|
|
41287
41097
|
var chooseImage = function() {
|
|
41288
41098
|
Taro.chooseImage({
|
|
41289
41099
|
count: 1,
|
|
@@ -41296,8 +41106,8 @@
|
|
|
41296
41106
|
}
|
|
41297
41107
|
});
|
|
41298
41108
|
};
|
|
41299
|
-
var imageChange =
|
|
41300
|
-
|
|
41109
|
+
var imageChange = function(file) {
|
|
41110
|
+
return _async_to_generator(function() {
|
|
41301
41111
|
return __generator(this, function(_state) {
|
|
41302
41112
|
Taro.getImageInfo({
|
|
41303
41113
|
src: file.path
|
|
@@ -41309,11 +41119,8 @@
|
|
|
41309
41119
|
2
|
|
41310
41120
|
];
|
|
41311
41121
|
});
|
|
41312
|
-
});
|
|
41313
|
-
|
|
41314
|
-
return _ref2.apply(this, arguments);
|
|
41315
|
-
};
|
|
41316
|
-
}();
|
|
41122
|
+
})();
|
|
41123
|
+
};
|
|
41317
41124
|
var resetScale = function(scale2) {
|
|
41318
41125
|
setState(_object_spread_props(_object_spread({}, state), {
|
|
41319
41126
|
moveX: 0,
|
|
@@ -41462,8 +41269,8 @@
|
|
|
41462
41269
|
height: cropperWidth,
|
|
41463
41270
|
destWidth: cropperWidth,
|
|
41464
41271
|
destHeight: cropperWidth,
|
|
41465
|
-
success:
|
|
41466
|
-
|
|
41272
|
+
success: function(res) {
|
|
41273
|
+
return _async_to_generator(function() {
|
|
41467
41274
|
var filePath;
|
|
41468
41275
|
return __generator(this, function(_state) {
|
|
41469
41276
|
filePath = res.tempFilePath;
|
|
@@ -41473,11 +41280,8 @@
|
|
|
41473
41280
|
2
|
|
41474
41281
|
];
|
|
41475
41282
|
});
|
|
41476
|
-
});
|
|
41477
|
-
|
|
41478
|
-
return _ref2.apply(this, arguments);
|
|
41479
|
-
};
|
|
41480
|
-
}()
|
|
41283
|
+
})();
|
|
41284
|
+
}
|
|
41481
41285
|
});
|
|
41482
41286
|
};
|
|
41483
41287
|
var confirm = function() {
|
|
@@ -41499,8 +41303,8 @@
|
|
|
41499
41303
|
height: cropperWidth,
|
|
41500
41304
|
destWidth: cropperWidth * systemInfo.pixelRatio,
|
|
41501
41305
|
destHeight: cropperWidth * systemInfo.pixelRatio,
|
|
41502
|
-
success:
|
|
41503
|
-
|
|
41306
|
+
success: function(res) {
|
|
41307
|
+
return _async_to_generator(function() {
|
|
41504
41308
|
var filePath;
|
|
41505
41309
|
return __generator(this, function(_state) {
|
|
41506
41310
|
filePath = res.tempFilePath;
|
|
@@ -41510,11 +41314,8 @@
|
|
|
41510
41314
|
2
|
|
41511
41315
|
];
|
|
41512
41316
|
});
|
|
41513
|
-
});
|
|
41514
|
-
|
|
41515
|
-
return _ref2.apply(this, arguments);
|
|
41516
|
-
};
|
|
41517
|
-
}()
|
|
41317
|
+
})();
|
|
41318
|
+
}
|
|
41518
41319
|
});
|
|
41519
41320
|
};
|
|
41520
41321
|
var ToolBar = function() {
|
|
@@ -41611,14 +41412,13 @@
|
|
|
41611
41412
|
}
|
|
41612
41413
|
};
|
|
41613
41414
|
});
|
|
41614
|
-
var getNodeWidth =
|
|
41615
|
-
var
|
|
41616
|
-
|
|
41617
|
-
var
|
|
41415
|
+
var getNodeWidth = function(node) {
|
|
41416
|
+
var type2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "width";
|
|
41417
|
+
return _async_to_generator(function() {
|
|
41418
|
+
var refe;
|
|
41618
41419
|
return __generator(this, function(_state) {
|
|
41619
41420
|
switch (_state.label) {
|
|
41620
41421
|
case 0:
|
|
41621
|
-
type2 = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "width";
|
|
41622
41422
|
if (!node) return [
|
|
41623
41423
|
3,
|
|
41624
41424
|
2
|
|
@@ -41640,11 +41440,8 @@
|
|
|
41640
41440
|
];
|
|
41641
41441
|
}
|
|
41642
41442
|
});
|
|
41643
|
-
});
|
|
41644
|
-
|
|
41645
|
-
return _ref2.apply(this, arguments);
|
|
41646
|
-
};
|
|
41647
|
-
}();
|
|
41443
|
+
})();
|
|
41444
|
+
};
|
|
41648
41445
|
var clearDomTimeout = function() {
|
|
41649
41446
|
if (domTimer.current) {
|
|
41650
41447
|
clearTimeout(domTimer.current);
|
|
@@ -41652,8 +41449,8 @@
|
|
|
41652
41449
|
}
|
|
41653
41450
|
};
|
|
41654
41451
|
React.useEffect(function() {
|
|
41655
|
-
var init =
|
|
41656
|
-
|
|
41452
|
+
var init = function() {
|
|
41453
|
+
return _async_to_generator(function() {
|
|
41657
41454
|
var _barrageBody_current;
|
|
41658
41455
|
return __generator(this, function(_state) {
|
|
41659
41456
|
switch (_state.label) {
|
|
@@ -41678,11 +41475,8 @@
|
|
|
41678
41475
|
];
|
|
41679
41476
|
}
|
|
41680
41477
|
});
|
|
41681
|
-
});
|
|
41682
|
-
|
|
41683
|
-
return _ref2.apply(this, arguments);
|
|
41684
|
-
};
|
|
41685
|
-
}();
|
|
41478
|
+
})();
|
|
41479
|
+
};
|
|
41686
41480
|
domTimer.current = window.setTimeout(function() {
|
|
41687
41481
|
init();
|
|
41688
41482
|
}, 300);
|
|
@@ -41704,8 +41498,8 @@
|
|
|
41704
41498
|
play();
|
|
41705
41499
|
}, intervalCache);
|
|
41706
41500
|
};
|
|
41707
|
-
var setStyle =
|
|
41708
|
-
|
|
41501
|
+
var setStyle = function(el, currentIndex) {
|
|
41502
|
+
return _async_to_generator(function() {
|
|
41709
41503
|
var refe, width2, height2, elScrollDuration, error;
|
|
41710
41504
|
return __generator(this, function(_state) {
|
|
41711
41505
|
switch (_state.label) {
|
|
@@ -41757,11 +41551,8 @@
|
|
|
41757
41551
|
];
|
|
41758
41552
|
}
|
|
41759
41553
|
});
|
|
41760
|
-
});
|
|
41761
|
-
|
|
41762
|
-
return _ref2.apply(this, arguments);
|
|
41763
|
-
};
|
|
41764
|
-
}();
|
|
41554
|
+
})();
|
|
41555
|
+
};
|
|
41765
41556
|
var play = function() {
|
|
41766
41557
|
if (!loop && index2.current >= list.length) {
|
|
41767
41558
|
return;
|