@nutui/nutui 3.1.17-beta.0 → 3.1.18
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 +78 -0
- package/LICENSE +1 -1
- package/README.md +7 -1
- package/dist/nutui.d.ts +3 -1
- package/dist/nutui.es.js +2335 -1280
- package/dist/nutui.umd.js +2350 -1293
- package/dist/packages/_es/ActionSheet.js +8 -3
- package/dist/packages/_es/Address.js +17 -11
- package/dist/packages/_es/Audio.js +2 -2
- package/dist/packages/_es/Avatar.js +2 -2
- package/dist/packages/_es/BackTop.js +7 -4
- package/dist/packages/_es/Badge.js +2 -2
- package/dist/packages/_es/Barrage.js +2 -2
- package/dist/packages/_es/Button.js +2 -2
- package/dist/packages/_es/Calendar.js +15 -16
- package/dist/packages/_es/Card.js +2 -2
- package/dist/packages/_es/Cascader.js +2 -2
- package/dist/packages/_es/Cell.js +25 -18
- package/dist/packages/_es/CellGroup.js +2 -2
- package/dist/packages/_es/Checkbox.js +4 -4
- package/dist/packages/_es/CheckboxGroup.js +4 -4
- package/dist/packages/_es/CircleProgress.js +2 -2
- package/dist/packages/_es/Col.js +2 -2
- package/dist/packages/_es/Collapse.js +2 -2
- package/dist/packages/_es/CollapseItem.js +31 -19
- package/dist/packages/_es/CountDown.js +4 -2
- package/dist/packages/_es/CountUp.js +25 -16
- package/dist/packages/_es/DatePicker.js +83 -47
- package/dist/packages/_es/Dialog.js +5 -3
- package/dist/packages/_es/Divider.js +2 -2
- package/dist/packages/_es/Drag.js +4 -4
- package/dist/packages/_es/Elevator.js +3 -3
- package/dist/packages/_es/Empty.js +2 -2
- package/dist/packages/_es/FixedNav.js +2 -2
- package/dist/packages/_es/Form.js +8 -6
- package/dist/packages/_es/FormItem.js +9 -6
- package/dist/packages/_es/Grid.js +2 -2
- package/dist/packages/_es/GridItem.js +3 -3
- package/dist/packages/_es/Icon.js +2 -2
- package/dist/packages/_es/ImagePreview.js +9 -4
- package/dist/packages/_es/Indicator.js +2 -2
- package/dist/packages/_es/InfiniteLoading.js +2 -2
- package/dist/packages/_es/Input.js +290 -66
- package/dist/packages/_es/InputNumber.js +2 -2
- package/dist/packages/_es/Layout.js +2 -2
- package/dist/packages/_es/List.js +124 -0
- package/dist/packages/_es/Menu.js +3 -3
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +31 -66
- package/dist/packages/_es/NoticeBar.js +41 -22
- package/dist/packages/_es/Notify.js +7 -3
- package/dist/packages/_es/NumberKeyboard.js +9 -4
- package/dist/packages/_es/OverLay.js +2 -2
- package/dist/packages/_es/Pagination.js +2 -2
- package/dist/packages/_es/Picker.js +163 -156
- package/dist/packages/_es/Popover.js +5 -2
- package/dist/packages/_es/Popup.js +2 -2
- package/dist/packages/_es/Price.js +2 -2
- package/dist/packages/_es/Progress.js +14 -22
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +2 -2
- package/dist/packages/_es/Range.js +131 -21
- package/dist/packages/_es/Rate.js +2 -2
- package/dist/packages/_es/Row.js +2 -2
- package/dist/packages/_es/SearchBar.js +2 -2
- package/dist/packages/_es/ShortPassword.js +9 -4
- package/dist/packages/_es/SideNavBar.js +2 -2
- package/dist/packages/_es/SideNavBarItem.js +2 -2
- package/dist/packages/_es/Signature.js +25 -6
- package/dist/packages/_es/Skeleton.js +2 -2
- package/dist/packages/_es/Sku.js +31 -13
- package/dist/packages/_es/Step.js +28 -12
- package/dist/packages/_es/Steps.js +8 -3
- package/dist/packages/_es/Sticky.js +3 -3
- package/dist/packages/_es/SubSideNavBar.js +2 -2
- package/dist/packages/_es/Swipe.js +3 -3
- package/dist/packages/_es/Swiper.js +3 -3
- package/dist/packages/_es/SwiperItem.js +3 -3
- package/dist/packages/_es/Switch.js +2 -2
- package/dist/packages/_es/TabPane.js +2 -2
- package/dist/packages/_es/Tabbar.js +2 -2
- package/dist/packages/_es/TabbarItem.js +23 -8
- package/dist/packages/_es/Table.js +2 -2
- package/dist/packages/_es/Tabs.js +8 -5
- package/dist/packages/_es/Tag.js +11 -5
- package/dist/packages/_es/TextArea.js +38 -6
- package/dist/packages/_es/TimeDetail.js +2 -2
- package/dist/packages/_es/TimePannel.js +2 -2
- package/dist/packages/_es/TimeSelect.js +8 -3
- package/dist/packages/_es/Toast.js +16 -9
- package/dist/packages/_es/Uploader.js +2 -4
- package/dist/packages/_es/Video.js +12 -8
- package/dist/packages/_es/common.js +2 -2
- package/dist/packages/_es/component.js +2 -2
- package/dist/packages/_es/index.js +6 -8
- package/dist/packages/_es/index2.js +9 -32
- package/dist/packages/_es/index3.js +29 -57
- package/dist/packages/_es/index4.js +64 -0
- package/dist/packages/_es/plugin-vue_export-helper.js +2 -2
- package/dist/packages/_es/pxCheck.js +2 -2
- package/dist/packages/_es/raf.js +2 -2
- package/dist/packages/_es/util.js +2 -2
- package/dist/packages/actionsheet/index.scss +7 -6
- package/dist/packages/badge/index.scss +11 -13
- package/dist/packages/button/index.scss +6 -5
- package/dist/packages/calendar/index.scss +9 -4
- package/dist/packages/calendaritem/index.scss +0 -207
- package/dist/packages/cell/index.scss +9 -9
- package/dist/packages/cellgroup/index.scss +1 -1
- package/dist/packages/checkbox/index.scss +4 -3
- package/dist/packages/collapseitem/index.scss +21 -11
- package/dist/packages/countdown/index.scss +3 -1
- package/dist/packages/divider/index.scss +8 -8
- package/dist/packages/elevator/index.scss +36 -36
- package/dist/packages/formitem/index.scss +15 -8
- package/dist/packages/indicator/index.scss +1 -1
- package/dist/packages/input/index.scss +70 -24
- package/dist/packages/inputnumber/index.scss +4 -2
- package/dist/packages/list/index.scss +24 -0
- package/dist/packages/menu/index.scss +3 -3
- package/dist/packages/navbar/index.scss +30 -8
- package/dist/packages/noticebar/index.scss +10 -5
- package/dist/packages/notify/index.scss +10 -0
- package/dist/packages/numberkeyboard/index.scss +22 -21
- package/dist/packages/oldpicker/index.scss +131 -0
- package/dist/packages/picker/index.scss +38 -32
- package/dist/packages/progress/index.scss +24 -19
- package/dist/packages/radio/index.scss +7 -6
- package/dist/packages/range/index.scss +113 -6
- package/dist/packages/searchbar/index.scss +7 -7
- package/dist/packages/sidenavbaritem/index.scss +5 -5
- package/dist/packages/step/index.scss +29 -29
- package/dist/packages/subsidenavbar/index.scss +10 -8
- package/dist/packages/swiper/index.scss +4 -4
- package/dist/packages/switch/index.scss +8 -8
- package/dist/packages/tabbar/index.scss +3 -2
- package/dist/packages/tabbaritem/index.scss +19 -3
- package/dist/packages/tabs/index.scss +1 -0
- package/dist/packages/timedetail/index.scss +13 -13
- package/dist/packages/timepannel/index.scss +7 -7
- package/dist/packages/timeselect/index.scss +3 -3
- package/dist/packages/toast/index.scss +8 -7
- package/dist/packages/uploader/index.scss +4 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +43 -41
- package/dist/styles/themes/jdt.scss +91 -0
- package/dist/styles/variables-jdt.scss +727 -0
- package/dist/styles/variables.scss +322 -38
- package/package.json +3 -2
- package/dist/styles/themes/jdd.scss +0 -2
|
@@ -1,64 +1,36 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
3
|
-
* (c)
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
import { unref } from "vue";
|
|
7
|
+
function isWindow(val) {
|
|
8
|
+
return val === window;
|
|
9
|
+
}
|
|
10
|
+
const useRect = (elementRef) => {
|
|
11
|
+
const element = unref(elementRef);
|
|
12
|
+
if (isWindow(element)) {
|
|
13
|
+
const width = element.innerWidth;
|
|
14
|
+
const height = element.innerHeight;
|
|
15
|
+
return {
|
|
16
|
+
top: 0,
|
|
17
|
+
left: 0,
|
|
18
|
+
right: width,
|
|
19
|
+
bottom: height,
|
|
20
|
+
width,
|
|
21
|
+
height
|
|
22
|
+
};
|
|
11
23
|
}
|
|
12
|
-
if (
|
|
13
|
-
return
|
|
24
|
+
if (element && element.getBoundingClientRect) {
|
|
25
|
+
return element.getBoundingClientRect();
|
|
14
26
|
}
|
|
15
|
-
return "";
|
|
16
|
-
}
|
|
17
|
-
function useTouch() {
|
|
18
|
-
const startX = ref(0);
|
|
19
|
-
const startY = ref(0);
|
|
20
|
-
const deltaX = ref(0);
|
|
21
|
-
const deltaY = ref(0);
|
|
22
|
-
const offsetX = ref(0);
|
|
23
|
-
const offsetY = ref(0);
|
|
24
|
-
const direction = ref("");
|
|
25
|
-
const isVertical = () => direction.value === "vertical";
|
|
26
|
-
const isHorizontal = () => direction.value === "horizontal";
|
|
27
|
-
const reset = () => {
|
|
28
|
-
deltaX.value = 0;
|
|
29
|
-
deltaY.value = 0;
|
|
30
|
-
offsetX.value = 0;
|
|
31
|
-
offsetY.value = 0;
|
|
32
|
-
direction.value = "";
|
|
33
|
-
};
|
|
34
|
-
const start = (event) => {
|
|
35
|
-
reset();
|
|
36
|
-
startX.value = event.touches[0].clientX;
|
|
37
|
-
startY.value = event.touches[0].clientY;
|
|
38
|
-
};
|
|
39
|
-
const move = (event) => {
|
|
40
|
-
const touch = event.touches[0];
|
|
41
|
-
deltaX.value = touch.clientX - startX.value;
|
|
42
|
-
deltaY.value = touch.clientY - startY.value;
|
|
43
|
-
offsetX.value = Math.abs(deltaX.value);
|
|
44
|
-
offsetY.value = Math.abs(deltaY.value);
|
|
45
|
-
if (!direction.value) {
|
|
46
|
-
direction.value = getDirection(offsetX.value, offsetY.value);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
27
|
return {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
deltaY,
|
|
57
|
-
offsetX,
|
|
58
|
-
offsetY,
|
|
59
|
-
direction,
|
|
60
|
-
isVertical,
|
|
61
|
-
isHorizontal
|
|
28
|
+
top: 0,
|
|
29
|
+
left: 0,
|
|
30
|
+
right: 0,
|
|
31
|
+
bottom: 0,
|
|
32
|
+
width: 0,
|
|
33
|
+
height: 0
|
|
62
34
|
};
|
|
63
|
-
}
|
|
64
|
-
export {
|
|
35
|
+
};
|
|
36
|
+
export { useRect as u };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { ref } from "vue";
|
|
7
|
+
const MIN_DISTANCE = 10;
|
|
8
|
+
function getDirection(x, y) {
|
|
9
|
+
if (x > y && x > MIN_DISTANCE) {
|
|
10
|
+
return "horizontal";
|
|
11
|
+
}
|
|
12
|
+
if (y > x && y > MIN_DISTANCE) {
|
|
13
|
+
return "vertical";
|
|
14
|
+
}
|
|
15
|
+
return "";
|
|
16
|
+
}
|
|
17
|
+
function useTouch() {
|
|
18
|
+
const startX = ref(0);
|
|
19
|
+
const startY = ref(0);
|
|
20
|
+
const deltaX = ref(0);
|
|
21
|
+
const deltaY = ref(0);
|
|
22
|
+
const offsetX = ref(0);
|
|
23
|
+
const offsetY = ref(0);
|
|
24
|
+
const direction = ref("");
|
|
25
|
+
const isVertical = () => direction.value === "vertical";
|
|
26
|
+
const isHorizontal = () => direction.value === "horizontal";
|
|
27
|
+
const reset = () => {
|
|
28
|
+
deltaX.value = 0;
|
|
29
|
+
deltaY.value = 0;
|
|
30
|
+
offsetX.value = 0;
|
|
31
|
+
offsetY.value = 0;
|
|
32
|
+
direction.value = "";
|
|
33
|
+
};
|
|
34
|
+
const start = (event) => {
|
|
35
|
+
reset();
|
|
36
|
+
startX.value = event.touches[0].clientX;
|
|
37
|
+
startY.value = event.touches[0].clientY;
|
|
38
|
+
};
|
|
39
|
+
const move = (event) => {
|
|
40
|
+
const touch = event.touches[0];
|
|
41
|
+
deltaX.value = touch.clientX - startX.value;
|
|
42
|
+
deltaY.value = touch.clientY - startY.value;
|
|
43
|
+
offsetX.value = Math.abs(deltaX.value);
|
|
44
|
+
offsetY.value = Math.abs(deltaY.value);
|
|
45
|
+
if (!direction.value) {
|
|
46
|
+
direction.value = getDirection(offsetX.value, offsetY.value);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
move,
|
|
51
|
+
start,
|
|
52
|
+
reset,
|
|
53
|
+
startX,
|
|
54
|
+
startY,
|
|
55
|
+
deltaX,
|
|
56
|
+
deltaY,
|
|
57
|
+
offsetX,
|
|
58
|
+
offsetY,
|
|
59
|
+
direction,
|
|
60
|
+
isVertical,
|
|
61
|
+
isHorizontal
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export { useTouch as u };
|
package/dist/packages/_es/raf.js
CHANGED
|
@@ -37,22 +37,23 @@
|
|
|
37
37
|
display: block;
|
|
38
38
|
// height: 24px;
|
|
39
39
|
padding: 10px;
|
|
40
|
-
line-height:
|
|
41
|
-
font-size: $font-size
|
|
42
|
-
color: $
|
|
40
|
+
line-height: $actionsheet-item-line-height;
|
|
41
|
+
font-size: $actionsheet-item-font-size;
|
|
42
|
+
color: $actionsheet-item-font-color;
|
|
43
43
|
text-align: center;
|
|
44
44
|
background-color: #fff;
|
|
45
|
+
border-bottom: $actionsheet-item-border-bottom;
|
|
45
46
|
cursor: pointer;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.desc {
|
|
49
|
-
font-size: $font-size
|
|
50
|
+
font-size: $actionsheet-item-font-size;
|
|
50
51
|
color: #999;
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
.subdesc {
|
|
54
55
|
display: block;
|
|
55
|
-
font-size: $font-size
|
|
56
|
+
font-size: $actionsheet-item-subdesc-font-size;
|
|
56
57
|
color: #999;
|
|
57
58
|
}
|
|
58
59
|
|
|
@@ -63,6 +64,6 @@
|
|
|
63
64
|
|
|
64
65
|
.nut-actionsheet-cancel {
|
|
65
66
|
margin-top: 5px;
|
|
66
|
-
border-top:
|
|
67
|
+
border-top: $actionsheet-item-cancel-border-top;
|
|
67
68
|
}
|
|
68
69
|
}
|
|
@@ -4,32 +4,30 @@
|
|
|
4
4
|
.slot-icons {
|
|
5
5
|
position: absolute;
|
|
6
6
|
background: $badge-background-color;
|
|
7
|
-
border-radius: 7px;
|
|
8
7
|
top: -20%;
|
|
9
8
|
right: -20%;
|
|
10
|
-
padding:
|
|
9
|
+
padding: $badge-padding;
|
|
11
10
|
text-align: center;
|
|
12
|
-
border-radius:
|
|
13
|
-
z-index:
|
|
11
|
+
border-radius: $badge-border-radius;
|
|
12
|
+
z-index: $badge-z-index;
|
|
14
13
|
}
|
|
15
14
|
.sup {
|
|
16
15
|
position: absolute;
|
|
17
16
|
background: $badge-background-color;
|
|
18
|
-
|
|
19
|
-
padding: 0 5px;
|
|
17
|
+
padding: $badge-padding;
|
|
20
18
|
text-align: center;
|
|
21
|
-
border-radius:
|
|
19
|
+
border-radius: $badge-border-radius;
|
|
22
20
|
font-size: $badge-font-size;
|
|
23
21
|
font-weight: normal;
|
|
24
|
-
color: $badge-
|
|
22
|
+
color: $badge-color;
|
|
25
23
|
}
|
|
26
24
|
.nut-badge__content {
|
|
27
|
-
transform:
|
|
25
|
+
transform: $badge-content-transform;
|
|
28
26
|
}
|
|
29
27
|
.is-dot {
|
|
30
|
-
width:
|
|
31
|
-
height:
|
|
32
|
-
border-radius:
|
|
33
|
-
padding:
|
|
28
|
+
width: $badge-dot-width;
|
|
29
|
+
height: $badge-dot-height;
|
|
30
|
+
border-radius: $badge-dot-border-radius;
|
|
31
|
+
padding: $badge-dot-padding;
|
|
34
32
|
}
|
|
35
33
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.nut-button {
|
|
2
2
|
position: relative;
|
|
3
3
|
display: inline-block;
|
|
4
|
+
width: auto;
|
|
4
5
|
flex-shrink: 0;
|
|
5
6
|
height: $button-default-height;
|
|
6
7
|
box-sizing: border-box;
|
|
@@ -126,21 +127,21 @@
|
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
&--normal {
|
|
129
|
-
padding:
|
|
130
|
+
padding: $button-default-padding;
|
|
130
131
|
font-size: $button-default-font-size;
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
&--small {
|
|
134
135
|
height: $button-small-height;
|
|
135
136
|
line-height: $button-small-line-height;
|
|
136
|
-
padding:
|
|
137
|
-
font-size: $font-size
|
|
137
|
+
padding: $button-small-padding;
|
|
138
|
+
font-size: $button-small-font-size;
|
|
138
139
|
}
|
|
139
140
|
&--mini {
|
|
140
141
|
height: $button-mini-height;
|
|
141
142
|
line-height: 1.2;
|
|
142
|
-
padding:
|
|
143
|
-
font-size: $font-size
|
|
143
|
+
padding: $button-mini-padding;
|
|
144
|
+
font-size: $button-mini-font-size;
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
&--block {
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
.calendar-title {
|
|
40
40
|
font-size: $calendar-title-font;
|
|
41
|
+
font-weight: $calendar-title-font-weight;
|
|
41
42
|
line-height: 44px;
|
|
42
43
|
}
|
|
43
44
|
.calendar-top-slot {
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
.calendar-curr-month {
|
|
47
48
|
padding: 7px 0;
|
|
48
49
|
line-height: 22px;
|
|
50
|
+
font-size: $calendar-sub-title-font;
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
.calendar-weeks {
|
|
@@ -59,7 +61,7 @@
|
|
|
59
61
|
.calendar-week-item {
|
|
60
62
|
&:first-of-type,
|
|
61
63
|
&:last-of-type {
|
|
62
|
-
color: $calendar-
|
|
64
|
+
color: $calendar-day67-font-color;
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
}
|
|
@@ -114,13 +116,14 @@
|
|
|
114
116
|
.calendar-month-item {
|
|
115
117
|
.calendar-month-day:nth-child(7n + 0),
|
|
116
118
|
.calendar-month-day:nth-child(7n + 1) {
|
|
117
|
-
color: $calendar-
|
|
119
|
+
color: $calendar-day67-font-color;
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
122
|
.calendar-month-day {
|
|
121
123
|
float: left;
|
|
122
|
-
width:
|
|
123
|
-
height:
|
|
124
|
+
width: $calendar-day-width;
|
|
125
|
+
height: $calendar-day-height;
|
|
126
|
+
font-weight: $calendar-day-font-weight;
|
|
124
127
|
display: flex;
|
|
125
128
|
align-items: center;
|
|
126
129
|
justify-content: center;
|
|
@@ -156,6 +159,7 @@
|
|
|
156
159
|
&-active {
|
|
157
160
|
background-color: $calendar-primary-color;
|
|
158
161
|
color: $white !important;
|
|
162
|
+
border-radius: $calendar-day-active-border-radius;
|
|
159
163
|
|
|
160
164
|
.calendar-curr-tips {
|
|
161
165
|
// color: $white !important;
|
|
@@ -175,6 +179,7 @@
|
|
|
175
179
|
|
|
176
180
|
&-choose {
|
|
177
181
|
background-color: $calendar-choose-color;
|
|
182
|
+
color: $calendar-choose-font-color;
|
|
178
183
|
}
|
|
179
184
|
|
|
180
185
|
.calendar-day {
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
.nut-calendar {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex: 1;
|
|
5
|
-
color: #333333;
|
|
6
|
-
font-size: 16px;
|
|
7
|
-
background-color: #fff;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
height: 100%;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
&.nut-calendar-tile {
|
|
12
|
-
.nut-calendar-header {
|
|
13
|
-
.calendar-title {
|
|
14
|
-
font-size: $calendar-base-font;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
.nut-calendar-taro {
|
|
19
|
-
height: 60vh;
|
|
20
|
-
}
|
|
21
|
-
.popup-box {
|
|
22
|
-
height: 100%;
|
|
23
|
-
}
|
|
24
|
-
.nut-calendar-content {
|
|
25
|
-
overflow-y: auto;
|
|
26
|
-
}
|
|
27
|
-
::-webkit-scrollbar {
|
|
28
|
-
display: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// 头部导航
|
|
32
|
-
.nut-calendar-header {
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
text-align: center;
|
|
36
|
-
padding-top: 1px;
|
|
37
|
-
background-color: $white;
|
|
38
|
-
|
|
39
|
-
.calendar-title {
|
|
40
|
-
font-size: $calendar-title-font;
|
|
41
|
-
line-height: 44px;
|
|
42
|
-
}
|
|
43
|
-
.calendar-top-slot {
|
|
44
|
-
height: 24px;
|
|
45
|
-
}
|
|
46
|
-
.calendar-curr-month {
|
|
47
|
-
padding: 7px 0;
|
|
48
|
-
line-height: 22px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.calendar-weeks {
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
justify-content: space-around;
|
|
55
|
-
height: 36px;
|
|
56
|
-
border-radius: 0px 0px 12px 12px;
|
|
57
|
-
box-shadow: 0px 4px 10px 0px rgba($color: #000000, $alpha: 0.06);
|
|
58
|
-
|
|
59
|
-
.calendar-week-item {
|
|
60
|
-
&:first-of-type,
|
|
61
|
-
&:last-of-type {
|
|
62
|
-
color: $calendar-primary-color;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// 月份
|
|
69
|
-
.nut-calendar-content {
|
|
70
|
-
flex: 1;
|
|
71
|
-
width: 100%;
|
|
72
|
-
display: block;
|
|
73
|
-
.calendar-months-panel {
|
|
74
|
-
position: relative;
|
|
75
|
-
width: 100%;
|
|
76
|
-
height: auto;
|
|
77
|
-
display: block;
|
|
78
|
-
box-sizing: border-box;
|
|
79
|
-
.viewArea {
|
|
80
|
-
display: block;
|
|
81
|
-
}
|
|
82
|
-
.calendar-month {
|
|
83
|
-
display: flex;
|
|
84
|
-
flex-direction: column;
|
|
85
|
-
text-align: center;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
div:nth-of-type(2) {
|
|
89
|
-
.calendar-month-title {
|
|
90
|
-
padding-top: 0;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.calendar-loading-tip {
|
|
95
|
-
height: 50px;
|
|
96
|
-
line-height: 50px;
|
|
97
|
-
text-align: center;
|
|
98
|
-
position: absolute;
|
|
99
|
-
top: -50px;
|
|
100
|
-
left: 0;
|
|
101
|
-
right: 0;
|
|
102
|
-
font-size: $calendar-text-font;
|
|
103
|
-
color: $text-color;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.calendar-month-title {
|
|
107
|
-
height: 23px;
|
|
108
|
-
line-height: 23px;
|
|
109
|
-
margin: 8px 0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.calendar-month-con {
|
|
113
|
-
overflow: hidden;
|
|
114
|
-
.calendar-month-item {
|
|
115
|
-
.calendar-month-day:nth-child(7n + 0),
|
|
116
|
-
.calendar-month-day:nth-child(7n + 1) {
|
|
117
|
-
color: $calendar-primary-color;
|
|
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-curr-tips {
|
|
131
|
-
position: absolute;
|
|
132
|
-
width: 100%;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.calendar-curr-tip-curr {
|
|
136
|
-
position: absolute;
|
|
137
|
-
bottom: 6px;
|
|
138
|
-
width: 100%;
|
|
139
|
-
font-size: 12px;
|
|
140
|
-
line-height: 14px;
|
|
141
|
-
}
|
|
142
|
-
.calendar-day-tip {
|
|
143
|
-
position: absolute;
|
|
144
|
-
bottom: 6px;
|
|
145
|
-
width: 100%;
|
|
146
|
-
font-size: 12px;
|
|
147
|
-
line-height: 14px;
|
|
148
|
-
color: $calendar-primary-color;
|
|
149
|
-
}
|
|
150
|
-
.calendar-curr-tips-top {
|
|
151
|
-
top: 6px;
|
|
152
|
-
}
|
|
153
|
-
.calendar-curr-tips-bottom {
|
|
154
|
-
bottom: 6px;
|
|
155
|
-
}
|
|
156
|
-
&-active {
|
|
157
|
-
background-color: $calendar-primary-color;
|
|
158
|
-
color: $white !important;
|
|
159
|
-
|
|
160
|
-
.calendar-curr-tips {
|
|
161
|
-
// color: $white !important;
|
|
162
|
-
visibility: hidden;
|
|
163
|
-
}
|
|
164
|
-
.calendar-curr-tip-curr {
|
|
165
|
-
visibility: hidden;
|
|
166
|
-
}
|
|
167
|
-
.calendar-day-tip {
|
|
168
|
-
color: $white;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&-disabled {
|
|
173
|
-
color: $calendar-disable-color !important;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
&-choose {
|
|
177
|
-
background-color: $calendar-choose-color;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.calendar-day {
|
|
181
|
-
padding: 2px 0;
|
|
182
|
-
font-size: $calendar-day-font;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// 底部导航
|
|
190
|
-
.nut-calendar-footer {
|
|
191
|
-
display: flex;
|
|
192
|
-
height: 62px;
|
|
193
|
-
width: 100%;
|
|
194
|
-
background-color: $white;
|
|
195
|
-
|
|
196
|
-
.calendar-confirm-btn {
|
|
197
|
-
height: 44px;
|
|
198
|
-
width: 100%;
|
|
199
|
-
margin: 10px 18px;
|
|
200
|
-
border-radius: 22px;
|
|
201
|
-
background: $button-primary-background-color;
|
|
202
|
-
color: $white;
|
|
203
|
-
text-align: center;
|
|
204
|
-
line-height: 44px;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
4
|
width: 100%;
|
|
5
|
-
line-height:
|
|
6
|
-
padding:
|
|
5
|
+
line-height: $cell-line-height;
|
|
6
|
+
padding: $cell-padding;
|
|
7
7
|
background: $white;
|
|
8
8
|
border-radius: $cell-border-radius;
|
|
9
9
|
box-shadow: 0px 1px 7px 0px rgba(237, 238, 241, 1);
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
content: ' ';
|
|
25
25
|
pointer-events: none;
|
|
26
|
-
right:
|
|
26
|
+
right: $cell-after-right;
|
|
27
27
|
bottom: 0;
|
|
28
28
|
left: 16px;
|
|
29
29
|
transform: scaleY(0.5);
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
&__icon {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
margin-right: $cell-default-icon-margin;
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
&__title {
|
|
54
60
|
display: flex;
|
|
55
61
|
flex-direction: column;
|
|
56
62
|
flex: 1;
|
|
57
|
-
&.icon {
|
|
58
|
-
flex-direction: row;
|
|
59
|
-
.icon {
|
|
60
|
-
margin-right: 10px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
63
|
&-desc {
|
|
64
64
|
font-size: $cell-title-desc-font;
|
|
65
65
|
}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
&--reverse {
|
|
5
5
|
flex-direction: row-reverse;
|
|
6
6
|
.nut-checkbox__label {
|
|
7
|
-
margin-right:
|
|
7
|
+
margin-right: $checkbox-label-margin-left;
|
|
8
8
|
margin-left: 0;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
&__label {
|
|
12
|
-
margin-left:
|
|
13
|
-
font-size:
|
|
12
|
+
margin-left: $checkbox-label-margin-left;
|
|
13
|
+
font-size: $checkbox-label-font-size;
|
|
14
14
|
color: $checkbox-label-color;
|
|
15
15
|
&--disabled {
|
|
16
16
|
color: $checkbox-label-disable-color;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
&__icon {
|
|
20
20
|
color: $primary-color;
|
|
21
|
+
font-size: $checkbox-icon-font-size;
|
|
21
22
|
transition-duration: 0.3s;
|
|
22
23
|
transition-property: color, border-color, background-color;
|
|
23
24
|
}
|