@nutui/nutui-react-taro 3.0.20-beta.0 → 3.0.20-cpp
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -70
- package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
- package/dist/cjs/hooks/use-ref-state.js +3 -3
- package/dist/cjs/hooks/use-touch.js +1 -2
- package/dist/cjs/locales/base.d.ts +9 -0
- package/dist/cjs/locales/en-US.js +21 -2
- package/dist/cjs/locales/id-ID.js +21 -2
- package/dist/cjs/locales/ja-JP.js +19 -2
- package/dist/cjs/locales/tr-TR.js +21 -2
- package/dist/cjs/locales/zh-CN.js +19 -2
- package/dist/cjs/locales/zh-TW.js +19 -2
- package/dist/cjs/locales/zh-UG.js +21 -2
- package/dist/cjs/packages/actionsheet/style/style.harmony.css +38 -17
- package/dist/cjs/packages/address/address.d.ts +1 -1
- package/dist/cjs/packages/address/style/style.harmony.css +38 -17
- package/dist/cjs/packages/address/utils.js +3 -3
- package/dist/cjs/packages/animatingnumbers/countup.js +3 -1
- package/dist/cjs/packages/audio/style/style.harmony.css +0 -3
- package/dist/cjs/packages/avatar/avatar.js +32 -6
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +18 -34
- package/dist/cjs/packages/badge/badge.js +20 -10
- package/dist/cjs/packages/barrage/barrage.js +14 -24
- package/dist/cjs/packages/button/button.d.ts +2 -24
- package/dist/cjs/packages/button/button.js +9 -12
- package/dist/cjs/packages/button/index.d.ts +0 -1
- package/dist/cjs/packages/button/style/button.scss +0 -3
- package/dist/cjs/packages/button/style/style.css +0 -3
- package/dist/cjs/packages/button/style/style.harmony.css +0 -3
- package/dist/cjs/packages/button/style-jmapp/button.scss +0 -3
- package/dist/cjs/packages/button/style-jmapp/style.css +0 -3
- package/dist/cjs/packages/button/style-jrkf/button.scss +0 -3
- package/dist/cjs/packages/button/style-jrkf/style.css +0 -3
- package/dist/cjs/packages/calendar/style/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style/style.css +21 -1
- package/dist/cjs/packages/calendar/style/style.harmony.css +59 -18
- package/dist/cjs/packages/calendar/style-jmapp/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style-jmapp/style.css +21 -1
- package/dist/cjs/packages/calendar/style-jrkf/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style-jrkf/style.css +21 -1
- package/dist/cjs/packages/calendar/utils.js +8 -8
- package/dist/cjs/packages/calendarcard/calendarcard.js +30 -8
- package/dist/cjs/packages/calendarcard/icon.js +17 -28
- package/dist/cjs/packages/calendarcard/style/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style/style.css +13 -0
- package/dist/cjs/packages/calendarcard/style/style.harmony.css +13 -0
- package/dist/cjs/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style-jmapp/style.css +13 -0
- package/dist/cjs/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style-jrkf/style.css +13 -0
- package/dist/cjs/packages/calendarcard/utils.js +6 -6
- package/dist/cjs/packages/card/style/style.harmony.css +1 -1
- package/dist/cjs/packages/cascader/cascader.js +12 -21
- package/dist/cjs/packages/cascader/style/style.harmony.css +38 -17
- package/dist/cjs/packages/cascader/utils.js +3 -3
- package/dist/cjs/packages/collapseitem/collapseitem.js +4 -7
- package/dist/cjs/packages/configprovider/configprovider.js +7 -7
- package/dist/cjs/packages/configprovider/index.js +6 -6
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/countdown.js +1 -2
- package/dist/cjs/packages/datepicker/style/style.harmony.css +39 -18
- package/dist/cjs/packages/datepicker/utils.js +9 -9
- package/dist/cjs/packages/dialog/content.js +3 -3
- package/dist/cjs/packages/dialog/dialog.js +26 -23
- package/dist/cjs/packages/dialog/style/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style/style.css +1 -1
- package/dist/cjs/packages/dialog/style/style.harmony.css +1 -4
- package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/divider/divider.js +2 -2
- package/dist/cjs/packages/drag/drag.js +4 -7
- package/dist/cjs/packages/elevator/elevator.js +7 -10
- package/dist/cjs/packages/ellipsis/ellipsis.js +17 -30
- package/dist/cjs/packages/empty/empty.d.ts +4 -4
- package/dist/cjs/packages/empty/style/style.harmony.css +0 -3
- package/dist/cjs/packages/form/index.js +0 -2
- package/dist/cjs/packages/form/style/style.harmony.css +0 -5
- package/dist/cjs/packages/form/useform.js +50 -57
- package/dist/cjs/packages/formitem/style/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style/style.css +0 -5
- package/dist/cjs/packages/formitem/style/style.harmony.css +0 -5
- package/dist/cjs/packages/formitem/style-jmapp/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style-jmapp/style.css +0 -5
- package/dist/cjs/packages/formitem/style-jrkf/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style-jrkf/style.css +0 -5
- package/dist/cjs/packages/image/image.js +11 -3
- package/dist/cjs/packages/imagepreview/style/style.harmony.css +38 -17
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/cjs/packages/input/input.js +10 -3
- package/dist/cjs/packages/inputnumber/inputnumber.js +17 -29
- package/dist/cjs/packages/lottie/lottiemp.js +10 -18
- package/dist/cjs/packages/lottie/types.js +0 -2
- package/dist/cjs/packages/menuitem/menuitem.js +24 -22
- package/dist/cjs/packages/noticebar/noticebar.js +74 -70
- package/dist/cjs/packages/notify/notify.js +4 -4
- package/dist/cjs/packages/numberkeyboard/style/style.css +1 -1
- package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +39 -18
- package/dist/cjs/packages/nutui.react.build.d.ts +3 -1
- package/dist/cjs/packages/nutui.react.build.js +123 -119
- package/dist/cjs/packages/nutui.react.d.ts +4 -1
- package/dist/cjs/packages/nutui.react.js +124 -119
- package/dist/cjs/packages/nutui.react.scss.d.ts +1 -0
- package/dist/cjs/packages/nutui.react.scss.js +1 -0
- package/dist/cjs/packages/overlay/overlay.js +6 -6
- package/dist/cjs/packages/picker/style/style.css +1 -1
- package/dist/cjs/packages/picker/style/style.harmony.css +39 -18
- package/dist/cjs/packages/pickerview/pickerroller.js +4 -7
- package/dist/cjs/packages/pickerview/pickerview.js +1 -2
- package/dist/cjs/packages/pickerview/utils.js +3 -3
- package/dist/cjs/packages/popover/popover.js +75 -77
- package/dist/cjs/packages/popover/style/style.harmony.css +38 -17
- package/dist/cjs/packages/popup/popup.js +192 -113
- package/dist/cjs/packages/popup/style/popup.scss +22 -1
- package/dist/cjs/packages/popup/style/style.css +38 -17
- package/dist/cjs/packages/popup/style/style.harmony.css +38 -17
- package/dist/cjs/packages/popup/style-jmapp/popup.scss +22 -1
- package/dist/cjs/packages/popup/style-jmapp/style.css +22 -1
- package/dist/cjs/packages/popup/style-jrkf/popup.scss +22 -1
- package/dist/cjs/packages/popup/style-jrkf/style.css +22 -1
- package/dist/cjs/packages/price/price.js +52 -13
- package/dist/cjs/packages/progress/progress.js +2 -4
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
- package/dist/cjs/packages/quickenter/index.d.ts +3 -0
- package/dist/cjs/packages/quickenter/index.js +13 -0
- package/dist/cjs/packages/quickenter/quickenter.d.ts +4 -0
- package/dist/cjs/packages/quickenter/quickenter.js +153 -0
- package/dist/cjs/packages/quickenter/style/css.js +2 -0
- package/dist/cjs/packages/quickenter/style/index.js +2 -0
- package/dist/cjs/packages/quickenter/style/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style/style.css +106 -0
- package/dist/cjs/packages/quickenter/style/style.harmony.css +506 -0
- package/dist/cjs/packages/quickenter/style-jmapp/css.js +2 -0
- package/dist/cjs/packages/quickenter/style-jmapp/index.js +2 -0
- package/dist/cjs/packages/quickenter/style-jmapp/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style-jmapp/style.css +106 -0
- package/dist/cjs/packages/quickenter/style-jrkf/css.js +2 -0
- package/dist/cjs/packages/quickenter/style-jrkf/index.js +2 -0
- package/dist/cjs/packages/quickenter/style-jrkf/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style-jrkf/style.css +106 -0
- package/dist/cjs/packages/radio/index.js +0 -2
- package/dist/cjs/packages/range/range.js +44 -28
- package/dist/cjs/packages/rate/rate.js +5 -8
- package/dist/cjs/packages/resultpage/resultpage.js +2 -1
- package/dist/cjs/packages/resultpage/style/style.harmony.css +0 -3
- package/dist/cjs/packages/safearea/safearea.js +3 -12
- package/dist/cjs/packages/safearea/style/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style/style.css +0 -2
- package/dist/cjs/packages/safearea/style/style.harmony.css +0 -2
- package/dist/cjs/packages/safearea/style-jmapp/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style-jmapp/style.css +0 -2
- package/dist/cjs/packages/safearea/style-jrkf/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style-jrkf/style.css +0 -2
- package/dist/cjs/packages/searchbar/searchbar.js +23 -9
- package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
- package/dist/cjs/packages/shortpassword/style/style.harmony.css +38 -17
- package/dist/cjs/packages/step/step.js +3 -8
- package/dist/cjs/packages/step/style/step.scss +0 -2
- package/dist/cjs/packages/step/style/style.css +0 -2
- package/dist/cjs/packages/step/style/style.harmony.css +0 -2
- package/dist/cjs/packages/step/style-jmapp/step.scss +0 -2
- package/dist/cjs/packages/step/style-jmapp/style.css +0 -2
- package/dist/cjs/packages/step/style-jrkf/step.scss +0 -2
- package/dist/cjs/packages/step/style-jrkf/style.css +0 -2
- package/dist/cjs/packages/steps/style/steps.scss +10 -3
- package/dist/cjs/packages/steps/style/style.css +13 -7
- package/dist/cjs/packages/steps/style/style.harmony.css +13 -9
- package/dist/cjs/packages/steps/style-jmapp/steps.scss +10 -3
- package/dist/cjs/packages/steps/style-jmapp/style.css +9 -3
- package/dist/cjs/packages/steps/style-jrkf/steps.scss +10 -3
- package/dist/cjs/packages/steps/style-jrkf/style.css +9 -3
- package/dist/cjs/packages/sticky/sticky.js +4 -7
- package/dist/cjs/packages/swipe/swipe.js +84 -122
- package/dist/cjs/packages/swiper/index.js +0 -1
- package/dist/cjs/packages/switch/switch.js +4 -7
- package/dist/cjs/packages/table/style/style.css +1 -1
- package/dist/cjs/packages/table/style/style.harmony.css +1 -1
- package/dist/cjs/packages/table/style/table.scss +1 -1
- package/dist/cjs/packages/table/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/table/style-jmapp/table.scss +1 -1
- package/dist/cjs/packages/table/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/table/style-jrkf/table.scss +1 -1
- package/dist/cjs/packages/tabs/tabs.js +12 -5
- package/dist/cjs/packages/tag/style/style.css +1 -1
- package/dist/cjs/packages/tag/style/style.harmony.css +1 -1
- package/dist/cjs/packages/tag/style/tag.scss +1 -1
- package/dist/cjs/packages/tag/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/tag/style-jmapp/tag.scss +1 -1
- package/dist/cjs/packages/tag/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/tag/style-jrkf/tag.scss +1 -1
- package/dist/cjs/packages/timeselect/style/style.harmony.css +38 -17
- package/dist/cjs/packages/toast/style/style.css +2 -4
- package/dist/cjs/packages/toast/style/style.harmony.css +2 -4
- package/dist/cjs/packages/toast/style/toast.scss +2 -4
- package/dist/cjs/packages/toast/style-jmapp/style.css +2 -4
- package/dist/cjs/packages/toast/style-jmapp/toast.scss +2 -4
- package/dist/cjs/packages/toast/style-jrkf/style.css +2 -4
- package/dist/cjs/packages/toast/style-jrkf/toast.scss +2 -4
- package/dist/cjs/packages/toast/toast.js +5 -5
- package/dist/cjs/packages/tour/style/style.harmony.css +38 -17
- package/dist/cjs/packages/uploader/uploader.js +38 -51
- package/dist/cjs/packages/virtuallist/utils.js +6 -6
- package/dist/cjs/packages/watermark/watermark.js +4 -8
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/spec/address/base.js +0 -2
- package/dist/cjs/types/spec/button/base.d.ts +2 -1
- package/dist/cjs/types/spec/button/taro.d.ts +5 -1
- package/dist/cjs/types/spec/calendarcard/base.d.ts +2 -0
- package/dist/cjs/types/spec/dialog/base.d.ts +1 -0
- package/dist/cjs/types/spec/dialog/h5.d.ts +2 -0
- package/dist/cjs/types/spec/dialog/taro.d.ts +2 -0
- package/dist/cjs/types/spec/overlay/base.d.ts +1 -0
- package/dist/cjs/types/spec/popup/base.d.ts +2 -0
- package/dist/cjs/types/spec/price/base.d.ts +1 -0
- package/dist/cjs/types/spec/quickenter/base.d.ts +27 -0
- package/dist/cjs/types/spec/quickenter/base.js +4 -0
- package/dist/cjs/types/spec/quickenter/h5.d.ts +5 -0
- package/dist/cjs/types/spec/quickenter/h5.js +4 -0
- package/dist/cjs/types/spec/quickenter/taro.d.ts +5 -0
- package/dist/cjs/types/spec/quickenter/taro.js +4 -0
- package/dist/cjs/utils/date.js +5 -5
- package/dist/cjs/utils/event-mocker.js +10 -18
- package/dist/cjs/utils/get-rect.js +4 -4
- package/dist/cjs/utils/get-scroll-parent.js +3 -3
- package/dist/cjs/utils/merge-props.js +3 -3
- package/dist/cjs/utils/merge.js +6 -6
- package/dist/cjs/utils/raf.js +3 -3
- package/dist/cjs/utils/render.js +5 -9
- package/dist/cjs/utils/rubberband.js +3 -3
- package/dist/cjs/utils/should-render-price-raw.d.ts +2 -0
- package/dist/cjs/utils/should-render-price-raw.js +46 -0
- package/dist/cjs/utils/taro/ConfigurableCSSTransition.d.ts +15 -0
- package/dist/cjs/utils/taro/ConfigurableCSSTransition.js +90 -0
- package/dist/cjs/utils/taro/get-rect.js +18 -26
- package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
- package/dist/cjs/utils/taro/get-system-info.js +5 -10
- package/dist/cjs/utils/taro/platform.js +5 -5
- package/dist/es/hooks/taro/use-custom-event.js +1 -0
- package/dist/es/hooks/use-touch.js +1 -1
- package/dist/es/locales/base.d.ts +9 -0
- package/dist/es/locales/en-US.js +21 -2
- package/dist/es/locales/id-ID.js +21 -2
- package/dist/es/locales/ja-JP.js +19 -2
- package/dist/es/locales/tr-TR.js +21 -2
- package/dist/es/locales/zh-CN.js +19 -2
- package/dist/es/locales/zh-TW.js +19 -2
- package/dist/es/locales/zh-UG.js +21 -2
- package/dist/es/packages/actionsheet/style/style.harmony.css +38 -17
- package/dist/es/packages/address/address.d.ts +1 -1
- package/dist/es/packages/address/style/style.harmony.css +38 -17
- package/dist/es/packages/animatingnumbers/countup.js +3 -1
- package/dist/es/packages/audio/style/style.harmony.css +0 -3
- package/dist/es/packages/avatar/avatar.js +32 -6
- package/dist/es/packages/avatarcropper/avatarcropper.js +20 -36
- package/dist/es/packages/badge/badge.js +20 -10
- package/dist/es/packages/barrage/barrage.js +14 -24
- package/dist/es/packages/button/button.d.ts +2 -24
- package/dist/es/packages/button/button.js +10 -12
- package/dist/es/packages/button/index.d.ts +0 -1
- package/dist/es/packages/button/style/button.scss +0 -3
- package/dist/es/packages/button/style/style.css +0 -3
- package/dist/es/packages/button/style/style.harmony.css +0 -3
- package/dist/es/packages/button/style-jmapp/button.scss +0 -3
- package/dist/es/packages/button/style-jmapp/style.css +0 -3
- package/dist/es/packages/button/style-jrkf/button.scss +0 -3
- package/dist/es/packages/button/style-jrkf/style.css +0 -3
- package/dist/es/packages/calendar/style/calendar.scss +32 -1
- package/dist/es/packages/calendar/style/style.css +21 -1
- package/dist/es/packages/calendar/style/style.harmony.css +59 -18
- package/dist/es/packages/calendar/style-jmapp/calendar.scss +32 -1
- package/dist/es/packages/calendar/style-jmapp/style.css +21 -1
- package/dist/es/packages/calendar/style-jrkf/calendar.scss +32 -1
- package/dist/es/packages/calendar/style-jrkf/style.css +21 -1
- package/dist/es/packages/calendarcard/calendarcard.js +31 -9
- package/dist/es/packages/calendarcard/icon.js +13 -24
- package/dist/es/packages/calendarcard/style/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style/style.css +13 -0
- package/dist/es/packages/calendarcard/style/style.harmony.css +13 -0
- package/dist/es/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style-jmapp/style.css +13 -0
- package/dist/es/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style-jrkf/style.css +13 -0
- package/dist/es/packages/card/style/style.harmony.css +1 -1
- package/dist/es/packages/cascader/cascader.js +12 -21
- package/dist/es/packages/cascader/style/style.harmony.css +38 -17
- package/dist/es/packages/collapseitem/collapseitem.js +4 -7
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/countdown.js +1 -2
- package/dist/es/packages/datepicker/style/style.harmony.css +39 -18
- package/dist/es/packages/dialog/dialog.js +33 -28
- package/dist/es/packages/dialog/style/dialog.scss +1 -1
- package/dist/es/packages/dialog/style/style.css +1 -1
- package/dist/es/packages/dialog/style/style.harmony.css +1 -4
- package/dist/es/packages/dialog/style-jmapp/dialog.scss +1 -1
- package/dist/es/packages/dialog/style-jmapp/style.css +1 -1
- package/dist/es/packages/dialog/style-jrkf/dialog.scss +1 -1
- package/dist/es/packages/dialog/style-jrkf/style.css +1 -1
- package/dist/es/packages/divider/divider.js +1 -1
- package/dist/es/packages/drag/drag.js +4 -7
- package/dist/es/packages/elevator/elevator.js +4 -7
- package/dist/es/packages/ellipsis/ellipsis.js +17 -30
- package/dist/es/packages/empty/empty.d.ts +4 -4
- package/dist/es/packages/empty/style/style.harmony.css +0 -3
- package/dist/es/packages/form/index.js +0 -1
- package/dist/es/packages/form/style/style.harmony.css +0 -5
- package/dist/es/packages/form/useform.js +46 -53
- package/dist/es/packages/formitem/style/formitem.scss +4 -4
- package/dist/es/packages/formitem/style/style.css +0 -5
- package/dist/es/packages/formitem/style/style.harmony.css +0 -5
- package/dist/es/packages/formitem/style-jmapp/formitem.scss +4 -4
- package/dist/es/packages/formitem/style-jmapp/style.css +0 -5
- package/dist/es/packages/formitem/style-jrkf/formitem.scss +4 -4
- package/dist/es/packages/formitem/style-jrkf/style.css +0 -5
- package/dist/es/packages/image/image.js +11 -3
- package/dist/es/packages/imagepreview/style/style.harmony.css +38 -17
- package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/es/packages/input/input.js +10 -3
- package/dist/es/packages/inputnumber/inputnumber.js +17 -29
- package/dist/es/packages/lottie/lottiemp.js +12 -20
- package/dist/es/packages/lottie/types.js +1 -1
- package/dist/es/packages/menuitem/menuitem.js +24 -22
- package/dist/es/packages/noticebar/noticebar.js +74 -70
- package/dist/es/packages/numberkeyboard/style/style.css +1 -1
- package/dist/es/packages/numberkeyboard/style/style.harmony.css +39 -18
- package/dist/es/packages/nutui.react.build.d.ts +3 -1
- package/dist/es/packages/nutui.react.build.js +3 -1
- package/dist/es/packages/overlay/overlay.js +3 -3
- package/dist/es/packages/picker/style/style.css +1 -1
- package/dist/es/packages/picker/style/style.harmony.css +39 -18
- package/dist/es/packages/pickerview/pickerroller.js +4 -7
- package/dist/es/packages/pickerview/pickerview.js +1 -2
- package/dist/es/packages/popover/popover.js +75 -77
- package/dist/es/packages/popover/style/style.harmony.css +38 -17
- package/dist/es/packages/popup/popup.js +193 -114
- package/dist/es/packages/popup/style/popup.scss +22 -1
- package/dist/es/packages/popup/style/style.css +38 -17
- package/dist/es/packages/popup/style/style.harmony.css +38 -17
- package/dist/es/packages/popup/style-jmapp/popup.scss +22 -1
- package/dist/es/packages/popup/style-jmapp/style.css +22 -1
- package/dist/es/packages/popup/style-jrkf/popup.scss +22 -1
- package/dist/es/packages/popup/style-jrkf/style.css +22 -1
- package/dist/es/packages/price/price.js +53 -14
- package/dist/es/packages/progress/progress.js +2 -4
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
- package/dist/es/packages/quickenter/index.d.ts +3 -0
- package/dist/es/packages/quickenter/index.js +2 -0
- package/dist/es/packages/quickenter/quickenter.d.ts +4 -0
- package/dist/es/packages/quickenter/quickenter.js +141 -0
- package/dist/es/packages/quickenter/style/css.js +2 -0
- package/dist/es/packages/quickenter/style/index.js +2 -0
- package/dist/es/packages/quickenter/style/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style/style.css +106 -0
- package/dist/es/packages/quickenter/style/style.harmony.css +506 -0
- package/dist/es/packages/quickenter/style-jmapp/css.js +2 -0
- package/dist/es/packages/quickenter/style-jmapp/index.js +2 -0
- package/dist/es/packages/quickenter/style-jmapp/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style-jmapp/style.css +106 -0
- package/dist/es/packages/quickenter/style-jrkf/css.js +2 -0
- package/dist/es/packages/quickenter/style-jrkf/index.js +2 -0
- package/dist/es/packages/quickenter/style-jrkf/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style-jrkf/style.css +106 -0
- package/dist/es/packages/radio/index.js +0 -1
- package/dist/es/packages/range/range.js +45 -29
- package/dist/es/packages/rate/rate.js +6 -9
- package/dist/es/packages/resultpage/resultpage.js +2 -1
- package/dist/es/packages/resultpage/style/style.harmony.css +0 -3
- package/dist/es/packages/safearea/safearea.js +3 -12
- package/dist/es/packages/safearea/style/safearea.scss +0 -6
- package/dist/es/packages/safearea/style/style.css +0 -2
- package/dist/es/packages/safearea/style/style.harmony.css +0 -2
- package/dist/es/packages/safearea/style-jmapp/safearea.scss +0 -6
- package/dist/es/packages/safearea/style-jmapp/style.css +0 -2
- package/dist/es/packages/safearea/style-jrkf/safearea.scss +0 -6
- package/dist/es/packages/safearea/style-jrkf/style.css +0 -2
- package/dist/es/packages/searchbar/searchbar.js +23 -9
- package/dist/es/packages/shortpassword/style/style.harmony.css +38 -17
- package/dist/es/packages/step/step.js +3 -8
- package/dist/es/packages/step/style/step.scss +0 -2
- package/dist/es/packages/step/style/style.css +0 -2
- package/dist/es/packages/step/style/style.harmony.css +0 -2
- package/dist/es/packages/step/style-jmapp/step.scss +0 -2
- package/dist/es/packages/step/style-jmapp/style.css +0 -2
- package/dist/es/packages/step/style-jrkf/step.scss +0 -2
- package/dist/es/packages/step/style-jrkf/style.css +0 -2
- package/dist/es/packages/steps/style/steps.scss +10 -3
- package/dist/es/packages/steps/style/style.css +13 -7
- package/dist/es/packages/steps/style/style.harmony.css +13 -9
- package/dist/es/packages/steps/style-jmapp/steps.scss +10 -3
- package/dist/es/packages/steps/style-jmapp/style.css +9 -3
- package/dist/es/packages/steps/style-jrkf/steps.scss +10 -3
- package/dist/es/packages/steps/style-jrkf/style.css +9 -3
- package/dist/es/packages/sticky/sticky.js +4 -7
- package/dist/es/packages/swipe/swipe.js +85 -123
- package/dist/es/packages/swiper/index.js +0 -1
- package/dist/es/packages/switch/switch.js +4 -7
- package/dist/es/packages/table/style/style.css +1 -1
- package/dist/es/packages/table/style/style.harmony.css +1 -1
- package/dist/es/packages/table/style/table.scss +1 -1
- package/dist/es/packages/table/style-jmapp/style.css +1 -1
- package/dist/es/packages/table/style-jmapp/table.scss +1 -1
- package/dist/es/packages/table/style-jrkf/style.css +1 -1
- package/dist/es/packages/table/style-jrkf/table.scss +1 -1
- package/dist/es/packages/tabs/tabs.js +12 -5
- package/dist/es/packages/tag/style/style.css +1 -1
- package/dist/es/packages/tag/style/style.harmony.css +1 -1
- package/dist/es/packages/tag/style/tag.scss +1 -1
- package/dist/es/packages/tag/style-jmapp/style.css +1 -1
- package/dist/es/packages/tag/style-jmapp/tag.scss +1 -1
- package/dist/es/packages/tag/style-jrkf/style.css +1 -1
- package/dist/es/packages/tag/style-jrkf/tag.scss +1 -1
- package/dist/es/packages/timeselect/style/style.harmony.css +38 -17
- package/dist/es/packages/toast/style/style.css +2 -4
- package/dist/es/packages/toast/style/style.harmony.css +2 -4
- package/dist/es/packages/toast/style/toast.scss +2 -4
- package/dist/es/packages/toast/style-jmapp/style.css +2 -4
- package/dist/es/packages/toast/style-jmapp/toast.scss +2 -4
- package/dist/es/packages/toast/style-jrkf/style.css +2 -4
- package/dist/es/packages/toast/style-jrkf/toast.scss +2 -4
- package/dist/es/packages/toast/toast.js +1 -1
- package/dist/es/packages/tour/style/style.harmony.css +38 -17
- package/dist/es/packages/uploader/uploader.js +38 -51
- package/dist/es/packages/watermark/watermark.js +4 -8
- package/dist/es/types/index.d.ts +3 -0
- package/dist/es/types/index.js +3 -0
- package/dist/es/types/spec/address/base.js +1 -1
- package/dist/es/types/spec/button/base.d.ts +2 -1
- package/dist/es/types/spec/button/taro.d.ts +5 -1
- package/dist/es/types/spec/calendarcard/base.d.ts +2 -0
- package/dist/es/types/spec/dialog/base.d.ts +3 -8
- package/dist/es/types/spec/dialog/h5.d.ts +2 -0
- package/dist/es/types/spec/dialog/taro.d.ts +2 -0
- package/dist/es/types/spec/overlay/base.d.ts +1 -0
- package/dist/es/types/spec/popup/base.d.ts +4 -5
- package/dist/es/types/spec/price/base.d.ts +4 -0
- package/dist/es/types/spec/quickenter/base.d.ts +45 -0
- package/dist/es/types/spec/quickenter/base.js +1 -0
- package/dist/es/types/spec/quickenter/h5.d.ts +5 -0
- package/dist/es/types/spec/quickenter/h5.js +1 -0
- package/dist/es/types/spec/quickenter/taro.d.ts +5 -0
- package/dist/es/types/spec/quickenter/taro.js +1 -0
- package/dist/es/utils/event-mocker.js +4 -12
- package/dist/es/utils/render.js +2 -6
- package/dist/es/utils/should-render-price-raw.d.ts +2 -0
- package/dist/es/utils/should-render-price-raw.js +30 -0
- package/dist/es/utils/taro/ConfigurableCSSTransition.d.ts +15 -0
- package/dist/es/utils/taro/ConfigurableCSSTransition.js +79 -0
- package/dist/es/utils/taro/get-rect.js +14 -22
- package/dist/es/utils/taro/get-system-info.d.ts +0 -5
- package/dist/es/utils/taro/get-system-info.js +8 -7
- package/dist/nutui.react.umd.js +8698 -7529
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +47 -46
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +31 -30
- package/dist/style.css +1 -1
- package/dist/style.scss +34 -33
- package/dist/styles/jd-font.scss +2 -2
- package/dist/styles/theme-dark.scss +1 -2
- package/dist/styles/themes/daojia.css +1 -1
- package/dist/styles/themes/dark-daojia.css +1 -1
- package/dist/styles/themes/dark.css +1 -1
- package/dist/styles/themes/default.css +1 -1
- package/dist/styles/variables-daojia.scss +41 -0
- package/dist/styles/variables-jmapp.scss +41 -0
- package/dist/styles/variables-jrkf.scss +41 -0
- package/dist/styles/variables.scss +49 -4
- package/package.json +1 -1
- package/dist/cjs/locales/vi-VN.d.ts +0 -3
- package/dist/cjs/locales/vi-VN.js +0 -170
- package/dist/es/locales/vi-VN.d.ts +0 -3
- package/dist/es/locales/vi-VN.js +0 -160
- package/postinstall.js +0 -9
|
@@ -5,32 +5,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
calculateDateBoundary
|
|
12
|
+
get calculateDateBoundary () {
|
|
13
13
|
return calculateDateBoundary;
|
|
14
14
|
},
|
|
15
|
-
formatPickerOption
|
|
15
|
+
get formatPickerOption () {
|
|
16
16
|
return formatPickerOption;
|
|
17
17
|
},
|
|
18
|
-
formatValue
|
|
18
|
+
get formatValue () {
|
|
19
19
|
return formatValue;
|
|
20
20
|
},
|
|
21
|
-
generateDatePickerRanges
|
|
21
|
+
get generateDatePickerRanges () {
|
|
22
22
|
return generateDatePickerRanges;
|
|
23
23
|
},
|
|
24
|
-
generatePickerColumnWithCallback
|
|
24
|
+
get generatePickerColumnWithCallback () {
|
|
25
25
|
return generatePickerColumnWithCallback;
|
|
26
26
|
},
|
|
27
|
-
getDatePartValue
|
|
27
|
+
get getDatePartValue () {
|
|
28
28
|
return getDatePartValue;
|
|
29
29
|
},
|
|
30
|
-
getLastDayOfMonth
|
|
30
|
+
get getLastDayOfMonth () {
|
|
31
31
|
return getLastDayOfMonth;
|
|
32
32
|
},
|
|
33
|
-
handlePickerValueChange
|
|
33
|
+
get handlePickerValueChange () {
|
|
34
34
|
return handlePickerValueChange;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
Content
|
|
12
|
+
get Content () {
|
|
13
13
|
return Content;
|
|
14
14
|
},
|
|
15
|
-
defaultContentProps
|
|
15
|
+
get defaultContentProps () {
|
|
16
16
|
return defaultContentProps;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
BaseDialog
|
|
12
|
+
get BaseDialog () {
|
|
13
13
|
return BaseDialog;
|
|
14
14
|
},
|
|
15
|
-
close
|
|
15
|
+
get close () {
|
|
16
16
|
return close;
|
|
17
17
|
},
|
|
18
|
-
open
|
|
18
|
+
get open () {
|
|
19
19
|
return open;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
@@ -31,7 +31,6 @@ var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
|
31
31
|
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
|
|
32
32
|
var _components = require("@tarojs/components");
|
|
33
33
|
var _iconsreacttaro = require("@nutui/icons-react-taro");
|
|
34
|
-
var _reacttransitiongroup = require("react-transition-group");
|
|
35
34
|
var _index = /*#__PURE__*/ _interop_require_default._(require("../button/index"));
|
|
36
35
|
var _content = require("./content");
|
|
37
36
|
var _configprovider = require("../configprovider/configprovider");
|
|
@@ -92,8 +91,8 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
92
91
|
if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
|
|
93
92
|
onCancel();
|
|
94
93
|
};
|
|
95
|
-
var handleOk =
|
|
96
|
-
|
|
94
|
+
var handleOk = function handleOk(e) {
|
|
95
|
+
return (0, _async_to_generator._)(function() {
|
|
97
96
|
var e1;
|
|
98
97
|
return (0, _ts_generator._)(this, function(_state) {
|
|
99
98
|
switch(_state.label){
|
|
@@ -133,11 +132,8 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
133
132
|
];
|
|
134
133
|
}
|
|
135
134
|
});
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
return _ref.apply(this, arguments);
|
|
139
|
-
};
|
|
140
|
-
}();
|
|
135
|
+
})();
|
|
136
|
+
};
|
|
141
137
|
var btnClass = hideCancelButton || hideConfirmButton ? "".concat(classPrefix, "-footer-block") : '';
|
|
142
138
|
var renderCancelOfVertical = function renderCancelOfVertical() {
|
|
143
139
|
return !hideCancelButton && /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
@@ -207,7 +203,11 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
207
203
|
};
|
|
208
204
|
var _obj;
|
|
209
205
|
var closeClasses = (0, _classnames.default)((_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix, "-close"), true), (0, _define_property._)(_obj, "".concat(classPrefix, "-close-").concat(closeIconPosition), true), _obj));
|
|
210
|
-
var
|
|
206
|
+
var systemIcon = closeIconPosition !== 'bottom' ? /*#__PURE__*/ _react.default.createElement(_iconsreacttaro.Close, {
|
|
207
|
+
ariaHidden: true
|
|
208
|
+
}) : /*#__PURE__*/ _react.default.createElement(_iconsreacttaro.Failure, {
|
|
209
|
+
ariaHidden: true
|
|
210
|
+
});
|
|
211
211
|
return /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
212
212
|
className: closeClasses,
|
|
213
213
|
onClick: handleClose,
|
|
@@ -215,7 +215,7 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
215
215
|
ariaLabel: locale.close,
|
|
216
216
|
// @ts-ignore
|
|
217
217
|
tabIndex: 0
|
|
218
|
-
}, /*#__PURE__*/ _react.default.isValidElement(closeIcon) ? closeIcon :
|
|
218
|
+
}, /*#__PURE__*/ _react.default.isValidElement(closeIcon) ? closeIcon : systemIcon);
|
|
219
219
|
};
|
|
220
220
|
var onHandleClickOverlay = function onHandleClickOverlay(e) {
|
|
221
221
|
if (closeOnOverlayClick && visible && e.target === e.currentTarget) {
|
|
@@ -226,17 +226,20 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
226
226
|
var renderContent = function renderContent() {
|
|
227
227
|
var contentZIndex = (0, _platform.harmony)() ? zIndex + 1 : zIndex // 解决harmony层级问题
|
|
228
228
|
;
|
|
229
|
-
return
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
229
|
+
return(// <CSSTransition
|
|
230
|
+
// in={visible}
|
|
231
|
+
// timeout={300}
|
|
232
|
+
// classNames="fadeDialog"
|
|
233
|
+
// unmountOnExit
|
|
234
|
+
// appear
|
|
235
|
+
// >
|
|
236
|
+
/*#__PURE__*/ /*#__PURE__*/ _react.default.createElement(_content.Content, {
|
|
236
237
|
className: className,
|
|
237
|
-
style: (0, _object_spread._)({
|
|
238
|
+
style: (0, _object_spread_props._)((0, _object_spread._)({
|
|
238
239
|
zIndex: contentZIndex
|
|
239
|
-
}, style),
|
|
240
|
+
}, style), {
|
|
241
|
+
display: visible ? 'block' : 'none'
|
|
242
|
+
}),
|
|
240
243
|
title: title,
|
|
241
244
|
header: header,
|
|
242
245
|
close: renderCloseIcon(),
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
.nut-button {
|
|
129
129
|
min-width: $dialog-footer-button-min-width;
|
|
130
130
|
border-radius: $dialog-footer-button-border;
|
|
131
|
-
padding: var(--nutui-button-large-padding, 0
|
|
131
|
+
padding: var(--nutui-button-large-padding, 0);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
&-cancel.nut-dialog-footer-cancel {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
.nut-dialog-footer .nut-button {
|
|
121
121
|
min-width: var(--nutui-dialog-footer-button-min-width, 117px);
|
|
122
122
|
border-radius: var(--nutui-dialog-footer-button-border, 6px);
|
|
123
|
-
padding: var(--nutui-button-large-padding, 0
|
|
123
|
+
padding: var(--nutui-button-large-padding, 0);
|
|
124
124
|
}
|
|
125
125
|
.nut-dialog-footer-cancel.nut-dialog-footer-cancel {
|
|
126
126
|
margin-right: var(--nutui-dialog-footer-cancel-margin-right, 12px);
|
|
@@ -60,9 +60,6 @@
|
|
|
60
60
|
/* #ifdef dynamic*/
|
|
61
61
|
pointer-events: none;
|
|
62
62
|
/* #endif */
|
|
63
|
-
/* #ifndef dynamic*/
|
|
64
|
-
pointer-events: auto;
|
|
65
|
-
/* #endif */
|
|
66
63
|
}
|
|
67
64
|
.nut-button::after {
|
|
68
65
|
border: none;
|
|
@@ -557,7 +554,7 @@
|
|
|
557
554
|
.nut-dialog-footer .nut-button {
|
|
558
555
|
min-width: var(--nutui-dialog-footer-button-min-width, 117px);
|
|
559
556
|
border-radius: var(--nutui-dialog-footer-button-border, 6px);
|
|
560
|
-
padding: var(--nutui-button-large-padding, 0
|
|
557
|
+
padding: var(--nutui-button-large-padding, 0);
|
|
561
558
|
}
|
|
562
559
|
.nut-dialog-footer-cancel.nut-dialog-footer-cancel {
|
|
563
560
|
margin-right: var(--nutui-dialog-footer-cancel-margin-right, 12px);
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
.nut-button {
|
|
129
129
|
min-width: $dialog-footer-button-min-width;
|
|
130
130
|
border-radius: $dialog-footer-button-border;
|
|
131
|
-
padding: var(--nutui-button-large-padding, 0
|
|
131
|
+
padding: var(--nutui-button-large-padding, 0);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
&-cancel.nut-dialog-footer-cancel {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
.nut-dialog-footer .nut-button {
|
|
121
121
|
min-width: var(--nutui-dialog-footer-button-min-width, 117px);
|
|
122
122
|
border-radius: var(--nutui-dialog-footer-button-border, 6px);
|
|
123
|
-
padding: var(--nutui-button-large-padding, 0
|
|
123
|
+
padding: var(--nutui-button-large-padding, 0);
|
|
124
124
|
}
|
|
125
125
|
.nut-dialog-footer-cancel.nut-dialog-footer-cancel {
|
|
126
126
|
margin-right: var(--nutui-dialog-footer-cancel-margin-right, 12px);
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
.nut-button {
|
|
129
129
|
min-width: $dialog-footer-button-min-width;
|
|
130
130
|
border-radius: $dialog-footer-button-border;
|
|
131
|
-
padding: var(--nutui-button-large-padding, 0
|
|
131
|
+
padding: var(--nutui-button-large-padding, 0);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
&-cancel.nut-dialog-footer-cancel {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
.nut-dialog-footer .nut-button {
|
|
121
121
|
min-width: var(--nutui-dialog-footer-button-min-width, 117px);
|
|
122
122
|
border-radius: var(--nutui-dialog-footer-button-border, 6px);
|
|
123
|
-
padding: var(--nutui-button-large-padding, 0
|
|
123
|
+
padding: var(--nutui-button-large-padding, 0);
|
|
124
124
|
}
|
|
125
125
|
.nut-dialog-footer-cancel.nut-dialog-footer-cancel {
|
|
126
126
|
margin-right: var(--nutui-dialog-footer-cancel-margin-right, 12px);
|
|
@@ -17,7 +17,7 @@ var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
|
17
17
|
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
|
|
18
18
|
var _components = require("@tarojs/components");
|
|
19
19
|
var _typings = require("../../utils/typings");
|
|
20
|
-
var
|
|
20
|
+
var _index = require("../configprovider/index");
|
|
21
21
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
22
22
|
contentPosition: 'center',
|
|
23
23
|
direction: 'horizontal'
|
|
@@ -31,7 +31,7 @@ var Divider = function Divider(props) {
|
|
|
31
31
|
"className",
|
|
32
32
|
"direction"
|
|
33
33
|
]);
|
|
34
|
-
var rtl = (0,
|
|
34
|
+
var rtl = (0, _index.useRtl)();
|
|
35
35
|
var _obj, _obj1;
|
|
36
36
|
var classes = direction === 'horizontal' ? (0, _classnames.default)((_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix), true), (0, _define_property._)(_obj, "".concat(classPrefix, "-center"), children), (0, _define_property._)(_obj, "".concat(classPrefix, "-left"), contentPosition === 'left'), (0, _define_property._)(_obj, "".concat(classPrefix, "-right"), contentPosition === 'right'), (0, _define_property._)(_obj, "".concat(classPrefix, "-rtl"), ([
|
|
37
37
|
'left',
|
|
@@ -50,8 +50,8 @@ var Drag = function Drag(props) {
|
|
|
50
50
|
var translateX = (0, _react.useRef)(0);
|
|
51
51
|
var translateY = (0, _react.useRef)(0);
|
|
52
52
|
var middleLine = (0, _react.useRef)(0);
|
|
53
|
-
var getInfo =
|
|
54
|
-
|
|
53
|
+
var getInfo = function getInfo() {
|
|
54
|
+
return (0, _async_to_generator._)(function() {
|
|
55
55
|
var el, top, left, bottom, right, _getWindowInfo, screenWidth, windowHeight, _ref, width, height, dragTop, dragLeft;
|
|
56
56
|
return (0, _ts_generator._)(this, function(_state) {
|
|
57
57
|
switch(_state.label){
|
|
@@ -83,11 +83,8 @@ var Drag = function Drag(props) {
|
|
|
83
83
|
];
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
return _ref.apply(this, arguments);
|
|
89
|
-
};
|
|
90
|
-
}();
|
|
86
|
+
})();
|
|
87
|
+
};
|
|
91
88
|
var touchStart = function touchStart(e) {
|
|
92
89
|
onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart();
|
|
93
90
|
var touches = e.touches[0];
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
Elevator
|
|
12
|
+
get Elevator () {
|
|
13
13
|
return Elevator;
|
|
14
14
|
},
|
|
15
|
-
elevatorContext
|
|
15
|
+
get elevatorContext () {
|
|
16
16
|
return elevatorContext;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -113,8 +113,8 @@ var Elevator = function Elevator(props) {
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
|
-
var scrollTo =
|
|
117
|
-
|
|
116
|
+
var scrollTo = function scrollTo(index) {
|
|
117
|
+
return (0, _async_to_generator._)(function() {
|
|
118
118
|
var cacheIndex, scrollTop;
|
|
119
119
|
return (0, _ts_generator._)(this, function(_state) {
|
|
120
120
|
switch(_state.label){
|
|
@@ -154,11 +154,8 @@ var Elevator = function Elevator(props) {
|
|
|
154
154
|
];
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
return _ref.apply(this, arguments);
|
|
160
|
-
};
|
|
161
|
-
}();
|
|
157
|
+
})();
|
|
158
|
+
};
|
|
162
159
|
var touchMove = function touchMove(e) {
|
|
163
160
|
var firstTouch = e.touches[0];
|
|
164
161
|
touchState.current.y2 = firstTouch.pageY;
|
|
@@ -102,8 +102,8 @@ var Ellipsis = function Ellipsis(props) {
|
|
|
102
102
|
content
|
|
103
103
|
]);
|
|
104
104
|
// 获取省略号宽度
|
|
105
|
-
var getSymbolInfo =
|
|
106
|
-
|
|
105
|
+
var getSymbolInfo = function getSymbolInfo() {
|
|
106
|
+
return (0, _async_to_generator._)(function() {
|
|
107
107
|
var refe;
|
|
108
108
|
return (0, _ts_generator._)(this, function(_state) {
|
|
109
109
|
switch(_state.label){
|
|
@@ -120,19 +120,16 @@ var Ellipsis = function Ellipsis(props) {
|
|
|
120
120
|
];
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
return _ref.apply(this, arguments);
|
|
126
|
-
};
|
|
127
|
-
}();
|
|
123
|
+
})();
|
|
124
|
+
};
|
|
128
125
|
var symbolText = function symbolText() {
|
|
129
126
|
if (direction === 'end' || direction === 'middle') {
|
|
130
127
|
return "".concat(symbol).concat(expandText);
|
|
131
128
|
}
|
|
132
129
|
return "".concat(symbol).concat(expandText).concat(symbol);
|
|
133
130
|
};
|
|
134
|
-
var getReference =
|
|
135
|
-
|
|
131
|
+
var getReference = function getReference() {
|
|
132
|
+
return (0, _async_to_generator._)(function() {
|
|
136
133
|
var query;
|
|
137
134
|
return (0, _ts_generator._)(this, function(_state) {
|
|
138
135
|
query = (0, _taro.createSelectorQuery)();
|
|
@@ -169,14 +166,11 @@ var Ellipsis = function Ellipsis(props) {
|
|
|
169
166
|
2
|
|
170
167
|
];
|
|
171
168
|
});
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
return _ref.apply(this, arguments);
|
|
175
|
-
};
|
|
176
|
-
}();
|
|
169
|
+
})();
|
|
170
|
+
};
|
|
177
171
|
// 计算省略号的位置
|
|
178
|
-
var calcEllipse =
|
|
179
|
-
|
|
172
|
+
var calcEllipse = function calcEllipse() {
|
|
173
|
+
return (0, _async_to_generator._)(function() {
|
|
180
174
|
var refe, rowNum, end, end1, start;
|
|
181
175
|
return (0, _ts_generator._)(this, function(_state) {
|
|
182
176
|
switch(_state.label){
|
|
@@ -191,8 +185,7 @@ var Ellipsis = function Ellipsis(props) {
|
|
|
191
185
|
setExceeded(false);
|
|
192
186
|
setCacled(true);
|
|
193
187
|
} else {
|
|
194
|
-
rowNum = Math.floor(content.length / (originHeight.current / lineH.current - 1)) // 每行的字数
|
|
195
|
-
;
|
|
188
|
+
rowNum = Math.floor(content.length / (originHeight.current / lineH.current - 1)); // 每行的字数
|
|
196
189
|
if (direction === 'middle') {
|
|
197
190
|
end = content.length;
|
|
198
191
|
ellipsis.current.leading = tailorContent(0, rowNum * (Number(rows) + 0.5), 'end');
|
|
@@ -215,14 +208,11 @@ var Ellipsis = function Ellipsis(props) {
|
|
|
215
208
|
];
|
|
216
209
|
}
|
|
217
210
|
});
|
|
218
|
-
});
|
|
219
|
-
|
|
220
|
-
return _ref.apply(this, arguments);
|
|
221
|
-
};
|
|
222
|
-
}();
|
|
211
|
+
})();
|
|
212
|
+
};
|
|
223
213
|
// 验证省略号
|
|
224
|
-
var verifyEllipsis =
|
|
225
|
-
|
|
214
|
+
var verifyEllipsis = function verifyEllipsis1() {
|
|
215
|
+
return (0, _async_to_generator._)(function() {
|
|
226
216
|
var refe, _ellipsis_current_leading, _ellipsis_current, _ellipsis_current_leading1, _ellipsis_current1, _ellipsis_current2, _ellipsis_current_tailing, _ellipsis_current3;
|
|
227
217
|
return (0, _ts_generator._)(this, function(_state) {
|
|
228
218
|
switch(_state.label){
|
|
@@ -251,11 +241,8 @@ var Ellipsis = function Ellipsis(props) {
|
|
|
251
241
|
];
|
|
252
242
|
}
|
|
253
243
|
});
|
|
254
|
-
});
|
|
255
|
-
|
|
256
|
-
return _ref.apply(this, arguments);
|
|
257
|
-
};
|
|
258
|
-
}();
|
|
244
|
+
})();
|
|
245
|
+
};
|
|
259
246
|
var assignContent = function assignContent() {
|
|
260
247
|
var _ellipsis_current, _ellipsis_current1, _ellipsis_current2, _ellipsis_current3;
|
|
261
248
|
var newContent = "".concat(((_ellipsis_current = ellipsis.current) === null || _ellipsis_current === void 0 ? void 0 : _ellipsis_current.leading) || '').concat(((_ellipsis_current1 = ellipsis.current) === null || _ellipsis_current1 === void 0 ? void 0 : _ellipsis_current1.leading) ? symbol : '').concat(expandText || '').concat(((_ellipsis_current2 = ellipsis.current) === null || _ellipsis_current2 === void 0 ? void 0 : _ellipsis_current2.tailing) ? symbol : '').concat(((_ellipsis_current3 = ellipsis.current) === null || _ellipsis_current3 === void 0 ? void 0 : _ellipsis_current3.tailing) || '');
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from "../../utils/typings";
|
|
3
|
-
import {
|
|
3
|
+
import { UIFill, UISize, UIType } from "../../types/base/atoms";
|
|
4
4
|
export interface EmptyAction {
|
|
5
5
|
text: React.ReactNode;
|
|
6
|
-
type?:
|
|
7
|
-
size?:
|
|
8
|
-
fill?:
|
|
6
|
+
type?: UIType;
|
|
7
|
+
size?: UISize;
|
|
8
|
+
fill?: UIFill;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
onClick?: () => () => void;
|
|
11
11
|
}
|
|
@@ -8,8 +8,6 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
12
|
-
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
13
11
|
var _form = require("./form");
|
|
14
12
|
var _formitem = require("../formitem/formitem");
|
|
15
13
|
var _useform = require("./useform");
|
|
@@ -302,11 +302,6 @@
|
|
|
302
302
|
padding-left: 0;
|
|
303
303
|
padding-right: 12px;
|
|
304
304
|
}
|
|
305
|
-
[dir=rtl] .form-layout-left .nut-form-item-label .required,
|
|
306
|
-
.nut-rtl .form-layout-left .nut-form-item-label .required {
|
|
307
|
-
left: auto;
|
|
308
|
-
right: 0.1em;
|
|
309
|
-
}
|
|
310
305
|
|
|
311
306
|
[dir=rtl] .form-layout-top .nut-form-item-label,
|
|
312
307
|
.nut-rtl .form-layout-top .nut-form-item-label {
|