@nutui/nutui-react-taro 3.0.0-beta.10 → 3.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/packages/actionsheet/style/style.css +13 -18
- package/dist/cjs/packages/actionsheet/style/style.harmony.css +90 -0
- package/dist/cjs/packages/address/address.js +2 -2
- package/dist/cjs/packages/address/existRender.js +2 -2
- package/dist/cjs/packages/address/style/style.css +45 -57
- package/dist/cjs/packages/address/style/style.harmony.css +52 -0
- package/dist/cjs/packages/animate/style/style.harmony.css +235 -0
- package/dist/cjs/packages/animatingnumbers/style/style.css +3 -3
- package/dist/cjs/packages/animatingnumbers/style/style.harmony.css +4 -0
- package/dist/cjs/packages/audio/audio.js +2 -2
- package/dist/cjs/packages/audio/style/style.css +55 -55
- package/dist/cjs/packages/audio/style/style.harmony.css +75 -0
- package/dist/cjs/packages/avatar/avatar.js +2 -2
- package/dist/cjs/packages/avatar/style/style.css +2 -2
- package/dist/cjs/packages/avatar/style/style.harmony.css +64 -0
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +2 -2
- package/dist/cjs/packages/avatarcropper/style/style.harmony.css +135 -0
- package/dist/cjs/packages/avatargroup/style/style.harmony.css +24 -0
- package/dist/cjs/packages/backtop/backtop.js +1 -3
- package/dist/cjs/packages/backtop/style/backtop.scss +0 -4
- package/dist/cjs/packages/backtop/style/index.js +2 -0
- package/dist/cjs/packages/backtop/style/style.css +126 -3
- package/dist/cjs/packages/backtop/style/style.harmony.css +21 -0
- package/dist/cjs/packages/badge/style/style.css +4 -4
- package/dist/cjs/packages/badge/style/style.harmony.css +114 -0
- package/dist/cjs/packages/barrage/style/style.css +2 -2
- package/dist/cjs/packages/barrage/style/style.harmony.css +84 -0
- package/dist/cjs/packages/button/button.js +20 -13
- package/dist/cjs/packages/button/style/button.scss +3 -3
- package/dist/cjs/packages/button/style/style.css +43 -43
- package/dist/cjs/packages/button/style/style.harmony.css +453 -0
- package/dist/cjs/packages/calendar/calendar.js +2 -2
- package/dist/cjs/packages/calendar/style/style.css +16 -21
- package/dist/cjs/packages/calendar/style/style.harmony.css +222 -0
- package/dist/cjs/packages/calendarcard/calendarcard.js +2 -2
- package/dist/cjs/packages/calendarcard/style/style.css +8 -8
- package/dist/cjs/packages/calendarcard/style/style.harmony.css +186 -0
- package/dist/cjs/packages/calendaritem/calendaritem.js +2 -2
- package/dist/cjs/packages/calendaritem/style/style.harmony.css +4 -0
- package/dist/cjs/packages/card/style/style.css +8 -8
- package/dist/cjs/packages/card/style/style.harmony.css +82 -0
- package/dist/cjs/packages/cascader/cascader.d.ts +2 -2
- package/dist/cjs/packages/cascader/cascader.js +4 -4
- package/dist/cjs/packages/cascader/style/style.css +35 -47
- package/dist/cjs/packages/cascader/style/style.harmony.css +70 -0
- package/dist/cjs/packages/cell/style/style.css +8 -8
- package/dist/cjs/packages/cell/style/style.harmony.css +91 -0
- package/dist/cjs/packages/cellgroup/style/style.css +3 -3
- package/dist/cjs/packages/cellgroup/style/style.harmony.css +31 -0
- package/dist/cjs/packages/checkbox/style/style.css +29 -29
- package/dist/cjs/packages/checkbox/style/style.harmony.css +165 -0
- package/dist/cjs/packages/checkboxgroup/style/style.css +7 -7
- package/dist/cjs/packages/checkboxgroup/style/style.harmony.css +67 -0
- package/dist/cjs/packages/circleprogress/style/style.css +3 -3
- package/dist/cjs/packages/circleprogress/style/style.harmony.css +31 -0
- package/dist/cjs/packages/col/style/col.scss +0 -1
- package/dist/cjs/packages/col/style/style.harmony.css +360 -0
- package/dist/cjs/packages/collapse/style/style.css +11 -11
- package/dist/cjs/packages/collapse/style/style.harmony.css +4 -0
- package/dist/cjs/packages/collapseitem/style/style.css +11 -11
- package/dist/cjs/packages/collapseitem/style/style.harmony.css +104 -0
- package/dist/cjs/packages/configprovider/configprovider.js +2 -2
- package/dist/cjs/packages/configprovider/style/style.harmony.css +4 -0
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/style/style.css +8 -8
- package/dist/cjs/packages/countdown/style/style.harmony.css +113 -0
- package/dist/cjs/packages/countup/style/style.css +3 -3
- package/dist/cjs/packages/datepicker/style/style.css +14 -19
- package/dist/cjs/packages/datepicker/style/style.harmony.css +4 -0
- package/dist/cjs/packages/dialog/content.d.ts +3 -13
- package/dist/cjs/packages/dialog/content.js +27 -9
- package/dist/cjs/packages/dialog/dialog.d.ts +3 -5
- package/dist/cjs/packages/dialog/dialog.js +21 -21
- package/dist/cjs/packages/dialog/index.d.ts +1 -1
- package/dist/cjs/packages/dialog/style/dialog.scss +0 -4
- package/dist/cjs/packages/dialog/style/style.css +49 -57
- package/dist/cjs/packages/dialog/style/style.harmony.css +169 -0
- package/dist/cjs/packages/dialog/types.d.ts +57 -0
- package/dist/cjs/packages/dialog/types.js +4 -0
- package/dist/cjs/packages/dialog/types.taro.d.ts +10 -0
- package/dist/cjs/packages/divider/style/style.css +4 -4
- package/dist/cjs/packages/divider/style/style.harmony.css +72 -0
- package/dist/cjs/packages/drag/style/style.harmony.css +18 -0
- package/dist/cjs/packages/elevator/style/style.css +8 -8
- package/dist/cjs/packages/elevator/style/style.harmony.css +127 -0
- package/dist/cjs/packages/ellipsis/style/style.harmony.css +24 -0
- package/dist/cjs/packages/empty/empty.js +1 -3
- package/dist/cjs/packages/empty/style/style.css +3 -3
- package/dist/cjs/packages/empty/style/style.harmony.css +59 -0
- package/dist/cjs/packages/fixednav/fixednav.d.ts +2 -15
- package/dist/cjs/packages/fixednav/fixednav.js +17 -36
- package/dist/cjs/packages/fixednav/index.d.ts +1 -2
- package/dist/cjs/packages/fixednav/style/style.css +3 -8
- package/dist/cjs/packages/fixednav/style/style.harmony.css +187 -0
- package/dist/cjs/packages/fixednav/types.d.ts +12 -0
- package/dist/cjs/packages/fixednav/types.taro.d.ts +1 -0
- package/dist/cjs/packages/form/style/style.css +15 -15
- package/dist/cjs/packages/form/style/style.harmony.css +70 -0
- package/dist/cjs/packages/formitem/style/style.css +4 -4
- package/dist/cjs/packages/formitem/style/style.harmony.css +108 -0
- package/dist/cjs/packages/grid/style/style.css +6 -6
- package/dist/cjs/packages/grid/style/style.harmony.css +21 -0
- package/dist/cjs/packages/griditem/style/style.css +5 -5
- package/dist/cjs/packages/griditem/style/style.harmony.css +111 -0
- package/dist/cjs/packages/hoverbutton/hoverbutton.js +1 -3
- package/dist/cjs/packages/hoverbutton/style/hoverbutton.scss +0 -4
- package/dist/cjs/packages/hoverbutton/style/style.css +4 -7
- package/dist/cjs/packages/hoverbutton/style/style.harmony.css +25 -0
- package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.js +4 -5
- package/dist/cjs/packages/hoverbuttonitem/style/style.css +4 -4
- package/dist/cjs/packages/hoverbuttonitem/style/style.harmony.css +60 -0
- package/dist/cjs/packages/image/image.js +1 -1
- package/dist/cjs/packages/image/style/style.css +2 -2
- package/dist/cjs/packages/image/style/style.harmony.css +54 -0
- package/dist/cjs/packages/imagepreview/style/style.css +11 -27
- package/dist/cjs/packages/imagepreview/style/style.harmony.css +101 -0
- package/dist/cjs/packages/indicator/style/style.css +4 -4
- package/dist/cjs/packages/indicator/style/style.harmony.css +162 -0
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +2 -2
- package/dist/cjs/packages/infiniteloading/style/style.css +4 -4
- package/dist/cjs/packages/infiniteloading/style/style.harmony.css +63 -0
- package/dist/cjs/packages/input/style/input.scss +0 -6
- package/dist/cjs/packages/input/style/style.css +8 -14
- package/dist/cjs/packages/input/style/style.harmony.css +54 -0
- package/dist/cjs/packages/inputnumber/inputnumber.js +4 -14
- package/dist/cjs/packages/inputnumber/style/style.css +7 -7
- package/dist/cjs/packages/inputnumber/style/style.harmony.css +61 -0
- package/dist/cjs/packages/layout/style/style.harmony.css +4 -0
- package/dist/cjs/packages/loading/style/style.css +2 -2
- package/dist/cjs/packages/loading/style/style.harmony.css +45 -0
- package/dist/cjs/packages/lottie/mp.js +13 -3
- package/dist/cjs/packages/lottie/style/style.harmony.css +4 -0
- package/dist/cjs/packages/menu/style/style.css +8 -13
- package/dist/cjs/packages/menu/style/style.harmony.css +56 -0
- package/dist/cjs/packages/menuitem/style/style.css +4 -9
- package/dist/cjs/packages/menuitem/style/style.harmony.css +122 -0
- package/dist/cjs/packages/navbar/style/navbar.scss +1 -1
- package/dist/cjs/packages/navbar/style/style.css +3 -3
- package/dist/cjs/packages/navbar/style/style.harmony.css +106 -0
- package/dist/cjs/packages/noticebar/style/style.harmony.css +194 -0
- package/dist/cjs/packages/notify/notify.js +2 -9
- package/dist/cjs/packages/notify/style/style.css +4 -4
- package/dist/cjs/packages/notify/style/style.harmony.css +90 -0
- package/dist/cjs/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/cjs/packages/numberkeyboard/numberkeyboard.js +2 -2
- package/dist/cjs/packages/numberkeyboard/style/style.css +13 -18
- package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +129 -0
- package/dist/cjs/packages/overlay/index.d.ts +1 -1
- package/dist/cjs/packages/overlay/overlay.d.ts +1 -12
- package/dist/cjs/packages/overlay/overlay.js +21 -34
- package/dist/cjs/packages/overlay/style/overlay.scss +0 -5
- package/dist/cjs/packages/overlay/style/style.css +1 -6
- package/dist/cjs/packages/overlay/style/style.harmony.css +63 -0
- package/dist/cjs/packages/overlay/types.d.ts +11 -0
- package/dist/cjs/packages/overlay/types.js +4 -0
- package/dist/cjs/packages/overlay/types.taro.d.ts +5 -0
- package/dist/cjs/packages/pagination/style/style.css +7 -7
- package/dist/cjs/packages/pagination/style/style.harmony.css +139 -0
- package/dist/cjs/packages/picker/picker.d.ts +1 -1
- package/dist/cjs/packages/picker/picker.js +4 -4
- package/dist/cjs/packages/picker/style/style.css +14 -19
- package/dist/cjs/packages/picker/style/style.harmony.css +168 -0
- package/dist/cjs/packages/popover/popover.d.ts +1 -1
- package/dist/cjs/packages/popover/popover.js +1 -1
- package/dist/cjs/packages/popover/style/style.css +12 -17
- package/dist/cjs/packages/popover/style/style.harmony.css +294 -0
- package/dist/cjs/packages/popup/index.d.ts +1 -1
- package/dist/cjs/packages/popup/popup.d.ts +2 -25
- package/dist/cjs/packages/popup/popup.js +23 -39
- package/dist/cjs/packages/popup/style/style.css +5 -10
- package/dist/cjs/packages/popup/style/style.harmony.css +363 -0
- package/dist/cjs/packages/popup/types.d.ts +25 -0
- package/dist/cjs/packages/popup/types.js +4 -0
- package/dist/cjs/packages/popup/types.taro.d.ts +8 -0
- package/dist/cjs/packages/price/style/style.css +1 -1
- package/dist/cjs/packages/price/style/style.harmony.css +96 -0
- package/dist/cjs/packages/progress/progress.js +3 -6
- package/dist/cjs/packages/progress/style/style.css +1 -1
- package/dist/cjs/packages/progress/style/style.harmony.css +77 -0
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +1 -6
- package/dist/cjs/packages/pulltorefresh/style/style.css +4 -4
- package/dist/cjs/packages/pulltorefresh/style/style.harmony.css +43 -0
- package/dist/cjs/packages/radio/style/style.css +19 -19
- package/dist/cjs/packages/radio/style/style.harmony.css +93 -0
- package/dist/cjs/packages/radiogroup/style/style.css +6 -6
- package/dist/cjs/packages/radiogroup/style/style.harmony.css +49 -0
- package/dist/cjs/packages/range/range.js +6 -40
- package/dist/cjs/packages/range/style/style.css +9 -9
- package/dist/cjs/packages/range/style/style.harmony.css +271 -0
- package/dist/cjs/packages/rate/style/style.css +4 -4
- package/dist/cjs/packages/rate/style/style.harmony.css +168 -0
- package/dist/cjs/packages/resultpage/style/style.css +2 -2
- package/dist/cjs/packages/resultpage/style/style.harmony.css +47 -0
- package/dist/cjs/packages/row/style/style.harmony.css +54 -0
- package/dist/cjs/packages/safearea/style/style.harmony.css +14 -0
- package/dist/cjs/packages/searchbar/searchbar.js +2 -2
- package/dist/cjs/packages/searchbar/style/style.css +5 -5
- package/dist/cjs/packages/searchbar/style/style.harmony.css +269 -0
- package/dist/cjs/packages/segmented/style/style.css +2 -2
- package/dist/cjs/packages/segmented/style/style.harmony.css +42 -0
- package/dist/cjs/packages/shortpassword/shortpassword.d.ts +1 -1
- package/dist/cjs/packages/shortpassword/style/style.css +15 -20
- package/dist/cjs/packages/shortpassword/style/style.harmony.css +123 -0
- package/dist/cjs/packages/sidebar/style/style.css +5 -5
- package/dist/cjs/packages/sidebar/style/style.harmony.css +63 -0
- package/dist/cjs/packages/sidebaritem/style/style.css +1 -1
- package/dist/cjs/packages/sidebaritem/style/style.harmony.css +19 -0
- package/dist/cjs/packages/sidenavbar/style/style.css +9 -14
- package/dist/cjs/packages/sidenavbar/style/style.harmony.css +74 -0
- package/dist/cjs/packages/sidenavbaritem/style/style.css +2 -2
- package/dist/cjs/packages/sidenavbaritem/style/style.harmony.css +14 -0
- package/dist/cjs/packages/signature/style/style.css +2 -2
- package/dist/cjs/packages/signature/style/style.harmony.css +22 -0
- package/dist/cjs/packages/skeleton/style/skeleton.scss +0 -18
- package/dist/cjs/packages/skeleton/style/style.css +5 -11
- package/dist/cjs/packages/skeleton/style/style.harmony.css +79 -0
- package/dist/cjs/packages/space/style/style.harmony.css +83 -0
- package/dist/cjs/packages/step/style/style.css +19 -19
- package/dist/cjs/packages/step/style/style.harmony.css +201 -0
- package/dist/cjs/packages/steps/style/style.css +19 -19
- package/dist/cjs/packages/steps/style/style.harmony.css +12 -0
- package/dist/cjs/packages/sticky/style/style.harmony.css +7 -0
- package/dist/cjs/packages/subsidenavbar/style/style.css +2 -2
- package/dist/cjs/packages/subsidenavbar/style/style.harmony.css +20 -0
- package/dist/cjs/packages/swipe/style/style.harmony.css +33 -0
- package/dist/cjs/packages/swipe/swipe.js +1 -1
- package/dist/cjs/packages/swiper/style/style.css +4 -15
- package/dist/cjs/packages/swiper/style/style.harmony.css +63 -0
- package/dist/cjs/packages/swiper/style/swiper.scss +0 -11
- package/dist/cjs/packages/swiperitem/style/style.harmony.css +7 -0
- package/dist/cjs/packages/switch/style/style.css +6 -6
- package/dist/cjs/packages/switch/style/style.harmony.css +91 -0
- package/dist/cjs/packages/tabbar/style/style.css +10 -10
- package/dist/cjs/packages/tabbar/style/style.harmony.css +50 -0
- package/dist/cjs/packages/tabbaritem/style/style.css +9 -9
- package/dist/cjs/packages/tabbaritem/style/style.harmony.css +59 -0
- package/dist/cjs/packages/table/style/style.css +11 -11
- package/dist/cjs/packages/table/style/style.harmony.css +230 -0
- package/dist/cjs/packages/table/table.js +3 -3
- package/dist/cjs/packages/tabpane/style/style.css +1 -1
- package/dist/cjs/packages/tabpane/style/style.harmony.css +18 -0
- package/dist/cjs/packages/tabpane/tabpane.js +2 -2
- package/dist/cjs/packages/tabs/style/style.css +25 -32
- package/dist/cjs/packages/tabs/style/style.harmony.css +320 -0
- package/dist/cjs/packages/tabs/style/tabs.scss +4 -9
- package/dist/cjs/packages/tabs/tabs.js +30 -49
- package/dist/cjs/packages/tag/style/style.css +5 -5
- package/dist/cjs/packages/tag/style/style.harmony.css +73 -0
- package/dist/cjs/packages/tag/style/tag.scss +0 -2
- package/dist/cjs/packages/textarea/style/style.css +13 -13
- package/dist/cjs/packages/textarea/style/style.harmony.css +79 -0
- package/dist/cjs/packages/textarea/textarea.js +3 -3
- package/dist/cjs/packages/timedetail/style/style.css +4 -4
- package/dist/cjs/packages/timedetail/style/style.harmony.css +34 -0
- package/dist/cjs/packages/timeselect/style/style.css +14 -19
- package/dist/cjs/packages/timeselect/style/style.harmony.css +35 -0
- package/dist/cjs/packages/timeselect/timeselect.js +2 -2
- package/dist/cjs/packages/toast/index.d.ts +2 -1
- package/dist/cjs/packages/toast/style/style.css +2 -20
- package/dist/cjs/packages/toast/style/style.harmony.css +138 -0
- package/dist/cjs/packages/toast/style/toast.scss +0 -13
- package/dist/cjs/packages/toast/toast.d.ts +1 -22
- package/dist/cjs/packages/toast/toast.js +26 -24
- package/dist/cjs/packages/toast/types.d.ts +17 -0
- package/dist/cjs/packages/toast/types.js +4 -0
- package/dist/cjs/packages/tour/style/style.css +16 -21
- package/dist/cjs/packages/tour/style/style.harmony.css +82 -0
- package/dist/cjs/packages/tour/tour.js +2 -2
- package/dist/cjs/packages/trendarrow/style/style.css +1 -1
- package/dist/cjs/packages/trendarrow/style/style.harmony.css +42 -0
- package/dist/cjs/packages/uploader/style/style.css +12 -12
- package/dist/cjs/packages/uploader/style/style.harmony.css +241 -0
- package/dist/cjs/packages/uploader/uploader.js +2 -2
- package/dist/cjs/packages/video/style/style.harmony.css +22 -0
- package/dist/cjs/packages/virtuallist/style/style.css +4 -4
- package/dist/cjs/packages/virtuallist/style/style.harmony.css +74 -0
- package/dist/cjs/packages/watermark/style/style.harmony.css +17 -0
- package/dist/cjs/utils/get-rect-by-taro.js +0 -14
- package/dist/cjs/utils/platform-taro.d.ts +0 -2
- package/dist/cjs/utils/platform-taro.js +0 -21
- package/dist/cjs/utils/px-transform.js +0 -1
- package/dist/cjs/utils/use-custom-event.js +2 -2
- package/dist/es/packages/actionsheet/style/style.css +13 -18
- package/dist/es/packages/actionsheet/style/style.harmony.css +90 -0
- package/dist/es/packages/address/address.js +1 -1
- package/dist/es/packages/address/existRender.js +1 -1
- package/dist/es/packages/address/style/style.css +45 -57
- package/dist/es/packages/address/style/style.harmony.css +52 -0
- package/dist/es/packages/animate/style/style.harmony.css +235 -0
- package/dist/es/packages/animatingnumbers/style/style.css +3 -3
- package/dist/es/packages/animatingnumbers/style/style.harmony.css +4 -0
- package/dist/es/packages/audio/audio.js +1 -1
- package/dist/es/packages/audio/style/style.css +55 -55
- package/dist/es/packages/audio/style/style.harmony.css +75 -0
- package/dist/es/packages/avatar/avatar.js +3 -3
- package/dist/es/packages/avatar/style/style.css +2 -2
- package/dist/es/packages/avatar/style/style.harmony.css +64 -0
- package/dist/es/packages/avatarcropper/avatarcropper.js +1 -1
- package/dist/es/packages/avatarcropper/style/style.harmony.css +135 -0
- package/dist/es/packages/avatargroup/style/style.harmony.css +24 -0
- package/dist/es/packages/backtop/backtop.js +1 -3
- package/dist/es/packages/backtop/style/backtop.scss +0 -4
- package/dist/es/packages/backtop/style/index.js +2 -0
- package/dist/es/packages/backtop/style/style.css +126 -3
- package/dist/es/packages/backtop/style/style.harmony.css +21 -0
- package/dist/es/packages/badge/style/style.css +4 -4
- package/dist/es/packages/badge/style/style.harmony.css +114 -0
- package/dist/es/packages/barrage/style/style.css +2 -2
- package/dist/es/packages/barrage/style/style.harmony.css +84 -0
- package/dist/es/packages/button/button.js +22 -15
- package/dist/es/packages/button/style/button.scss +3 -3
- package/dist/es/packages/button/style/style.css +43 -43
- package/dist/es/packages/button/style/style.harmony.css +453 -0
- package/dist/es/packages/calendar/calendar.js +1 -1
- package/dist/es/packages/calendar/style/style.css +16 -21
- package/dist/es/packages/calendar/style/style.harmony.css +222 -0
- package/dist/es/packages/calendarcard/calendarcard.js +1 -1
- package/dist/es/packages/calendarcard/style/style.css +8 -8
- package/dist/es/packages/calendarcard/style/style.harmony.css +186 -0
- package/dist/es/packages/calendaritem/calendaritem.js +1 -1
- package/dist/es/packages/calendaritem/style/style.harmony.css +4 -0
- package/dist/es/packages/card/style/style.css +8 -8
- package/dist/es/packages/card/style/style.harmony.css +82 -0
- package/dist/es/packages/cascader/cascader.d.ts +2 -2
- package/dist/es/packages/cascader/cascader.js +2 -2
- package/dist/es/packages/cascader/style/style.css +35 -47
- package/dist/es/packages/cascader/style/style.harmony.css +70 -0
- package/dist/es/packages/cell/style/style.css +8 -8
- package/dist/es/packages/cell/style/style.harmony.css +91 -0
- package/dist/es/packages/cellgroup/style/style.css +3 -3
- package/dist/es/packages/cellgroup/style/style.harmony.css +31 -0
- package/dist/es/packages/checkbox/style/style.css +29 -29
- package/dist/es/packages/checkbox/style/style.harmony.css +165 -0
- package/dist/es/packages/checkboxgroup/style/style.css +7 -7
- package/dist/es/packages/checkboxgroup/style/style.harmony.css +67 -0
- package/dist/es/packages/circleprogress/style/style.css +3 -3
- package/dist/es/packages/circleprogress/style/style.harmony.css +31 -0
- package/dist/es/packages/col/style/col.scss +0 -1
- package/dist/es/packages/col/style/style.harmony.css +360 -0
- package/dist/es/packages/collapse/style/style.css +11 -11
- package/dist/es/packages/collapse/style/style.harmony.css +4 -0
- package/dist/es/packages/collapseitem/style/style.css +11 -11
- package/dist/es/packages/collapseitem/style/style.harmony.css +104 -0
- package/dist/es/packages/configprovider/configprovider.js +2 -2
- package/dist/es/packages/configprovider/style/style.harmony.css +4 -0
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/style/style.css +8 -8
- package/dist/es/packages/countdown/style/style.harmony.css +113 -0
- package/dist/es/packages/countup/style/style.css +3 -3
- package/dist/es/packages/datepicker/style/style.css +14 -19
- package/dist/es/packages/datepicker/style/style.harmony.css +4 -0
- package/dist/es/packages/dialog/content.d.ts +3 -13
- package/dist/es/packages/dialog/content.js +16 -6
- package/dist/es/packages/dialog/dialog.d.ts +3 -5
- package/dist/es/packages/dialog/dialog.js +22 -22
- package/dist/es/packages/dialog/index.d.ts +1 -1
- package/dist/es/packages/dialog/style/dialog.scss +0 -4
- package/dist/es/packages/dialog/style/style.css +49 -57
- package/dist/es/packages/dialog/style/style.harmony.css +169 -0
- package/dist/es/packages/dialog/types.d.ts +57 -0
- package/dist/es/packages/dialog/types.js +1 -0
- package/dist/es/packages/dialog/types.taro.d.ts +10 -0
- package/dist/es/packages/divider/style/style.css +4 -4
- package/dist/es/packages/divider/style/style.harmony.css +72 -0
- package/dist/es/packages/drag/style/style.harmony.css +18 -0
- package/dist/es/packages/elevator/style/style.css +8 -8
- package/dist/es/packages/elevator/style/style.harmony.css +127 -0
- package/dist/es/packages/ellipsis/style/style.harmony.css +24 -0
- package/dist/es/packages/empty/empty.js +1 -3
- package/dist/es/packages/empty/style/style.css +3 -3
- package/dist/es/packages/empty/style/style.harmony.css +59 -0
- package/dist/es/packages/fixednav/fixednav.d.ts +2 -55
- package/dist/es/packages/fixednav/fixednav.js +16 -35
- package/dist/es/packages/fixednav/index.d.ts +1 -2
- package/dist/es/packages/fixednav/style/style.css +3 -8
- package/dist/es/packages/fixednav/style/style.harmony.css +187 -0
- package/dist/es/packages/fixednav/types.d.ts +12 -0
- package/dist/es/packages/fixednav/types.taro.d.ts +1 -0
- package/dist/es/packages/form/style/style.css +15 -15
- package/dist/es/packages/form/style/style.harmony.css +70 -0
- package/dist/es/packages/formitem/style/style.css +4 -4
- package/dist/es/packages/formitem/style/style.harmony.css +108 -0
- package/dist/es/packages/grid/style/style.css +6 -6
- package/dist/es/packages/grid/style/style.harmony.css +21 -0
- package/dist/es/packages/griditem/style/style.css +5 -5
- package/dist/es/packages/griditem/style/style.harmony.css +111 -0
- package/dist/es/packages/hoverbutton/hoverbutton.js +1 -3
- package/dist/es/packages/hoverbutton/style/hoverbutton.scss +0 -4
- package/dist/es/packages/hoverbutton/style/style.css +4 -7
- package/dist/es/packages/hoverbutton/style/style.harmony.css +25 -0
- package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +5 -6
- package/dist/es/packages/hoverbuttonitem/style/style.css +4 -4
- package/dist/es/packages/hoverbuttonitem/style/style.harmony.css +60 -0
- package/dist/es/packages/image/image.js +1 -1
- package/dist/es/packages/image/style/style.css +2 -2
- package/dist/es/packages/image/style/style.harmony.css +54 -0
- package/dist/es/packages/imagepreview/style/style.css +11 -27
- package/dist/es/packages/imagepreview/style/style.harmony.css +101 -0
- package/dist/es/packages/indicator/style/style.css +4 -4
- package/dist/es/packages/indicator/style/style.harmony.css +162 -0
- package/dist/es/packages/infiniteloading/infiniteloading.js +1 -1
- package/dist/es/packages/infiniteloading/style/style.css +4 -4
- package/dist/es/packages/infiniteloading/style/style.harmony.css +63 -0
- package/dist/es/packages/input/style/input.scss +0 -6
- package/dist/es/packages/input/style/style.css +8 -14
- package/dist/es/packages/input/style/style.harmony.css +54 -0
- package/dist/es/packages/inputnumber/inputnumber.js +6 -16
- package/dist/es/packages/inputnumber/style/style.css +7 -7
- package/dist/es/packages/inputnumber/style/style.harmony.css +61 -0
- package/dist/es/packages/layout/style/style.harmony.css +4 -0
- package/dist/es/packages/loading/style/style.css +2 -2
- package/dist/es/packages/loading/style/style.harmony.css +45 -0
- package/dist/es/packages/lottie/mp.js +14 -4
- package/dist/es/packages/lottie/style/style.harmony.css +4 -0
- package/dist/es/packages/menu/style/style.css +8 -13
- package/dist/es/packages/menu/style/style.harmony.css +56 -0
- package/dist/es/packages/menuitem/style/style.css +4 -9
- package/dist/es/packages/menuitem/style/style.harmony.css +122 -0
- package/dist/es/packages/navbar/style/navbar.scss +1 -1
- package/dist/es/packages/navbar/style/style.css +3 -3
- package/dist/es/packages/navbar/style/style.harmony.css +106 -0
- package/dist/es/packages/noticebar/style/style.harmony.css +194 -0
- package/dist/es/packages/notify/notify.js +2 -9
- package/dist/es/packages/notify/style/style.css +4 -4
- package/dist/es/packages/notify/style/style.harmony.css +90 -0
- package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/es/packages/numberkeyboard/numberkeyboard.js +1 -1
- package/dist/es/packages/numberkeyboard/style/style.css +13 -18
- package/dist/es/packages/numberkeyboard/style/style.harmony.css +129 -0
- package/dist/es/packages/overlay/index.d.ts +1 -1
- package/dist/es/packages/overlay/overlay.d.ts +1 -12
- package/dist/es/packages/overlay/overlay.js +22 -35
- package/dist/es/packages/overlay/style/overlay.scss +0 -5
- package/dist/es/packages/overlay/style/style.css +1 -6
- package/dist/es/packages/overlay/style/style.harmony.css +63 -0
- package/dist/es/packages/overlay/types.d.ts +11 -0
- package/dist/es/packages/overlay/types.js +1 -0
- package/dist/es/packages/overlay/types.taro.d.ts +5 -0
- package/dist/es/packages/pagination/style/style.css +7 -7
- package/dist/es/packages/pagination/style/style.harmony.css +139 -0
- package/dist/es/packages/picker/picker.d.ts +1 -1
- package/dist/es/packages/picker/picker.js +2 -2
- package/dist/es/packages/picker/style/style.css +14 -19
- package/dist/es/packages/picker/style/style.harmony.css +168 -0
- package/dist/es/packages/popover/popover.d.ts +1 -1
- package/dist/es/packages/popover/popover.js +1 -1
- package/dist/es/packages/popover/style/style.css +12 -17
- package/dist/es/packages/popover/style/style.harmony.css +294 -0
- package/dist/es/packages/popup/index.d.ts +1 -1
- package/dist/es/packages/popup/popup.d.ts +2 -25
- package/dist/es/packages/popup/popup.js +23 -39
- package/dist/es/packages/popup/style/style.css +5 -10
- package/dist/es/packages/popup/style/style.harmony.css +363 -0
- package/dist/es/packages/popup/types.d.ts +25 -0
- package/dist/es/packages/popup/types.js +1 -0
- package/dist/es/packages/popup/types.taro.d.ts +8 -0
- package/dist/es/packages/price/style/style.css +1 -1
- package/dist/es/packages/price/style/style.harmony.css +96 -0
- package/dist/es/packages/progress/progress.js +4 -7
- package/dist/es/packages/progress/style/style.css +1 -1
- package/dist/es/packages/progress/style/style.harmony.css +77 -0
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +1 -6
- package/dist/es/packages/pulltorefresh/style/style.css +4 -4
- package/dist/es/packages/pulltorefresh/style/style.harmony.css +43 -0
- package/dist/es/packages/radio/style/style.css +19 -19
- package/dist/es/packages/radio/style/style.harmony.css +93 -0
- package/dist/es/packages/radiogroup/style/style.css +6 -6
- package/dist/es/packages/radiogroup/style/style.harmony.css +49 -0
- package/dist/es/packages/range/range.js +7 -41
- package/dist/es/packages/range/style/style.css +9 -9
- package/dist/es/packages/range/style/style.harmony.css +271 -0
- package/dist/es/packages/rate/style/style.css +4 -4
- package/dist/es/packages/rate/style/style.harmony.css +168 -0
- package/dist/es/packages/resultpage/style/style.css +2 -2
- package/dist/es/packages/resultpage/style/style.harmony.css +47 -0
- package/dist/es/packages/row/style/style.harmony.css +54 -0
- package/dist/es/packages/safearea/style/style.harmony.css +14 -0
- package/dist/es/packages/searchbar/searchbar.js +1 -1
- package/dist/es/packages/searchbar/style/style.css +5 -5
- package/dist/es/packages/searchbar/style/style.harmony.css +269 -0
- package/dist/es/packages/segmented/style/style.css +2 -2
- package/dist/es/packages/segmented/style/style.harmony.css +42 -0
- package/dist/es/packages/shortpassword/shortpassword.d.ts +1 -1
- package/dist/es/packages/shortpassword/style/style.css +15 -20
- package/dist/es/packages/shortpassword/style/style.harmony.css +123 -0
- package/dist/es/packages/sidebar/style/style.css +5 -5
- package/dist/es/packages/sidebar/style/style.harmony.css +63 -0
- package/dist/es/packages/sidebaritem/style/style.css +1 -1
- package/dist/es/packages/sidebaritem/style/style.harmony.css +19 -0
- package/dist/es/packages/sidenavbar/style/style.css +9 -14
- package/dist/es/packages/sidenavbar/style/style.harmony.css +74 -0
- package/dist/es/packages/sidenavbaritem/style/style.css +2 -2
- package/dist/es/packages/sidenavbaritem/style/style.harmony.css +14 -0
- package/dist/es/packages/signature/style/style.css +2 -2
- package/dist/es/packages/signature/style/style.harmony.css +22 -0
- package/dist/es/packages/skeleton/style/skeleton.scss +0 -18
- package/dist/es/packages/skeleton/style/style.css +5 -11
- package/dist/es/packages/skeleton/style/style.harmony.css +79 -0
- package/dist/es/packages/space/style/style.harmony.css +83 -0
- package/dist/es/packages/step/style/style.css +19 -19
- package/dist/es/packages/step/style/style.harmony.css +201 -0
- package/dist/es/packages/steps/style/style.css +19 -19
- package/dist/es/packages/steps/style/style.harmony.css +12 -0
- package/dist/es/packages/sticky/style/style.harmony.css +7 -0
- package/dist/es/packages/subsidenavbar/style/style.css +2 -2
- package/dist/es/packages/subsidenavbar/style/style.harmony.css +20 -0
- package/dist/es/packages/swipe/style/style.harmony.css +33 -0
- package/dist/es/packages/swipe/swipe.js +2 -2
- package/dist/es/packages/swiper/style/style.css +4 -15
- package/dist/es/packages/swiper/style/style.harmony.css +63 -0
- package/dist/es/packages/swiper/style/swiper.scss +0 -11
- package/dist/es/packages/swiperitem/style/style.harmony.css +7 -0
- package/dist/es/packages/switch/style/style.css +6 -6
- package/dist/es/packages/switch/style/style.harmony.css +91 -0
- package/dist/es/packages/tabbar/style/style.css +10 -10
- package/dist/es/packages/tabbar/style/style.harmony.css +50 -0
- package/dist/es/packages/tabbaritem/style/style.css +9 -9
- package/dist/es/packages/tabbaritem/style/style.harmony.css +59 -0
- package/dist/es/packages/table/style/style.css +11 -11
- package/dist/es/packages/table/style/style.harmony.css +230 -0
- package/dist/es/packages/table/table.js +1 -1
- package/dist/es/packages/tabpane/style/style.css +1 -1
- package/dist/es/packages/tabpane/style/style.harmony.css +18 -0
- package/dist/es/packages/tabpane/tabpane.js +2 -2
- package/dist/es/packages/tabs/style/style.css +25 -32
- package/dist/es/packages/tabs/style/style.harmony.css +320 -0
- package/dist/es/packages/tabs/style/tabs.scss +4 -9
- package/dist/es/packages/tabs/tabs.js +30 -49
- package/dist/es/packages/tag/style/style.css +5 -5
- package/dist/es/packages/tag/style/style.harmony.css +73 -0
- package/dist/es/packages/tag/style/tag.scss +0 -2
- package/dist/es/packages/textarea/style/style.css +13 -13
- package/dist/es/packages/textarea/style/style.harmony.css +79 -0
- package/dist/es/packages/textarea/textarea.js +1 -1
- package/dist/es/packages/timedetail/style/style.css +4 -4
- package/dist/es/packages/timedetail/style/style.harmony.css +34 -0
- package/dist/es/packages/timeselect/style/style.css +14 -19
- package/dist/es/packages/timeselect/style/style.harmony.css +35 -0
- package/dist/es/packages/timeselect/timeselect.js +1 -1
- package/dist/es/packages/toast/index.d.ts +2 -1
- package/dist/es/packages/toast/style/style.css +2 -20
- package/dist/es/packages/toast/style/style.harmony.css +138 -0
- package/dist/es/packages/toast/style/toast.scss +0 -13
- package/dist/es/packages/toast/toast.d.ts +1 -22
- package/dist/es/packages/toast/toast.js +26 -25
- package/dist/es/packages/toast/types.d.ts +17 -0
- package/dist/es/packages/toast/types.js +1 -0
- package/dist/es/packages/tour/style/style.css +16 -21
- package/dist/es/packages/tour/style/style.harmony.css +82 -0
- package/dist/es/packages/tour/tour.js +1 -1
- package/dist/es/packages/trendarrow/style/style.css +1 -1
- package/dist/es/packages/trendarrow/style/style.harmony.css +42 -0
- package/dist/es/packages/uploader/style/style.css +12 -12
- package/dist/es/packages/uploader/style/style.harmony.css +241 -0
- package/dist/es/packages/uploader/uploader.js +1 -1
- package/dist/es/packages/video/style/style.harmony.css +22 -0
- package/dist/es/packages/virtuallist/style/style.css +4 -4
- package/dist/es/packages/virtuallist/style/style.harmony.css +74 -0
- package/dist/es/packages/watermark/style/style.harmony.css +17 -0
- package/dist/es/utils/get-rect-by-taro.js +0 -14
- package/dist/es/utils/platform-taro.d.ts +0 -2
- package/dist/es/utils/platform-taro.js +0 -15
- package/dist/es/utils/px-transform.js +1 -2
- package/dist/es/utils/use-custom-event.js +1 -1
- package/dist/nutui.react.umd.js +434 -1120
- package/dist/style.css +1 -1
- package/dist/style.scss +38 -38
- package/dist/styles/variables.scss +77 -35
- package/package.json +2 -2
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* #ifdef harmony */
|
|
2
|
+
/* #endif */
|
|
3
|
+
/* #ifndef harmony */
|
|
4
|
+
/* #endif */
|
|
5
|
+
.nut-grid-item {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
position: relative;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
color: #1a1a1a;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
.nut-grid-item-text {
|
|
14
|
+
color: #1a1a1a;
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
word-break: break-all;
|
|
17
|
+
margin: 8px 0 0 0;
|
|
18
|
+
}
|
|
19
|
+
.nut-grid-item-text-reverse {
|
|
20
|
+
margin: 0 0 8px 0;
|
|
21
|
+
}
|
|
22
|
+
.nut-grid-item-text-horizontal {
|
|
23
|
+
margin: 0 0 0 8px;
|
|
24
|
+
}
|
|
25
|
+
.nut-grid-item-text-horizontal-reverse {
|
|
26
|
+
margin: 0 8px 0 0;
|
|
27
|
+
}
|
|
28
|
+
.nut-grid-item-content {
|
|
29
|
+
display: flex;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
flex: 1;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
width: 100%;
|
|
34
|
+
padding: 16px 8px;
|
|
35
|
+
background: #ffffff;
|
|
36
|
+
border: 0 solid rgba(0, 0, 0, 0.06);
|
|
37
|
+
}
|
|
38
|
+
.nut-grid-item-content-border {
|
|
39
|
+
border-right-width: 0px;
|
|
40
|
+
border-bottom-width: 0px;
|
|
41
|
+
}
|
|
42
|
+
.nut-grid-item-content-surround {
|
|
43
|
+
border-top-width: 0px;
|
|
44
|
+
border-left-width: 0px;
|
|
45
|
+
border-radius: 8px;
|
|
46
|
+
}
|
|
47
|
+
.nut-grid-item-content-center {
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
}
|
|
51
|
+
.nut-grid-item-content-square {
|
|
52
|
+
margin-top: -100%;
|
|
53
|
+
}
|
|
54
|
+
.nut-grid-item-content-reverse {
|
|
55
|
+
flex-direction: column-reverse;
|
|
56
|
+
}
|
|
57
|
+
.nut-grid-item-content-horizontal {
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
}
|
|
60
|
+
.nut-grid-item-content-horizontal-reverse {
|
|
61
|
+
flex-direction: row-reverse;
|
|
62
|
+
}
|
|
63
|
+
.nut-grid-item-content-clickable {
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
66
|
+
.nut-grid-item-content-clickable::before {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: 50%;
|
|
69
|
+
left: 50%;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 100%;
|
|
72
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
73
|
+
border: inherit;
|
|
74
|
+
border-color: rgba(0, 0, 0, 0.7);
|
|
75
|
+
border-radius: inherit;
|
|
76
|
+
transform: translate(-50%, -50%);
|
|
77
|
+
opacity: 0;
|
|
78
|
+
content: " ";
|
|
79
|
+
}
|
|
80
|
+
.nut-grid-item-content-clickable:active::before {
|
|
81
|
+
opacity: 0.1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[dir=rtl] .nut-grid-item-content-border,
|
|
85
|
+
.nut-rtl .nut-grid-item-content-border {
|
|
86
|
+
border-right-width: 0;
|
|
87
|
+
border-left-width: 1px;
|
|
88
|
+
}
|
|
89
|
+
[dir=rtl] .nut-grid-item-content-surround,
|
|
90
|
+
.nut-rtl .nut-grid-item-content-surround {
|
|
91
|
+
border-left-width: 0;
|
|
92
|
+
border-right-width: 1px;
|
|
93
|
+
}
|
|
94
|
+
[dir=rtl] .nut-grid-item-content-horizontal .nut-grid-item-text {
|
|
95
|
+
margin: 0 8px 0 0;
|
|
96
|
+
}
|
|
97
|
+
.nut-rtl .nut-grid-item-content-horizontal .nut-grid-item-text {
|
|
98
|
+
margin: 0 8px 0 0;
|
|
99
|
+
}
|
|
100
|
+
[dir=rtl] .nut-grid-item-content-horizontal.nut-grid-item-content-reverse .nut-grid-item-text {
|
|
101
|
+
margin: 0 0 0 8px;
|
|
102
|
+
}
|
|
103
|
+
.nut-rtl .nut-grid-item-content-horizontal.nut-grid-item-content-reverse .nut-grid-item-text {
|
|
104
|
+
margin: 0 0 0 8px;
|
|
105
|
+
}
|
|
106
|
+
[dir=rtl] .nut-grid-item-content-clickable::before,
|
|
107
|
+
.nut-rtl .nut-grid-item-content-clickable::before {
|
|
108
|
+
left: auto;
|
|
109
|
+
right: 50%;
|
|
110
|
+
transform: translate(50%, -50%);
|
|
111
|
+
}
|
|
@@ -3,7 +3,6 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { View } from "@tarojs/components";
|
|
6
|
-
import Taro from "@tarojs/taro";
|
|
7
6
|
import { ComponentDefaults } from "../../utils/typings";
|
|
8
7
|
import { useRtl } from "../configprovider/index";
|
|
9
8
|
import HoverButtonItem from "../hoverbuttonitem/index";
|
|
@@ -22,12 +21,11 @@ export var HoverButton = function(props) {
|
|
|
22
21
|
if (typeof zIndex !== 'undefined') {
|
|
23
22
|
baseStyle.zIndex = zIndex;
|
|
24
23
|
}
|
|
25
|
-
var _obj;
|
|
26
24
|
return /*#__PURE__*/ React.createElement(View, {
|
|
27
25
|
className: classNames([
|
|
28
26
|
"".concat(classPrefix, "-container"),
|
|
29
27
|
className
|
|
30
|
-
], (
|
|
28
|
+
], _define_property({}, "".concat(classPrefix, "-container-rtl"), rtl)),
|
|
31
29
|
style: baseStyle
|
|
32
30
|
}, /*#__PURE__*/ React.createElement(View, {
|
|
33
31
|
className: classPrefix
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
width: 20px;
|
|
34
34
|
height: 20px;
|
|
35
35
|
margin: 9px;
|
|
36
|
-
color: var(--nutui-hoverbutton-item-icon-color, var(--nutui-
|
|
37
|
-
fill: var(--nutui-hoverbutton-item-icon-color, var(--nutui-
|
|
36
|
+
color: var(--nutui-hoverbutton-item-icon-color, var(--nutui-color-title, #1a1a1a));
|
|
37
|
+
fill: var(--nutui-hoverbutton-item-icon-color, var(--nutui-color-title, #1a1a1a));
|
|
38
38
|
}
|
|
39
39
|
.nut-hoverbutton-item-icon .nut-icon {
|
|
40
40
|
display: block;
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
font-size: 20px;
|
|
44
44
|
}
|
|
45
45
|
.nut-hoverbutton-item-container:active .nut-hoverbutton-item-icon {
|
|
46
|
-
color: var(--nutui-hoverbutton-item-icon-color-active, var(--nutui-
|
|
47
|
-
fill: var(--nutui-hoverbutton-item-icon-color-active, var(--nutui-
|
|
46
|
+
color: var(--nutui-hoverbutton-item-icon-color-active, var(--nutui-color-title, #1a1a1a));
|
|
47
|
+
fill: var(--nutui-hoverbutton-item-icon-color-active, var(--nutui-color-title, #1a1a1a));
|
|
48
48
|
}
|
|
49
49
|
.nut-hoverbutton-item-text-icon {
|
|
50
50
|
width: 14px;
|
|
@@ -67,9 +67,6 @@
|
|
|
67
67
|
bottom: var(--nutui-hoverbutton-position-bottom, 60px);
|
|
68
68
|
z-index: 10;
|
|
69
69
|
}
|
|
70
|
-
.nut-hoverbutton-container-rn {
|
|
71
|
-
position: absolute;
|
|
72
|
-
}
|
|
73
70
|
|
|
74
71
|
[dir=rtl] .nut-hoverbutton-container,
|
|
75
72
|
.nut-hoverbutton-container-rtl {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* #ifdef harmony */
|
|
2
|
+
/* #endif */
|
|
3
|
+
/* #ifndef harmony */
|
|
4
|
+
/* #endif */
|
|
5
|
+
.nut-hoverbutton {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
}
|
|
10
|
+
.nut-hoverbutton-container {
|
|
11
|
+
position: fixed;
|
|
12
|
+
right: 8px;
|
|
13
|
+
bottom: 60px;
|
|
14
|
+
z-index: 10;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[dir=rtl] .nut-hoverbutton-container {
|
|
18
|
+
right: auto;
|
|
19
|
+
left: 8px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.nut-hoverbutton-container-rtl {
|
|
23
|
+
right: auto;
|
|
24
|
+
left: 8px;
|
|
25
|
+
}
|
|
@@ -6,7 +6,7 @@ import React, { useMemo, useState } from "react";
|
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import { View } from "@tarojs/components";
|
|
8
8
|
import { ComponentDefaults } from "../../utils/typings";
|
|
9
|
-
import { harmony
|
|
9
|
+
import { harmony } from "../../utils/platform-taro";
|
|
10
10
|
import { getIcon } from "./utils";
|
|
11
11
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
12
12
|
icon: null,
|
|
@@ -14,13 +14,12 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
14
14
|
});
|
|
15
15
|
var classPrefix = 'nut-hoverbutton-item';
|
|
16
16
|
var isHarmony = harmony();
|
|
17
|
-
var isNative = harmonyAndRn();
|
|
18
17
|
export var HoverButtonItem = function(props) {
|
|
19
18
|
var _$_object_spread = _object_spread({}, defaultProps, props), className = _$_object_spread.className, style = _$_object_spread.style, icon = _$_object_spread.icon, onClick = _$_object_spread.onClick, children = _$_object_spread.children;
|
|
20
19
|
var _useState = _sliced_to_array(useState(false), 2), isTouchStart = _useState[0], setTouchStart = _useState[1];
|
|
21
20
|
// @TODO 待添加暗黑模式及样式变量功能
|
|
22
21
|
var nativeProps = useMemo(function() {
|
|
23
|
-
return
|
|
22
|
+
return isHarmony ? {
|
|
24
23
|
color: isTouchStart ? '#595959' : '#1A1A1A'
|
|
25
24
|
} : {};
|
|
26
25
|
}, [
|
|
@@ -30,10 +29,10 @@ export var HoverButtonItem = function(props) {
|
|
|
30
29
|
onClick && onClick(event);
|
|
31
30
|
};
|
|
32
31
|
var handleActiveStart = function(event) {
|
|
33
|
-
|
|
32
|
+
isHarmony && setTouchStart(true);
|
|
34
33
|
};
|
|
35
34
|
var handleActiveEnd = function(event) {
|
|
36
|
-
|
|
35
|
+
isHarmony && setTouchStart(false);
|
|
37
36
|
};
|
|
38
37
|
var renderBody = function() {
|
|
39
38
|
if (icon && !children) return /*#__PURE__*/ React.createElement(View, {
|
|
@@ -52,7 +51,7 @@ export var HoverButtonItem = function(props) {
|
|
|
52
51
|
className: classNames([
|
|
53
52
|
"".concat(classPrefix, "-container"),
|
|
54
53
|
className
|
|
55
|
-
], (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-container-active"),
|
|
54
|
+
], (_obj = {}, _define_property(_obj, "".concat(classPrefix, "-container-active"), isHarmony && isTouchStart), _define_property(_obj, "".concat(classPrefix, "-container-harmony"), isHarmony), _define_property(_obj, "".concat(classPrefix, "-container-icontext"), icon && children), _obj)),
|
|
56
55
|
style: style,
|
|
57
56
|
onTouchStart: handleActiveStart,
|
|
58
57
|
onTouchEnd: handleActiveEnd,
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
width: 20px;
|
|
34
34
|
height: 20px;
|
|
35
35
|
margin: 9px;
|
|
36
|
-
color: var(--nutui-hoverbutton-item-icon-color, var(--nutui-
|
|
37
|
-
fill: var(--nutui-hoverbutton-item-icon-color, var(--nutui-
|
|
36
|
+
color: var(--nutui-hoverbutton-item-icon-color, var(--nutui-color-title, #1a1a1a));
|
|
37
|
+
fill: var(--nutui-hoverbutton-item-icon-color, var(--nutui-color-title, #1a1a1a));
|
|
38
38
|
}
|
|
39
39
|
.nut-hoverbutton-item-icon .nut-icon {
|
|
40
40
|
display: block;
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
font-size: 20px;
|
|
44
44
|
}
|
|
45
45
|
.nut-hoverbutton-item-container:active .nut-hoverbutton-item-icon {
|
|
46
|
-
color: var(--nutui-hoverbutton-item-icon-color-active, var(--nutui-
|
|
47
|
-
fill: var(--nutui-hoverbutton-item-icon-color-active, var(--nutui-
|
|
46
|
+
color: var(--nutui-hoverbutton-item-icon-color-active, var(--nutui-color-title, #1a1a1a));
|
|
47
|
+
fill: var(--nutui-hoverbutton-item-icon-color-active, var(--nutui-color-title, #1a1a1a));
|
|
48
48
|
}
|
|
49
49
|
.nut-hoverbutton-item-text-icon {
|
|
50
50
|
width: 14px;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* #ifdef harmony */
|
|
2
|
+
/* #endif */
|
|
3
|
+
/* #ifndef harmony */
|
|
4
|
+
/* #endif */
|
|
5
|
+
.nut-hoverbutton-item-container {
|
|
6
|
+
width: 40px;
|
|
7
|
+
height: 40px;
|
|
8
|
+
border-radius: 40px;
|
|
9
|
+
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
10
|
+
background-color: rgba(255, 255, 255, 0.9);
|
|
11
|
+
}
|
|
12
|
+
.nut-hoverbutton-item-container:active {
|
|
13
|
+
background-color: rgba(247, 248, 252, 0.9);
|
|
14
|
+
}
|
|
15
|
+
.nut-hoverbutton-item-container-active {
|
|
16
|
+
background-color: rgba(247, 248, 252, 0.9);
|
|
17
|
+
}
|
|
18
|
+
.nut-hoverbutton-item-container-harmony {
|
|
19
|
+
margin-bottom: 8px;
|
|
20
|
+
}
|
|
21
|
+
.nut-hoverbutton-item-container-harmony:last-child {
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
}
|
|
24
|
+
.nut-hoverbutton-item-container-icontext {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
.nut-hoverbutton-item-container-icontext .nut-icon {
|
|
30
|
+
display: block;
|
|
31
|
+
width: 14px;
|
|
32
|
+
height: 14px;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
}
|
|
35
|
+
.nut-hoverbutton-item-icon {
|
|
36
|
+
width: 20px;
|
|
37
|
+
height: 20px;
|
|
38
|
+
margin: 9px;
|
|
39
|
+
color: #1a1a1a;
|
|
40
|
+
fill: #1a1a1a;
|
|
41
|
+
}
|
|
42
|
+
.nut-hoverbutton-item-icon .nut-icon {
|
|
43
|
+
display: block;
|
|
44
|
+
width: 20px;
|
|
45
|
+
height: 20px;
|
|
46
|
+
font-size: 20px;
|
|
47
|
+
}
|
|
48
|
+
.nut-hoverbutton-item-container:active .nut-hoverbutton-item-icon {
|
|
49
|
+
color: #1a1a1a;
|
|
50
|
+
fill: #1a1a1a;
|
|
51
|
+
}
|
|
52
|
+
.nut-hoverbutton-item-text-icon {
|
|
53
|
+
width: 14px;
|
|
54
|
+
height: 5px;
|
|
55
|
+
}
|
|
56
|
+
.nut-hoverbutton-item-text {
|
|
57
|
+
font-size: 10px;
|
|
58
|
+
margin-top: 5px;
|
|
59
|
+
line-height: 9px;
|
|
60
|
+
}
|
|
@@ -52,7 +52,7 @@ export var Image = function(props) {
|
|
|
52
52
|
width: width ? pxCheck(width) : Taro.getEnv() === 'WEB' ? '' : '100%',
|
|
53
53
|
overflow: radius !== undefined && radius !== null ? 'hidden' : '',
|
|
54
54
|
borderRadius: // eslint-disable-next-line no-nested-ternary
|
|
55
|
-
radius !== undefined && radius != null ?
|
|
55
|
+
radius !== undefined && radius != null ? pxCheck(radius) : ''
|
|
56
56
|
};
|
|
57
57
|
var imgStyle = _object_spread_props(_object_spread({}, style), {
|
|
58
58
|
width: width,
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
align-items: center;
|
|
27
27
|
justify-content: center;
|
|
28
|
-
background: var(--nutui-
|
|
28
|
+
background: var(--nutui-color-background, #f2f3f5);
|
|
29
29
|
background-size: 100% 100%;
|
|
30
30
|
}
|
|
31
31
|
.nut-image-error {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
flex-direction: column;
|
|
39
39
|
align-items: center;
|
|
40
40
|
justify-content: center;
|
|
41
|
-
background: var(--nutui-
|
|
41
|
+
background: var(--nutui-color-background, #f2f3f5);
|
|
42
42
|
background-size: 100% 100%;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* #ifdef harmony */
|
|
2
|
+
/* #endif */
|
|
3
|
+
/* #ifndef harmony */
|
|
4
|
+
/* #endif */
|
|
5
|
+
.nut-image {
|
|
6
|
+
display: block;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
.nut-image-default {
|
|
10
|
+
display: block;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
}
|
|
14
|
+
.nut-image.nut-image-round {
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
.nut-image-loading {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
background: #f2f3f5;
|
|
29
|
+
background-size: 100% 100%;
|
|
30
|
+
}
|
|
31
|
+
.nut-image-error {
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
background: #f2f3f5;
|
|
42
|
+
background-size: 100% 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[dir=rtl] .nut-image .nut-img-loading,
|
|
46
|
+
.nut-rtl .nut-image .nut-img-loading {
|
|
47
|
+
left: auto;
|
|
48
|
+
right: 0;
|
|
49
|
+
}
|
|
50
|
+
[dir=rtl] .nut-image .nut-img-error,
|
|
51
|
+
.nut-rtl .nut-image .nut-img-error {
|
|
52
|
+
left: auto;
|
|
53
|
+
right: 0;
|
|
54
|
+
}
|
|
@@ -4,19 +4,14 @@
|
|
|
4
4
|
/* #ifndef harmony */
|
|
5
5
|
/* #endif */
|
|
6
6
|
.nut-overlay {
|
|
7
|
-
/* #ifdef rn */
|
|
8
|
-
position: absolute;
|
|
9
|
-
/* #endif */
|
|
10
|
-
/* #ifndef rn */
|
|
11
7
|
position: fixed;
|
|
12
|
-
/* #endif */
|
|
13
8
|
top: 0;
|
|
14
9
|
left: 0;
|
|
15
10
|
bottom: 0;
|
|
16
11
|
right: 0;
|
|
17
12
|
width: 100%;
|
|
18
13
|
height: 100%;
|
|
19
|
-
background-color: var(--nutui-overlay-bg-color, var(--nutui-
|
|
14
|
+
background-color: var(--nutui-overlay-bg-color, var(--nutui-color-mask, rgba(0, 0, 0, 0.7)));
|
|
20
15
|
z-index: var(--nutui-overlay-zIndex, 1000);
|
|
21
16
|
}
|
|
22
17
|
|
|
@@ -67,7 +62,7 @@
|
|
|
67
62
|
position: fixed;
|
|
68
63
|
min-height: 46%;
|
|
69
64
|
max-height: 100%;
|
|
70
|
-
background-color: var(--nutui-overlay-content-bg-color, var(--nutui-
|
|
65
|
+
background-color: var(--nutui-overlay-content-bg-color, var(--nutui-color-background-overlay, #ffffff));
|
|
71
66
|
-webkit-overflow-scrolling: touch;
|
|
72
67
|
font-size: var(--nutui-font-size-base, 14px);
|
|
73
68
|
}
|
|
@@ -87,13 +82,13 @@
|
|
|
87
82
|
align-items: center;
|
|
88
83
|
}
|
|
89
84
|
.nut-popup-title-title {
|
|
90
|
-
color: var(--nutui-
|
|
85
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
91
86
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
92
87
|
font-size: var(--nutui-popup-title-font-size, var(--nutui-font-size-l, 16px));
|
|
93
88
|
line-height: var(--nutui-popup-title-font-size, var(--nutui-font-size-l, 16px));
|
|
94
89
|
}
|
|
95
90
|
.nut-popup-title-description {
|
|
96
|
-
color: var(--nutui-
|
|
91
|
+
color: var(--nutui-color-text, #505259);
|
|
97
92
|
font-size: var(--nutui-popup-description-font-size, var(--nutui-font-size-base, 14px));
|
|
98
93
|
font-weight: var(--nutui-font-weight, 400);
|
|
99
94
|
}
|
|
@@ -112,7 +107,7 @@
|
|
|
112
107
|
z-index: 1;
|
|
113
108
|
width: var(--nutui-popup-icon-size, 20px);
|
|
114
109
|
height: var(--nutui-popup-icon-size, 20px);
|
|
115
|
-
color: var(--nutui-
|
|
110
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
116
111
|
cursor: pointer;
|
|
117
112
|
}
|
|
118
113
|
.nut-popup-title-right:active {
|
|
@@ -392,7 +387,7 @@
|
|
|
392
387
|
width: var(--nutui-indicator-dot-size, 3px);
|
|
393
388
|
height: var(--nutui-indicator-dot-size, 3px);
|
|
394
389
|
border-radius: 50%;
|
|
395
|
-
background-color: var(--nutui-
|
|
390
|
+
background-color: var(--nutui-color-border-disabled, #c2c4cc);
|
|
396
391
|
margin: 0 var(--nutui-indicator-dot-margin, var(--nutui-spacing-xxxs, 2px));
|
|
397
392
|
opacity: 0.4;
|
|
398
393
|
}
|
|
@@ -405,7 +400,7 @@
|
|
|
405
400
|
.nut-indicator-dot-active, .nut-indicator-line-active {
|
|
406
401
|
width: var(--nutui-indicator-dot-active-size, 6px);
|
|
407
402
|
border-radius: var(--nutui-indicator-border-radius, var(--nutui-radius-xxs, 2px));
|
|
408
|
-
background: var(--nutui-indicator-color, var(--nutui-
|
|
403
|
+
background: var(--nutui-indicator-color, var(--nutui-color-primary, #ff0f23));
|
|
409
404
|
opacity: 1;
|
|
410
405
|
}
|
|
411
406
|
.nut-indicator-fixed-width .nut-indicator-dot {
|
|
@@ -436,7 +431,7 @@
|
|
|
436
431
|
}
|
|
437
432
|
.nut-indicator-line-active {
|
|
438
433
|
transition: transform 0.3s ease-in-out;
|
|
439
|
-
background: var(--nutui-indicator-color, var(--nutui-
|
|
434
|
+
background: var(--nutui-indicator-color, var(--nutui-color-primary, #ff0f23));
|
|
440
435
|
}
|
|
441
436
|
|
|
442
437
|
.nut-indicator-track {
|
|
@@ -450,7 +445,7 @@
|
|
|
450
445
|
height: 100%;
|
|
451
446
|
box-sizing: border-box;
|
|
452
447
|
border-radius: var(--nutui-indicator-border-radius, var(--nutui-radius-xxs, 2px));
|
|
453
|
-
background-color: var(--nutui-
|
|
448
|
+
background-color: var(--nutui-color-border-disabled, #c2c4cc);
|
|
454
449
|
opacity: 0.4;
|
|
455
450
|
}
|
|
456
451
|
|
|
@@ -545,15 +540,7 @@
|
|
|
545
540
|
display: flex;
|
|
546
541
|
position: relative;
|
|
547
542
|
}
|
|
548
|
-
.nut-swiper-inner-horizontal {
|
|
549
|
-
/* #ifndef rn */
|
|
550
|
-
transform: translateX(var(--swiper-offset));
|
|
551
|
-
/* #ifndef rn */
|
|
552
|
-
}
|
|
553
543
|
.nut-swiper-inner-vertical {
|
|
554
|
-
/* #ifndef rn */
|
|
555
|
-
transform: translateY(var(--swiper-offset));
|
|
556
|
-
/* #ifndef rn */
|
|
557
544
|
flex-direction: column;
|
|
558
545
|
}
|
|
559
546
|
|
|
@@ -573,9 +560,6 @@
|
|
|
573
560
|
.nut-rtl .nut-swiper-indicator {
|
|
574
561
|
left: auto;
|
|
575
562
|
right: 50%;
|
|
576
|
-
/* #ifndef rn */
|
|
577
|
-
transform: translateX(50%);
|
|
578
|
-
/* #endif */
|
|
579
563
|
}
|
|
580
564
|
[dir=rtl] .nut-swiper-indicator-vertical,
|
|
581
565
|
.nut-rtl .nut-swiper-indicator-vertical {
|
|
@@ -625,7 +609,7 @@
|
|
|
625
609
|
flex-direction: column;
|
|
626
610
|
align-items: center;
|
|
627
611
|
justify-content: center;
|
|
628
|
-
background: var(--nutui-
|
|
612
|
+
background: var(--nutui-color-background, #f2f3f5);
|
|
629
613
|
background-size: 100% 100%;
|
|
630
614
|
}
|
|
631
615
|
.nut-image-error {
|
|
@@ -638,7 +622,7 @@
|
|
|
638
622
|
flex-direction: column;
|
|
639
623
|
align-items: center;
|
|
640
624
|
justify-content: center;
|
|
641
|
-
background: var(--nutui-
|
|
625
|
+
background: var(--nutui-color-background, #f2f3f5);
|
|
642
626
|
background-size: 100% 100%;
|
|
643
627
|
}
|
|
644
628
|
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* #ifdef harmony */
|
|
2
|
+
/* #endif */
|
|
3
|
+
/* #ifndef harmony */
|
|
4
|
+
/* #endif */
|
|
5
|
+
.nut-imagepreview {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
}
|
|
9
|
+
.nut-imagepreview-swiper {
|
|
10
|
+
height: 100%;
|
|
11
|
+
width: 100vw;
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
}
|
|
14
|
+
.nut-imagepreview-index {
|
|
15
|
+
position: fixed;
|
|
16
|
+
z-index: 2002;
|
|
17
|
+
top: 50px;
|
|
18
|
+
text-align: center;
|
|
19
|
+
left: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
background: transparent;
|
|
22
|
+
color: #ffffff;
|
|
23
|
+
}
|
|
24
|
+
.nut-imagepreview-index .arrow {
|
|
25
|
+
position: absolute;
|
|
26
|
+
left: 15px;
|
|
27
|
+
transform: rotateZ(180deg);
|
|
28
|
+
}
|
|
29
|
+
.nut-imagepreview-close {
|
|
30
|
+
position: fixed;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
z-index: 2002;
|
|
35
|
+
background: transparent;
|
|
36
|
+
color: #ffffff;
|
|
37
|
+
}
|
|
38
|
+
.nut-imagepreview-close .nut-icon {
|
|
39
|
+
color: #ffffff;
|
|
40
|
+
}
|
|
41
|
+
.nut-imagepreview-close.top-right {
|
|
42
|
+
top: 50px;
|
|
43
|
+
right: 20px;
|
|
44
|
+
}
|
|
45
|
+
.nut-imagepreview-close.top-left {
|
|
46
|
+
top: 50px;
|
|
47
|
+
left: 20px;
|
|
48
|
+
}
|
|
49
|
+
.nut-imagepreview-close.bottom {
|
|
50
|
+
bottom: 50px;
|
|
51
|
+
left: 0;
|
|
52
|
+
right: 0;
|
|
53
|
+
text-align: center;
|
|
54
|
+
}
|
|
55
|
+
.nut-imagepreview-pop {
|
|
56
|
+
height: 100%;
|
|
57
|
+
background: transparent !important;
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
.nut-imagepreview-swiper .nut-imagepreview-swiper-item,
|
|
63
|
+
.nut-imagepreview-swiper .nut-swiper-item {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
height: 100%;
|
|
68
|
+
}
|
|
69
|
+
.nut-imagepreview-swiper .nut-imagepreview-swiper-item .nut-image,
|
|
70
|
+
.nut-imagepreview-swiper .nut-imagepreview-swiper-item .nut-video,
|
|
71
|
+
.nut-imagepreview-swiper .nut-swiper-item .nut-image,
|
|
72
|
+
.nut-imagepreview-swiper .nut-swiper-item .nut-video {
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
.nut-imagepreview-swiper .nut-imagepreview-swiper-item .nut-image-preview-box,
|
|
78
|
+
.nut-imagepreview-swiper .nut-swiper-item .nut-image-preview-box {
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
.nut-imagepreview-swiper .nut-imagepreview-swiper-item .nut-video video,
|
|
82
|
+
.nut-imagepreview-swiper .nut-swiper-item .nut-video video {
|
|
83
|
+
object-fit: contain;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[dir=rtl] .nut-imagepreview-index .arrow,
|
|
87
|
+
.nut-rtl .nut-imagepreview-index .arrow {
|
|
88
|
+
left: auto;
|
|
89
|
+
right: 15px;
|
|
90
|
+
transform: rotateZ(-180deg);
|
|
91
|
+
}
|
|
92
|
+
[dir=rtl] .nut-imagepreview-close.top-right,
|
|
93
|
+
.nut-rtl .nut-imagepreview-close.top-right {
|
|
94
|
+
right: auto;
|
|
95
|
+
left: 20px;
|
|
96
|
+
}
|
|
97
|
+
[dir=rtl] .nut-imagepreview-close.top-left,
|
|
98
|
+
.nut-rtl .nut-imagepreview-close.top-left {
|
|
99
|
+
left: auto;
|
|
100
|
+
right: 20px;
|
|
101
|
+
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
width: var(--nutui-indicator-dot-size, 3px);
|
|
19
19
|
height: var(--nutui-indicator-dot-size, 3px);
|
|
20
20
|
border-radius: 50%;
|
|
21
|
-
background-color: var(--nutui-
|
|
21
|
+
background-color: var(--nutui-color-border-disabled, #c2c4cc);
|
|
22
22
|
margin: 0 var(--nutui-indicator-dot-margin, var(--nutui-spacing-xxxs, 2px));
|
|
23
23
|
opacity: 0.4;
|
|
24
24
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
.nut-indicator-dot-active, .nut-indicator-line-active {
|
|
32
32
|
width: var(--nutui-indicator-dot-active-size, 6px);
|
|
33
33
|
border-radius: var(--nutui-indicator-border-radius, var(--nutui-radius-xxs, 2px));
|
|
34
|
-
background: var(--nutui-indicator-color, var(--nutui-
|
|
34
|
+
background: var(--nutui-indicator-color, var(--nutui-color-primary, #ff0f23));
|
|
35
35
|
opacity: 1;
|
|
36
36
|
}
|
|
37
37
|
.nut-indicator-fixed-width .nut-indicator-dot {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
.nut-indicator-line-active {
|
|
64
64
|
transition: transform 0.3s ease-in-out;
|
|
65
|
-
background: var(--nutui-indicator-color, var(--nutui-
|
|
65
|
+
background: var(--nutui-indicator-color, var(--nutui-color-primary, #ff0f23));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.nut-indicator-track {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
height: 100%;
|
|
77
77
|
box-sizing: border-box;
|
|
78
78
|
border-radius: var(--nutui-indicator-border-radius, var(--nutui-radius-xxs, 2px));
|
|
79
|
-
background-color: var(--nutui-
|
|
79
|
+
background-color: var(--nutui-color-border-disabled, #c2c4cc);
|
|
80
80
|
opacity: 0.4;
|
|
81
81
|
}
|
|
82
82
|
|