@nutui/nutui-react 1.2.3-beta.4 → 1.3.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/esm/Audio/style/index.js +4 -0
- package/dist/esm/Audio.js +293 -0
- package/dist/esm/Avatar.js +7 -5
- package/dist/esm/Calendar/style/index.js +1 -2
- package/dist/esm/Calendar.js +80 -33
- package/dist/esm/CalendarItem.js +440 -238
- package/dist/esm/Cascader/style/index.js +2 -0
- package/dist/esm/Cascader.js +788 -0
- package/dist/esm/CheckboxGroup.js +0 -1
- package/dist/esm/ConfigProvider.js +16 -0
- package/dist/esm/DatePicker.js +37 -6
- package/dist/esm/Dialog.js +9 -16
- package/dist/esm/Drag.js +1 -1
- package/dist/esm/Elevator.js +16 -5
- package/dist/esm/Grid/style/index.js +2 -0
- package/dist/esm/Grid.js +91 -0
- package/dist/esm/GridItem/style/index.js +2 -0
- package/dist/esm/GridItem.js +99 -0
- package/dist/esm/Icon/style/index.js +1 -0
- package/dist/esm/Icon.js +2 -2
- package/dist/esm/ImagePreview/style/index.js +2 -0
- package/dist/esm/ImagePreview.js +257 -0
- package/dist/esm/Input.js +8 -2
- package/dist/esm/InputNumber.js +11 -11
- package/dist/esm/Menu/style/index.js +3 -0
- package/dist/esm/Menu.js +153 -0
- package/dist/esm/MenuItem/style/index.js +3 -0
- package/dist/esm/MenuItem.js +197 -0
- package/dist/esm/NoticeBar.js +70 -30
- package/dist/esm/Notify.js +19 -4
- package/dist/esm/Picker.js +9 -4
- package/dist/esm/Popover.js +57 -80
- package/dist/esm/Price.js +14 -3
- package/dist/esm/Progress.js +1 -1
- package/dist/esm/Range.js +11 -48
- package/dist/esm/Swipe/style/index.js +2 -0
- package/dist/esm/Swipe.js +265 -0
- package/dist/esm/Swiper.js +2 -1
- package/dist/esm/TabPane.js +5 -33
- package/dist/esm/TabbarItem.js +1 -1
- package/dist/esm/Tabs.js +6 -196
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/TextArea.js +48 -4
- package/dist/esm/Toast.js +24 -13
- package/dist/esm/Uploader.js +16 -6
- package/dist/esm/{icon-62bd7379.js → icon-8dc4de10.js} +9 -9
- package/dist/esm/nutui-react.es.js +8 -0
- package/dist/esm/render-4a3856cb.js +32 -0
- package/dist/esm/tabpane-c957ab14.js +33 -0
- package/dist/esm/tabs-a48583e9.js +196 -0
- package/dist/esm/useClientRect-839d18c5.js +44 -0
- package/dist/locales/base.d.ts +16 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +17 -1
- package/dist/locales/id-ID.js +17 -1
- package/dist/locales/zh-CN.js +17 -1
- package/dist/locales/zh-TW.js +17 -1
- package/dist/nutui.react.es.js +2639 -768
- package/dist/nutui.react.umd.js +2646 -767
- package/dist/packages/audio/audio.scss +80 -0
- package/dist/packages/calendar/calendar.scss +57 -36
- package/dist/packages/calendaritem/calendaritem.scss +0 -191
- package/dist/packages/cascader/cascader.scss +69 -0
- package/dist/packages/col/col.scss +2 -2
- package/dist/packages/collapseitem/collapseitem.scss +1 -2
- package/dist/packages/grid/grid.scss +10 -0
- package/dist/packages/griditem/griditem.scss +103 -0
- package/dist/packages/icon/icon.scss +104 -12
- package/dist/packages/imagepreview/imagepreview.scss +51 -0
- package/dist/packages/menu/menu.scss +72 -0
- package/dist/packages/menuitem/menuitem.scss +90 -0
- package/dist/packages/noticebar/noticebar.scss +31 -15
- package/dist/packages/notify/notify.scss +9 -0
- package/dist/packages/popover/popover.scss +205 -83
- package/dist/packages/popup/popup.scss +1 -1
- package/dist/packages/rate/rate.scss +14 -13
- package/dist/packages/searchbar/searchbar.scss +1 -0
- package/dist/packages/shortpassword/shortpassword.scss +6 -1
- package/dist/packages/swipe/swipe.scss +33 -0
- package/dist/packages/textarea/textarea.scss +16 -1
- package/dist/packages/toast/toast.scss +16 -13
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/animation/icon.scss +245 -0
- package/dist/styles/animation/index.scss +1 -0
- package/dist/styles/font/config.json +169 -0
- package/dist/styles/font/demo_index.html +210 -3
- package/dist/styles/font/iconfont.css +39 -3
- package/dist/styles/font/iconfont.js +42 -40
- package/dist/styles/font/iconfont.json +63 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +8 -0
- package/dist/styles/variables.scss +82 -15
- package/dist/types/actionsheet/actionsheet.taro.d.ts +20 -0
- package/dist/types/actionsheet/index.taro.d.ts +2 -0
- package/dist/types/address/address.taro.d.ts +34 -0
- package/dist/types/address/index.taro.d.ts +2 -0
- package/dist/types/animatingnumbers/animatingnumbers.taro.d.ts +12 -0
- package/dist/types/animatingnumbers/countup.taro.d.ts +11 -0
- package/dist/types/animatingnumbers/index.taro.d.ts +2 -0
- package/dist/types/audio/__test__/audio.spec.d.ts +1 -0
- package/dist/types/audio/audio.d.ts +18 -0
- package/dist/types/audio/audio.taro.d.ts +18 -0
- package/dist/types/audio/demo.d.ts +4 -0
- package/dist/types/audio/index.d.ts +2 -0
- package/dist/types/audio/index.taro.d.ts +2 -0
- package/dist/types/avatar/avatar.taro.d.ts +17 -0
- package/dist/types/avatar/index.taro.d.ts +2 -0
- package/dist/types/avatargroup/index.taro.d.ts +2 -0
- package/dist/types/backtop/__test__/backtop.spec.d.ts +1 -0
- package/dist/types/backtop/backtop.taro.d.ts +15 -0
- package/dist/types/backtop/index.taro.d.ts +2 -0
- package/dist/types/badge/badge.taro.d.ts +14 -0
- package/dist/types/badge/index.taro.d.ts +2 -0
- package/dist/types/barrage/barrage.taro.d.ts +12 -0
- package/dist/types/barrage/index.taro.d.ts +2 -0
- package/dist/types/button/button.taro.d.ts +20 -0
- package/dist/types/button/index.taro.d.ts +2 -0
- package/dist/types/calendar/__tests__/calendar.spec.d.ts +1 -0
- package/dist/types/calendar/calendar.d.ts +22 -2
- package/dist/types/calendar/calendar.taro.d.ts +14 -0
- package/dist/types/calendar/demo.d.ts +1 -0
- package/dist/types/calendar/index.taro.d.ts +2 -0
- package/dist/types/calendaritem/calendaritem.d.ts +21 -3
- package/dist/types/calendaritem/calendaritem.taro.d.ts +17 -0
- package/dist/types/calendaritem/index.taro.d.ts +2 -0
- package/dist/types/card/card.taro.d.ts +17 -0
- package/dist/types/card/index.taro.d.ts +2 -0
- package/dist/types/cascader/__tests__/cascader.spec.d.ts +1 -0
- package/dist/types/cascader/cascader.d.ts +25 -0
- package/dist/types/cascader/cascader.taro.d.ts +25 -0
- package/dist/types/cascader/cascaderItem.d.ts +25 -0
- package/dist/types/cascader/cascaderItem.taro.d.ts +25 -0
- package/dist/types/cascader/demo.d.ts +3 -0
- package/dist/types/cascader/helper.d.ts +4 -0
- package/dist/types/cascader/index.d.ts +2 -0
- package/dist/types/cascader/index.taro.d.ts +2 -0
- package/dist/types/cascader/tree.d.ts +12 -0
- package/dist/types/cascader/types.d.ts +28 -0
- package/dist/types/cell/cell.taro.d.ts +20 -0
- package/dist/types/cell/index.taro.d.ts +2 -0
- package/dist/types/cellgroup/cellgroup.taro.d.ts +10 -0
- package/dist/types/cellgroup/index.taro.d.ts +2 -0
- package/dist/types/checkbox/checkbox.d.ts +2 -2
- package/dist/types/checkbox/checkbox.taro.d.ts +19 -0
- package/dist/types/checkbox/index.taro.d.ts +2 -0
- package/dist/types/checkboxgroup/checkboxgroup.d.ts +2 -2
- package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +8 -0
- package/dist/types/checkboxgroup/index.taro.d.ts +2 -0
- package/dist/types/circleprogress/circleprogress.taro.d.ts +15 -0
- package/dist/types/circleprogress/index.taro.d.ts +2 -0
- package/dist/types/col/col.taro.d.ts +10 -0
- package/dist/types/col/index.taro.d.ts +2 -0
- package/dist/types/collapse/collapse.taro.d.ts +12 -0
- package/dist/types/collapse/index.taro.d.ts +2 -0
- package/dist/types/collapseitem/index.taro.d.ts +2 -0
- package/dist/types/configprovider/configprovider.taro.d.ts +12 -0
- package/dist/types/configprovider/index.taro.d.ts +2 -0
- package/dist/types/countdown/countdown.taro.d.ts +15 -0
- package/dist/types/countdown/index.taro.d.ts +2 -0
- package/dist/types/datepicker/datepicker.taro.d.ts +27 -0
- package/dist/types/datepicker/index.taro.d.ts +2 -0
- package/dist/types/dialog/__test__/dialog.spec.d.ts +1 -0
- package/dist/types/dialog/config.d.ts +3 -3
- package/dist/types/dialog/dialog.d.ts +2 -1
- package/dist/types/dialog/dialog.taro.d.ts +3 -0
- package/dist/types/dialog/index.taro.d.ts +2 -0
- package/dist/types/divider/divider.taro.d.ts +12 -0
- package/dist/types/divider/index.taro.d.ts +2 -0
- package/dist/types/drag/drag.taro.d.ts +14 -0
- package/dist/types/drag/index.taro.d.ts +2 -0
- package/dist/types/elevator/elevator.taro.d.ts +22 -0
- package/dist/types/elevator/index.taro.d.ts +2 -0
- package/dist/types/empty/empty.taro.d.ts +8 -0
- package/dist/types/empty/index.taro.d.ts +2 -0
- package/dist/types/fixednav/fixednav.d.ts +2 -2
- package/dist/types/fixednav/fixednav.taro.d.ts +22 -0
- package/dist/types/fixednav/index.taro.d.ts +2 -0
- package/dist/types/grid/__test__/grid.spec.d.ts +1 -0
- package/dist/types/grid/demo.d.ts +3 -0
- package/dist/types/grid/grid.d.ts +16 -0
- package/dist/types/grid/grid.taro.d.ts +16 -0
- package/dist/types/grid/index.d.ts +2 -0
- package/dist/types/grid/index.taro.d.ts +2 -0
- package/dist/types/griditem/griditem.d.ts +20 -0
- package/dist/types/griditem/griditem.taro.d.ts +20 -0
- package/dist/types/griditem/index.d.ts +2 -0
- package/dist/types/griditem/index.taro.d.ts +2 -0
- package/dist/types/icon/icon.d.ts +10 -5
- package/dist/types/icon/icon.taro.d.ts +18 -0
- package/dist/types/icon/index.taro.d.ts +2 -0
- package/dist/types/imagepreview/__test__/imagepreview.spec.d.ts +1 -0
- package/dist/types/imagepreview/demo.d.ts +3 -0
- package/dist/types/imagepreview/imagepreview.d.ts +26 -0
- package/dist/types/imagepreview/imagepreview.taro.d.ts +26 -0
- package/dist/types/imagepreview/index.d.ts +2 -0
- package/dist/types/imagepreview/index.taro.d.ts +2 -0
- package/dist/types/indicator/index.taro.d.ts +2 -0
- package/dist/types/indicator/indicator.taro.d.ts +10 -0
- package/dist/types/infiniteloading/index.taro.d.ts +2 -0
- package/dist/types/infiniteloading/infiniteloading.taro.d.ts +20 -0
- package/dist/types/input/__test__/input.spec.d.ts +1 -0
- package/dist/types/input/index.taro.d.ts +2 -0
- package/dist/types/input/input.taro.d.ts +57 -0
- package/dist/types/inputnumber/index.taro.d.ts +2 -0
- package/dist/types/inputnumber/inputnumber.taro.d.ts +22 -0
- package/dist/types/layout/index.taro.d.ts +2 -0
- package/dist/types/layout/layout.taro.d.ts +4 -0
- package/dist/types/menu/__test__/menu.spec.d.ts +1 -0
- package/dist/types/menu/demo.d.ts +4 -0
- package/dist/types/menu/index.d.ts +2 -0
- package/dist/types/menu/index.taro.d.ts +2 -0
- package/dist/types/menu/menu.d.ts +12 -0
- package/dist/types/menu/menu.taro.d.ts +12 -0
- package/dist/types/menuitem/index.d.ts +2 -0
- package/dist/types/menuitem/index.taro.d.ts +2 -0
- package/dist/types/menuitem/menuitem.d.ts +23 -0
- package/dist/types/menuitem/menuitem.taro.d.ts +23 -0
- package/dist/types/navbar/index.taro.d.ts +2 -0
- package/dist/types/navbar/navbar.taro.d.ts +21 -0
- package/dist/types/noticebar/demo.d.ts +1 -0
- package/dist/types/noticebar/index.taro.d.ts +2 -0
- package/dist/types/noticebar/noticebar.d.ts +1 -1
- package/dist/types/noticebar/noticebar.taro.d.ts +23 -0
- package/dist/types/notify/Notification.d.ts +8 -7
- package/dist/types/notify/__test__/notify.spec.d.ts +1 -0
- package/dist/types/notify/index.taro.d.ts +2 -0
- package/dist/types/notify/notify.d.ts +13 -0
- package/dist/types/notify/notify.taro.d.ts +23 -0
- package/dist/types/numberkeyboard/index.taro.d.ts +2 -0
- package/dist/types/numberkeyboard/numberkeyboard.taro.d.ts +20 -0
- package/dist/types/nutui.react.d.ts +95 -1
- package/dist/types/overlay/index.taro.d.ts +2 -0
- package/dist/types/overlay/overlay.taro.d.ts +12 -0
- package/dist/types/pagination/index.taro.d.ts +2 -0
- package/dist/types/pagination/pagination.taro.d.ts +19 -0
- package/dist/types/picker/doc.en.d.ts +142 -0
- package/dist/types/picker/index.taro.d.ts +2 -0
- package/dist/types/picker/picker.d.ts +3 -2
- package/dist/types/picker/picker.taro.d.ts +24 -0
- package/dist/types/picker/pickerSlot.d.ts +1 -0
- package/dist/types/popover/__tests__/popover.spec.d.ts +1 -0
- package/dist/types/popover/index.taro.d.ts +2 -0
- package/dist/types/popover/popover.d.ts +14 -7
- package/dist/types/popover/popover.taro.d.ts +21 -0
- package/dist/types/popup/index.taro.d.ts +2 -0
- package/dist/types/popup/popup.d.ts +1 -1
- package/dist/types/popup/popup.taro.d.ts +25 -0
- package/dist/types/price/index.taro.d.ts +2 -0
- package/dist/types/price/price.taro.d.ts +11 -0
- package/dist/types/progress/index.taro.d.ts +2 -0
- package/dist/types/progress/progress.taro.d.ts +26 -0
- package/dist/types/radio/index.taro.d.ts +2 -0
- package/dist/types/radio/radio.taro.d.ts +21 -0
- package/dist/types/radiogroup/index.taro.d.ts +2 -0
- package/dist/types/range/index.taro.d.ts +2 -0
- package/dist/types/range/range.taro.d.ts +25 -0
- package/dist/types/rate/index.taro.d.ts +2 -0
- package/dist/types/rate/rate.taro.d.ts +17 -0
- package/dist/types/row/index.taro.d.ts +2 -0
- package/dist/types/row/row.taro.d.ts +12 -0
- package/dist/types/searchbar/index.taro.d.ts +2 -0
- package/dist/types/searchbar/searchbar.taro.d.ts +60 -0
- package/dist/types/shortpassword/index.taro.d.ts +2 -0
- package/dist/types/shortpassword/shortpassword.taro.d.ts +21 -0
- package/dist/types/sidenavbar/index.taro.d.ts +2 -0
- package/dist/types/sidenavbar/sidenavbar.d.ts +14 -2
- package/dist/types/sidenavbar/sidenavbar.taro.d.ts +15 -0
- package/dist/types/sidenavbaritem/index.taro.d.ts +2 -0
- package/dist/types/sidenavbaritem/sidenavbaritem.d.ts +10 -2
- package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +11 -0
- package/dist/types/signature/index.taro.d.ts +2 -0
- package/dist/types/signature/signature.taro.d.ts +11 -0
- package/dist/types/skeleton/index.taro.d.ts +2 -0
- package/dist/types/skeleton/skeleton.taro.d.ts +19 -0
- package/dist/types/step/index.taro.d.ts +2 -0
- package/dist/types/steps/index.taro.d.ts +2 -0
- package/dist/types/steps/steps.taro.d.ts +10 -0
- package/dist/types/subsidenavbar/index.taro.d.ts +2 -0
- package/dist/types/subsidenavbar/subsidenavbar.d.ts +13 -3
- package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +13 -0
- package/dist/types/swipe/__tests__/swipe.spec.d.ts +1 -0
- package/dist/types/swipe/demo.d.ts +3 -0
- package/dist/types/swipe/index.d.ts +2 -0
- package/dist/types/swipe/index.taro.d.ts +2 -0
- package/dist/types/swipe/swipe.d.ts +41 -0
- package/dist/types/swipe/swipe.taro.d.ts +41 -0
- package/dist/types/swiper/index.taro.d.ts +2 -0
- package/dist/types/swiper/swiper.d.ts +1 -2
- package/dist/types/swiper/swiper.taro.d.ts +27 -0
- package/dist/types/swiperitem/index.taro.d.ts +2 -0
- package/dist/types/swiperitem/swiperitem.d.ts +1 -2
- package/dist/types/switch/index.taro.d.ts +2 -0
- package/dist/types/switch/switch.taro.d.ts +14 -0
- package/dist/types/tabbar/index.taro.d.ts +2 -0
- package/dist/types/tabbar/tabbar.taro.d.ts +14 -0
- package/dist/types/tabbaritem/index.taro.d.ts +2 -0
- package/dist/types/tabbaritem/tabbaritem.taro.d.ts +17 -0
- package/dist/types/table/index.taro.d.ts +2 -0
- package/dist/types/table/table.d.ts +2 -1
- package/dist/types/table/table.taro.d.ts +4 -0
- package/dist/types/table/types.d.ts +1 -1
- package/dist/types/tabpane/index.taro.d.ts +2 -0
- package/dist/types/tabpane/tabpane.taro.d.ts +10 -0
- package/dist/types/tabs/index.taro.d.ts +2 -0
- package/dist/types/tabs/tabs.taro.d.ts +30 -0
- package/dist/types/tag/index.taro.d.ts +2 -0
- package/dist/types/tag/tag.taro.d.ts +16 -0
- package/dist/types/textarea/__test__/textarea.spec.d.ts +1 -0
- package/dist/types/textarea/index.taro.d.ts +2 -0
- package/dist/types/textarea/textarea.taro.d.ts +18 -0
- package/dist/types/timedetail/index.taro.d.ts +2 -0
- package/dist/types/timedetail/timedetail.taro.d.ts +13 -0
- package/dist/types/timepannel/index.taro.d.ts +2 -0
- package/dist/types/timepannel/timepannel.taro.d.ts +8 -0
- package/dist/types/timeselect/index.taro.d.ts +2 -0
- package/dist/types/timeselect/timeselect.taro.d.ts +21 -0
- package/dist/types/toast/Notification.d.ts +6 -4
- package/dist/types/toast/__test__/toast.spec.d.ts +1 -0
- package/dist/types/toast/index.taro.d.ts +2 -0
- package/dist/types/toast/toast.d.ts +21 -0
- package/dist/types/toast/toast.taro.d.ts +29 -0
- package/dist/types/uploader/index.taro.d.ts +2 -0
- package/dist/types/uploader/uploader.d.ts +2 -2
- package/dist/types/uploader/uploader.taro.d.ts +68 -0
- package/dist/types/video/index.taro.d.ts +2 -0
- package/dist/types/virtuallist/index.taro.d.ts +2 -0
- package/dist/types/virtuallist/type.d.ts +1 -1
- package/dist/types/virtuallist/virtuallist.d.ts +2 -1
- package/dist/types/virtuallist/virtuallist.taro.d.ts +4 -0
- package/package.json +18 -7
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@import '../../styles/font/iconfont.css';
|
|
2
|
+
@import '../../styles/animation/icon.scss';
|
|
3
|
+
|
|
2
4
|
.nut-icon {
|
|
3
5
|
display: inline-block;
|
|
4
6
|
position: relative;
|
|
@@ -19,22 +21,112 @@
|
|
|
19
21
|
height: $icon-height;
|
|
20
22
|
object-fit: contain;
|
|
21
23
|
}
|
|
22
|
-
&-loading
|
|
24
|
+
&-loading,
|
|
25
|
+
&-loading1 {
|
|
23
26
|
display: inline-block;
|
|
24
|
-
animation:
|
|
27
|
+
animation: rotation 1s infinite linear;
|
|
25
28
|
}
|
|
26
|
-
}
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
--animate-duration: 1s;
|
|
31
|
+
--animate-delay: 0s;
|
|
32
|
+
|
|
33
|
+
&-am-infinite {
|
|
34
|
+
-webkit-animation-iteration-count: infinite;
|
|
35
|
+
-webkit-animation-direction: alternate;
|
|
36
|
+
animation-iteration-count: infinite;
|
|
37
|
+
animation-direction: alternate;
|
|
32
38
|
}
|
|
33
|
-
|
|
39
|
+
&-am-jump {
|
|
40
|
+
-webkit-animation-name: nutJumpOne;
|
|
41
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
42
|
+
-webkit-animation-timing-function: ease;
|
|
43
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
44
|
+
|
|
45
|
+
animation-name: nutJumpOne;
|
|
46
|
+
animation-duration: var(--animate-duration);
|
|
47
|
+
animation-timing-function: ease;
|
|
48
|
+
animation-delay: var(--animate-delay);
|
|
49
|
+
|
|
50
|
+
&.nut-icon-am-infinite {
|
|
51
|
+
-webkit-animation-name: nutJump;
|
|
52
|
+
animation-name: nutJump;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-am-rotate {
|
|
57
|
+
-webkit-animation-name: rotation;
|
|
58
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
59
|
+
-webkit-animation-timing-function: linear;
|
|
60
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
61
|
+
|
|
62
|
+
animation-name: rotation;
|
|
63
|
+
animation-duration: var(--animate-duration);
|
|
64
|
+
animation-timing-function: linear;
|
|
65
|
+
animation-delay: var(--animate-delay);
|
|
66
|
+
|
|
67
|
+
&.nut-icon-am-infinite {
|
|
68
|
+
-webkit-animation-direction: normal;
|
|
69
|
+
animation-direction: normal;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&-am-blink {
|
|
73
|
+
-webkit-animation-name: nutBlink;
|
|
74
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
75
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
76
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
77
|
+
|
|
78
|
+
animation-name: nutBlink;
|
|
79
|
+
animation-duration: var(--animate-duration);
|
|
80
|
+
animation-timing-function: linear;
|
|
81
|
+
animation-delay: var(--animate-delay);
|
|
82
|
+
}
|
|
83
|
+
&-am-breathe {
|
|
84
|
+
-webkit-animation-name: nutBreathe;
|
|
85
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
86
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
87
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
88
|
+
|
|
89
|
+
animation-name: nutBreathe;
|
|
90
|
+
animation-duration: var(--animate-duration);
|
|
91
|
+
animation-timing-function: ease-in-out;
|
|
92
|
+
animation-delay: var(--animate-delay);
|
|
93
|
+
}
|
|
94
|
+
&-am-flash {
|
|
95
|
+
-webkit-animation-name: nutFlash;
|
|
96
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
97
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
98
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
99
|
+
|
|
100
|
+
animation-name: nutFlash;
|
|
101
|
+
animation-duration: var(--animate-duration);
|
|
102
|
+
animation-timing-function: ease-in-out;
|
|
103
|
+
animation-delay: var(--animate-delay);
|
|
104
|
+
}
|
|
105
|
+
&-am-bounce {
|
|
106
|
+
-webkit-animation-name: nutBounce;
|
|
107
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
108
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
109
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
110
|
+
animation-name: nutBounce;
|
|
111
|
+
animation-duration: var(--animate-duration);
|
|
112
|
+
animation-timing-function: ease-in-out;
|
|
113
|
+
animation-delay: var(--animate-delay);
|
|
114
|
+
|
|
115
|
+
&.nut-icon-am-infinite {
|
|
116
|
+
-webkit-animation-direction: normal;
|
|
117
|
+
animation-direction: normal;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&-am-shake {
|
|
122
|
+
-webkit-animation-name: nutShake;
|
|
123
|
+
-webkit-animation-duration: var(--animate-duration);
|
|
124
|
+
-webkit-animation-timing-function: ease-in-out;
|
|
125
|
+
-webkit-animation-delay: var(--animate-delay);
|
|
34
126
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
|
|
127
|
+
animation-name: nutShake;
|
|
128
|
+
animation-duration: var(--animate-duration);
|
|
129
|
+
animation-timing-function: ease-in-out;
|
|
130
|
+
animation-delay: var(--animate-delay);
|
|
39
131
|
}
|
|
40
132
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.nut-imagepreview {
|
|
2
|
+
width: 100%;
|
|
3
|
+
|
|
4
|
+
&-swiper {
|
|
5
|
+
height: 327px;
|
|
6
|
+
width: 100vw;
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&-img {
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
object-fit: contain;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-index {
|
|
17
|
+
position: fixed;
|
|
18
|
+
z-index: 2002;
|
|
19
|
+
top: 50px;
|
|
20
|
+
text-align: center;
|
|
21
|
+
left: 0;
|
|
22
|
+
right: 0;
|
|
23
|
+
background: transparent;
|
|
24
|
+
color: #fff;
|
|
25
|
+
|
|
26
|
+
.arrow {
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 15px;
|
|
29
|
+
transform: rotateZ(180deg);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.popup-bg {
|
|
34
|
+
background: rgba(0, 0, 0, 0.9);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.popup-box {
|
|
38
|
+
height: 100%;
|
|
39
|
+
overflow: visible;
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.custom-pop {
|
|
44
|
+
height: 100%;
|
|
45
|
+
background: transparent !important;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
}
|
|
49
|
+
.nut-imagepreview-swiper .nut-swiper-item {
|
|
50
|
+
height: 327px;
|
|
51
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@import '../../styles/mixins/text-ellipsis.scss';
|
|
2
|
+
|
|
3
|
+
.nut-theme-dark {
|
|
4
|
+
.nut-menu {
|
|
5
|
+
.nut-menu__bar {
|
|
6
|
+
background-color: $dark-background;
|
|
7
|
+
|
|
8
|
+
.nut-menu__item {
|
|
9
|
+
color: $dark-color;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.nut-menu {
|
|
16
|
+
&.scroll-fixed {
|
|
17
|
+
position: fixed;
|
|
18
|
+
top: $menu-scroll-fixed-top;
|
|
19
|
+
z-index: $menu-scroll-fixed-z-index;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nut-menu__bar {
|
|
24
|
+
position: relative;
|
|
25
|
+
display: flex;
|
|
26
|
+
line-height: $menu-bar-line-height;
|
|
27
|
+
background-color: $white;
|
|
28
|
+
box-shadow: $menu-bar-box-shadow;
|
|
29
|
+
|
|
30
|
+
&.opened {
|
|
31
|
+
z-index: $menu-bar-opened-z-index;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.nut-menu__item {
|
|
35
|
+
flex: 1;
|
|
36
|
+
text-align: center;
|
|
37
|
+
font-size: $menu-item-font-size;
|
|
38
|
+
color: $menu-item-text-color;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
|
|
41
|
+
&.active {
|
|
42
|
+
color: $menu-item-active-text-color;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.disabled {
|
|
46
|
+
color: $menu-item-disabled-color;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.nut-menu__title-icon {
|
|
50
|
+
transition: all 0.2s linear;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.nut-menu__title {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
max-width: 100%;
|
|
58
|
+
|
|
59
|
+
.nut-menu__title-text {
|
|
60
|
+
@include text-ellipsis;
|
|
61
|
+
display: block;
|
|
62
|
+
padding-left: $menu-title-text-padding-left;
|
|
63
|
+
padding-right: $menu-title-text-padding-right;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.active .nut-menu__title-icon {
|
|
67
|
+
transform: rotate(180deg);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
|
|
2
|
+
.nut-theme-dark {
|
|
3
|
+
.nut-menu-item__content {
|
|
4
|
+
.nut-menu-item__option {
|
|
5
|
+
color: $dark-color;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.nut-menu-item__content {
|
|
11
|
+
padding: $menu-item-content-padding;
|
|
12
|
+
max-height: $menu-item-content-max-height;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
background: #fff;
|
|
17
|
+
|
|
18
|
+
&_fixed {
|
|
19
|
+
width: 100%;
|
|
20
|
+
opacity: 0;
|
|
21
|
+
position: fixed;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.nut-menu-item__option {
|
|
25
|
+
color: $title-color;
|
|
26
|
+
font-size: $font-size-2;
|
|
27
|
+
padding-top: $menu-item-option-padding-top;
|
|
28
|
+
padding-bottom: $menu-item-option-padding-bottom;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
|
|
32
|
+
&.active {
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
color: $menu-item-active-text-color;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
i {
|
|
38
|
+
margin-right: $menu-item-option-i-margin-right;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.nut-menu-item__wrap {
|
|
44
|
+
position: fixed;
|
|
45
|
+
width: 100%;
|
|
46
|
+
z-index: 2052;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.overlay-fade-enter-active.nut-menu__overlay {
|
|
51
|
+
top: auto;
|
|
52
|
+
z-index: 2052;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.nut-menu__pop.nut-popup {
|
|
56
|
+
transition: all 0s ease 0s;
|
|
57
|
+
transform: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.placeholder-element {
|
|
61
|
+
position: fixed;
|
|
62
|
+
top: -$menu-bar-line-height;
|
|
63
|
+
left: 0;
|
|
64
|
+
right: 0;
|
|
65
|
+
z-index: $menu-bar-opened-z-index;
|
|
66
|
+
background-color: transparent;
|
|
67
|
+
|
|
68
|
+
&.up {
|
|
69
|
+
bottom: -$menu-bar-line-height;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.menu-item-enter {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.menu-item-enter-done {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
transition: all 100ms;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.menu-item-exit {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
transition: all 100ms;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.menu-item-exit-done {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
transition: all 100ms;
|
|
90
|
+
}
|
|
@@ -1,15 +1,28 @@
|
|
|
1
|
+
.nut-theme-dark {
|
|
2
|
+
.nut-noticebar-page {
|
|
3
|
+
background: $dark-background2;
|
|
4
|
+
color: $dark-color;
|
|
5
|
+
}
|
|
1
6
|
|
|
7
|
+
.nut-noticebar-vertical {
|
|
8
|
+
.horseLamp_list_item {
|
|
9
|
+
color: $dark-color;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
2
13
|
.nut-noticebar {
|
|
3
14
|
.nut-noticebar-page {
|
|
4
|
-
width: 100%;
|
|
5
15
|
display: flex;
|
|
6
|
-
|
|
7
|
-
|
|
16
|
+
padding: $noticebar-box-padding;
|
|
17
|
+
height: $noticebar-height;
|
|
18
|
+
font-size: $noticebar-font-size;
|
|
8
19
|
position: relative;
|
|
9
20
|
align-items: center;
|
|
21
|
+
background: $noticebar-background;
|
|
22
|
+
color: $noticebar-color;
|
|
10
23
|
&.wrapable {
|
|
11
24
|
height: auto;
|
|
12
|
-
padding:
|
|
25
|
+
padding: $noticebar-wrapable-padding;
|
|
13
26
|
.wrap {
|
|
14
27
|
height: auto;
|
|
15
28
|
.content {
|
|
@@ -25,22 +38,23 @@
|
|
|
25
38
|
padding-right: 40px;
|
|
26
39
|
}
|
|
27
40
|
.left-icon {
|
|
28
|
-
height: $
|
|
29
|
-
min-width: $
|
|
30
|
-
margin:
|
|
41
|
+
height: $noticebar-left-icon-width;
|
|
42
|
+
min-width: $noticebar-left-icon-width;
|
|
43
|
+
margin: $noticebar-lefticon-margin;
|
|
31
44
|
background-size: 100% 100%;
|
|
32
45
|
}
|
|
33
46
|
.right-icon {
|
|
34
47
|
display: flex;
|
|
35
48
|
align-items: center;
|
|
36
49
|
justify-content: center;
|
|
37
|
-
width: $
|
|
38
|
-
margin:
|
|
50
|
+
width: $noticebar-right-icon-width;
|
|
51
|
+
margin: $noticebar-righticon-margin;
|
|
39
52
|
}
|
|
40
53
|
.wrap {
|
|
54
|
+
display: flex;
|
|
41
55
|
flex: 1;
|
|
42
|
-
height: $
|
|
43
|
-
line-height: $
|
|
56
|
+
height: $noticebar-line-height;
|
|
57
|
+
line-height: $noticebar-line-height;
|
|
44
58
|
overflow: hidden;
|
|
45
59
|
position: relative;
|
|
46
60
|
}
|
|
@@ -80,7 +94,7 @@
|
|
|
80
94
|
// 垂直方向的滚动
|
|
81
95
|
@keyframes nut-notice-bar-play-vertical {
|
|
82
96
|
to {
|
|
83
|
-
transform: translateY($
|
|
97
|
+
transform: translateY($noticebar-height);
|
|
84
98
|
}
|
|
85
99
|
}
|
|
86
100
|
|
|
@@ -89,9 +103,10 @@
|
|
|
89
103
|
position: relative;
|
|
90
104
|
display: flex;
|
|
91
105
|
justify-content: space-between;
|
|
92
|
-
height: $
|
|
93
|
-
font-size: $
|
|
106
|
+
height: $noticebar-height;
|
|
107
|
+
font-size: $noticebar-font-size;
|
|
94
108
|
overflow: hidden;
|
|
109
|
+
padding: $noticebar-box-padding;
|
|
95
110
|
|
|
96
111
|
.horseLamp_list {
|
|
97
112
|
margin: 0;
|
|
@@ -101,12 +116,13 @@
|
|
|
101
116
|
.horseLamp_list_item {
|
|
102
117
|
display: flex;
|
|
103
118
|
align-items: center;
|
|
104
|
-
height: $
|
|
119
|
+
height: $noticebar-height;
|
|
105
120
|
}
|
|
106
121
|
}
|
|
107
122
|
|
|
108
123
|
.go {
|
|
109
124
|
align-self: center;
|
|
125
|
+
display: flex;
|
|
110
126
|
}
|
|
111
127
|
}
|
|
112
128
|
}
|