@nutui/nutui-react-taro 1.3.0 → 1.3.1-beta.2
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/esm/Address.js +4 -4
- package/dist/esm/Audio/style/index.js +4 -0
- package/dist/esm/Audio.js +18 -0
- package/dist/esm/AvatarGroup.js +4 -4
- package/dist/esm/Calendar/style/index.js +1 -2
- package/dist/esm/Calendar.js +6 -5
- package/dist/esm/CalendarItem.js +5 -5
- package/dist/esm/Cascader/style/index.js +2 -0
- package/dist/esm/Cascader.js +14 -0
- package/dist/esm/ConfigProvider.js +3 -3
- package/dist/esm/CountDown.js +4 -4
- package/dist/esm/DatePicker.js +4 -4
- package/dist/esm/Dialog.js +4 -4
- package/dist/esm/Empty.js +4 -4
- package/dist/esm/FixedNav.js +4 -4
- package/dist/esm/Grid/style/index.js +2 -0
- package/dist/esm/Grid.js +7 -0
- package/dist/esm/GridItem/style/index.js +2 -0
- package/dist/esm/GridItem.js +8 -0
- package/dist/esm/ImagePreview/style/index.js +2 -0
- package/dist/esm/ImagePreview.js +15 -0
- package/dist/esm/Infiniteloading.js +4 -4
- package/dist/esm/Input.js +4 -4
- package/dist/esm/Menu/style/index.js +3 -0
- package/dist/esm/Menu.js +7 -0
- package/dist/esm/MenuItem/style/index.js +3 -0
- package/dist/esm/MenuItem.js +11 -0
- package/dist/esm/NoticeBar.js +3 -2
- package/dist/esm/{Notification-dccc7625.js → Notification-422905bd.js} +2 -1
- package/dist/esm/Notify.js +3 -2
- package/dist/esm/NumberKeyboard.js +4 -4
- package/dist/esm/Pagination.js +4 -4
- package/dist/esm/Picker.js +4 -4
- package/dist/esm/Popover.js +3 -2
- package/dist/esm/Range.js +7 -5
- package/dist/esm/SearchBar.js +4 -4
- package/dist/esm/ShortPassword.js +4 -4
- package/dist/esm/SideNavBar.js +4 -4
- package/dist/esm/Signature.js +4 -4
- package/dist/esm/Swipe/style/index.js +2 -0
- package/dist/esm/Swipe.js +7 -0
- package/dist/esm/Swiper.js +3 -2
- package/dist/esm/Table.js +4 -4
- package/dist/esm/TextArea.js +4 -4
- package/dist/esm/TimeDetail.js +4 -4
- package/dist/esm/TimePannel.js +4 -4
- package/dist/esm/TimeSelect.js +4 -4
- package/dist/esm/Toast.js +4 -3
- package/dist/esm/Uploader.js +4 -4
- package/dist/esm/VirtualList.js +4 -4
- package/dist/esm/{address.taro-a1092e30.js → address.taro-4765a826.js} +17 -6
- package/dist/esm/audio.taro-cd6cc93b.js +292 -0
- package/dist/esm/{avatargroup-65173caa.js → avatargroup-1ca79066.js} +1 -1
- package/dist/esm/calendar.taro-1abb1925.js +89 -0
- package/dist/esm/{calendaritem.taro-fe84d94b.js → calendaritem.taro-3c06a809.js} +130 -5
- package/dist/esm/cascader.taro-31dbc60e.js +786 -0
- package/dist/esm/{configprovider-18657611.js → configprovider-9c393a29.js} +1 -1
- package/dist/esm/{configprovider.taro-98343012.js → configprovider.taro-1ff7f150.js} +2 -2
- package/dist/esm/{countdown.taro-cd6a1bd4.js → countdown.taro-b00d0d46.js} +1 -1
- package/dist/esm/{datepicker.taro-c1249537.js → datepicker.taro-e385849d.js} +1 -1
- package/dist/esm/{dialog.taro-5b850861.js → dialog.taro-c80b7b5f.js} +12 -18
- package/dist/esm/{empty.taro-6f86eda5.js → empty.taro-20b8adac.js} +1 -1
- package/dist/esm/{fixednav.taro-ca94fd6a.js → fixednav.taro-75e35339.js} +1 -1
- package/dist/esm/grid.taro-7fb43d02.js +90 -0
- package/dist/esm/griditem.taro-8020b409.js +98 -0
- package/dist/esm/imagepreview.taro-a0ddd8a2.js +813 -0
- package/dist/esm/{infiniteloading.taro-d2c0ca14.js → infiniteloading.taro-0a86819e.js} +1 -1
- package/dist/esm/{input.taro-2e31ebbb.js → input.taro-1d23861d.js} +1 -1
- package/dist/esm/menu.taro-03e3b011.js +153 -0
- package/dist/esm/menuitem.taro-56bf3205.js +195 -0
- package/dist/esm/{noticebar.taro-ae593896.js → noticebar.taro-1890c693.js} +3 -2
- package/dist/esm/{notify.taro-95b5f97e.js → notify.taro-22b8f4cd.js} +2 -1
- package/dist/esm/{numberkeyboard.taro-71b2e0eb.js → numberkeyboard.taro-5d685c76.js} +1 -1
- package/dist/esm/nutui-react.es.js +45 -36
- package/dist/esm/{pagination.taro-abc4a71e.js → pagination.taro-10449c4a.js} +1 -1
- package/dist/esm/{picker.taro-0eb8bfa3.js → picker.taro-216cc3cb.js} +1 -1
- package/dist/esm/{popover.taro-4c102df6.js → popover.taro-9b3da0fa.js} +17 -71
- package/dist/esm/{range.taro-034fcf7a.js → range.taro-fe08c5f4.js} +118 -110
- package/dist/esm/render-4a3856cb.js +32 -0
- package/dist/esm/{searchbar.taro-4c6091cb.js → searchbar.taro-450d2f88.js} +1 -1
- package/dist/esm/{shortpassword.taro-ce46b9cd.js → shortpassword.taro-08a05360.js} +23 -18
- package/dist/esm/{sidenavbar.taro-36f1e118.js → sidenavbar.taro-dd471476.js} +1 -1
- package/dist/esm/{signature.taro-45aedfa9.js → signature.taro-7cb77bab.js} +1 -1
- package/dist/esm/swipe.taro-dfb9a049.js +264 -0
- package/dist/esm/{swiper.taro-59bf2777.js → swiper.taro-7a2ef124.js} +2 -1
- package/dist/esm/{table.taro-49009dfc.js → table.taro-305e0317.js} +1 -1
- package/dist/esm/{textarea.taro-0c40e966.js → textarea.taro-700b04c2.js} +1 -1
- package/dist/esm/{timedetail.taro-0e31b4a5.js → timedetail.taro-7cc00243.js} +1 -1
- package/dist/esm/{timepannel.taro-2d54b3db.js → timepannel.taro-e24537e4.js} +1 -1
- package/dist/esm/{timeselect.taro-c35d3490.js → timeselect.taro-210fd548.js} +1 -1
- package/dist/esm/{toast.taro-48539c09.js → toast.taro-bb181833.js} +1 -1
- package/dist/esm/{uploader.taro-ece83a00.js → uploader.taro-f7528535.js} +1 -1
- package/dist/esm/useClientRect-8b7cc406.js +74 -0
- package/dist/esm/{virtuallist.taro-2ff1a5ad.js → virtuallist.taro-ce9619f9.js} +1 -1
- package/dist/esm/{zh-CN-f5124686.js → zh-CN-91090ae2.js} +16 -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 +5595 -4062
- package/dist/nutui.react.umd.js +20243 -30
- 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/grid/grid.scss +10 -0
- package/dist/packages/griditem/griditem.scss +103 -0
- 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/popup/popup.scss +1 -1
- 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/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/font/iconfont.js +20 -18
- package/dist/styles/themes/default.scss +8 -0
- package/dist/styles/variables.scss +59 -8
- package/dist/types/audio/audio.taro.d.ts +18 -0
- package/dist/types/audio/index.taro.d.ts +2 -0
- package/dist/types/cascader/cascader.taro.d.ts +25 -0
- package/dist/types/cascader/cascaderItem.taro.d.ts +25 -0
- package/dist/types/cascader/index.taro.d.ts +2 -0
- package/dist/types/checkbox/checkbox.taro.d.ts +2 -2
- package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
- package/dist/types/dialog/dialog.taro.d.ts +2 -1
- package/dist/types/grid/grid.taro.d.ts +16 -0
- package/dist/types/grid/index.taro.d.ts +2 -0
- package/dist/types/griditem/griditem.taro.d.ts +20 -0
- package/dist/types/griditem/index.taro.d.ts +2 -0
- package/dist/types/icon/icon.taro.d.ts +1 -2
- package/dist/types/imagepreview/imagepreview.taro.d.ts +26 -0
- package/dist/types/imagepreview/index.taro.d.ts +2 -0
- package/dist/types/menu/index.taro.d.ts +2 -0
- package/dist/types/menu/menu.taro.d.ts +12 -0
- package/dist/types/menuitem/index.taro.d.ts +2 -0
- package/dist/types/menuitem/menuitem.taro.d.ts +23 -0
- package/dist/types/notify/notify.taro.d.ts +13 -0
- package/dist/types/nutui.react.d.ts +95 -1
- package/dist/types/picker/picker.taro.d.ts +2 -2
- package/dist/types/popup/popup.taro.d.ts +1 -1
- package/dist/types/shortpassword/shortpassword.taro.d.ts +3 -3
- package/dist/types/sidenavbar/sidenavbar.taro.d.ts +14 -2
- package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +10 -2
- package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +13 -3
- package/dist/types/swipe/index.taro.d.ts +2 -0
- package/dist/types/swipe/swipe.taro.d.ts +41 -0
- package/dist/types/table/table.taro.d.ts +2 -1
- package/dist/types/toast/toast.taro.d.ts +18 -0
- package/dist/types/virtuallist/virtuallist.taro.d.ts +2 -1
- package/package.json +4 -4
- package/dist/esm/calendar.taro-4b2103c1.js +0 -621
- package/dist/esm/raf-3fbb5f92.js +0 -126
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.nut-theme-dark {
|
|
2
|
+
.nut-audio__icon {
|
|
3
|
+
.nut-audio__icon-box {
|
|
4
|
+
background: $dark-color;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
.nut-audio {
|
|
9
|
+
&__icon {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
&-box {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
width: 30px;
|
|
17
|
+
height: 30px;
|
|
18
|
+
background: #fff;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
box-shadow: 0 0 8px rgba($color: $text-color, $alpha: 0.5);
|
|
21
|
+
|
|
22
|
+
.nut-icon-am-rotate {
|
|
23
|
+
transform: rotate((360));
|
|
24
|
+
animation-timing-function: ease-in-out;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.nut-audio__icon-stop {
|
|
29
|
+
position: relative;
|
|
30
|
+
&::after {
|
|
31
|
+
position: absolute;
|
|
32
|
+
left: 50%;
|
|
33
|
+
top: 50%;
|
|
34
|
+
transform: translateX(-50%);
|
|
35
|
+
content: '';
|
|
36
|
+
height: 2px;
|
|
37
|
+
width: 30px;
|
|
38
|
+
background: $disable-color;
|
|
39
|
+
transform: rotate(45deg);
|
|
40
|
+
transform-origin: 8px -18px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__progress {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
width: 100%;
|
|
49
|
+
margin: 0px auto;
|
|
50
|
+
padding: 10px 0;
|
|
51
|
+
|
|
52
|
+
&-bar-wrapper {
|
|
53
|
+
flex: 1;
|
|
54
|
+
margin: 0 10px;
|
|
55
|
+
}
|
|
56
|
+
.time {
|
|
57
|
+
min-width: 50px;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
text-align: center;
|
|
60
|
+
}
|
|
61
|
+
.nut-range-button {
|
|
62
|
+
width: 8px;
|
|
63
|
+
height: 8px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
.custom-button-group {
|
|
67
|
+
.nut-button--primary {
|
|
68
|
+
margin: 0 5px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
.custom-button-group-disable {
|
|
72
|
+
.nut-button--primary {
|
|
73
|
+
margin: 0 5px;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.disable {
|
|
78
|
+
color: blue;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -2,18 +2,14 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex: 1;
|
|
5
|
-
height: 728px;
|
|
6
|
-
padding-top: 132px;
|
|
7
|
-
padding-bottom: 78px;
|
|
8
5
|
color: $calendar-base-color;
|
|
9
6
|
font-size: $calendar-base-font;
|
|
10
7
|
background-color: $white;
|
|
11
8
|
overflow: hidden;
|
|
9
|
+
height: 100%;
|
|
10
|
+
flex-direction: column;
|
|
12
11
|
|
|
13
12
|
&.nut-calendar-tile {
|
|
14
|
-
padding-top: 46px;
|
|
15
|
-
padding-bottom: 0;
|
|
16
|
-
|
|
17
13
|
.nut-calendar-header {
|
|
18
14
|
.calendar-title {
|
|
19
15
|
font-size: $calendar-base-font;
|
|
@@ -24,6 +20,9 @@
|
|
|
24
20
|
.nut-calendar-taro {
|
|
25
21
|
height: 60vh;
|
|
26
22
|
}
|
|
23
|
+
.popup-box {
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
27
26
|
.nut-calendar-content {
|
|
28
27
|
overflow-y: auto;
|
|
29
28
|
}
|
|
@@ -33,41 +32,39 @@
|
|
|
33
32
|
|
|
34
33
|
// 头部导航
|
|
35
34
|
.nut-calendar-header {
|
|
36
|
-
position: absolute;
|
|
37
|
-
top: -1px;
|
|
38
|
-
left: 0;
|
|
39
|
-
right: 0;
|
|
40
35
|
display: flex;
|
|
41
36
|
flex-direction: column;
|
|
42
37
|
text-align: center;
|
|
43
38
|
padding-top: 1px;
|
|
44
39
|
background-color: $white;
|
|
45
|
-
z-index: 1;
|
|
46
40
|
|
|
47
41
|
.calendar-title {
|
|
48
|
-
padding-top: 22px;
|
|
49
42
|
font-size: $calendar-title-font;
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
font-weight: $calendar-title-font-weight;
|
|
44
|
+
line-height: 44px;
|
|
52
45
|
}
|
|
53
46
|
|
|
54
47
|
.calendar-curr-month {
|
|
55
|
-
padding:
|
|
48
|
+
padding: 7px 0;
|
|
56
49
|
line-height: 22px;
|
|
50
|
+
font-size: $calendar-sub-title-font;
|
|
51
|
+
}
|
|
52
|
+
.calendar-top-slot {
|
|
53
|
+
height: $calendar-top-slot-height;
|
|
57
54
|
}
|
|
58
55
|
|
|
59
56
|
.calendar-weeks {
|
|
60
57
|
display: flex;
|
|
61
58
|
align-items: center;
|
|
62
59
|
justify-content: space-around;
|
|
63
|
-
height:
|
|
60
|
+
height: 36px;
|
|
64
61
|
border-radius: 0px 0px 12px 12px;
|
|
65
62
|
box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
|
|
66
63
|
|
|
67
64
|
.calendar-week-item {
|
|
68
65
|
&:first-of-type,
|
|
69
66
|
&:last-of-type {
|
|
70
|
-
color: $calendar-
|
|
67
|
+
color: $calendar-day67-font-color;
|
|
71
68
|
}
|
|
72
69
|
}
|
|
73
70
|
}
|
|
@@ -76,13 +73,17 @@
|
|
|
76
73
|
// 月份
|
|
77
74
|
.nut-calendar-content {
|
|
78
75
|
flex: 1;
|
|
79
|
-
|
|
76
|
+
width: 100%;
|
|
77
|
+
display: block;
|
|
80
78
|
.calendar-months-panel {
|
|
81
79
|
position: relative;
|
|
82
80
|
width: 100%;
|
|
83
81
|
height: auto;
|
|
84
82
|
display: block;
|
|
85
|
-
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
.viewArea {
|
|
85
|
+
display: block;
|
|
86
|
+
}
|
|
86
87
|
.calendar-month {
|
|
87
88
|
display: flex;
|
|
88
89
|
flex-direction: column;
|
|
@@ -115,42 +116,62 @@
|
|
|
115
116
|
|
|
116
117
|
.calendar-month-con {
|
|
117
118
|
overflow: hidden;
|
|
118
|
-
|
|
119
119
|
.calendar-month-item {
|
|
120
120
|
.calendar-month-day:nth-child(7n + 0),
|
|
121
121
|
.calendar-month-day:nth-child(7n + 1) {
|
|
122
|
-
color: $calendar-
|
|
122
|
+
color: $calendar-day67-font-color;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.calendar-month-day {
|
|
127
127
|
float: left;
|
|
128
|
-
width:
|
|
129
|
-
height:
|
|
128
|
+
width: $calendar-day-width;
|
|
129
|
+
height: $calendar-day-height;
|
|
130
|
+
font-weight: $calendar-day-font-weight;
|
|
130
131
|
display: flex;
|
|
131
132
|
align-items: center;
|
|
132
133
|
justify-content: center;
|
|
133
134
|
flex-direction: column;
|
|
134
135
|
position: relative;
|
|
135
136
|
|
|
136
|
-
.curr-tips
|
|
137
|
+
.calendar-curr-tips {
|
|
138
|
+
position: absolute;
|
|
139
|
+
width: 100%;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.calendar-curr-tip-curr {
|
|
143
|
+
position: absolute;
|
|
144
|
+
bottom: 6px;
|
|
145
|
+
width: 100%;
|
|
146
|
+
font-size: 12px;
|
|
147
|
+
line-height: 14px;
|
|
148
|
+
}
|
|
137
149
|
.calendar-day-tip {
|
|
138
150
|
position: absolute;
|
|
139
|
-
|
|
151
|
+
bottom: 6px;
|
|
140
152
|
width: 100%;
|
|
141
|
-
font-size:
|
|
142
|
-
line-height:
|
|
153
|
+
font-size: 12px;
|
|
154
|
+
line-height: 14px;
|
|
143
155
|
color: $calendar-primary-color;
|
|
144
156
|
}
|
|
157
|
+
.calendar-curr-tips-top {
|
|
158
|
+
top: 6px;
|
|
159
|
+
}
|
|
160
|
+
.calendar-curr-tips-bottom {
|
|
161
|
+
bottom: 6px;
|
|
162
|
+
}
|
|
145
163
|
|
|
146
164
|
&-active {
|
|
147
165
|
background-color: $calendar-primary-color;
|
|
148
166
|
color: $white !important;
|
|
167
|
+
border-radius: $calendar-day-active-border-radius;
|
|
149
168
|
|
|
150
|
-
.curr-tips {
|
|
169
|
+
.calendar-curr-tips {
|
|
170
|
+
visibility: hidden;
|
|
171
|
+
}
|
|
172
|
+
.calendar-curr-tip-curr {
|
|
151
173
|
visibility: hidden;
|
|
152
174
|
}
|
|
153
|
-
|
|
154
175
|
.calendar-day-tip {
|
|
155
176
|
color: $white;
|
|
156
177
|
}
|
|
@@ -162,10 +183,11 @@
|
|
|
162
183
|
|
|
163
184
|
&-choose {
|
|
164
185
|
background-color: $calendar-choose-color;
|
|
186
|
+
color: $calendar-choose-font-color;
|
|
165
187
|
}
|
|
166
188
|
|
|
167
189
|
.calendar-day {
|
|
168
|
-
padding:
|
|
190
|
+
padding: 2px 0;
|
|
169
191
|
font-size: $calendar-day-font;
|
|
170
192
|
}
|
|
171
193
|
}
|
|
@@ -175,19 +197,15 @@
|
|
|
175
197
|
|
|
176
198
|
// 底部导航
|
|
177
199
|
.nut-calendar-footer {
|
|
178
|
-
position: absolute;
|
|
179
|
-
left: 0;
|
|
180
|
-
right: 0;
|
|
181
|
-
bottom: -1px;
|
|
182
200
|
display: flex;
|
|
183
|
-
height:
|
|
201
|
+
height: 62px;
|
|
184
202
|
width: 100%;
|
|
185
203
|
background-color: $white;
|
|
186
204
|
|
|
187
205
|
.calendar-confirm-btn {
|
|
188
206
|
height: 44px;
|
|
189
207
|
width: 100%;
|
|
190
|
-
margin:
|
|
208
|
+
margin: 10px 18px;
|
|
191
209
|
border-radius: 22px;
|
|
192
210
|
background: $button-primary-background-color;
|
|
193
211
|
color: $white;
|
|
@@ -196,3 +214,6 @@
|
|
|
196
214
|
}
|
|
197
215
|
}
|
|
198
216
|
}
|
|
217
|
+
.nutui-popup__close-icon {
|
|
218
|
+
top: 7px !important;
|
|
219
|
+
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
.nut-calendar {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex: 1;
|
|
5
|
-
height: 518px;
|
|
6
|
-
padding-top: 132px;
|
|
7
|
-
padding-bottom: 78px;
|
|
8
|
-
color: $calendar-base-color;
|
|
9
|
-
font-size: $calendar-base-font;
|
|
10
|
-
background-color: $white;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
|
|
13
|
-
&.nut-calendar-tile {
|
|
14
|
-
height: 100%;
|
|
15
|
-
padding-top: 46px;
|
|
16
|
-
padding-bottom: 0;
|
|
17
|
-
|
|
18
|
-
.nut-calendar-header {
|
|
19
|
-
.calendar-title {
|
|
20
|
-
font-size: $calendar-base-font;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.nut-calendar-nofooter {
|
|
26
|
-
padding-bottom: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// 头部导航
|
|
30
|
-
.nut-calendar-header {
|
|
31
|
-
position: absolute;
|
|
32
|
-
top: -1px;
|
|
33
|
-
left: 0;
|
|
34
|
-
right: 0;
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
text-align: center;
|
|
38
|
-
padding-top: 1px;
|
|
39
|
-
background-color: $white;
|
|
40
|
-
z-index: 1;
|
|
41
|
-
|
|
42
|
-
.calendar-title {
|
|
43
|
-
padding-top: 22px;
|
|
44
|
-
font-size: $calendar-title-font;
|
|
45
|
-
line-height: 25px;
|
|
46
|
-
border-radius: 12px 12px 0 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.calendar-curr-month {
|
|
50
|
-
padding: 10px 0 7px;
|
|
51
|
-
line-height: 22px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.calendar-weeks {
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
justify-content: space-around;
|
|
58
|
-
height: 46px;
|
|
59
|
-
box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
|
|
60
|
-
|
|
61
|
-
.calendar-week-item {
|
|
62
|
-
&:first-of-type,
|
|
63
|
-
&:last-of-type {
|
|
64
|
-
color: $calendar-primary-color;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// 月份
|
|
71
|
-
.nut-calendar-content {
|
|
72
|
-
flex: 1;
|
|
73
|
-
|
|
74
|
-
.calendar-months-panel {
|
|
75
|
-
position: relative;
|
|
76
|
-
width: 100%;
|
|
77
|
-
height: auto;
|
|
78
|
-
display: block;
|
|
79
|
-
|
|
80
|
-
.calendar-month {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
text-align: center;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
div:nth-of-type(2) {
|
|
87
|
-
.calendar-month-title {
|
|
88
|
-
padding-top: 0;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.calendar-loading-tip {
|
|
93
|
-
height: 50px;
|
|
94
|
-
line-height: 50px;
|
|
95
|
-
text-align: center;
|
|
96
|
-
position: absolute;
|
|
97
|
-
top: -50px;
|
|
98
|
-
left: 0;
|
|
99
|
-
right: 0;
|
|
100
|
-
font-size: $calendar-text-font;
|
|
101
|
-
color: $text-color;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.calendar-month-title {
|
|
105
|
-
height: 23px;
|
|
106
|
-
line-height: 23px;
|
|
107
|
-
margin: 8px 0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.calendar-month-con {
|
|
111
|
-
overflow: hidden;
|
|
112
|
-
|
|
113
|
-
.calendar-month-item {
|
|
114
|
-
.calendar-month-day:nth-child(7n + 0),
|
|
115
|
-
.calendar-month-day:nth-child(7n + 1) {
|
|
116
|
-
color: $calendar-primary-color;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.calendar-month-day {
|
|
121
|
-
float: left;
|
|
122
|
-
width: 14.28%;
|
|
123
|
-
height: 64px;
|
|
124
|
-
display: flex;
|
|
125
|
-
align-items: center;
|
|
126
|
-
justify-content: center;
|
|
127
|
-
flex-direction: column;
|
|
128
|
-
position: relative;
|
|
129
|
-
|
|
130
|
-
.calendar-day-tip {
|
|
131
|
-
position: absolute;
|
|
132
|
-
top: 10px;
|
|
133
|
-
width: 100%;
|
|
134
|
-
font-size: 16px;
|
|
135
|
-
line-height: 12px;
|
|
136
|
-
color: $calendar-primary-color;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
&-active {
|
|
140
|
-
background-color: $calendar-primary-color;
|
|
141
|
-
color: $white !important;
|
|
142
|
-
|
|
143
|
-
.calendar-curr-tips {
|
|
144
|
-
// visibility: hidden;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.calendar-day-tip {
|
|
148
|
-
color: $white;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&-disabled {
|
|
153
|
-
color: $calendar-disable-color !important;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
&-choose {
|
|
157
|
-
background-color: $calendar-choose-color;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.calendar-day {
|
|
161
|
-
padding: 4px 0;
|
|
162
|
-
font-size: $calendar-day-font;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// 底部导航
|
|
170
|
-
.nut-calendar-footer {
|
|
171
|
-
position: absolute;
|
|
172
|
-
left: 0;
|
|
173
|
-
right: 0;
|
|
174
|
-
bottom: -1px;
|
|
175
|
-
display: flex;
|
|
176
|
-
height: 78px;
|
|
177
|
-
width: 100%;
|
|
178
|
-
background-color: $white;
|
|
179
|
-
|
|
180
|
-
.calendar-confirm-btn {
|
|
181
|
-
height: 44px;
|
|
182
|
-
width: 100%;
|
|
183
|
-
margin: 14px 18px;
|
|
184
|
-
border-radius: 22px;
|
|
185
|
-
background: $button-primary-background-color;
|
|
186
|
-
color: $white;
|
|
187
|
-
text-align: center;
|
|
188
|
-
line-height: 44px;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.nut-cascader {
|
|
2
|
+
width: 100%;
|
|
3
|
+
font-size: $cascader-font-size;
|
|
4
|
+
line-height: $cascader-line-height;
|
|
5
|
+
&__title {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
padding: $cascader-title-padding;
|
|
10
|
+
text-align: center;
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
line-height: $cascader-title-line-height;
|
|
13
|
+
color: #1a1a1a;
|
|
14
|
+
font-size: $cascader-title-font-size;
|
|
15
|
+
}
|
|
16
|
+
.nut-tabs__titles {
|
|
17
|
+
padding: $cascader-tabs-item-padding;
|
|
18
|
+
background: #fff;
|
|
19
|
+
}
|
|
20
|
+
.nut-tabs__titles-item {
|
|
21
|
+
flex: initial;
|
|
22
|
+
min-width: auto;
|
|
23
|
+
width: auto;
|
|
24
|
+
padding: $cascader-tabs-item-padding;
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
}
|
|
27
|
+
.nut-tabpane {
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
&-pane {
|
|
31
|
+
display: block;
|
|
32
|
+
padding: 0;
|
|
33
|
+
margin: 0;
|
|
34
|
+
width: 100%;
|
|
35
|
+
padding-top: $cascader-pane-paddingTop;
|
|
36
|
+
height: $cascader-pane-height;
|
|
37
|
+
overflow-y: auto;
|
|
38
|
+
-webkit-overflow-scrolling: touch;
|
|
39
|
+
}
|
|
40
|
+
&-item {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
padding: $cascader-item-padding;
|
|
44
|
+
margin: 0;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
font-size: $cascader-item-font-size;
|
|
47
|
+
color: $cascader-item-color;
|
|
48
|
+
&.disabled {
|
|
49
|
+
opacity: 0.6;
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
&.active {
|
|
53
|
+
&:not(.disabled) {
|
|
54
|
+
color: $cascader-item-active-color;
|
|
55
|
+
}
|
|
56
|
+
.nut-cascader-item__icon-check {
|
|
57
|
+
visibility: visible;
|
|
58
|
+
color: $cascader-item-active-color;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
&-item__title {
|
|
63
|
+
flex: 1;
|
|
64
|
+
}
|
|
65
|
+
.nut-icon-checklist {
|
|
66
|
+
margin-left: $cascader-icon-checklist-marginLeft;
|
|
67
|
+
visibility: hidden;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
.nut-theme-dark {
|
|
2
|
+
.nut-grid-item {
|
|
3
|
+
&__content {
|
|
4
|
+
background: $dark-background;
|
|
5
|
+
color: $dark-color;
|
|
6
|
+
}
|
|
7
|
+
&__text {
|
|
8
|
+
color: $dark-color;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.nut-grid-item {
|
|
13
|
+
position: relative;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
|
|
16
|
+
$block: &;
|
|
17
|
+
|
|
18
|
+
&__text {
|
|
19
|
+
color: $grid-item-text-color;
|
|
20
|
+
font-size: $grid-item-text-font-size;
|
|
21
|
+
line-height: 1.5;
|
|
22
|
+
word-break: break-all;
|
|
23
|
+
margin: $grid-item-text-margin 0 0 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__content {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
height: 100%;
|
|
31
|
+
padding: $grid-item-content-padding;
|
|
32
|
+
background: $grid-item-content-bg-color;
|
|
33
|
+
border: 0 solid $grid-border-color;
|
|
34
|
+
|
|
35
|
+
&--border {
|
|
36
|
+
border-right-width: 1px;
|
|
37
|
+
border-bottom-width: 1px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&--surround {
|
|
41
|
+
border-top-width: 1px;
|
|
42
|
+
border-left-width: 1px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&--center {
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&--square {
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: 0;
|
|
53
|
+
right: 0;
|
|
54
|
+
left: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&--reverse {
|
|
58
|
+
flex-direction: column-reverse;
|
|
59
|
+
|
|
60
|
+
#{$block}__text {
|
|
61
|
+
margin: 0 0 $grid-item-text-margin;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&--horizontal {
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
|
|
68
|
+
#{$block}__text {
|
|
69
|
+
margin: 0 0 0 $grid-item-text-margin;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&--horizontal#{&}--reverse {
|
|
74
|
+
flex-direction: row-reverse;
|
|
75
|
+
#{$block}__text {
|
|
76
|
+
margin: 0 $grid-item-text-margin 0 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&--clickable {
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
|
|
83
|
+
&::before {
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 50%;
|
|
86
|
+
left: 50%;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
background-color: $black;
|
|
90
|
+
border: inherit;
|
|
91
|
+
border-color: $black;
|
|
92
|
+
border-radius: inherit;
|
|
93
|
+
transform: translate(-50%, -50%);
|
|
94
|
+
opacity: 0;
|
|
95
|
+
content: ' ';
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:active::before {
|
|
99
|
+
opacity: 0.1;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -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
|
+
}
|