@nutui/nutui-react 0.1.0-beta.1 → 0.1.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/README.md +50 -135
- package/dist/esm/ActionSheet/style/index.js +1 -0
- package/dist/esm/Address/style/index.js +1 -0
- package/dist/esm/AnimatingNumbers/style/index.js +1 -0
- package/dist/esm/Avatar/style/index.js +1 -0
- package/dist/esm/BackTop/style/index.js +1 -0
- package/dist/esm/BackTop.js +1 -3
- package/dist/esm/Badge/style/index.js +1 -0
- package/dist/esm/Barrage/style/index.js +1 -0
- package/dist/esm/Button/style/index.js +1 -0
- package/dist/esm/Button.js +110 -4
- package/dist/esm/Calendar/style/index.js +1 -0
- package/dist/esm/Calendar.js +86 -0
- package/dist/esm/CalendarItem/style/index.js +1 -0
- package/dist/esm/CalendarItem.js +554 -0
- package/dist/esm/Cell/style/index.js +1 -0
- package/dist/esm/Cell.js +1 -1
- package/dist/esm/CellGroup/style/index.js +1 -0
- package/dist/esm/CellGroup.js +33 -0
- package/dist/esm/Checkbox/style/index.js +1 -0
- package/dist/esm/Checkbox.js +1 -1
- package/dist/esm/CheckboxGroup/style/index.js +1 -0
- package/dist/esm/CircleProgress/style/index.js +1 -0
- package/dist/esm/Col/style/index.js +1 -0
- package/dist/esm/Col.js +60 -0
- package/dist/esm/Collapse/style/index.js +1 -0
- package/dist/esm/CollapseItem/style/index.js +1 -0
- package/dist/esm/CollapseItem.js +142 -0
- package/dist/esm/Dialog/style/index.js +1 -0
- package/dist/esm/Dialog.js +327 -0
- package/dist/esm/Divider/style/index.js +1 -0
- package/dist/esm/Drag/style/index.js +1 -0
- package/dist/esm/Drag.js +83 -140
- package/dist/esm/Elevator/style/index.js +1 -0
- package/dist/esm/Elevator.js +3 -6
- package/dist/esm/FixedNav/style/index.js +1 -0
- package/dist/esm/FixedNav.js +2 -2
- package/dist/esm/Icon/style/index.js +1 -0
- package/dist/esm/Icon.js +70 -4
- package/dist/esm/Infiniteloading/style/index.js +1 -0
- package/dist/esm/Input/style/index.js +1 -0
- package/dist/esm/Input.js +1 -1
- package/dist/esm/InputNumber/style/index.js +1 -0
- package/dist/esm/Layout/style/index.js +1 -0
- package/dist/esm/NavBar/style/index.js +1 -0
- package/dist/esm/NavBar.js +1 -1
- package/dist/esm/NoticeBar/style/index.js +1 -0
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/Notify/style/index.js +1 -0
- package/dist/esm/Overlay/style/index.js +1 -0
- package/dist/esm/Pagination/style/index.js +1 -0
- package/dist/esm/Picker/style/index.js +1 -0
- package/dist/esm/Picker.js +397 -0
- package/dist/esm/Popover/style/index.js +1 -0
- package/dist/esm/Popover.js +299 -0
- package/dist/esm/Popup/style/index.js +1 -0
- package/dist/esm/Popup.js +0 -3
- package/dist/esm/Price/style/index.js +1 -0
- package/dist/esm/Radio/style/index.js +1 -0
- package/dist/esm/Radio.js +2 -3
- package/dist/esm/RadioGroup/style/index.js +1 -0
- package/dist/esm/Range/style/index.js +1 -0
- package/dist/esm/Range.js +1 -4
- package/dist/esm/Rate/style/index.js +1 -0
- package/dist/esm/Rate.js +1 -1
- package/dist/esm/Row/style/index.js +1 -0
- package/dist/esm/Row.js +48 -0
- package/dist/esm/ShortPassword/style/index.js +1 -0
- package/dist/esm/ShortPassword.js +203 -0
- package/dist/esm/Signature/style/index.js +1 -0
- package/dist/esm/Signature.js +1 -2
- package/dist/esm/Step/style/index.js +1 -0
- package/dist/esm/Steps/style/index.js +1 -0
- package/dist/esm/Swiper/style/index.js +1 -0
- package/dist/esm/Swiper.js +517 -0
- package/dist/esm/SwiperItem/style/index.js +1 -0
- package/dist/esm/SwiperItem.js +64 -0
- package/dist/esm/Switch/style/index.js +1 -0
- package/dist/esm/Switch.js +85 -0
- package/dist/esm/Tabbar/style/index.js +1 -0
- package/dist/esm/Tabbar.js +1 -4
- package/dist/esm/TabbarItem/style/index.js +1 -0
- package/dist/esm/TabbarItem.js +1 -1
- package/dist/esm/Tag/style/index.js +1 -0
- package/dist/esm/TextArea/style/index.js +1 -0
- package/dist/esm/Toast/style/index.js +1 -0
- package/dist/esm/Toast.js +294 -7
- package/dist/esm/Uploader/style/index.js +1 -0
- package/dist/esm/UserContext-b4181162.js +3 -0
- package/dist/esm/UserContext-be8097d2.js +3 -0
- package/dist/esm/date-649fe493.js +112 -0
- package/dist/esm/nutui-react.es.js +28 -15
- package/dist/esm/types/src/packages/calendar/calendar.d.ts +14 -0
- package/dist/esm/types/src/packages/calendar/index.d.ts +2 -0
- package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +17 -0
- package/dist/esm/types/src/packages/calendaritem/index.d.ts +2 -0
- package/dist/esm/types/src/packages/dialog/Confirm.d.ts +7 -0
- package/dist/esm/types/src/packages/dialog/Content.d.ts +10 -0
- package/dist/esm/types/src/packages/dialog/DialogWrap.d.ts +11 -0
- package/dist/esm/types/src/packages/dialog/DialogWrapper.d.ts +8 -0
- package/dist/esm/types/src/packages/dialog/Mask.d.ts +3 -0
- package/dist/esm/types/src/packages/dialog/config.d.ts +46 -0
- package/dist/esm/types/src/packages/dialog/dialog.d.ts +2 -0
- package/dist/esm/types/src/packages/dialog/index.d.ts +2 -0
- package/dist/esm/types/src/packages/drag/drag.d.ts +1 -1
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +29 -16
- package/dist/esm/types/src/packages/nutui.react.d.ts +29 -16
- package/dist/esm/types/src/packages/picker/index.d.ts +2 -0
- package/dist/esm/types/src/packages/picker/picker.d.ts +19 -0
- package/dist/esm/types/src/packages/picker/pickerSlot.d.ts +10 -0
- package/dist/esm/types/src/packages/popover/Trigger.d.ts +21 -0
- package/dist/esm/types/src/packages/popover/index.d.ts +2 -0
- package/dist/esm/types/src/packages/popover/popover.d.ts +13 -0
- package/dist/esm/types/src/packages/row/UserContext.d.ts +1 -0
- package/dist/esm/types/src/packages/shortpassword/index.d.ts +2 -0
- package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +21 -0
- package/dist/esm/types/src/packages/steps/UserContext.d.ts +1 -0
- package/dist/esm/types/src/packages/swiper/UserContext.d.ts +2 -0
- package/dist/esm/types/src/packages/swiper/index.d.ts +2 -0
- package/dist/esm/types/src/packages/swiper/swiper.d.ts +26 -0
- package/dist/esm/types/src/packages/swiperitem/index.d.ts +2 -0
- package/dist/esm/types/src/packages/swiperitem/swiperitem.d.ts +7 -0
- package/dist/nutui.react.es.js +10683 -4344
- package/dist/nutui.react.umd.js +26 -17
- package/dist/packages/actionsheet/actionsheet.scss +1 -0
- package/dist/packages/address/address.scss +3 -0
- package/dist/packages/animatingnumbers/animatingnumbers.scss +1 -1
- package/dist/packages/backtop/backtop.scss +1 -0
- package/dist/packages/button/button.scss +1 -1
- package/dist/packages/calendar/calendar.scss +200 -0
- package/dist/packages/calendaritem/calendaritem.scss +191 -0
- package/dist/packages/cell/cell.scss +2 -0
- package/dist/packages/checkbox/checkbox.scss +1 -1
- package/dist/packages/collapse/collapse.scss +1 -1
- package/dist/packages/collapseitem/collapseitem.scss +2 -0
- package/dist/packages/dialog/dialog.scss +129 -0
- package/dist/packages/drag/drag.scss +2 -1
- package/dist/packages/fixednav/fixednav.scss +5 -0
- package/dist/packages/icon/icon.scss +1 -1
- package/dist/packages/infiniteloading/infiniteloading.scss +1 -0
- package/dist/packages/input/input.scss +1 -0
- package/dist/packages/inputnumber/inputnumber.scss +1 -0
- package/dist/packages/navbar/navbar.scss +2 -0
- package/dist/packages/noticebar/noticebar.scss +2 -0
- package/dist/packages/picker/picker.scss +104 -0
- package/dist/packages/popover/popover.scss +142 -0
- package/dist/packages/popup/popup.scss +2 -0
- package/dist/packages/radio/radio.scss +2 -0
- package/dist/packages/range/range.scss +1 -0
- package/dist/packages/rate/rate.scss +2 -0
- package/dist/packages/shortpassword/shortpassword.scss +115 -0
- package/dist/packages/signature/signature.scss +1 -0
- package/dist/packages/step/step.scss +1 -0
- package/dist/packages/swiper/swiper.scss +45 -0
- package/dist/packages/swiperitem/swiperitem.scss +3 -0
- package/dist/packages/tabbaritem/{tabbarItem.scss → tabbaritem.scss} +2 -0
- package/dist/packages/tag/tag.scss +1 -0
- package/dist/packages/toast/toast.scss +2 -0
- package/dist/packages/uploader/uploader.scss +2 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +26 -16
- package/dist/styles/variables.scss +25 -0
- package/package.json +16 -5
- package/dist/esm/button-345fb015.js +0 -110
- package/dist/esm/icon-63c0d58f.js +0 -70
- package/dist/esm/toast-420b65b7.js +0 -294
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
@import '../popup/popup.scss';
|
|
2
|
+
@import '../calendaritem/calendaritem.scss';
|
|
3
|
+
.nut-calendar {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex: 1;
|
|
7
|
+
height: 728px;
|
|
8
|
+
padding-top: 132px;
|
|
9
|
+
padding-bottom: 78px;
|
|
10
|
+
color: $calendar-base-color;
|
|
11
|
+
font-size: $calendar-base-font;
|
|
12
|
+
background-color: $white;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
|
|
15
|
+
&.nut-calendar-tile {
|
|
16
|
+
padding-top: 46px;
|
|
17
|
+
padding-bottom: 0;
|
|
18
|
+
|
|
19
|
+
.nut-calendar-header {
|
|
20
|
+
.calendar-title {
|
|
21
|
+
font-size: $calendar-base-font;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.nut-calendar-taro {
|
|
27
|
+
height: 60vh;
|
|
28
|
+
}
|
|
29
|
+
.nut-calendar-content {
|
|
30
|
+
overflow-y: auto;
|
|
31
|
+
}
|
|
32
|
+
::-webkit-scrollbar {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// 头部导航
|
|
37
|
+
.nut-calendar-header {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: -1px;
|
|
40
|
+
left: 0;
|
|
41
|
+
right: 0;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
text-align: center;
|
|
45
|
+
padding-top: 1px;
|
|
46
|
+
background-color: $white;
|
|
47
|
+
z-index: 1;
|
|
48
|
+
|
|
49
|
+
.calendar-title {
|
|
50
|
+
padding-top: 22px;
|
|
51
|
+
font-size: $calendar-title-font;
|
|
52
|
+
line-height: 25px;
|
|
53
|
+
border-radius: 12px 12px 0 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.calendar-curr-month {
|
|
57
|
+
padding: 10px 0 7px;
|
|
58
|
+
line-height: 22px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.calendar-weeks {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: space-around;
|
|
65
|
+
height: 46px;
|
|
66
|
+
border-radius: 0px 0px 12px 12px;
|
|
67
|
+
box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
|
|
68
|
+
|
|
69
|
+
.calendar-week-item {
|
|
70
|
+
&:first-of-type,
|
|
71
|
+
&:last-of-type {
|
|
72
|
+
color: $calendar-primary-color;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// 月份
|
|
79
|
+
.nut-calendar-content {
|
|
80
|
+
flex: 1;
|
|
81
|
+
|
|
82
|
+
.calendar-months-panel {
|
|
83
|
+
position: relative;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: auto;
|
|
86
|
+
display: block;
|
|
87
|
+
|
|
88
|
+
.calendar-month {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
text-align: center;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
div:nth-of-type(2) {
|
|
95
|
+
.calendar-month-title {
|
|
96
|
+
padding-top: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.calendar-loading-tip {
|
|
101
|
+
height: 50px;
|
|
102
|
+
line-height: 50px;
|
|
103
|
+
text-align: center;
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: -50px;
|
|
106
|
+
left: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
font-size: $calendar-text-font;
|
|
109
|
+
color: $text-color;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.calendar-month-title {
|
|
113
|
+
height: 23px;
|
|
114
|
+
line-height: 23px;
|
|
115
|
+
margin: 8px 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.calendar-month-con {
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
|
|
121
|
+
.calendar-month-item {
|
|
122
|
+
.calendar-month-day:nth-child(7n + 0),
|
|
123
|
+
.calendar-month-day:nth-child(7n + 1) {
|
|
124
|
+
color: $calendar-primary-color;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.calendar-month-day {
|
|
129
|
+
float: left;
|
|
130
|
+
width: 14.28%;
|
|
131
|
+
height: 64px;
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
position: relative;
|
|
137
|
+
|
|
138
|
+
.curr-tips,
|
|
139
|
+
.calendar-day-tip {
|
|
140
|
+
position: absolute;
|
|
141
|
+
top: 10px;
|
|
142
|
+
width: 100%;
|
|
143
|
+
font-size: 11px;
|
|
144
|
+
line-height: 12px;
|
|
145
|
+
color: $calendar-primary-color;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&-active {
|
|
149
|
+
background-color: $calendar-primary-color;
|
|
150
|
+
color: $white !important;
|
|
151
|
+
|
|
152
|
+
.curr-tips {
|
|
153
|
+
visibility: hidden;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.calendar-day-tip {
|
|
157
|
+
color: $white;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&-disabled {
|
|
162
|
+
color: $calendar-disable-color !important;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&-choose {
|
|
166
|
+
background-color: $calendar-choose-color;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.calendar-day {
|
|
170
|
+
padding: 4px 0;
|
|
171
|
+
font-size: $calendar-day-font;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// 底部导航
|
|
179
|
+
.nut-calendar-footer {
|
|
180
|
+
position: absolute;
|
|
181
|
+
left: 0;
|
|
182
|
+
right: 0;
|
|
183
|
+
bottom: -1px;
|
|
184
|
+
display: flex;
|
|
185
|
+
height: 78px;
|
|
186
|
+
width: 100%;
|
|
187
|
+
background-color: $white;
|
|
188
|
+
|
|
189
|
+
.calendar-confirm-btn {
|
|
190
|
+
height: 44px;
|
|
191
|
+
width: 100%;
|
|
192
|
+
margin: 14px 18px;
|
|
193
|
+
border-radius: 22px;
|
|
194
|
+
background: $button-primary-background-color;
|
|
195
|
+
color: $white;
|
|
196
|
+
text-align: center;
|
|
197
|
+
line-height: 44px;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
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
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import '../collapseitem/collapseitem.scss';
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
@import '../button/button.scss';
|
|
2
|
+
.nut-dialog {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
width: $dialog-width;
|
|
7
|
+
min-height: $dialog-min-height;
|
|
8
|
+
padding: $dialog-padding;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
|
|
11
|
+
&__header {
|
|
12
|
+
display: block;
|
|
13
|
+
text-align: center;
|
|
14
|
+
height: $dialog-header-height;
|
|
15
|
+
font-size: $font-size-3;
|
|
16
|
+
color: $dialog-header-color;
|
|
17
|
+
@include oneline-ellipsis();
|
|
18
|
+
}
|
|
19
|
+
&__content {
|
|
20
|
+
width: 100%;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
flex: 1;
|
|
23
|
+
margin: $dialog-content-margin;
|
|
24
|
+
max-height: $dialog-content-max-height;
|
|
25
|
+
line-height: $dialog-content-line-height;
|
|
26
|
+
font-size: $font-size-1;
|
|
27
|
+
color: $text-color;
|
|
28
|
+
word-wrap: break-word;
|
|
29
|
+
word-break: break-all;
|
|
30
|
+
white-space: pre-wrap;
|
|
31
|
+
}
|
|
32
|
+
&__footer {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
width: 100%;
|
|
36
|
+
justify-content: space-around;
|
|
37
|
+
|
|
38
|
+
&.vertical {
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
|
|
41
|
+
.nut-button {
|
|
42
|
+
min-width: 100%;
|
|
43
|
+
margin: 0;
|
|
44
|
+
&.nut-dialog__footer-cancel {
|
|
45
|
+
border: 0;
|
|
46
|
+
}
|
|
47
|
+
&.nut-dialog__footer-ok {
|
|
48
|
+
margin-top: $dialog-vertical-footer-ok-margin-top;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.nut-button {
|
|
54
|
+
min-width: $dialog-footer-button-min-width;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&-cancel.nut-dialog__footer-cancel {
|
|
58
|
+
margin-right: $dialog-footer-cancel-margin-right;
|
|
59
|
+
}
|
|
60
|
+
&-ok {
|
|
61
|
+
max-width: $dialog-footer-ok-max-width;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.nut-dialog__mask {
|
|
67
|
+
position: fixed;
|
|
68
|
+
top: 0;
|
|
69
|
+
right: 0;
|
|
70
|
+
left: 0;
|
|
71
|
+
bottom: 0;
|
|
72
|
+
background-color: $dialog-mask-background-color;
|
|
73
|
+
z-index: $dialog-mask-z-index;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.nut-dialog__wrap {
|
|
77
|
+
position: fixed;
|
|
78
|
+
overflow: auto;
|
|
79
|
+
top: 0;
|
|
80
|
+
right: 0;
|
|
81
|
+
bottom: 0;
|
|
82
|
+
left: 0;
|
|
83
|
+
z-index: $dialog-mask-z-index;
|
|
84
|
+
-webkit-overflow-scrolling: touch;
|
|
85
|
+
outline: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.nut-dialog__outer {
|
|
89
|
+
position: fixed;
|
|
90
|
+
max-height: 100%;
|
|
91
|
+
overflow-y: auto;
|
|
92
|
+
background-color: $white;
|
|
93
|
+
-webkit-transition: -webkit-transform 0.2s;
|
|
94
|
+
transition: -webkit-transform 0.2s;
|
|
95
|
+
transition: transform 0.2s;
|
|
96
|
+
transition: transform 0.2s, -webkit-transform 0.2s;
|
|
97
|
+
-webkit-overflow-scrolling: touch;
|
|
98
|
+
top: 50%;
|
|
99
|
+
left: 50%;
|
|
100
|
+
-webkit-transform: translate(-50%, -50%);
|
|
101
|
+
transform: translate(-50%, -50%);
|
|
102
|
+
border-radius: $dialog-outer-bordder-radius;
|
|
103
|
+
z-index: $dialog-outer-z-index;
|
|
104
|
+
animation-duration: 0.3s;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.fadeDialog-enter,
|
|
108
|
+
.fadeDialog-appear {
|
|
109
|
+
opacity: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.fadeDialog-enter-active,
|
|
113
|
+
.fadeDialog-appear-active {
|
|
114
|
+
opacity: 1;
|
|
115
|
+
transition: opacity 1s cubic-bezier(0.3, 1.3, 0.3, 1);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.fadeDialog-exit {
|
|
119
|
+
opacity: 1;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.fadeDialog-exit-active {
|
|
123
|
+
opacity: 0;
|
|
124
|
+
transition: opacity 1s cubic-bezier(0.3, 1.3, 0.3, 1);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.nut-overflow-hidden {
|
|
128
|
+
overflow: hidden !important;
|
|
129
|
+
}
|