@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
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
align-items: center;
|
|
72
72
|
justify-content: center;
|
|
73
73
|
border-bottom: var(--nutui-popup-title-border-bottom, 0);
|
|
74
|
-
padding: var(--nutui-popup-title-padding,
|
|
74
|
+
padding: var(--nutui-popup-title-padding, 11px);
|
|
75
75
|
position: relative;
|
|
76
76
|
}
|
|
77
77
|
.nut-popup-title-wrapper {
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
color: var(--nutui-color-title, #1a1a1a);
|
|
85
85
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
86
86
|
font-size: var(--nutui-popup-title-font-size, var(--nutui-font-size-xl, 18px));
|
|
87
|
-
line-height: var(--nutui-popup-title-font-size, var(--nutui-font-size-xl, 18px));
|
|
88
87
|
}
|
|
89
88
|
.nut-popup-title-description {
|
|
90
89
|
color: var(--nutui-color-text, #505259);
|
|
@@ -96,13 +95,13 @@
|
|
|
96
95
|
}
|
|
97
96
|
.nut-popup-title-left {
|
|
98
97
|
position: absolute;
|
|
99
|
-
top: var(--nutui-popup-title-padding,
|
|
100
|
-
left: var(--nutui-popup-title-padding,
|
|
98
|
+
top: var(--nutui-popup-title-padding, 11px);
|
|
99
|
+
left: var(--nutui-popup-title-padding, 11px);
|
|
101
100
|
}
|
|
102
101
|
.nut-popup-title-right {
|
|
103
102
|
position: absolute;
|
|
104
|
-
top: var(--nutui-popup-title-padding,
|
|
105
|
-
right: var(--nutui-popup-title-padding,
|
|
103
|
+
top: var(--nutui-popup-title-padding, 11px);
|
|
104
|
+
right: var(--nutui-popup-title-padding, 11px);
|
|
106
105
|
z-index: 1;
|
|
107
106
|
width: var(--nutui-popup-icon-size, 20px);
|
|
108
107
|
height: var(--nutui-popup-icon-size, 20px);
|
|
@@ -113,20 +112,22 @@
|
|
|
113
112
|
opacity: 0.7;
|
|
114
113
|
}
|
|
115
114
|
.nut-popup-title-right-top-left {
|
|
116
|
-
top: var(--nutui-popup-title-padding,
|
|
117
|
-
left: var(--nutui-popup-title-padding,
|
|
115
|
+
top: var(--nutui-popup-title-padding, 11px);
|
|
116
|
+
left: var(--nutui-popup-title-padding, 11px);
|
|
118
117
|
}
|
|
119
118
|
.nut-popup-title-right-bottom-left {
|
|
120
|
-
bottom: var(--nutui-popup-title-padding,
|
|
121
|
-
left: var(--nutui-popup-title-padding,
|
|
119
|
+
bottom: var(--nutui-popup-title-padding, 11px);
|
|
120
|
+
left: var(--nutui-popup-title-padding, 11px);
|
|
122
121
|
}
|
|
123
122
|
.nut-popup-title-right-bottom-right {
|
|
124
|
-
right: var(--nutui-popup-title-padding,
|
|
125
|
-
bottom: var(--nutui-popup-title-padding,
|
|
123
|
+
right: var(--nutui-popup-title-padding, 11px);
|
|
124
|
+
bottom: var(--nutui-popup-title-padding, 11px);
|
|
126
125
|
}
|
|
127
126
|
.nut-popup-center {
|
|
128
127
|
top: 50%;
|
|
129
128
|
left: 50%;
|
|
129
|
+
right: auto;
|
|
130
|
+
bottom: auto;
|
|
130
131
|
min-height: 10%;
|
|
131
132
|
max-width: 295px;
|
|
132
133
|
transform: translate(-50%, -50%);
|
|
@@ -137,6 +138,8 @@
|
|
|
137
138
|
.nut-popup-bottom {
|
|
138
139
|
bottom: 0;
|
|
139
140
|
left: 0;
|
|
141
|
+
right: auto;
|
|
142
|
+
top: auto;
|
|
140
143
|
width: 100%;
|
|
141
144
|
}
|
|
142
145
|
.nut-popup-bottom.nut-popup-round {
|
|
@@ -148,6 +151,8 @@
|
|
|
148
151
|
.nut-popup-right {
|
|
149
152
|
top: 0;
|
|
150
153
|
right: 0;
|
|
154
|
+
left: auto;
|
|
155
|
+
bottom: auto;
|
|
151
156
|
width: 100px;
|
|
152
157
|
height: 100%;
|
|
153
158
|
}
|
|
@@ -157,6 +162,8 @@
|
|
|
157
162
|
.nut-popup-left {
|
|
158
163
|
top: 0;
|
|
159
164
|
left: 0;
|
|
165
|
+
right: auto;
|
|
166
|
+
bottom: auto;
|
|
160
167
|
width: 100px;
|
|
161
168
|
height: 100%;
|
|
162
169
|
}
|
|
@@ -166,6 +173,8 @@
|
|
|
166
173
|
.nut-popup-top {
|
|
167
174
|
top: 0;
|
|
168
175
|
left: 0;
|
|
176
|
+
right: auto;
|
|
177
|
+
bottom: auto;
|
|
169
178
|
width: 100%;
|
|
170
179
|
}
|
|
171
180
|
.nut-popup-top.nut-popup-round {
|
|
@@ -242,6 +251,9 @@
|
|
|
242
251
|
}
|
|
243
252
|
}
|
|
244
253
|
@keyframes popup-slide-top-exit {
|
|
254
|
+
from {
|
|
255
|
+
transform: translate3d(0, 0%, 0);
|
|
256
|
+
}
|
|
245
257
|
to {
|
|
246
258
|
transform: translate3d(0, -100%, 0);
|
|
247
259
|
}
|
|
@@ -266,6 +278,9 @@
|
|
|
266
278
|
}
|
|
267
279
|
}
|
|
268
280
|
@keyframes popup-slide-right-exit {
|
|
281
|
+
from {
|
|
282
|
+
transform: translate3d(0%, 0, 0);
|
|
283
|
+
}
|
|
269
284
|
to {
|
|
270
285
|
transform: translate3d(100%, 0, 0);
|
|
271
286
|
}
|
|
@@ -290,6 +305,9 @@
|
|
|
290
305
|
}
|
|
291
306
|
}
|
|
292
307
|
@keyframes slide-bottom-exit {
|
|
308
|
+
from {
|
|
309
|
+
transform: translate3d(0, 0%, 0);
|
|
310
|
+
}
|
|
293
311
|
to {
|
|
294
312
|
transform: translate3d(0, 100%, 0);
|
|
295
313
|
}
|
|
@@ -314,6 +332,9 @@
|
|
|
314
332
|
}
|
|
315
333
|
}
|
|
316
334
|
@keyframes popup-slide-left-exit {
|
|
335
|
+
from {
|
|
336
|
+
transform: translate3d(0%, 0, 0);
|
|
337
|
+
}
|
|
317
338
|
to {
|
|
318
339
|
transform: translate3d(-100%, 0, 0);
|
|
319
340
|
}
|
|
@@ -339,27 +360,27 @@
|
|
|
339
360
|
[dir=rtl] .nut-popup-title-left,
|
|
340
361
|
.nut-rtl .nut-popup-title-left {
|
|
341
362
|
left: auto;
|
|
342
|
-
right: var(--nutui-popup-title-padding,
|
|
363
|
+
right: var(--nutui-popup-title-padding, 11px);
|
|
343
364
|
}
|
|
344
365
|
[dir=rtl] .nut-popup-title-right,
|
|
345
366
|
.nut-rtl .nut-popup-title-right {
|
|
346
367
|
right: auto;
|
|
347
|
-
left: var(--nutui-popup-title-padding,
|
|
368
|
+
left: var(--nutui-popup-title-padding, 11px);
|
|
348
369
|
}
|
|
349
370
|
[dir=rtl] .nut-popup-title-right-top-left,
|
|
350
371
|
.nut-rtl .nut-popup-title-right-top-left {
|
|
351
372
|
left: auto;
|
|
352
|
-
right: var(--nutui-popup-title-padding,
|
|
373
|
+
right: var(--nutui-popup-title-padding, 11px);
|
|
353
374
|
}
|
|
354
375
|
[dir=rtl] .nut-popup-title-right-bottom-left,
|
|
355
376
|
.nut-rtl .nut-popup-title-right-bottom-left {
|
|
356
377
|
left: auto;
|
|
357
|
-
right: var(--nutui-popup-title-padding,
|
|
378
|
+
right: var(--nutui-popup-title-padding, 11px);
|
|
358
379
|
}
|
|
359
380
|
[dir=rtl] .nut-popup-title-right-bottom-right,
|
|
360
381
|
.nut-rtl .nut-popup-title-right-bottom-right {
|
|
361
382
|
right: auto;
|
|
362
|
-
left: var(--nutui-popup-title-padding,
|
|
383
|
+
left: var(--nutui-popup-title-padding, 11px);
|
|
363
384
|
}
|
|
364
385
|
[dir=rtl] .nut-popup-title .nut-icon-ArrowLeft,
|
|
365
386
|
.nut-rtl .nut-popup-title .nut-icon-ArrowLeft {
|
|
@@ -462,7 +483,7 @@
|
|
|
462
483
|
align-items: center;
|
|
463
484
|
justify-content: space-between;
|
|
464
485
|
height: var(--nutui-popup-title-height, 50px);
|
|
465
|
-
padding: var(--nutui-popup-title-padding,
|
|
486
|
+
padding: var(--nutui-popup-title-padding, 11px);
|
|
466
487
|
box-sizing: border-box;
|
|
467
488
|
font-size: var(--nutui-popup-title-font-size, var(--nutui-font-size-xl, 18px));
|
|
468
489
|
}
|
|
@@ -16,7 +16,7 @@ import { isDate } from "../../utils/is-date";
|
|
|
16
16
|
* @param startDate 传入的开始时间
|
|
17
17
|
* @param endDate 传入的结束时间
|
|
18
18
|
* @returns 返回包含边界值的对象
|
|
19
|
-
*/ export var calculateDateBoundary = function(type, value, startDate, endDate) {
|
|
19
|
+
*/ export var calculateDateBoundary = function calculateDateBoundary(type, value, startDate, endDate) {
|
|
20
20
|
var boundary = type === 'min' ? startDate : endDate;
|
|
21
21
|
var year = boundary.getFullYear();
|
|
22
22
|
var isMax = type === 'max';
|
|
@@ -43,7 +43,7 @@ import { isDate } from "../../utils/is-date";
|
|
|
43
43
|
/**
|
|
44
44
|
* 根据选中的日期和类型,生成日期选择器的范围配置
|
|
45
45
|
* @returns {Array} 返回日期选择器的范围配置数组
|
|
46
|
-
*/ export var generateDatePickerRanges = function(type, selectedDate, startDate, endDate) {
|
|
46
|
+
*/ export var generateDatePickerRanges = function generateDatePickerRanges(type, selectedDate, startDate, endDate) {
|
|
47
47
|
var selected = selectedDate ? new Date(selectedDate) : new Date(startDate);
|
|
48
48
|
if (!selected) return [];
|
|
49
49
|
// 获取最大和最小边界值
|
|
@@ -118,7 +118,7 @@ import { isDate } from "../../utils/is-date";
|
|
|
118
118
|
* @param type 需要获取的日期部分(如 'year', 'month', 'day' 等)
|
|
119
119
|
* @param selectedDate 选中的日期时间戳
|
|
120
120
|
* @returns 返回日期对象中对应部分的值,如果类型无效或日期无效,返回 0
|
|
121
|
-
*/ export var getDatePartValue = function(type, selectedDate) {
|
|
121
|
+
*/ export var getDatePartValue = function getDatePartValue(type, selectedDate) {
|
|
122
122
|
var date = new Date(selectedDate);
|
|
123
123
|
if (!selectedDate) return 0;
|
|
124
124
|
switch(type){
|
|
@@ -147,7 +147,7 @@ import { isDate } from "../../utils/is-date";
|
|
|
147
147
|
* @param minuteStep 分钟步长(仅当类型为 'minute' 时生效)
|
|
148
148
|
* @param callback 回调函数,用于返回选中索引
|
|
149
149
|
* @returns 返回生成的 Picker 列数据
|
|
150
|
-
*/ export var generatePickerColumnWithCallback = function(min, max, currentValue, type, minuteStep, callback, showChinese, zhCNType, formatter) {
|
|
150
|
+
*/ export var generatePickerColumnWithCallback = function generatePickerColumnWithCallback(min, max, currentValue, type, minuteStep, callback, showChinese, zhCNType, formatter) {
|
|
151
151
|
var currentMin = min;
|
|
152
152
|
var options = [];
|
|
153
153
|
var selectedIndex = 0;
|
|
@@ -177,7 +177,7 @@ import { isDate } from "../../utils/is-date";
|
|
|
177
177
|
* @param zhCNType 中文文本映射对象
|
|
178
178
|
* @param formatter 自定义格式化函数
|
|
179
179
|
* @returns 返回格式化后的 Picker 选项
|
|
180
|
-
*/ export var formatPickerOption = function(type, value, showChinese, zhCNType, formatter) {
|
|
180
|
+
*/ export var formatPickerOption = function formatPickerOption(type, value, showChinese, zhCNType, formatter) {
|
|
181
181
|
if (formatter) {
|
|
182
182
|
return formatter(type, {
|
|
183
183
|
label: padZero(value, 2),
|
|
@@ -193,7 +193,7 @@ import { isDate } from "../../utils/is-date";
|
|
|
193
193
|
};
|
|
194
194
|
/**
|
|
195
195
|
* 格式化日期值,确保其在 startDate 和 endDate 之间
|
|
196
|
-
*/ export var formatValue = function(value, startDate, endDate) {
|
|
196
|
+
*/ export var formatValue = function formatValue(value, startDate, endDate) {
|
|
197
197
|
if (!value || value && !isDate(value)) {
|
|
198
198
|
value = startDate;
|
|
199
199
|
}
|
|
@@ -204,7 +204,7 @@ import { isDate } from "../../utils/is-date";
|
|
|
204
204
|
* @param selectedOptions 选中的选项数组
|
|
205
205
|
* @param selectedValue 选中的值数组
|
|
206
206
|
* @param index 当前列的索引
|
|
207
|
-
*/ export var handlePickerValueChange = function(selectedOptions, selectedValue, index, type, defaultDate, handleDateComparison) {
|
|
207
|
+
*/ export var handlePickerValueChange = function handlePickerValueChange(selectedOptions, selectedValue, index, type, defaultDate, handleDateComparison) {
|
|
208
208
|
var rangeType = type.toLocaleLowerCase();
|
|
209
209
|
var formattedDate = [];
|
|
210
210
|
selectedValue.forEach(function(item) {
|
|
@@ -22,7 +22,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
22
22
|
startDate: new Date(currentYear - 10, 0, 1),
|
|
23
23
|
endDate: new Date(currentYear + 10, 11, 31)
|
|
24
24
|
});
|
|
25
|
-
export var DatePickerView = function(props) {
|
|
25
|
+
export var DatePickerView = function DatePickerView(props) {
|
|
26
26
|
var _$_object_spread = _object_spread({}, defaultProps, props), startDate = _$_object_spread.startDate, endDate = _$_object_spread.endDate, type = _$_object_spread.type, showChinese = _$_object_spread.showChinese, minuteStep = _$_object_spread.minuteStep, defaultValue = _$_object_spread.defaultValue, formatter = _$_object_spread.formatter, filter = _$_object_spread.filter, onChange = _$_object_spread.onChange, threeDimensional = _$_object_spread.threeDimensional, className = _$_object_spread.className, style = _$_object_spread.style;
|
|
27
27
|
var classPrefix = 'nut-datepickerview';
|
|
28
28
|
var cls = classNames(classPrefix, className);
|
|
@@ -43,7 +43,7 @@ export var DatePickerView = function(props) {
|
|
|
43
43
|
defaultValue: defaultValue && formatValue(defaultValue, startDate, endDate),
|
|
44
44
|
finalValue: 0
|
|
45
45
|
}), 2), selectedDate = _usePropsValue[0], setSelectedDate = _usePropsValue[1];
|
|
46
|
-
var handleDateComparison = function(newDate, selectedOptions, index) {
|
|
46
|
+
var handleDateComparison = function handleDateComparison(newDate, selectedOptions, index) {
|
|
47
47
|
if (newDate && isDate(newDate)) {
|
|
48
48
|
var _this;
|
|
49
49
|
if (!isEqual((_this = new Date(selectedDate)) === null || _this === void 0 ? void 0 : _this.getTime(), newDate === null || newDate === void 0 ? void 0 : newDate.getTime())) {
|
|
@@ -56,10 +56,10 @@ export var DatePickerView = function(props) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
var handleChange = function(selectedOptions, selectedValue, index) {
|
|
59
|
+
var handleChange = function handleChange(selectedOptions, selectedValue, index) {
|
|
60
60
|
handlePickerValueChange(selectedOptions, selectedValue, index, type, defaultValue || startDate || endDate, handleDateComparison);
|
|
61
61
|
};
|
|
62
|
-
var generatePickerColumns = function() {
|
|
62
|
+
var generatePickerColumns = function generatePickerColumns() {
|
|
63
63
|
var dateRanges = generateDatePickerRanges(type, selectedDate, startDate, endDate);
|
|
64
64
|
var columns = dateRanges.map(function(rangeConfig, columnIndex) {
|
|
65
65
|
var columnType = rangeConfig.type, range = rangeConfig.range;
|
|
@@ -97,7 +97,7 @@ export var DatePickerView = function(props) {
|
|
|
97
97
|
}, pickerOptions.length && /*#__PURE__*/ React.createElement(PickerView, {
|
|
98
98
|
value: pickerValue,
|
|
99
99
|
options: pickerOptions,
|
|
100
|
-
onChange: function(param) {
|
|
100
|
+
onChange: function onChange(param) {
|
|
101
101
|
var selectedOptions = param.selectedOptions, value = param.value, index = param.index;
|
|
102
102
|
handleChange(selectedOptions, value, index);
|
|
103
103
|
},
|
|
@@ -10,28 +10,28 @@ export var defaultContentProps = {
|
|
|
10
10
|
footer: '',
|
|
11
11
|
close: '',
|
|
12
12
|
footerDirection: 'horizontal',
|
|
13
|
-
onClick: function() {}
|
|
13
|
+
onClick: function onClick() {}
|
|
14
14
|
};
|
|
15
|
-
export var Content = function(props) {
|
|
15
|
+
export var Content = function Content(props) {
|
|
16
16
|
var _$_object_spread = _object_spread({}, defaultContentProps, props), visible = _$_object_spread.visible, title = _$_object_spread.title, header = _$_object_spread.header, footer = _$_object_spread.footer, close = _$_object_spread.close, footerDirection = _$_object_spread.footerDirection, children = _$_object_spread.children, style = _$_object_spread.style, className = _$_object_spread.className, onClick = _$_object_spread.onClick;
|
|
17
17
|
var classPrefix = 'nut-dialog';
|
|
18
|
-
var renderHeader = function() {
|
|
18
|
+
var renderHeader = function renderHeader() {
|
|
19
19
|
return title && /*#__PURE__*/ React.createElement(View, {
|
|
20
20
|
className: "".concat(classPrefix, "-header")
|
|
21
21
|
}, title);
|
|
22
22
|
};
|
|
23
|
-
var renderFooter = function() {
|
|
23
|
+
var renderFooter = function renderFooter() {
|
|
24
24
|
return footer && /*#__PURE__*/ React.createElement(View, {
|
|
25
25
|
className: classNames("".concat(classPrefix, "-footer"), _define_property({}, footerDirection, footerDirection))
|
|
26
26
|
}, footer);
|
|
27
27
|
};
|
|
28
|
-
var handleClick = function(e) {
|
|
28
|
+
var handleClick = function handleClick(e) {
|
|
29
29
|
onClick(e);
|
|
30
30
|
};
|
|
31
31
|
return /*#__PURE__*/ React.createElement(View, {
|
|
32
32
|
className: classNames("".concat(classPrefix, "-outer"), className),
|
|
33
33
|
style: style,
|
|
34
|
-
onClick: function(e) {
|
|
34
|
+
onClick: function onClick(e) {
|
|
35
35
|
return handleClick(e);
|
|
36
36
|
}
|
|
37
37
|
}, close, header, /*#__PURE__*/ React.createElement(View, {
|
|
@@ -8,7 +8,6 @@ import React, { useState } from "react";
|
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
import { View } from "@tarojs/components";
|
|
10
10
|
import { Failure, Close } from "@nutui/icons-react-taro";
|
|
11
|
-
import { CSSTransition } from "react-transition-group";
|
|
12
11
|
import Button from "../button/index";
|
|
13
12
|
import { Content, defaultContentProps } from "./content";
|
|
14
13
|
import { useConfig } from "../configprovider/configprovider";
|
|
@@ -37,20 +36,20 @@ var defaultProps = _object_spread_props(_object_spread({}, defaultOverlayProps,
|
|
|
37
36
|
overlayStyle: {},
|
|
38
37
|
overlayClassName: 'nut-dialog-overlay',
|
|
39
38
|
zIndex: 1200,
|
|
40
|
-
beforeCancel: function() {
|
|
39
|
+
beforeCancel: function beforeCancel() {
|
|
41
40
|
return true;
|
|
42
41
|
},
|
|
43
|
-
beforeClose: function() {
|
|
42
|
+
beforeClose: function beforeClose() {
|
|
44
43
|
return true;
|
|
45
44
|
},
|
|
46
|
-
onCancel: function() {},
|
|
47
|
-
onClose: function() {},
|
|
48
|
-
onConfirm: function() {},
|
|
49
|
-
onOverlayClick: function() {
|
|
45
|
+
onCancel: function onCancel() {},
|
|
46
|
+
onClose: function onClose() {},
|
|
47
|
+
onConfirm: function onConfirm() {},
|
|
48
|
+
onOverlayClick: function onOverlayClick() {
|
|
50
49
|
return true;
|
|
51
50
|
}
|
|
52
51
|
});
|
|
53
|
-
export var BaseDialog = function(props) {
|
|
52
|
+
export var BaseDialog = function BaseDialog(props) {
|
|
54
53
|
var _useParams = useParams(mergeProps(defaultProps, props)), _useParams_params = _useParams.params, id = _useParams_params.id, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, confirmText = _useParams_params.confirmText, cancelText = _useParams_params.cancelText, children = _useParams_params.children, className = _useParams_params.className, closeIconPosition = _useParams_params.closeIconPosition, closeIcon = _useParams_params.closeIcon, content = _useParams_params.content, disableConfirmButton = _useParams_params.disableConfirmButton, footer = _useParams_params.footer, footerDirection = _useParams_params.footerDirection, header = _useParams_params.header, cancelBadge = _useParams_params.cancelBadge, confirmBadge = _useParams_params.confirmBadge, hideConfirmButton = _useParams_params.hideConfirmButton, hideCancelButton = _useParams_params.hideCancelButton, lockScroll = _useParams_params.lockScroll, overlay = _useParams_params.overlay, overlayStyle = _useParams_params.overlayStyle, overlayClassName = _useParams_params.overlayClassName, style = _useParams_params.style, title = _useParams_params.title, visible = _useParams_params.visible, zIndex = _useParams_params.zIndex, beforeCancel = _useParams_params.beforeCancel, beforeClose = _useParams_params.beforeClose, onClose = _useParams_params.onClose, onCancel = _useParams_params.onCancel, onConfirm = _useParams_params.onConfirm, onOverlayClick = _useParams_params.onOverlayClick, setParams = _useParams.setParams;
|
|
55
54
|
var classPrefix = 'nut-dialog';
|
|
56
55
|
var locale = useConfig().locale;
|
|
@@ -62,16 +61,16 @@ export var BaseDialog = function(props) {
|
|
|
62
61
|
}));
|
|
63
62
|
});
|
|
64
63
|
var refObject = useLockScrollTaro(!!(visible && lockScroll));
|
|
65
|
-
var renderFooter = function() {
|
|
64
|
+
var renderFooter = function renderFooter() {
|
|
66
65
|
if (footer === null) return '';
|
|
67
|
-
var handleCancel = function(e) {
|
|
66
|
+
var handleCancel = function handleCancel(e) {
|
|
68
67
|
e.stopPropagation();
|
|
69
68
|
if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
|
|
70
69
|
onCancel();
|
|
71
70
|
};
|
|
72
|
-
var handleOk = function(e) {
|
|
71
|
+
var handleOk = function handleOk(e) {
|
|
73
72
|
return _async_to_generator(function() {
|
|
74
|
-
var
|
|
73
|
+
var unused;
|
|
75
74
|
return _ts_generator(this, function(_state) {
|
|
76
75
|
switch(_state.label){
|
|
77
76
|
case 0:
|
|
@@ -98,7 +97,7 @@ export var BaseDialog = function(props) {
|
|
|
98
97
|
4
|
|
99
98
|
];
|
|
100
99
|
case 3:
|
|
101
|
-
|
|
100
|
+
unused = _state.sent();
|
|
102
101
|
setLoading(false);
|
|
103
102
|
return [
|
|
104
103
|
3,
|
|
@@ -113,22 +112,22 @@ export var BaseDialog = function(props) {
|
|
|
113
112
|
})();
|
|
114
113
|
};
|
|
115
114
|
var btnClass = hideCancelButton || hideConfirmButton ? "".concat(classPrefix, "-footer-block") : '';
|
|
116
|
-
var renderCancelOfVertical = function() {
|
|
115
|
+
var renderCancelOfVertical = function renderCancelOfVertical() {
|
|
117
116
|
return !hideCancelButton && /*#__PURE__*/ React.createElement(View, {
|
|
118
117
|
className: "".concat(classPrefix, "-footer-cancel ").concat(btnClass),
|
|
119
|
-
onClick: function(e) {
|
|
118
|
+
onClick: function onClick(e) {
|
|
120
119
|
return handleCancel(e);
|
|
121
120
|
}
|
|
122
121
|
}, cancelText || locale.cancel);
|
|
123
122
|
};
|
|
124
|
-
var renderCancel = function() {
|
|
123
|
+
var renderCancel = function renderCancel() {
|
|
125
124
|
return !hideCancelButton && /*#__PURE__*/ React.createElement(React.Fragment, null, cancelBadge ? /*#__PURE__*/ React.createElement(View, {
|
|
126
125
|
className: "".concat(classPrefix, "-footer-cancel-container")
|
|
127
126
|
}, /*#__PURE__*/ React.createElement(Button, {
|
|
128
127
|
type: "default",
|
|
129
128
|
size: "large",
|
|
130
129
|
className: "".concat(classPrefix, "-footer-cancel ").concat(btnClass),
|
|
131
|
-
onClick: function(e) {
|
|
130
|
+
onClick: function onClick(e) {
|
|
132
131
|
return handleCancel(e);
|
|
133
132
|
}
|
|
134
133
|
}, cancelText || locale.cancel), cancelBadge ? /*#__PURE__*/ React.createElement(View, {
|
|
@@ -137,12 +136,12 @@ export var BaseDialog = function(props) {
|
|
|
137
136
|
type: "default",
|
|
138
137
|
size: "large",
|
|
139
138
|
className: "".concat(classPrefix, "-footer-cancel ").concat(btnClass),
|
|
140
|
-
onClick: function(e) {
|
|
139
|
+
onClick: function onClick(e) {
|
|
141
140
|
return handleCancel(e);
|
|
142
141
|
}
|
|
143
142
|
}, cancelText || locale.cancel));
|
|
144
143
|
};
|
|
145
|
-
var renderConfirm = function() {
|
|
144
|
+
var renderConfirm = function renderConfirm() {
|
|
146
145
|
return !hideConfirmButton && /*#__PURE__*/ React.createElement(React.Fragment, null, confirmBadge ? /*#__PURE__*/ React.createElement(View, {
|
|
147
146
|
className: "".concat(classPrefix, "-footer-ok-container")
|
|
148
147
|
}, /*#__PURE__*/ React.createElement(Button, {
|
|
@@ -152,7 +151,7 @@ export var BaseDialog = function(props) {
|
|
|
152
151
|
disabled: disableConfirmButton
|
|
153
152
|
}),
|
|
154
153
|
disabled: disableConfirmButton,
|
|
155
|
-
onClick: function(e) {
|
|
154
|
+
onClick: function onClick(e) {
|
|
156
155
|
return handleOk(e);
|
|
157
156
|
},
|
|
158
157
|
loading: loading
|
|
@@ -165,7 +164,7 @@ export var BaseDialog = function(props) {
|
|
|
165
164
|
disabled: disableConfirmButton
|
|
166
165
|
}),
|
|
167
166
|
disabled: disableConfirmButton,
|
|
168
|
-
onClick: function(e) {
|
|
167
|
+
onClick: function onClick(e) {
|
|
169
168
|
return handleOk(e);
|
|
170
169
|
},
|
|
171
170
|
loading: loading
|
|
@@ -173,15 +172,19 @@ export var BaseDialog = function(props) {
|
|
|
173
172
|
};
|
|
174
173
|
return footer || /*#__PURE__*/ React.createElement(React.Fragment, null, footerDirection === 'vertical' ? /*#__PURE__*/ React.createElement(React.Fragment, null, renderConfirm(), renderCancelOfVertical()) : /*#__PURE__*/ React.createElement(React.Fragment, null, renderCancel(), renderConfirm()));
|
|
175
174
|
};
|
|
176
|
-
var renderCloseIcon = function() {
|
|
175
|
+
var renderCloseIcon = function renderCloseIcon() {
|
|
177
176
|
if (!closeIcon) return null;
|
|
178
|
-
var handleClose = function() {
|
|
177
|
+
var handleClose = function handleClose() {
|
|
179
178
|
if (!(beforeClose === null || beforeClose === void 0 ? void 0 : beforeClose())) return;
|
|
180
179
|
onClose();
|
|
181
180
|
};
|
|
182
181
|
var _obj;
|
|
183
182
|
var closeClasses = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-close"), true), _define_property(_obj, "".concat(classPrefix, "-close-").concat(closeIconPosition), true), _obj));
|
|
184
|
-
var
|
|
183
|
+
var systemIcon = closeIconPosition !== 'bottom' ? /*#__PURE__*/ React.createElement(Close, {
|
|
184
|
+
ariaHidden: true
|
|
185
|
+
}) : /*#__PURE__*/ React.createElement(Failure, {
|
|
186
|
+
ariaHidden: true
|
|
187
|
+
});
|
|
185
188
|
return /*#__PURE__*/ React.createElement(View, {
|
|
186
189
|
className: closeClasses,
|
|
187
190
|
onClick: handleClose,
|
|
@@ -189,35 +192,40 @@ export var BaseDialog = function(props) {
|
|
|
189
192
|
ariaLabel: locale.close,
|
|
190
193
|
// @ts-ignore
|
|
191
194
|
tabIndex: 0
|
|
192
|
-
}, /*#__PURE__*/ React.isValidElement(closeIcon) ? closeIcon :
|
|
195
|
+
}, /*#__PURE__*/ React.isValidElement(closeIcon) ? closeIcon : systemIcon);
|
|
193
196
|
};
|
|
194
|
-
var onHandleClickOverlay = function(e) {
|
|
197
|
+
var onHandleClickOverlay = function onHandleClickOverlay(e) {
|
|
195
198
|
if (closeOnOverlayClick && visible && e.target === e.currentTarget) {
|
|
196
199
|
var closed = onOverlayClick && onOverlayClick(e);
|
|
197
200
|
closed && onCancel();
|
|
198
201
|
}
|
|
199
202
|
};
|
|
200
|
-
var renderContent = function() {
|
|
203
|
+
var renderContent = function renderContent() {
|
|
201
204
|
var contentZIndex = harmony() ? zIndex + 1 : zIndex // 解决harmony层级问题
|
|
202
205
|
;
|
|
203
|
-
return
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
206
|
+
return (
|
|
207
|
+
// <CSSTransition
|
|
208
|
+
// in={visible}
|
|
209
|
+
// timeout={300}
|
|
210
|
+
// classNames="fadeDialog"
|
|
211
|
+
// unmountOnExit
|
|
212
|
+
// appear
|
|
213
|
+
// >
|
|
214
|
+
/*#__PURE__*/ (React.createElement(Content, {
|
|
215
|
+
className: className,
|
|
216
|
+
style: _object_spread_props(_object_spread({
|
|
217
|
+
zIndex: contentZIndex
|
|
218
|
+
}, style), {
|
|
219
|
+
display: visible ? 'block' : 'none'
|
|
220
|
+
}),
|
|
221
|
+
title: title,
|
|
222
|
+
header: header,
|
|
223
|
+
close: renderCloseIcon(),
|
|
224
|
+
footer: renderFooter(),
|
|
225
|
+
footerDirection: footerDirection,
|
|
226
|
+
visible: visible
|
|
227
|
+
}, content || children))
|
|
228
|
+
);
|
|
221
229
|
};
|
|
222
230
|
return /*#__PURE__*/ React.createElement(View, {
|
|
223
231
|
style: {
|
|
@@ -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);
|
|
@@ -6,14 +6,14 @@ import React from "react";
|
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import { View } from "@tarojs/components";
|
|
8
8
|
import { ComponentDefaults } from "../../utils/typings";
|
|
9
|
-
import { useRtl } from "../configprovider/
|
|
9
|
+
import { useRtl } from "../configprovider/index";
|
|
10
10
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
11
11
|
contentPosition: 'center',
|
|
12
12
|
direction: 'horizontal'
|
|
13
13
|
});
|
|
14
14
|
var classPrefix = "nut-divider";
|
|
15
|
-
export var Divider = function(props) {
|
|
16
|
-
var
|
|
15
|
+
export var Divider = function Divider(props) {
|
|
16
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), children = _$_object_spread.children, contentPosition = _$_object_spread.contentPosition, style = _$_object_spread.style, className = _$_object_spread.className, direction = _$_object_spread.direction, rest = _object_without_properties(_$_object_spread, [
|
|
17
17
|
"children",
|
|
18
18
|
"contentPosition",
|
|
19
19
|
"style",
|
|
@@ -26,7 +26,7 @@ export var Divider = function(props) {
|
|
|
26
26
|
'left',
|
|
27
27
|
'right'
|
|
28
28
|
].includes(contentPosition) || children) && rtl), _obj)) : classNames((_obj1 = {}, _define_property(_obj1, "".concat(classPrefix), true), _define_property(_obj1, "".concat(classPrefix, "-vertical"), direction === 'vertical'), _obj1));
|
|
29
|
-
var getClassNames = function(direction) {
|
|
29
|
+
var getClassNames = function getClassNames(direction) {
|
|
30
30
|
return "".concat(classes.split(' ').map(function(item) {
|
|
31
31
|
return "".concat(item, "-").concat(direction);
|
|
32
32
|
}).join(' '));
|