@nutui/nutui-react-taro 3.0.20 → 3.0.22-cpp
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -68
- package/dist/cjs/hooks/use-props-value.js +1 -1
- package/dist/cjs/hooks/use-touch.js +4 -4
- package/dist/cjs/locales/base.d.ts +9 -0
- package/dist/cjs/locales/en-US.js +21 -2
- package/dist/cjs/locales/id-ID.js +21 -2
- package/dist/cjs/locales/ja-JP.js +19 -2
- package/dist/cjs/locales/tr-TR.js +21 -2
- package/dist/cjs/locales/zh-CN.js +19 -2
- package/dist/cjs/locales/zh-TW.js +19 -2
- package/dist/cjs/locales/zh-UG.js +21 -2
- package/dist/cjs/packages/actionsheet/style/style.harmony.css +38 -17
- package/dist/cjs/packages/address/address.d.ts +1 -1
- package/dist/cjs/packages/address/cascaderRender.js +1 -1
- package/dist/cjs/packages/address/existRender.js +1 -1
- package/dist/cjs/packages/address/style/style.harmony.css +38 -17
- package/dist/cjs/packages/animatingnumbers/countup.js +3 -1
- package/dist/cjs/packages/audio/audio.js +1 -1
- package/dist/cjs/packages/audio/style/style.harmony.css +0 -3
- package/dist/cjs/packages/avatar/avatar.js +32 -6
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +3 -7
- package/dist/cjs/packages/badge/badge.js +16 -3
- package/dist/cjs/packages/barrage/barrage.js +2 -1
- package/dist/cjs/packages/button/button.d.ts +2 -24
- package/dist/cjs/packages/button/button.js +9 -12
- package/dist/cjs/packages/button/index.d.ts +0 -1
- package/dist/cjs/packages/button/style/button.scss +0 -3
- package/dist/cjs/packages/button/style/style.css +0 -3
- package/dist/cjs/packages/button/style/style.harmony.css +0 -3
- package/dist/cjs/packages/button/style-jmapp/button.scss +0 -3
- package/dist/cjs/packages/button/style-jmapp/style.css +0 -3
- package/dist/cjs/packages/button/style-jrkf/button.scss +0 -3
- package/dist/cjs/packages/button/style-jrkf/style.css +0 -3
- package/dist/cjs/packages/calendar/style/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style/style.css +21 -1
- package/dist/cjs/packages/calendar/style/style.harmony.css +59 -18
- package/dist/cjs/packages/calendar/style-jmapp/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style-jmapp/style.css +21 -1
- package/dist/cjs/packages/calendar/style-jrkf/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style-jrkf/style.css +21 -1
- package/dist/cjs/packages/calendarcard/calendarcard.js +30 -8
- package/dist/cjs/packages/calendarcard/icon.js +12 -23
- package/dist/cjs/packages/calendarcard/style/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style/style.css +13 -0
- package/dist/cjs/packages/calendarcard/style/style.harmony.css +13 -0
- package/dist/cjs/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style-jmapp/style.css +13 -0
- package/dist/cjs/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
- package/dist/cjs/packages/calendarcard/style-jrkf/style.css +13 -0
- package/dist/cjs/packages/card/card.js +1 -1
- package/dist/cjs/packages/card/style/style.harmony.css +1 -1
- package/dist/cjs/packages/cascader/style/style.harmony.css +38 -17
- package/dist/cjs/packages/cascader/utils.js +4 -4
- package/dist/cjs/packages/cellgroup/cellgroup.js +1 -1
- package/dist/cjs/packages/checkboxgroup/checkboxgroup.js +3 -3
- package/dist/cjs/packages/circleprogress/circleprogress.js +1 -1
- package/dist/cjs/packages/collapseitem/collapseitem.js +1 -1
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/countdown.js +1 -1
- package/dist/cjs/packages/datepicker/datepicker.js +1 -1
- package/dist/cjs/packages/datepicker/style/style.harmony.css +39 -18
- package/dist/cjs/packages/dialog/dialog.js +20 -14
- package/dist/cjs/packages/dialog/style/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style/style.css +1 -1
- package/dist/cjs/packages/dialog/style/style.harmony.css +1 -4
- package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +1 -1
- package/dist/cjs/packages/dialog/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/divider/divider.js +3 -3
- package/dist/cjs/packages/elevator/elevator.js +1 -1
- package/dist/cjs/packages/ellipsis/ellipsis.js +1 -1
- package/dist/cjs/packages/empty/empty.d.ts +4 -4
- package/dist/cjs/packages/empty/style/style.harmony.css +0 -3
- package/dist/cjs/packages/form/form.js +1 -1
- package/dist/cjs/packages/form/style/style.harmony.css +0 -5
- package/dist/cjs/packages/formitem/style/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style/style.css +0 -5
- package/dist/cjs/packages/formitem/style/style.harmony.css +0 -5
- package/dist/cjs/packages/formitem/style-jmapp/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style-jmapp/style.css +0 -5
- package/dist/cjs/packages/formitem/style-jrkf/formitem.scss +4 -4
- package/dist/cjs/packages/formitem/style-jrkf/style.css +0 -5
- package/dist/cjs/packages/grid/grid.js +1 -1
- package/dist/cjs/packages/griditem/griditem.js +1 -1
- package/dist/cjs/packages/image/image.js +12 -4
- package/dist/cjs/packages/imagepreview/imagepreview.js +3 -2
- package/dist/cjs/packages/imagepreview/style/style.harmony.css +38 -17
- package/dist/cjs/packages/indicator/indicator.js +1 -1
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +3 -3
- package/dist/cjs/packages/input/input.js +11 -4
- package/dist/cjs/packages/inputnumber/inputnumber.js +2 -2
- package/dist/cjs/packages/loading/loading.js +1 -1
- package/dist/cjs/packages/lottie/lottiemp.js +10 -18
- package/dist/cjs/packages/menu/menu.js +1 -1
- package/dist/cjs/packages/numberkeyboard/style/style.css +1 -1
- package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +39 -18
- package/dist/cjs/packages/nutui.react.build.d.ts +3 -1
- package/dist/cjs/packages/nutui.react.build.js +18 -14
- package/dist/cjs/packages/nutui.react.d.ts +4 -1
- package/dist/cjs/packages/nutui.react.js +19 -14
- package/dist/cjs/packages/nutui.react.scss.d.ts +1 -0
- package/dist/cjs/packages/nutui.react.scss.js +1 -0
- package/dist/cjs/packages/overlay/overlay.js +4 -4
- package/dist/cjs/packages/pagination/pagination.js +1 -1
- package/dist/cjs/packages/picker/picker.js +1 -1
- package/dist/cjs/packages/picker/style/style.css +1 -1
- package/dist/cjs/packages/picker/style/style.harmony.css +39 -18
- package/dist/cjs/packages/pickerview/pickerroller.js +1 -1
- package/dist/cjs/packages/popover/popover.js +2 -2
- package/dist/cjs/packages/popover/style/style.harmony.css +38 -17
- package/dist/cjs/packages/popup/popup.js +188 -103
- package/dist/cjs/packages/popup/style/popup.scss +22 -1
- package/dist/cjs/packages/popup/style/style.css +38 -17
- package/dist/cjs/packages/popup/style/style.harmony.css +38 -17
- package/dist/cjs/packages/popup/style-jmapp/popup.scss +22 -1
- package/dist/cjs/packages/popup/style-jmapp/style.css +22 -1
- package/dist/cjs/packages/popup/style-jrkf/popup.scss +22 -1
- package/dist/cjs/packages/popup/style-jrkf/style.css +22 -1
- package/dist/cjs/packages/price/price.js +52 -13
- package/dist/cjs/packages/progress/progress.js +7 -12
- package/dist/cjs/packages/quickenter/index.d.ts +3 -0
- package/dist/cjs/packages/quickenter/index.js +13 -0
- package/dist/cjs/packages/quickenter/quickenter.d.ts +4 -0
- package/dist/cjs/packages/quickenter/quickenter.js +153 -0
- package/dist/cjs/packages/quickenter/style/css.js +2 -0
- package/dist/cjs/packages/quickenter/style/index.js +2 -0
- package/dist/cjs/packages/quickenter/style/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style/style.css +106 -0
- package/dist/cjs/packages/quickenter/style/style.harmony.css +506 -0
- package/dist/cjs/packages/quickenter/style-jmapp/css.js +2 -0
- package/dist/cjs/packages/quickenter/style-jmapp/index.js +2 -0
- package/dist/cjs/packages/quickenter/style-jmapp/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style-jmapp/style.css +106 -0
- package/dist/cjs/packages/quickenter/style-jrkf/css.js +2 -0
- package/dist/cjs/packages/quickenter/style-jrkf/index.js +2 -0
- package/dist/cjs/packages/quickenter/style-jrkf/quickenter.scss +120 -0
- package/dist/cjs/packages/quickenter/style-jrkf/style.css +106 -0
- package/dist/cjs/packages/radio/radio.js +1 -1
- package/dist/cjs/packages/radiogroup/radiogroup.js +3 -3
- package/dist/cjs/packages/range/range.js +35 -10
- package/dist/cjs/packages/rate/rate.js +5 -8
- package/dist/cjs/packages/resultpage/resultpage.js +2 -1
- package/dist/cjs/packages/resultpage/style/style.harmony.css +0 -3
- package/dist/cjs/packages/safearea/safearea.js +3 -12
- package/dist/cjs/packages/safearea/style/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style/style.css +0 -2
- package/dist/cjs/packages/safearea/style/style.harmony.css +0 -2
- package/dist/cjs/packages/safearea/style-jmapp/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style-jmapp/style.css +0 -2
- package/dist/cjs/packages/safearea/style-jrkf/safearea.scss +0 -6
- package/dist/cjs/packages/safearea/style-jrkf/style.css +0 -2
- package/dist/cjs/packages/searchbar/searchbar.js +23 -9
- package/dist/cjs/packages/shortpassword/shortpassword.js +1 -1
- package/dist/cjs/packages/shortpassword/style/style.harmony.css +38 -17
- package/dist/cjs/packages/sidebar/sidebar.js +1 -1
- package/dist/cjs/packages/signature/signature.js +2 -2
- package/dist/cjs/packages/skeleton/skeleton.js +1 -1
- package/dist/cjs/packages/step/step.js +3 -8
- package/dist/cjs/packages/step/style/step.scss +0 -2
- package/dist/cjs/packages/step/style/style.css +0 -2
- package/dist/cjs/packages/step/style/style.harmony.css +0 -2
- package/dist/cjs/packages/step/style-jmapp/step.scss +0 -2
- package/dist/cjs/packages/step/style-jmapp/style.css +0 -2
- package/dist/cjs/packages/step/style-jrkf/step.scss +0 -2
- package/dist/cjs/packages/step/style-jrkf/style.css +0 -2
- package/dist/cjs/packages/steps/style/steps.scss +10 -3
- package/dist/cjs/packages/steps/style/style.css +13 -7
- package/dist/cjs/packages/steps/style/style.harmony.css +13 -9
- package/dist/cjs/packages/steps/style-jmapp/steps.scss +10 -3
- package/dist/cjs/packages/steps/style-jmapp/style.css +9 -3
- package/dist/cjs/packages/steps/style-jrkf/steps.scss +10 -3
- package/dist/cjs/packages/steps/style-jrkf/style.css +9 -3
- package/dist/cjs/packages/sticky/sticky.js +3 -3
- package/dist/cjs/packages/swipe/swipe.js +84 -115
- package/dist/cjs/packages/swiper/swiper.js +1 -1
- package/dist/cjs/packages/switch/switch.js +1 -1
- package/dist/cjs/packages/tabbaritem/tabbaritem.js +1 -1
- package/dist/cjs/packages/table/style/style.css +1 -1
- package/dist/cjs/packages/table/style/style.harmony.css +1 -1
- package/dist/cjs/packages/table/style/table.scss +1 -1
- package/dist/cjs/packages/table/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/table/style-jmapp/table.scss +1 -1
- package/dist/cjs/packages/table/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/table/style-jrkf/table.scss +1 -1
- package/dist/cjs/packages/table/table.js +1 -1
- package/dist/cjs/packages/tabs/tabs.js +13 -6
- package/dist/cjs/packages/tag/style/style.css +1 -1
- package/dist/cjs/packages/tag/style/style.harmony.css +1 -1
- package/dist/cjs/packages/tag/style/tag.scss +1 -1
- package/dist/cjs/packages/tag/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/tag/style-jmapp/tag.scss +1 -1
- package/dist/cjs/packages/tag/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/tag/style-jrkf/tag.scss +1 -1
- package/dist/cjs/packages/textarea/textarea.js +1 -1
- package/dist/cjs/packages/timeselect/style/style.harmony.css +38 -17
- package/dist/cjs/packages/timeselect/timeselect.js +1 -1
- package/dist/cjs/packages/toast/style/style.css +2 -4
- package/dist/cjs/packages/toast/style/style.harmony.css +2 -4
- package/dist/cjs/packages/toast/style/toast.scss +2 -4
- package/dist/cjs/packages/toast/style-jmapp/style.css +2 -4
- package/dist/cjs/packages/toast/style-jmapp/toast.scss +2 -4
- package/dist/cjs/packages/toast/style-jrkf/style.css +2 -4
- package/dist/cjs/packages/toast/style-jrkf/toast.scss +2 -4
- package/dist/cjs/packages/toast/toast.js +3 -3
- package/dist/cjs/packages/tour/style/style.harmony.css +38 -17
- package/dist/cjs/packages/trendarrow/trendarrow.js +1 -1
- package/dist/cjs/packages/uploader/uploader.js +1 -1
- package/dist/cjs/packages/video/video.js +2 -2
- package/dist/cjs/packages/virtuallist/utils.js +1 -1
- package/dist/cjs/packages/virtuallist/virtuallist.js +1 -1
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/spec/button/base.d.ts +2 -1
- package/dist/cjs/types/spec/button/taro.d.ts +5 -1
- package/dist/cjs/types/spec/calendarcard/base.d.ts +2 -0
- package/dist/cjs/types/spec/dialog/base.d.ts +1 -0
- package/dist/cjs/types/spec/dialog/h5.d.ts +2 -0
- package/dist/cjs/types/spec/dialog/taro.d.ts +2 -0
- package/dist/cjs/types/spec/overlay/base.d.ts +1 -0
- package/dist/cjs/types/spec/popup/base.d.ts +2 -0
- package/dist/cjs/types/spec/price/base.d.ts +1 -0
- package/dist/cjs/types/spec/quickenter/base.d.ts +27 -0
- package/dist/cjs/types/spec/quickenter/base.js +4 -0
- package/dist/cjs/types/spec/quickenter/h5.d.ts +5 -0
- package/dist/cjs/types/spec/quickenter/h5.js +4 -0
- package/dist/cjs/types/spec/quickenter/taro.d.ts +5 -0
- package/dist/cjs/types/spec/quickenter/taro.js +4 -0
- package/dist/cjs/utils/should-render-price-raw.d.ts +2 -0
- package/dist/cjs/utils/should-render-price-raw.js +46 -0
- package/dist/cjs/utils/taro/{ConfigurableCSSTransition copy.js → ConfigurableCSSTransition.js} +13 -53
- package/dist/cjs/utils/taro/get-rect.js +4 -2
- package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
- package/dist/cjs/utils/taro/get-system-info.js +2 -7
- package/dist/es/hooks/taro/use-custom-event.js +4 -3
- package/dist/es/hooks/taro/use-lock-scoll.js +1 -1
- package/dist/es/hooks/use-click-away.js +2 -2
- package/dist/es/hooks/use-lock-scroll.js +3 -3
- package/dist/es/hooks/use-pagination.js +1 -1
- package/dist/es/hooks/use-ref-state.js +3 -3
- package/dist/es/hooks/use-touch.js +13 -13
- package/dist/es/hooks/use-watch.js +1 -1
- package/dist/es/locales/base.d.ts +9 -0
- package/dist/es/locales/en-US.js +24 -5
- package/dist/es/locales/id-ID.js +24 -5
- package/dist/es/locales/ja-JP.js +22 -5
- package/dist/es/locales/tr-TR.js +24 -5
- package/dist/es/locales/zh-CN.js +22 -5
- package/dist/es/locales/zh-TW.js +22 -5
- package/dist/es/locales/zh-UG.js +24 -5
- package/dist/es/packages/actionsheet/actionsheet.js +8 -8
- package/dist/es/packages/actionsheet/style/style.harmony.css +38 -17
- package/dist/es/packages/address/address.d.ts +1 -1
- package/dist/es/packages/address/address.js +10 -10
- package/dist/es/packages/address/cascaderRender.js +4 -4
- package/dist/es/packages/address/elevatorRender.js +17 -17
- package/dist/es/packages/address/existRender.js +5 -5
- package/dist/es/packages/address/style/style.harmony.css +38 -17
- package/dist/es/packages/address/utils.js +5 -5
- package/dist/es/packages/animate/animate.js +3 -3
- package/dist/es/packages/animatingnumbers/countup.js +4 -2
- package/dist/es/packages/audio/audio.js +16 -16
- package/dist/es/packages/audio/style/style.harmony.css +0 -3
- package/dist/es/packages/avatar/avatar.js +35 -9
- package/dist/es/packages/avatarcropper/avatarcropper.js +29 -33
- package/dist/es/packages/avatargroup/avatargroup.js +1 -1
- package/dist/es/packages/backtop/backtop.js +3 -3
- package/dist/es/packages/badge/badge.js +18 -5
- package/dist/es/packages/barrage/barrage.js +10 -9
- package/dist/es/packages/button/button.d.ts +2 -24
- package/dist/es/packages/button/button.js +12 -14
- package/dist/es/packages/button/index.d.ts +0 -1
- package/dist/es/packages/button/style/button.scss +0 -3
- package/dist/es/packages/button/style/style.css +0 -3
- package/dist/es/packages/button/style/style.harmony.css +0 -3
- package/dist/es/packages/button/style-jmapp/button.scss +0 -3
- package/dist/es/packages/button/style-jmapp/style.css +0 -3
- package/dist/es/packages/button/style-jrkf/button.scss +0 -3
- package/dist/es/packages/button/style-jrkf/style.css +0 -3
- package/dist/es/packages/calendar/calendar.js +12 -12
- package/dist/es/packages/calendar/style/calendar.scss +32 -1
- package/dist/es/packages/calendar/style/style.css +21 -1
- package/dist/es/packages/calendar/style/style.harmony.css +59 -18
- package/dist/es/packages/calendar/style-jmapp/calendar.scss +32 -1
- package/dist/es/packages/calendar/style-jmapp/style.css +21 -1
- package/dist/es/packages/calendar/style-jrkf/calendar.scss +32 -1
- package/dist/es/packages/calendar/style-jrkf/style.css +21 -1
- package/dist/es/packages/calendar/utils.js +7 -7
- package/dist/es/packages/calendarcard/calendarcard.js +53 -31
- package/dist/es/packages/calendarcard/icon.js +18 -29
- package/dist/es/packages/calendarcard/style/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style/style.css +13 -0
- package/dist/es/packages/calendarcard/style/style.harmony.css +13 -0
- package/dist/es/packages/calendarcard/style-jmapp/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style-jmapp/style.css +13 -0
- package/dist/es/packages/calendarcard/style-jrkf/calendarcard.scss +19 -0
- package/dist/es/packages/calendarcard/style-jrkf/style.css +13 -0
- package/dist/es/packages/calendarcard/utils.js +5 -5
- package/dist/es/packages/calendaritem/calendaritem.js +32 -32
- package/dist/es/packages/card/card.js +2 -2
- package/dist/es/packages/card/style/style.harmony.css +1 -1
- package/dist/es/packages/cascader/cascader.js +15 -15
- package/dist/es/packages/cascader/style/style.harmony.css +38 -17
- package/dist/es/packages/cascader/utils.js +6 -6
- package/dist/es/packages/cell/cell.js +4 -4
- package/dist/es/packages/cellgroup/cellgroup.js +2 -2
- package/dist/es/packages/checkbox/checkbox.js +10 -10
- package/dist/es/packages/checkboxgroup/checkboxgroup.js +7 -7
- package/dist/es/packages/circleprogress/circleprogress.js +7 -7
- package/dist/es/packages/col/col.js +2 -2
- package/dist/es/packages/collapse/collapse.js +3 -3
- package/dist/es/packages/collapse/context.js +2 -2
- package/dist/es/packages/collapseitem/collapseitem.js +5 -5
- package/dist/es/packages/configprovider/configprovider.js +5 -5
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/countdown.js +15 -15
- package/dist/es/packages/datepicker/datepicker.js +12 -12
- package/dist/es/packages/datepicker/style/style.harmony.css +39 -18
- package/dist/es/packages/datepicker/utils.js +7 -7
- package/dist/es/packages/datepickerview/datepickerview.js +5 -5
- package/dist/es/packages/dialog/content.js +6 -6
- package/dist/es/packages/dialog/dialog.js +53 -45
- package/dist/es/packages/dialog/style/dialog.scss +1 -1
- package/dist/es/packages/dialog/style/style.css +1 -1
- package/dist/es/packages/dialog/style/style.harmony.css +1 -4
- package/dist/es/packages/dialog/style-jmapp/dialog.scss +1 -1
- package/dist/es/packages/dialog/style-jmapp/style.css +1 -1
- package/dist/es/packages/dialog/style-jrkf/dialog.scss +1 -1
- package/dist/es/packages/dialog/style-jrkf/style.css +1 -1
- package/dist/es/packages/divider/divider.js +4 -4
- package/dist/es/packages/drag/drag.js +5 -5
- package/dist/es/packages/elevator/elevator.js +17 -17
- package/dist/es/packages/ellipsis/ellipsis.js +14 -14
- package/dist/es/packages/empty/empty.d.ts +4 -4
- package/dist/es/packages/empty/empty.js +1 -1
- package/dist/es/packages/empty/style/style.harmony.css +0 -3
- package/dist/es/packages/fixednav/fixednav.js +7 -7
- package/dist/es/packages/form/form.js +7 -7
- package/dist/es/packages/form/style/style.harmony.css +0 -5
- package/dist/es/packages/form/useform.js +4 -4
- package/dist/es/packages/formitem/formitem.js +1 -1
- package/dist/es/packages/formitem/style/formitem.scss +4 -4
- package/dist/es/packages/formitem/style/style.css +0 -5
- package/dist/es/packages/formitem/style/style.harmony.css +0 -5
- package/dist/es/packages/formitem/style-jmapp/formitem.scss +4 -4
- package/dist/es/packages/formitem/style-jmapp/style.css +0 -5
- package/dist/es/packages/formitem/style-jrkf/formitem.scss +4 -4
- package/dist/es/packages/formitem/style-jrkf/style.css +0 -5
- package/dist/es/packages/grid/context.js +1 -1
- package/dist/es/packages/grid/grid.js +4 -4
- package/dist/es/packages/griditem/griditem.js +6 -6
- package/dist/es/packages/hoverbutton/hoverbutton.js +1 -1
- package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +6 -6
- package/dist/es/packages/hoverbuttonitem/utils.js +1 -1
- package/dist/es/packages/image/image.js +18 -10
- package/dist/es/packages/imagepreview/imagepreview.js +16 -15
- package/dist/es/packages/imagepreview/style/style.harmony.css +38 -17
- package/dist/es/packages/indicator/indicator.js +5 -5
- package/dist/es/packages/infiniteloading/infiniteloading.js +14 -14
- package/dist/es/packages/input/input.js +23 -16
- package/dist/es/packages/inputnumber/inputnumber.js +13 -13
- package/dist/es/packages/layout/layout.js +1 -1
- package/dist/es/packages/loading/loading.js +3 -3
- package/dist/es/packages/lottie/index.js +1 -1
- package/dist/es/packages/lottie/lottiemp.js +12 -20
- package/dist/es/packages/menu/menu.js +13 -13
- package/dist/es/packages/menuitem/menuitem.js +12 -12
- package/dist/es/packages/navbar/navbar.js +7 -7
- package/dist/es/packages/noticebar/noticebar.js +22 -22
- package/dist/es/packages/notify/notify.js +8 -8
- package/dist/es/packages/numberkeyboard/numberkeyboard.js +12 -12
- package/dist/es/packages/numberkeyboard/style/style.css +1 -1
- package/dist/es/packages/numberkeyboard/style/style.harmony.css +39 -18
- package/dist/es/packages/nutui.react.build.d.ts +3 -1
- package/dist/es/packages/nutui.react.build.js +3 -1
- package/dist/es/packages/overlay/overlay.js +10 -10
- package/dist/es/packages/pagination/pagination.js +8 -8
- package/dist/es/packages/picker/picker.js +15 -15
- package/dist/es/packages/picker/style/style.css +1 -1
- package/dist/es/packages/picker/style/style.harmony.css +39 -18
- package/dist/es/packages/pickerview/pickerroller.js +12 -12
- package/dist/es/packages/pickerview/pickerview.js +3 -3
- package/dist/es/packages/pickerview/utils.js +6 -6
- package/dist/es/packages/popover/popover.js +16 -16
- package/dist/es/packages/popover/style/style.harmony.css +38 -17
- package/dist/es/packages/popup/popup.js +200 -115
- package/dist/es/packages/popup/style/popup.scss +22 -1
- package/dist/es/packages/popup/style/style.css +38 -17
- package/dist/es/packages/popup/style/style.harmony.css +38 -17
- package/dist/es/packages/popup/style-jmapp/popup.scss +22 -1
- package/dist/es/packages/popup/style-jmapp/style.css +22 -1
- package/dist/es/packages/popup/style-jrkf/popup.scss +22 -1
- package/dist/es/packages/popup/style-jrkf/style.css +22 -1
- package/dist/es/packages/price/price.js +60 -21
- package/dist/es/packages/progress/progress.js +17 -22
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +8 -8
- package/dist/es/packages/quickenter/index.d.ts +3 -0
- package/dist/es/packages/quickenter/index.js +2 -0
- package/dist/es/packages/quickenter/quickenter.d.ts +4 -0
- package/dist/es/packages/quickenter/quickenter.js +141 -0
- package/dist/es/packages/quickenter/style/css.js +2 -0
- package/dist/es/packages/quickenter/style/index.js +2 -0
- package/dist/es/packages/quickenter/style/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style/style.css +106 -0
- package/dist/es/packages/quickenter/style/style.harmony.css +506 -0
- package/dist/es/packages/quickenter/style-jmapp/css.js +2 -0
- package/dist/es/packages/quickenter/style-jmapp/index.js +2 -0
- package/dist/es/packages/quickenter/style-jmapp/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style-jmapp/style.css +106 -0
- package/dist/es/packages/quickenter/style-jrkf/css.js +2 -0
- package/dist/es/packages/quickenter/style-jrkf/index.js +2 -0
- package/dist/es/packages/quickenter/style-jrkf/quickenter.scss +120 -0
- package/dist/es/packages/quickenter/style-jrkf/style.css +106 -0
- package/dist/es/packages/radio/radio.js +11 -11
- package/dist/es/packages/radiogroup/radiogroup.js +6 -6
- package/dist/es/packages/range/range.js +44 -19
- package/dist/es/packages/rate/rate.js +16 -19
- package/dist/es/packages/resultpage/resultpage.js +3 -2
- package/dist/es/packages/resultpage/style/style.harmony.css +0 -3
- package/dist/es/packages/row/row.js +4 -4
- package/dist/es/packages/safearea/safearea.js +4 -13
- package/dist/es/packages/safearea/style/safearea.scss +0 -6
- package/dist/es/packages/safearea/style/style.css +0 -2
- package/dist/es/packages/safearea/style/style.harmony.css +0 -2
- package/dist/es/packages/safearea/style-jmapp/safearea.scss +0 -6
- package/dist/es/packages/safearea/style-jmapp/style.css +0 -2
- package/dist/es/packages/safearea/style-jrkf/safearea.scss +0 -6
- package/dist/es/packages/safearea/style-jrkf/style.css +0 -2
- package/dist/es/packages/searchbar/searchbar.js +27 -13
- package/dist/es/packages/segmented/segmented.js +4 -4
- package/dist/es/packages/shortpassword/shortpassword.js +7 -7
- package/dist/es/packages/shortpassword/style/style.harmony.css +38 -17
- package/dist/es/packages/sidebar/sidebar.js +11 -11
- package/dist/es/packages/sidebar/utils.js +1 -1
- package/dist/es/packages/sidebaritem/sidebaritem.js +1 -1
- package/dist/es/packages/signature/signature.js +15 -15
- package/dist/es/packages/skeleton/skeleton.js +4 -4
- package/dist/es/packages/space/space.js +1 -1
- package/dist/es/packages/step/step.js +4 -9
- package/dist/es/packages/step/style/step.scss +0 -2
- package/dist/es/packages/step/style/style.css +0 -2
- package/dist/es/packages/step/style/style.harmony.css +0 -2
- package/dist/es/packages/step/style-jmapp/step.scss +0 -2
- package/dist/es/packages/step/style-jmapp/style.css +0 -2
- package/dist/es/packages/step/style-jrkf/step.scss +0 -2
- package/dist/es/packages/step/style-jrkf/style.css +0 -2
- package/dist/es/packages/steps/steps.js +1 -1
- package/dist/es/packages/steps/style/steps.scss +10 -3
- package/dist/es/packages/steps/style/style.css +13 -7
- package/dist/es/packages/steps/style/style.harmony.css +13 -9
- package/dist/es/packages/steps/style-jmapp/steps.scss +10 -3
- package/dist/es/packages/steps/style-jmapp/style.css +9 -3
- package/dist/es/packages/steps/style-jrkf/steps.scss +10 -3
- package/dist/es/packages/steps/style-jrkf/style.css +9 -3
- package/dist/es/packages/sticky/sticky.js +5 -5
- package/dist/es/packages/swipe/swipe.js +98 -129
- package/dist/es/packages/swiper/swiper.js +7 -7
- package/dist/es/packages/swiperitem/swiperitem.js +1 -1
- package/dist/es/packages/switch/switch.js +6 -6
- package/dist/es/packages/tabbar/tabbar.js +2 -2
- package/dist/es/packages/tabbaritem/tabbaritem.js +10 -10
- package/dist/es/packages/table/style/style.css +1 -1
- package/dist/es/packages/table/style/style.harmony.css +1 -1
- package/dist/es/packages/table/style/table.scss +1 -1
- package/dist/es/packages/table/style-jmapp/style.css +1 -1
- package/dist/es/packages/table/style-jmapp/table.scss +1 -1
- package/dist/es/packages/table/style-jrkf/style.css +1 -1
- package/dist/es/packages/table/style-jrkf/table.scss +1 -1
- package/dist/es/packages/table/table.js +10 -10
- package/dist/es/packages/tabpane/tabpane.js +1 -1
- package/dist/es/packages/tabs/tabs.js +23 -16
- package/dist/es/packages/tag/style/style.css +1 -1
- package/dist/es/packages/tag/style/style.harmony.css +1 -1
- package/dist/es/packages/tag/style/tag.scss +1 -1
- package/dist/es/packages/tag/style-jmapp/style.css +1 -1
- package/dist/es/packages/tag/style-jmapp/tag.scss +1 -1
- package/dist/es/packages/tag/style-jrkf/style.css +1 -1
- package/dist/es/packages/tag/style-jrkf/tag.scss +1 -1
- package/dist/es/packages/tag/tag.js +10 -10
- package/dist/es/packages/textarea/textarea.js +11 -11
- package/dist/es/packages/timedetail/timedetail.js +3 -3
- package/dist/es/packages/timeselect/style/style.harmony.css +38 -17
- package/dist/es/packages/timeselect/timeselect.js +6 -6
- package/dist/es/packages/toast/style/style.css +2 -4
- package/dist/es/packages/toast/style/style.harmony.css +2 -4
- package/dist/es/packages/toast/style/toast.scss +2 -4
- package/dist/es/packages/toast/style-jmapp/style.css +2 -4
- package/dist/es/packages/toast/style-jmapp/toast.scss +2 -4
- package/dist/es/packages/toast/style-jrkf/style.css +2 -4
- package/dist/es/packages/toast/style-jrkf/toast.scss +2 -4
- package/dist/es/packages/toast/toast.js +11 -11
- package/dist/es/packages/tour/style/style.harmony.css +38 -17
- package/dist/es/packages/tour/tour.js +10 -10
- package/dist/es/packages/trendarrow/trendarrow.js +4 -4
- package/dist/es/packages/uploader/preview.js +8 -8
- package/dist/es/packages/uploader/uploader.js +19 -19
- package/dist/es/packages/video/video.js +3 -3
- package/dist/es/packages/virtuallist/utils.js +5 -5
- package/dist/es/packages/virtuallist/virtuallist.js +8 -8
- package/dist/es/packages/watermark/watermark.js +2 -2
- package/dist/es/types/index.d.ts +3 -0
- package/dist/es/types/index.js +3 -0
- package/dist/es/types/spec/button/base.d.ts +2 -1
- package/dist/es/types/spec/button/taro.d.ts +5 -1
- package/dist/es/types/spec/calendarcard/base.d.ts +2 -0
- package/dist/es/types/spec/dialog/base.d.ts +3 -8
- package/dist/es/types/spec/dialog/h5.d.ts +2 -0
- package/dist/es/types/spec/dialog/taro.d.ts +2 -0
- package/dist/es/types/spec/overlay/base.d.ts +1 -0
- package/dist/es/types/spec/popup/base.d.ts +4 -5
- package/dist/es/types/spec/price/base.d.ts +4 -0
- package/dist/es/types/spec/quickenter/base.d.ts +45 -0
- package/dist/es/types/spec/quickenter/base.js +1 -0
- package/dist/es/types/spec/quickenter/h5.d.ts +5 -0
- package/dist/es/types/spec/quickenter/h5.js +1 -0
- package/dist/es/types/spec/quickenter/taro.d.ts +5 -0
- package/dist/es/types/spec/quickenter/taro.js +1 -0
- package/dist/es/utils/clamp.js +1 -1
- package/dist/es/utils/date.js +3 -3
- package/dist/es/utils/get-rect.js +1 -1
- package/dist/es/utils/interceptor.js +1 -1
- package/dist/es/utils/is-date.js +1 -1
- package/dist/es/utils/is-empty.js +1 -1
- package/dist/es/utils/is-function.js +1 -1
- package/dist/es/utils/is-object.js +1 -1
- package/dist/es/utils/is-promise.js +1 -1
- package/dist/es/utils/pad-zero.js +1 -1
- package/dist/es/utils/px-check.js +1 -1
- package/dist/es/utils/should-render-price-raw.d.ts +2 -0
- package/dist/es/utils/should-render-price-raw.js +30 -0
- package/dist/es/utils/sleep.js +1 -1
- package/dist/es/utils/taro/{ConfigurableCSSTransition copy.js → ConfigurableCSSTransition.js} +14 -54
- package/dist/es/utils/taro/get-rect-by-id.js +1 -1
- package/dist/es/utils/taro/get-rect.js +6 -4
- package/dist/es/utils/taro/get-system-info.d.ts +0 -5
- package/dist/es/utils/taro/get-system-info.js +10 -9
- package/dist/es/utils/taro/platform.js +4 -4
- package/dist/es/utils/upper-case-first.js +1 -1
- package/dist/nutui.react.umd.js +11331 -10903
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +36 -35
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +32 -31
- package/dist/style.css +1 -1
- package/dist/style.scss +33 -32
- package/dist/styles/jd-font.scss +2 -2
- package/dist/styles/theme-dark.scss +1 -2
- package/dist/styles/themes/daojia.css +1 -1
- package/dist/styles/themes/dark-daojia.css +1 -1
- package/dist/styles/themes/dark.css +1 -1
- package/dist/styles/themes/default.css +1 -1
- package/dist/styles/variables-daojia.scss +41 -0
- package/dist/styles/variables-jmapp.scss +41 -0
- package/dist/styles/variables-jrkf.scss +41 -0
- package/dist/styles/variables.scss +49 -4
- package/package.json +1 -1
- package/dist/cjs/locales/vi-VN.d.ts +0 -3
- package/dist/cjs/locales/vi-VN.js +0 -170
- package/dist/es/locales/vi-VN.d.ts +0 -3
- package/dist/es/locales/vi-VN.js +0 -160
- /package/dist/cjs/utils/taro/{ConfigurableCSSTransition copy.d.ts → ConfigurableCSSTransition.d.ts} +0 -0
- /package/dist/es/utils/taro/{ConfigurableCSSTransition copy.d.ts → ConfigurableCSSTransition.d.ts} +0 -0
|
@@ -28,7 +28,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
28
28
|
closeOnOverlayClick: true
|
|
29
29
|
});
|
|
30
30
|
var classPrefix = 'nut-tour';
|
|
31
|
-
export var Tour = function(props) {
|
|
31
|
+
export var Tour = function Tour(props) {
|
|
32
32
|
var locale = useConfig().locale;
|
|
33
33
|
var _$_object_spread = _object_spread({}, defaultProps, props), children = _$_object_spread.children, className = _$_object_spread.className, title = _$_object_spread.title, closeOnOverlayClick = _$_object_spread.closeOnOverlayClick, showPrev = _$_object_spread.showPrev, list = _$_object_spread.list, type = _$_object_spread.type, location = _$_object_spread.location, visible = _$_object_spread.visible, mask = _$_object_spread.mask, maskWidth = _$_object_spread.maskWidth, maskHeight = _$_object_spread.maskHeight, offset = _$_object_spread.offset, next = _$_object_spread.next, prev = _$_object_spread.prev, complete = _$_object_spread.complete, onClose = _$_object_spread.onClose, onChange = _$_object_spread.onChange, style = _$_object_spread.style;
|
|
34
34
|
var _useState = _sliced_to_array(useState(false), 2), showTour = _useState[0], setShowTour = _useState[1];
|
|
@@ -61,7 +61,7 @@ export var Tour = function(props) {
|
|
|
61
61
|
}, [
|
|
62
62
|
active
|
|
63
63
|
]);
|
|
64
|
-
var getRootPosition = function() {
|
|
64
|
+
var getRootPosition = function getRootPosition() {
|
|
65
65
|
getRectById(list[active].target).then(function(rect) {
|
|
66
66
|
setMaskRect({
|
|
67
67
|
top: rect.top,
|
|
@@ -73,7 +73,7 @@ export var Tour = function(props) {
|
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
var maskStyle = function() {
|
|
76
|
+
var maskStyle = function maskStyle() {
|
|
77
77
|
var width = maskRect.width, height = maskRect.height, left = maskRect.left, top = maskRect.top;
|
|
78
78
|
var center = [
|
|
79
79
|
left + width / 2,
|
|
@@ -90,15 +90,15 @@ export var Tour = function(props) {
|
|
|
90
90
|
};
|
|
91
91
|
return styles;
|
|
92
92
|
};
|
|
93
|
-
var maskClose = function(e) {
|
|
93
|
+
var maskClose = function maskClose(e) {
|
|
94
94
|
setShowTour(false);
|
|
95
95
|
setShowPopup(false);
|
|
96
96
|
onClose && onClose(e);
|
|
97
97
|
};
|
|
98
|
-
var handleClickMask = function(e) {
|
|
98
|
+
var handleClickMask = function handleClickMask(e) {
|
|
99
99
|
closeOnOverlayClick && maskClose(e);
|
|
100
100
|
};
|
|
101
|
-
var changeStep = function(type) {
|
|
101
|
+
var changeStep = function changeStep(type) {
|
|
102
102
|
if (type === 'next') {
|
|
103
103
|
setActive(active + 1);
|
|
104
104
|
onChange && onChange(active + 1);
|
|
@@ -142,7 +142,7 @@ export var Tour = function(props) {
|
|
|
142
142
|
}, title && /*#__PURE__*/ React.createElement(View, {
|
|
143
143
|
className: "nut-tour-content-top"
|
|
144
144
|
}, /*#__PURE__*/ React.createElement(View, {
|
|
145
|
-
onClick: function(e) {
|
|
145
|
+
onClick: function onClick(e) {
|
|
146
146
|
return maskClose(e);
|
|
147
147
|
}
|
|
148
148
|
}, /*#__PURE__*/ React.createElement(Close, {
|
|
@@ -157,17 +157,17 @@ export var Tour = function(props) {
|
|
|
157
157
|
className: "nut-tour-content-bottom-operate"
|
|
158
158
|
}, active !== 0 && showPrev && /*#__PURE__*/ React.createElement(View, {
|
|
159
159
|
className: "nut-tour-content-bottom-operate-btn",
|
|
160
|
-
onClick: function() {
|
|
160
|
+
onClick: function onClick() {
|
|
161
161
|
return changeStep('prev');
|
|
162
162
|
}
|
|
163
163
|
}, prev || locale.tour.prevStepText), list.length - 1 === active && /*#__PURE__*/ React.createElement(View, {
|
|
164
164
|
className: "nut-tour-content-bottom-operate-btn active",
|
|
165
|
-
onClick: function(e) {
|
|
165
|
+
onClick: function onClick(e) {
|
|
166
166
|
return maskClose(e);
|
|
167
167
|
}
|
|
168
168
|
}, complete || locale.tour.completeText), list.length - 1 !== active && /*#__PURE__*/ React.createElement(View, {
|
|
169
169
|
className: "nut-tour-content-bottom-operate-btn active",
|
|
170
|
-
onClick: function() {
|
|
170
|
+
onClick: function onClick() {
|
|
171
171
|
return changeStep('next');
|
|
172
172
|
}
|
|
173
173
|
}, next || locale.tour.nextStepText)))), type === 'tile' && /*#__PURE__*/ React.createElement(View, {
|
|
@@ -19,8 +19,8 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
19
19
|
riseIcon: null,
|
|
20
20
|
dropIcon: null
|
|
21
21
|
});
|
|
22
|
-
export var TrendArrow = function(props) {
|
|
23
|
-
var
|
|
22
|
+
export var TrendArrow = function TrendArrow(props) {
|
|
23
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), value = _$_object_spread.value, digits = _$_object_spread.digits, symbol = _$_object_spread.symbol, zero = _$_object_spread.zero, left = _$_object_spread.left, sync = _$_object_spread.sync, color = _$_object_spread.color, riseColor = _$_object_spread.riseColor, dropColor = _$_object_spread.dropColor, riseIcon = _$_object_spread.riseIcon, dropIcon = _$_object_spread.dropIcon, className = _$_object_spread.className, style = _$_object_spread.style, children = _$_object_spread.children, rest = _object_without_properties(_$_object_spread, [
|
|
24
24
|
"value",
|
|
25
25
|
"digits",
|
|
26
26
|
"symbol",
|
|
@@ -38,7 +38,7 @@ export var TrendArrow = function(props) {
|
|
|
38
38
|
]);
|
|
39
39
|
var classPrefix = 'nut-trendarrow';
|
|
40
40
|
var rateTrend = useRef(value > 0);
|
|
41
|
-
var myFixed = function(num) {
|
|
41
|
+
var myFixed = function myFixed(num) {
|
|
42
42
|
var digit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
|
43
43
|
if (Object.is(parseFloat(num), NaN)) {
|
|
44
44
|
return console.warn("传入的值:".concat(num, "不是一个数字"));
|
|
@@ -72,7 +72,7 @@ export var TrendArrow = function(props) {
|
|
|
72
72
|
};
|
|
73
73
|
return iconProps;
|
|
74
74
|
}();
|
|
75
|
-
var renderContent = function(left) {
|
|
75
|
+
var renderContent = function renderContent(left) {
|
|
76
76
|
var classNameSuffix = !left ? 'icon-after' : 'icon-before';
|
|
77
77
|
return /*#__PURE__*/ React.createElement(Text, {
|
|
78
78
|
className: "".concat(classPrefix, "-").concat(classNameSuffix, " ").concat(classPrefix, "-value"),
|
|
@@ -3,9 +3,9 @@ import { Del, Failure, Link as LinkIcon, Loading } from "@nutui/icons-react-taro
|
|
|
3
3
|
import { View } from "@tarojs/components";
|
|
4
4
|
import { Image } from "../image/image";
|
|
5
5
|
import { Progress } from "../progress/progress";
|
|
6
|
-
export var Preview = function(param) {
|
|
6
|
+
export var Preview = function Preview(param) {
|
|
7
7
|
var fileList = param.fileList, previewType = param.previewType, deletable = param.deletable, onDeleteItem = param.onDeleteItem, handleItemClick = param.handleItemClick, previewUrl = param.previewUrl, deleteIcon = param.deleteIcon, children = param.children;
|
|
8
|
-
var renderIcon = function(item) {
|
|
8
|
+
var renderIcon = function renderIcon(item) {
|
|
9
9
|
if (item.status === 'error') {
|
|
10
10
|
return item.failIcon || /*#__PURE__*/ React.createElement(Failure, {
|
|
11
11
|
color: "#fff"
|
|
@@ -22,7 +22,7 @@ export var Preview = function(param) {
|
|
|
22
22
|
className: "nut-uploader-preview ".concat(previewType),
|
|
23
23
|
key: uid
|
|
24
24
|
}, previewType === 'picture' && !children && deletable && /*#__PURE__*/ React.createElement(View, {
|
|
25
|
-
onClick: function() {
|
|
25
|
+
onClick: function onClick() {
|
|
26
26
|
return onDeleteItem(item, index);
|
|
27
27
|
},
|
|
28
28
|
className: "close"
|
|
@@ -43,19 +43,19 @@ export var Preview = function(param) {
|
|
|
43
43
|
className: "nut-uploader-preview-img-c",
|
|
44
44
|
src: url,
|
|
45
45
|
mode: "aspectFill",
|
|
46
|
-
onClick: function() {
|
|
46
|
+
onClick: function onClick() {
|
|
47
47
|
return handleItemClick(item, index);
|
|
48
48
|
}
|
|
49
49
|
})) : /*#__PURE__*/ React.createElement(React.Fragment, null, previewUrl ? /*#__PURE__*/ React.createElement(Image, {
|
|
50
50
|
className: "nut-uploader-preview-img-c",
|
|
51
51
|
src: previewUrl,
|
|
52
|
-
onClick: function() {
|
|
52
|
+
onClick: function onClick() {
|
|
53
53
|
return handleItemClick(item, index);
|
|
54
54
|
}
|
|
55
55
|
}) : /*#__PURE__*/ React.createElement(View, {
|
|
56
56
|
className: "nut-uploader-preview-img-file"
|
|
57
57
|
}, /*#__PURE__*/ React.createElement(View, {
|
|
58
|
-
onClick: function() {
|
|
58
|
+
onClick: function onClick() {
|
|
59
59
|
return handleItemClick(item, index);
|
|
60
60
|
},
|
|
61
61
|
className: "nut-uploader-preview-img-file-name"
|
|
@@ -67,7 +67,7 @@ export var Preview = function(param) {
|
|
|
67
67
|
className: "nut-uploader-preview-list"
|
|
68
68
|
}, /*#__PURE__*/ React.createElement(View, {
|
|
69
69
|
className: "nut-uploader-preview-img-file-name ".concat(status),
|
|
70
|
-
onClick: function() {
|
|
70
|
+
onClick: function onClick() {
|
|
71
71
|
return handleItemClick(item, index);
|
|
72
72
|
}
|
|
73
73
|
}, /*#__PURE__*/ React.createElement(LinkIcon, null), /*#__PURE__*/ React.createElement("span", {
|
|
@@ -75,7 +75,7 @@ export var Preview = function(param) {
|
|
|
75
75
|
}, "\xa0", name)), deletable && /*#__PURE__*/ React.createElement(Del, {
|
|
76
76
|
color: "#808080",
|
|
77
77
|
className: "nut-uploader-preview-img-file-del",
|
|
78
|
-
onClick: function() {
|
|
78
|
+
onClick: function onClick() {
|
|
79
79
|
return onDeleteItem(item, index);
|
|
80
80
|
}
|
|
81
81
|
}), item.status === 'uploading' && item.percentage && /*#__PURE__*/ React.createElement(Progress, {
|
|
@@ -51,13 +51,13 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
51
51
|
preview: true,
|
|
52
52
|
deletable: true,
|
|
53
53
|
maxDuration: 10,
|
|
54
|
-
beforeDelete: function(file, files) {
|
|
54
|
+
beforeDelete: function beforeDelete(file, files) {
|
|
55
55
|
return true;
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
var InternalUploader = function(props, ref) {
|
|
58
|
+
var InternalUploader = function InternalUploader(props, ref) {
|
|
59
59
|
var locale = useConfig().locale;
|
|
60
|
-
var
|
|
60
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), children = _$_object_spread.children, uploadIcon = _$_object_spread.uploadIcon, deleteIcon = _$_object_spread.deleteIcon, uploadLabel = _$_object_spread.uploadLabel, listUploadRender = _$_object_spread.listUploadRender, accept = _$_object_spread.accept, name = _$_object_spread.name, camera = _$_object_spread.camera, defaultValue = _$_object_spread.defaultValue, value = _$_object_spread.value, previewType = _$_object_spread.previewType, fit = _$_object_spread.fit, disabled = _$_object_spread.disabled, multiple = _$_object_spread.multiple, previewUrl = _$_object_spread.previewUrl, preview = _$_object_spread.preview, deletable = _$_object_spread.deletable, maxCount = _$_object_spread.maxCount, maxFileSize = _$_object_spread.maxFileSize, mediaType = _$_object_spread.mediaType, className = _$_object_spread.className, autoUpload = _$_object_spread.autoUpload, sizeType = _$_object_spread.sizeType, sourceType = _$_object_spread.sourceType, maxDuration = _$_object_spread.maxDuration, onDelete = _$_object_spread.onDelete, onChange = _$_object_spread.onChange, onFileItemClick = _$_object_spread.onFileItemClick, onOversize = _$_object_spread.onOversize, onOverCount = _$_object_spread.onOverCount, beforeUpload = _$_object_spread.beforeUpload, upload = _$_object_spread.upload, beforeDelete = _$_object_spread.beforeDelete, onUploadQueueChange = _$_object_spread.onUploadQueueChange, restProps = _object_without_properties(_$_object_spread, [
|
|
61
61
|
"children",
|
|
62
62
|
"uploadIcon",
|
|
63
63
|
"deleteIcon",
|
|
@@ -97,7 +97,7 @@ var InternalUploader = function(props, ref) {
|
|
|
97
97
|
value: value,
|
|
98
98
|
defaultValue: defaultValue,
|
|
99
99
|
finalValue: [],
|
|
100
|
-
onChange: function(v) {
|
|
100
|
+
onChange: function onChange1(v) {
|
|
101
101
|
onChange === null || onChange === void 0 ? void 0 : onChange(v);
|
|
102
102
|
}
|
|
103
103
|
}), 2), fileList = _usePropsValue[0], setFileList = _usePropsValue[1];
|
|
@@ -106,7 +106,7 @@ var InternalUploader = function(props, ref) {
|
|
|
106
106
|
var classes = classNames(className, 'nut-uploader');
|
|
107
107
|
useImperativeHandle(ref, function() {
|
|
108
108
|
return {
|
|
109
|
-
submit: function() {
|
|
109
|
+
submit: function submit() {
|
|
110
110
|
return _async_to_generator(function() {
|
|
111
111
|
return _ts_generator(this, function(_state) {
|
|
112
112
|
switch(_state.label){
|
|
@@ -124,7 +124,7 @@ var InternalUploader = function(props, ref) {
|
|
|
124
124
|
});
|
|
125
125
|
})();
|
|
126
126
|
},
|
|
127
|
-
clear: function() {
|
|
127
|
+
clear: function clear() {
|
|
128
128
|
clearUploadQueue();
|
|
129
129
|
}
|
|
130
130
|
};
|
|
@@ -139,7 +139,7 @@ var InternalUploader = function(props, ref) {
|
|
|
139
139
|
}, [
|
|
140
140
|
uploadQueue
|
|
141
141
|
]);
|
|
142
|
-
var clearUploadQueue = function() {
|
|
142
|
+
var clearUploadQueue = function clearUploadQueue() {
|
|
143
143
|
var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
|
|
144
144
|
if (index > -1) {
|
|
145
145
|
uploadQueue.splice(index, 1);
|
|
@@ -149,7 +149,7 @@ var InternalUploader = function(props, ref) {
|
|
|
149
149
|
setFileList([]);
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
var _chooseImage = function() {
|
|
152
|
+
var _chooseImage = function _chooseImage() {
|
|
153
153
|
if (disabled) {
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
@@ -192,7 +192,7 @@ var InternalUploader = function(props, ref) {
|
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
|
-
var uploadAction = function(tasks) {
|
|
195
|
+
var uploadAction = function uploadAction(tasks) {
|
|
196
196
|
return _async_to_generator(function() {
|
|
197
197
|
var taskIds, list;
|
|
198
198
|
return _ts_generator(this, function(_state) {
|
|
@@ -276,7 +276,7 @@ var InternalUploader = function(props, ref) {
|
|
|
276
276
|
})();
|
|
277
277
|
};
|
|
278
278
|
var idCountRef = useRef(0);
|
|
279
|
-
var readFile = function(files) {
|
|
279
|
+
var readFile = function readFile(files) {
|
|
280
280
|
return _async_to_generator(function() {
|
|
281
281
|
var tasks;
|
|
282
282
|
return _ts_generator(this, function(_state) {
|
|
@@ -337,7 +337,7 @@ var InternalUploader = function(props, ref) {
|
|
|
337
337
|
});
|
|
338
338
|
})();
|
|
339
339
|
};
|
|
340
|
-
var filterFiles = function(files) {
|
|
340
|
+
var filterFiles = function filterFiles(files) {
|
|
341
341
|
var maximum = maxCount * 1;
|
|
342
342
|
var maximize = maxFileSize * 1;
|
|
343
343
|
var oversizes = new Array();
|
|
@@ -356,26 +356,26 @@ var InternalUploader = function(props, ref) {
|
|
|
356
356
|
}
|
|
357
357
|
return filterFile;
|
|
358
358
|
};
|
|
359
|
-
var deleted = function(file, index) {
|
|
359
|
+
var deleted = function deleted(file, index) {
|
|
360
360
|
var deletedFileList = fileList.filter(function(file, idx) {
|
|
361
361
|
return idx !== index;
|
|
362
362
|
});
|
|
363
363
|
onDelete === null || onDelete === void 0 ? void 0 : onDelete(file, deletedFileList);
|
|
364
364
|
setFileList(deletedFileList);
|
|
365
365
|
};
|
|
366
|
-
var onDeleteItem = function(file, index) {
|
|
366
|
+
var onDeleteItem = function onDeleteItem(file, index) {
|
|
367
367
|
clearUploadQueue(index);
|
|
368
368
|
funcInterceptor(beforeDelete, {
|
|
369
369
|
args: [
|
|
370
370
|
file,
|
|
371
371
|
fileList
|
|
372
372
|
],
|
|
373
|
-
done: function() {
|
|
373
|
+
done: function done() {
|
|
374
374
|
return deleted(file, index);
|
|
375
375
|
}
|
|
376
376
|
});
|
|
377
377
|
};
|
|
378
|
-
var onChangeMedia = function(res) {
|
|
378
|
+
var onChangeMedia = function onChangeMedia(res) {
|
|
379
379
|
return _async_to_generator(function() {
|
|
380
380
|
var tempFiles, _files;
|
|
381
381
|
return _ts_generator(this, function(_state) {
|
|
@@ -397,7 +397,7 @@ var InternalUploader = function(props, ref) {
|
|
|
397
397
|
});
|
|
398
398
|
})();
|
|
399
399
|
};
|
|
400
|
-
var onChangeImage = function(res) {
|
|
400
|
+
var onChangeImage = function onChangeImage(res) {
|
|
401
401
|
return _async_to_generator(function() {
|
|
402
402
|
var tempFiles, _files;
|
|
403
403
|
return _ts_generator(this, function(_state) {
|
|
@@ -418,10 +418,10 @@ var InternalUploader = function(props, ref) {
|
|
|
418
418
|
});
|
|
419
419
|
})();
|
|
420
420
|
};
|
|
421
|
-
var handleItemClick = function(file, index) {
|
|
421
|
+
var handleItemClick = function handleItemClick(file, index) {
|
|
422
422
|
onFileItemClick === null || onFileItemClick === void 0 ? void 0 : onFileItemClick(file, index);
|
|
423
423
|
};
|
|
424
|
-
var renderListUploader = function() {
|
|
424
|
+
var renderListUploader = function renderListUploader() {
|
|
425
425
|
if (previewType !== 'list') return null;
|
|
426
426
|
return /*#__PURE__*/ React.createElement(View, {
|
|
427
427
|
className: "nut-uploader-slot"
|
|
@@ -433,7 +433,7 @@ var InternalUploader = function(props, ref) {
|
|
|
433
433
|
onClick: _chooseImage
|
|
434
434
|
})));
|
|
435
435
|
};
|
|
436
|
-
var renderImageUploader = function() {
|
|
436
|
+
var renderImageUploader = function renderImageUploader() {
|
|
437
437
|
var shouldShow = Number(maxCount) > fileList.length && previewType === 'picture';
|
|
438
438
|
return shouldShow && /*#__PURE__*/ React.createElement(View, {
|
|
439
439
|
className: "nut-uploader-upload ".concat(previewType, " ").concat(disabled ? 'nut-uploader-upload-disabled' : '')
|
|
@@ -19,7 +19,8 @@ var defaultProps = {
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
var classPrefix = 'nut-video';
|
|
22
|
-
export var Video = function(props) {
|
|
22
|
+
export var Video = function Video(props) {
|
|
23
|
+
var _ref, _ref1;
|
|
23
24
|
var _props_options;
|
|
24
25
|
var _mergeProps = mergeProps(defaultProps, props), source = _mergeProps.source, options = _mergeProps.options, className = _mergeProps.className, style = _mergeProps.style, src = _mergeProps.src, muted = _mergeProps.muted, loop = _mergeProps.loop, poster = _mergeProps.poster, controls = _mergeProps.controls, autoplay = _mergeProps.autoplay, onPlay = _mergeProps.onPlay, onPause = _mergeProps.onPause, onPlayEnd = _mergeProps.onPlayEnd, restProps = _object_without_properties(_mergeProps, [
|
|
25
26
|
"source",
|
|
@@ -37,8 +38,7 @@ export var Video = function(props) {
|
|
|
37
38
|
"onPlayEnd"
|
|
38
39
|
]);
|
|
39
40
|
var classes = classNames(classPrefix, className);
|
|
40
|
-
var
|
|
41
|
-
var effectiveControls = (_ref = (_props_options_controls = (_props_options = props.options) === null || _props_options === void 0 ? void 0 : _props_options.controls) !== null && _props_options_controls !== void 0 ? _props_options_controls : controls) !== null && _ref !== void 0 ? _ref : options.controls;
|
|
41
|
+
var effectiveControls = (_ref = (_ref1 = (_props_options = props.options) === null || _props_options === void 0 ? void 0 : _props_options.controls) !== null && _ref1 !== void 0 ? _ref1 : controls) !== null && _ref !== void 0 ? _ref : options.controls;
|
|
42
42
|
return /*#__PURE__*/ React.createElement(View, {
|
|
43
43
|
className: classes,
|
|
44
44
|
style: style
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// 缓存列表初始化信息
|
|
2
|
-
var initPositinoCache = function(reaItemSize) {
|
|
2
|
+
var initPositinoCache = function initPositinoCache(reaItemSize) {
|
|
3
3
|
var length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
4
4
|
var index = 0;
|
|
5
5
|
var positions = Array(length);
|
|
@@ -18,7 +18,7 @@ var initPositinoCache = function(reaItemSize) {
|
|
|
18
18
|
return positions;
|
|
19
19
|
};
|
|
20
20
|
// 获取列表总高度
|
|
21
|
-
var getListTotalSize = function(positions, horizontal) {
|
|
21
|
+
var getListTotalSize = function getListTotalSize(positions, horizontal) {
|
|
22
22
|
var index = positions.length - 1;
|
|
23
23
|
var size = 0;
|
|
24
24
|
if (index < 0) {
|
|
@@ -29,7 +29,7 @@ var getListTotalSize = function(positions, horizontal) {
|
|
|
29
29
|
return size;
|
|
30
30
|
};
|
|
31
31
|
// 通过二分法找到 scrollOffset 对应的值
|
|
32
|
-
var binarySearch = function(positionsList, horizontal) {
|
|
32
|
+
var binarySearch = function binarySearch(positionsList, horizontal) {
|
|
33
33
|
var value = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
34
34
|
var start = 0;
|
|
35
35
|
var end = positionsList.length - 1;
|
|
@@ -56,7 +56,7 @@ var binarySearch = function(positionsList, horizontal) {
|
|
|
56
56
|
tempIndex = tempIndex || 0;
|
|
57
57
|
return tempIndex;
|
|
58
58
|
};
|
|
59
|
-
var getEndIndex = function(param) {
|
|
59
|
+
var getEndIndex = function getEndIndex(param) {
|
|
60
60
|
var list = param.list, startIndex = param.startIndex, visibleCount = param.visibleCount, _param_itemEqual = param.itemEqual, itemEqual = _param_itemEqual === void 0 ? true : _param_itemEqual, positions = param.positions, offSetSize = param.offSetSize, overscan = param.overscan, _param_sizeKey = param.sizeKey, sizeKey = _param_sizeKey === void 0 ? 'width' : _param_sizeKey;
|
|
61
61
|
var dataLength = list.length;
|
|
62
62
|
var tempIndex = null;
|
|
@@ -81,7 +81,7 @@ var getEndIndex = function(param) {
|
|
|
81
81
|
return tempIndex;
|
|
82
82
|
};
|
|
83
83
|
// 更新Item大小
|
|
84
|
-
var updateItemSize = function(positions, items, sizeKey, margin) {
|
|
84
|
+
var updateItemSize = function updateItemSize(positions, items, sizeKey, margin) {
|
|
85
85
|
var newPos = positions.concat();
|
|
86
86
|
Array.from(items).forEach(function(item) {
|
|
87
87
|
var index = Number(item.getAttribute('data-index'));
|
|
@@ -15,8 +15,8 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
15
15
|
itemEqual: true,
|
|
16
16
|
overscan: 2
|
|
17
17
|
});
|
|
18
|
-
export var VirtualList = function(props) {
|
|
19
|
-
var
|
|
18
|
+
export var VirtualList = function VirtualList(props) {
|
|
19
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), list = _$_object_spread.list, itemRender = _$_object_spread.itemRender, itemHeight = _$_object_spread.itemHeight, margin = _$_object_spread.margin, itemEqual = _$_object_spread.itemEqual, overscan = _$_object_spread.overscan, key = _$_object_spread.key, onScroll = _$_object_spread.onScroll, className = _$_object_spread.className, origContainerHeight = _$_object_spread.containerHeight, rest = _object_without_properties(_$_object_spread, [
|
|
20
20
|
"list",
|
|
21
21
|
"itemRender",
|
|
22
22
|
"itemHeight",
|
|
@@ -82,7 +82,7 @@ export var VirtualList = function(props) {
|
|
|
82
82
|
list
|
|
83
83
|
]);
|
|
84
84
|
// 可视区域总高度
|
|
85
|
-
var getContainerHeight = function() {
|
|
85
|
+
var getContainerHeight = function getContainerHeight() {
|
|
86
86
|
// 初始首页列表高度
|
|
87
87
|
var initH = (itemHeight + margin) * list.length;
|
|
88
88
|
// 未设置containerHeight高度,判断首页高度小于设备高度时,滚动容器高度为首页数据高度,减5为分页触发的偏移量
|
|
@@ -90,16 +90,16 @@ export var VirtualList = function(props) {
|
|
|
90
90
|
;
|
|
91
91
|
};
|
|
92
92
|
// 可视区域条数
|
|
93
|
-
var visibleCount = function() {
|
|
93
|
+
var visibleCount = function visibleCount() {
|
|
94
94
|
return Math.ceil(getContainerHeight() / (itemHeight + margin)) + overscan;
|
|
95
95
|
};
|
|
96
|
-
var end = function() {
|
|
96
|
+
var end = function end() {
|
|
97
97
|
return start.current + visibleCount();
|
|
98
98
|
};
|
|
99
|
-
var listHeight = function() {
|
|
99
|
+
var listHeight = function listHeight() {
|
|
100
100
|
return list.length * (itemHeight + margin);
|
|
101
101
|
};
|
|
102
|
-
var visibleData = function() {
|
|
102
|
+
var visibleData = function visibleData() {
|
|
103
103
|
return list.slice(start.current, Math.min(end(), list.length));
|
|
104
104
|
};
|
|
105
105
|
var updateTotalSize = useCallback(function() {
|
|
@@ -112,7 +112,7 @@ export var VirtualList = function(props) {
|
|
|
112
112
|
positions
|
|
113
113
|
]);
|
|
114
114
|
// 滚动监听
|
|
115
|
-
var listScroll = function(e) {
|
|
115
|
+
var listScroll = function listScroll(e) {
|
|
116
116
|
var scrollTop = e.target.scrollTop;
|
|
117
117
|
if (scrollTop <= 0) {
|
|
118
118
|
e.target.scrollTop = 0;
|
|
@@ -27,7 +27,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
27
27
|
fontWeight: 'normal',
|
|
28
28
|
fontSize: 14
|
|
29
29
|
});
|
|
30
|
-
export var WaterMark = function(props) {
|
|
30
|
+
export var WaterMark = function WaterMark(props) {
|
|
31
31
|
var locale = useConfig().locale;
|
|
32
32
|
var _$_object_spread = _object_spread({}, defaultProps, props), content = _$_object_spread.content, fullPage = _$_object_spread.fullPage, zIndex = _$_object_spread.zIndex, className = _$_object_spread.className, gapX = _$_object_spread.gapX, gapY = _$_object_spread.gapY, startX = _$_object_spread.startX, startY = _$_object_spread.startY, width = _$_object_spread.width, height = _$_object_spread.height, image = _$_object_spread.image, imageWidth = _$_object_spread.imageWidth, imageHeight = _$_object_spread.imageHeight, rotate = _$_object_spread.rotate, color = _$_object_spread.color, fontStyle = _$_object_spread.fontStyle, fontFamily = _$_object_spread.fontFamily, fontWeight = _$_object_spread.fontWeight, fontSize = _$_object_spread.fontSize, style = _$_object_spread.style;
|
|
33
33
|
var _useState = _sliced_to_array(useState(''), 2), base64Url = _useState[0], setBase64Url = _useState[1];
|
|
@@ -37,7 +37,7 @@ export var WaterMark = function(props) {
|
|
|
37
37
|
useEffect(function() {
|
|
38
38
|
init();
|
|
39
39
|
}, []);
|
|
40
|
-
var init = function() {
|
|
40
|
+
var init = function init() {
|
|
41
41
|
var ratio = 1;
|
|
42
42
|
getSystemInfo().then(function(res) {
|
|
43
43
|
ratio = res.pixelRatio;
|
package/dist/es/types/index.d.ts
CHANGED
|
@@ -262,3 +262,6 @@ export * from './spec/audio/taro';
|
|
|
262
262
|
export * from './spec/steps/base';
|
|
263
263
|
export * from './spec/steps/h5';
|
|
264
264
|
export * from './spec/steps/taro';
|
|
265
|
+
export * from './spec/quickenter/base';
|
|
266
|
+
export * from './spec/quickenter/h5';
|
|
267
|
+
export * from './spec/quickenter/taro';
|
package/dist/es/types/index.js
CHANGED
|
@@ -262,3 +262,6 @@ export * from "./spec/audio/taro";
|
|
|
262
262
|
export * from "./spec/steps/base";
|
|
263
263
|
export * from "./spec/steps/h5";
|
|
264
264
|
export * from "./spec/steps/taro";
|
|
265
|
+
export * from "./spec/quickenter/base";
|
|
266
|
+
export * from "./spec/quickenter/h5";
|
|
267
|
+
export * from "./spec/quickenter/taro";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
2
3
|
import { BaseProps } from '../../base/props';
|
|
3
4
|
import { UIFill, UIRound, UISize, UIType } from '../../base/atoms';
|
|
4
5
|
export interface BaseButton extends BaseProps {
|
|
@@ -50,5 +51,5 @@ export interface BaseButton extends BaseProps {
|
|
|
50
51
|
/**
|
|
51
52
|
* 点击按钮时触发
|
|
52
53
|
*/
|
|
53
|
-
onClick: (e:
|
|
54
|
+
onClick: (e: MouseEvent<HTMLButtonElement>) => void
|
|
54
55
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { ButtonProps as MiniProgramButtonProps } from '@tarojs/components';
|
|
1
2
|
import { BaseButton } from './base';
|
|
2
|
-
|
|
3
|
+
type OmitMiniProgramButtonProps = Omit<MiniProgramButtonProps, 'size' | 'type' | 'onClick' | 'style' | 'disabled' | 'loading' | 'id'>;
|
|
4
|
+
export interface TaroButtonProps extends BaseButton, OmitMiniProgramButtonProps {
|
|
5
|
+
nativeType: 'submit' | 'reset';
|
|
3
6
|
}
|
|
7
|
+
export {};
|
|
@@ -44,6 +44,7 @@ export interface BaseCalendarCard extends BaseProps {
|
|
|
44
44
|
* 限制范围结束日期
|
|
45
45
|
*/
|
|
46
46
|
endDate: Date
|
|
47
|
+
weekdays?: string[];
|
|
47
48
|
/**
|
|
48
49
|
* 设置不可选日期
|
|
49
50
|
*/
|
|
@@ -60,6 +61,7 @@ export interface BaseCalendarCard extends BaseProps {
|
|
|
60
61
|
* 日期底部信息
|
|
61
62
|
*/
|
|
62
63
|
renderDayBottom: (day: CalendarCardDay) => ReactNode
|
|
64
|
+
renderDayAriaLabel?: (day: CalendarCardDay) => string;
|
|
63
65
|
/**
|
|
64
66
|
* 点击后触发
|
|
65
67
|
*/
|
|
@@ -38,14 +38,8 @@ export interface BaseDialog extends DialogWrapProps {
|
|
|
38
38
|
* 取消按钮文案
|
|
39
39
|
*/
|
|
40
40
|
cancelText: ReactNode
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
*/
|
|
44
|
-
confirmBadge: ReactNode
|
|
45
|
-
/**
|
|
46
|
-
* 取消按钮徽标
|
|
47
|
-
*/
|
|
48
|
-
cancelBadge: ReactNode
|
|
41
|
+
confirmBadge: ReactNode;
|
|
42
|
+
cancelBadge: ReactNode;
|
|
49
43
|
/**
|
|
50
44
|
* 是否隐藏确定按钮
|
|
51
45
|
*/
|
|
@@ -78,6 +72,7 @@ export interface BaseDialog extends DialogWrapProps {
|
|
|
78
72
|
* 确定按钮回调
|
|
79
73
|
*/
|
|
80
74
|
onConfirm: (e?: MouseEvent<HTMLButtonElement>) => PromiseLike<any> | void
|
|
75
|
+
ariaLabel?: string;
|
|
81
76
|
}
|
|
82
77
|
export type DialogReturnProps = {
|
|
83
78
|
update: (newConfig: Partial<BaseDialog>) => void;
|
|
@@ -2,6 +2,8 @@ import { ITouchEvent } from '@tarojs/components';
|
|
|
2
2
|
import { BaseDialog, BaseContentProps } from './base';
|
|
3
3
|
export interface TaroContentProps extends BaseContentProps {
|
|
4
4
|
onClick: (event: ITouchEvent) => void;
|
|
5
|
+
ariaRole?: string;
|
|
6
|
+
ariaLabel?: string;
|
|
5
7
|
}
|
|
6
8
|
export interface TaroDialogProps extends Omit<BaseDialog, 'onOverlayClick' | 'onClick'> {
|
|
7
9
|
onClick: (event: ITouchEvent) => void;
|
|
@@ -34,7 +34,7 @@ export interface BasePopup extends BaseProps, BaseOverlay {
|
|
|
34
34
|
*/
|
|
35
35
|
title?: ReactNode
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* 頂部佔位
|
|
38
38
|
*/
|
|
39
39
|
top?: ReactNode
|
|
40
40
|
/**
|
|
@@ -89,8 +89,7 @@ export interface BasePopup extends BaseProps, BaseOverlay {
|
|
|
89
89
|
* 结束触碰时触发
|
|
90
90
|
*/
|
|
91
91
|
onTouchEnd: (height: number, e: any) => void
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
closeAriaLabel?: string
|
|
92
|
+
closeAriaLabel?: string;
|
|
93
|
+
overlayProps?: any;
|
|
94
|
+
animated?: boolean;
|
|
96
95
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseProps } from '../../base/props';
|
|
3
|
+
export type QuickEnterRef = QuickEnterActions;
|
|
4
|
+
export type QuickEnterActions = {
|
|
5
|
+
open: () => void;
|
|
6
|
+
close: () => void;
|
|
7
|
+
};
|
|
8
|
+
export interface QuickEnterOption extends Record<string, any> {
|
|
9
|
+
title?: string;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
type?: string;
|
|
12
|
+
url?: string;
|
|
13
|
+
badge?: boolean | ReactNode;
|
|
14
|
+
badgeProps?: any;
|
|
15
|
+
}
|
|
16
|
+
export interface BaseQuickEnter<POPUP_PROPS = any> extends BaseProps {
|
|
17
|
+
/**
|
|
18
|
+
* 是否可见
|
|
19
|
+
*/
|
|
20
|
+
visible?: boolean
|
|
21
|
+
/**
|
|
22
|
+
* 标题
|
|
23
|
+
*/
|
|
24
|
+
title?: ReactNode
|
|
25
|
+
/**
|
|
26
|
+
* 选项列表
|
|
27
|
+
*/
|
|
28
|
+
options?: QuickEnterOption[]
|
|
29
|
+
/**
|
|
30
|
+
* 透传给 Popup 组件的属性
|
|
31
|
+
*/
|
|
32
|
+
popupProps?: POPUP_PROPS
|
|
33
|
+
/**
|
|
34
|
+
* 是否在点击遮罩层后关闭
|
|
35
|
+
*/
|
|
36
|
+
closeOnOverlayClick?: boolean
|
|
37
|
+
/**
|
|
38
|
+
* 自定义关闭图标
|
|
39
|
+
*/
|
|
40
|
+
closeIcon?: ReactNode
|
|
41
|
+
safeAreaInsetTop?: boolean;
|
|
42
|
+
onClose?: () => void;
|
|
43
|
+
onChange?: (item: QuickEnterOption, index: number) => void;
|
|
44
|
+
children?: ReactNode;
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|