@nutui/nutui 3.1.18-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 +41 -0
- package/LICENSE +1 -1
- package/README.md +6 -0
- package/dist/nutui.d.ts +3 -1
- package/dist/nutui.es.js +2230 -1192
- package/dist/nutui.umd.js +2240 -1201
- package/dist/packages/_es/ActionSheet.js +2 -2
- 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 +5 -2
- 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 +24 -17
- package/dist/packages/_es/CellGroup.js +2 -2
- package/dist/packages/_es/Checkbox.js +4 -4
- package/dist/packages/_es/CheckboxGroup.js +3 -3
- 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 +28 -18
- 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 +2 -2
- 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 +2 -2
- package/dist/packages/_es/Icon.js +2 -2
- package/dist/packages/_es/ImagePreview.js +2 -2
- 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 +2 -2
- package/dist/packages/_es/MenuItem.js +2 -2
- package/dist/packages/_es/Navbar.js +16 -10
- package/dist/packages/_es/NoticeBar.js +6 -5
- 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 -157
- package/dist/packages/_es/Popover.js +2 -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 +129 -19
- 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 +2 -2
- 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 +2 -2
- package/dist/packages/_es/SubSideNavBar.js +2 -2
- package/dist/packages/_es/Swipe.js +2 -2
- package/dist/packages/_es/Swiper.js +2 -2
- package/dist/packages/_es/SwiperItem.js +2 -2
- 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 +17 -6
- 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 +2 -2
- package/dist/packages/_es/Toast.js +2 -2
- 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 +2 -2
- package/dist/packages/_es/index2.js +2 -2
- package/dist/packages/_es/index3.js +2 -2
- package/dist/packages/_es/index4.js +2 -2
- 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/badge/index.scss +11 -13
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/calendar/index.scss +9 -4
- package/dist/packages/calendaritem/index.scss +0 -207
- package/dist/packages/cell/index.scss +6 -6
- 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 +28 -8
- package/dist/packages/noticebar/index.scss +7 -8
- package/dist/packages/notify/index.scss +9 -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 +6 -5
- package/dist/packages/radio/index.scss +7 -6
- package/dist/packages/range/index.scss +109 -2
- 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/tabbaritem/index.scss +15 -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/uploader/index.scss +4 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +39 -37
- package/dist/styles/themes/jdt.scss +91 -0
- package/dist/styles/variables-jdt.scss +727 -0
- package/dist/styles/variables.scss +250 -44
- package/package.json +2 -1
- package/dist/styles/themes/jdd.scss +0 -2
|
@@ -1,55 +1,96 @@
|
|
|
1
|
+
input,
|
|
2
|
+
textarea {
|
|
3
|
+
font: inherit;
|
|
4
|
+
}
|
|
1
5
|
.nut-input {
|
|
2
6
|
position: relative;
|
|
3
7
|
width: 100%;
|
|
4
|
-
padding: 10px
|
|
8
|
+
padding: 10px 25px;
|
|
5
9
|
display: flex;
|
|
10
|
+
line-height: 24px;
|
|
6
11
|
background: $white;
|
|
7
12
|
font-size: $input-font-size;
|
|
8
13
|
box-sizing: border-box;
|
|
9
|
-
|
|
14
|
+
&.center {
|
|
15
|
+
align-items: center;
|
|
16
|
+
}
|
|
10
17
|
&.nut-input-border {
|
|
11
18
|
border-bottom: 1px solid $input-border-bottom;
|
|
12
19
|
}
|
|
13
20
|
|
|
14
|
-
&.nut-input-require {
|
|
15
|
-
&::before {
|
|
16
|
-
position: absolute;
|
|
17
|
-
left: 14px;
|
|
18
|
-
color: $input-require-color;
|
|
19
|
-
content: '*';
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
21
|
.input-text,
|
|
24
22
|
&__text--readonly {
|
|
25
|
-
width:
|
|
26
|
-
|
|
27
|
-
padding:
|
|
28
|
-
|
|
23
|
+
width: 100%;
|
|
24
|
+
padding: 0;
|
|
25
|
+
// padding-right: 35px;
|
|
26
|
+
line-height: inherit;
|
|
29
27
|
text-align: left;
|
|
30
28
|
outline: 0 none;
|
|
31
29
|
border: 0;
|
|
32
30
|
text-decoration: none;
|
|
31
|
+
resize: none;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
&-label {
|
|
36
35
|
width: 80px;
|
|
37
36
|
overflow: hidden;
|
|
38
|
-
|
|
37
|
+
margin-right: 6px;
|
|
39
38
|
text-align: left;
|
|
40
|
-
display: flex;
|
|
41
|
-
|
|
42
39
|
.label-string {
|
|
43
|
-
overflow: hidden;
|
|
44
|
-
white-space: nowrap;
|
|
45
|
-
text-overflow: ellipsis;
|
|
40
|
+
// overflow: hidden;
|
|
41
|
+
// white-space: nowrap;
|
|
42
|
+
// text-overflow: ellipsis;
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
|
-
|
|
45
|
+
&-value {
|
|
46
|
+
flex: 1;
|
|
47
|
+
vertical-align: middle;
|
|
48
|
+
}
|
|
49
|
+
&-inner {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
}
|
|
53
|
+
&-error-message {
|
|
54
|
+
color: $input-required-color;
|
|
55
|
+
font-size: 12px;
|
|
56
|
+
}
|
|
57
|
+
&-word-limit {
|
|
58
|
+
display: block;
|
|
59
|
+
margin-top: 4px;
|
|
60
|
+
color: #808080;
|
|
61
|
+
font-size: 12px;
|
|
62
|
+
// line-height: var(--van-field-word-limit-line-height);
|
|
63
|
+
text-align: right;
|
|
64
|
+
}
|
|
65
|
+
&-left-icon,
|
|
66
|
+
&-right-icon {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
font-size: 0;
|
|
70
|
+
}
|
|
71
|
+
&-clear,
|
|
72
|
+
&-right-icon {
|
|
73
|
+
margin-left: 4px;
|
|
74
|
+
}
|
|
75
|
+
&-left-icon {
|
|
76
|
+
margin-right: 4px;
|
|
77
|
+
}
|
|
78
|
+
&-clear {
|
|
49
79
|
width: 16px;
|
|
50
80
|
height: 16px;
|
|
51
|
-
|
|
52
|
-
|
|
81
|
+
color: #c8c9cc;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
.nut-button {
|
|
85
|
+
margin-left: 10px;
|
|
86
|
+
}
|
|
87
|
+
&.nut-input-required {
|
|
88
|
+
&::before {
|
|
89
|
+
position: absolute;
|
|
90
|
+
left: 14px;
|
|
91
|
+
color: $input-required-color;
|
|
92
|
+
content: '*';
|
|
93
|
+
}
|
|
53
94
|
}
|
|
54
95
|
&-disabled {
|
|
55
96
|
color: $input-disabled-color !important;
|
|
@@ -61,4 +102,9 @@
|
|
|
61
102
|
-webkit-text-fill-color: $input-disabled-color;
|
|
62
103
|
}
|
|
63
104
|
}
|
|
105
|
+
&-error,
|
|
106
|
+
&-error::placeholder {
|
|
107
|
+
color: $input-required-color;
|
|
108
|
+
-webkit-text-fill-color: $input-required-color;
|
|
109
|
+
}
|
|
64
110
|
}
|
|
@@ -24,8 +24,10 @@
|
|
|
24
24
|
height: 100%;
|
|
25
25
|
text-align: center;
|
|
26
26
|
outline: none;
|
|
27
|
-
border:
|
|
28
|
-
|
|
27
|
+
border: $inputnumber-input-border;
|
|
28
|
+
font-size: $inputnumber-input-font-size;
|
|
29
|
+
color: $inputnumber-input-font-color;
|
|
30
|
+
margin: $inputnumber-input-margin;
|
|
29
31
|
background-color: $inputnumber-input-background-color;
|
|
30
32
|
border-radius: $inputnumber-input-border-radius;
|
|
31
33
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.nut-list {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
overflow: scroll;
|
|
5
|
+
position: relative;
|
|
6
|
+
-webkit-overflow-scrolling: touch;
|
|
7
|
+
&-phantom {
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: 0;
|
|
10
|
+
top: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
z-index: -1;
|
|
13
|
+
}
|
|
14
|
+
&-container {
|
|
15
|
+
left: 0;
|
|
16
|
+
right: 0;
|
|
17
|
+
top: 0;
|
|
18
|
+
position: absolute;
|
|
19
|
+
}
|
|
20
|
+
&-item {
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
margin: $list-item-margin;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
display: flex;
|
|
4
4
|
line-height: $menu-bar-line-height;
|
|
5
5
|
background-color: $white;
|
|
6
|
-
|
|
6
|
+
box-shadow: $menu-bar-box-shadow;
|
|
7
7
|
|
|
8
8
|
&.opened {
|
|
9
9
|
z-index: $menu-bar-opened-z-index;
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
.nut-menu__item {
|
|
13
13
|
flex: 1;
|
|
14
14
|
text-align: center;
|
|
15
|
-
font-size: $font-size
|
|
16
|
-
color: $
|
|
15
|
+
font-size: $menu-item-font-size;
|
|
16
|
+
color: $menu-item-text-color;
|
|
17
17
|
min-width: 0;
|
|
18
18
|
|
|
19
19
|
&.active {
|
|
@@ -2,18 +2,28 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
|
-
height:
|
|
5
|
+
height: $navbar-height;
|
|
6
6
|
box-sizing: border-box;
|
|
7
|
-
padding:
|
|
8
|
-
background: $
|
|
9
|
-
box-shadow:
|
|
10
|
-
font-size: $
|
|
11
|
-
color: $
|
|
12
|
-
margin-bottom:
|
|
7
|
+
padding: $navbar-padding;
|
|
8
|
+
background: $navbar-background;
|
|
9
|
+
box-shadow: $navbar-box-shadow;
|
|
10
|
+
font-size: $navbar-title-base-font;
|
|
11
|
+
color: $navbar-color;
|
|
12
|
+
margin-bottom: $navbar-margin-bottom;
|
|
13
13
|
overflow: hidden;
|
|
14
14
|
&:active::before {
|
|
15
15
|
opacity: 0.1;
|
|
16
16
|
}
|
|
17
|
+
&--fixed {
|
|
18
|
+
position: fixed;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
&--safe-area-inset-top {
|
|
24
|
+
padding-top: constant(safe-area-inset-top);
|
|
25
|
+
padding-top: env(safe-area-inset-top);
|
|
26
|
+
}
|
|
17
27
|
&--clickable {
|
|
18
28
|
&::before {
|
|
19
29
|
position: absolute;
|
|
@@ -43,9 +53,19 @@
|
|
|
43
53
|
text-align: center;
|
|
44
54
|
display: flex;
|
|
45
55
|
justify-content: center;
|
|
56
|
+
.title {
|
|
57
|
+
width: $navbar-title-width;
|
|
58
|
+
font-size: $navbar-title-font;
|
|
59
|
+
font-weight: $navbar-title-font-weight;
|
|
60
|
+
color: $navbar-title-font-color;
|
|
61
|
+
display: -webkit-box;
|
|
62
|
+
-webkit-box-orient: vertical;
|
|
63
|
+
-webkit-line-clamp: 1;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
}
|
|
46
66
|
&.icon {
|
|
47
67
|
.icon {
|
|
48
|
-
margin
|
|
68
|
+
margin: $navbar-title-icon-margin;
|
|
49
69
|
}
|
|
50
70
|
}
|
|
51
71
|
.nut-icon {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
.nut-noticebar-page {
|
|
2
2
|
// width: 100%;
|
|
3
3
|
display: flex;
|
|
4
|
-
padding:
|
|
4
|
+
padding: $noticebar-box-padding;
|
|
5
5
|
height: $noticebar-height;
|
|
6
6
|
font-size: $noticebar-font-size;
|
|
7
7
|
position: relative;
|
|
8
8
|
align-items: center;
|
|
9
|
+
background: $noticebar-background;
|
|
10
|
+
color: $noticebar-color;
|
|
9
11
|
&.wrapable {
|
|
10
12
|
height: auto;
|
|
11
|
-
padding: $noticebar-wrapable-padding
|
|
12
|
-
$noticebar-wrapable-padding-left;
|
|
13
|
+
padding: $noticebar-wrapable-padding;
|
|
13
14
|
.wrap {
|
|
14
15
|
height: auto;
|
|
15
16
|
.content {
|
|
@@ -27,8 +28,7 @@
|
|
|
27
28
|
.left-icon {
|
|
28
29
|
height: $noticebar-left-icon-width;
|
|
29
30
|
min-width: $noticebar-left-icon-width;
|
|
30
|
-
margin: $noticebar-lefticon-
|
|
31
|
-
$noticebar-lefticon-padding-left;
|
|
31
|
+
margin: $noticebar-lefticon-margin;
|
|
32
32
|
background-size: 100% 100%;
|
|
33
33
|
}
|
|
34
34
|
.right-icon {
|
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
align-items: center;
|
|
37
37
|
justify-content: center;
|
|
38
38
|
width: $noticebar-right-icon-width;
|
|
39
|
-
margin: $noticebar-righticon-
|
|
40
|
-
$noticebar-righticon-padding-left;
|
|
39
|
+
margin: $noticebar-righticon-margin;
|
|
41
40
|
}
|
|
42
41
|
.wrap {
|
|
43
42
|
display: flex;
|
|
@@ -95,7 +94,7 @@
|
|
|
95
94
|
height: $noticebar-height;
|
|
96
95
|
font-size: $noticebar-font-size;
|
|
97
96
|
overflow: hidden;
|
|
98
|
-
padding:
|
|
97
|
+
padding: $noticebar-box-padding;
|
|
99
98
|
|
|
100
99
|
.horseLamp_list {
|
|
101
100
|
margin: 0;
|
|
@@ -7,6 +7,15 @@
|
|
|
7
7
|
transition: transform 0.3s;
|
|
8
8
|
z-index: 9999;
|
|
9
9
|
}
|
|
10
|
+
.popup-bottom {
|
|
11
|
+
position: fixed;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
width: 100%;
|
|
15
|
+
overflow-y: auto;
|
|
16
|
+
transition: transform 0.3s;
|
|
17
|
+
z-index: 9999;
|
|
18
|
+
}
|
|
10
19
|
|
|
11
20
|
.nut-fade-enter-active {
|
|
12
21
|
transition: opacity 1s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.nut-numberkeyboard {
|
|
2
|
-
width:
|
|
3
|
-
padding
|
|
4
|
-
background-color:
|
|
2
|
+
width: $numberkeyboard-width;
|
|
3
|
+
padding: $numberkeyboard-padding;
|
|
4
|
+
background-color: $numberkeyboard-background-color;
|
|
5
5
|
user-select: none;
|
|
6
6
|
|
|
7
7
|
.number-board-header {
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: center;
|
|
12
12
|
box-sizing: content-box;
|
|
13
|
-
height:
|
|
14
|
-
padding
|
|
15
|
-
color:
|
|
16
|
-
font-size:
|
|
13
|
+
height: $numberkeyboard-header-height;
|
|
14
|
+
padding: $numberkeyboard-header-padding;
|
|
15
|
+
color: $numberkeyboard-header-color;
|
|
16
|
+
font-size: $numberkeyboard-header-font-size;
|
|
17
17
|
|
|
18
18
|
.tit {
|
|
19
19
|
display: inline-block;
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
position: absolute;
|
|
24
24
|
display: block;
|
|
25
25
|
right: 0;
|
|
26
|
-
padding:
|
|
27
|
-
color:
|
|
28
|
-
font-size:
|
|
29
|
-
background-color:
|
|
26
|
+
padding: $numberkeyboard-header-close-padding;
|
|
27
|
+
color: $numberkeyboard-header-close-color;
|
|
28
|
+
font-size: $numberkeyboard-header-close-font-size;
|
|
29
|
+
background-color: $numberkeyboard-header-close-background-color;
|
|
30
30
|
border: none;
|
|
31
31
|
cursor: pointer;
|
|
32
32
|
}
|
|
@@ -53,16 +53,17 @@
|
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
55
55
|
justify-content: center;
|
|
56
|
-
height:
|
|
57
|
-
font-size:
|
|
58
|
-
line-height:
|
|
59
|
-
background-color:
|
|
60
|
-
|
|
56
|
+
height: $numberkeyboard-key-height;
|
|
57
|
+
font-size: $numberkeyboard-key-font-size;
|
|
58
|
+
line-height: $numberkeyboard-key-line-height;
|
|
59
|
+
background-color: $numberkeyboard-key-background-color;
|
|
60
|
+
color: $numberkeyboard-key-font-size-color;
|
|
61
|
+
border-radius: $numberkeyboard-key-border-radius;
|
|
61
62
|
cursor: pointer;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
.active {
|
|
65
|
-
background-color:
|
|
66
|
+
background-color: $numberkeyboard-key-active-background-color;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
img {
|
|
@@ -91,13 +92,13 @@
|
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
.finish {
|
|
94
|
-
font-size:
|
|
95
|
-
color:
|
|
96
|
-
background-color:
|
|
95
|
+
font-size: $numberkeyboard-key-finish-font-size;
|
|
96
|
+
color: $numberkeyboard-key-finish-font-size-color;
|
|
97
|
+
background-color: $numberkeyboard-key-finish-background-color;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
.activeFinsh {
|
|
100
|
-
background-color:
|
|
101
|
+
background-color: $numberkeyboard-key-activeFinsh-background-color;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.nut-oldpicker {
|
|
2
|
+
&__content {
|
|
3
|
+
display: block;
|
|
4
|
+
position: relative;
|
|
5
|
+
text-align: center;
|
|
6
|
+
overflow-y: hidden;
|
|
7
|
+
&:hover {
|
|
8
|
+
cursor: grab;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__bar {
|
|
13
|
+
display: flex;
|
|
14
|
+
height: 56px;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
}
|
|
18
|
+
&__column {
|
|
19
|
+
display: flex;
|
|
20
|
+
position: relative;
|
|
21
|
+
height: 252px;
|
|
22
|
+
}
|
|
23
|
+
&__columnitem {
|
|
24
|
+
width: 0;
|
|
25
|
+
flex-grow: 1;
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
&__left {
|
|
29
|
+
color: $picker-cancel-color;
|
|
30
|
+
font-size: $picker-bar-cancel-font-size;
|
|
31
|
+
}
|
|
32
|
+
&__right {
|
|
33
|
+
color: $picker-ok-color;
|
|
34
|
+
font-size: $picker-bar-ok-font-size;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__title {
|
|
38
|
+
color: $picker-bar-title-color;
|
|
39
|
+
font-size: $picker-bar-title-font-size;
|
|
40
|
+
font-weight: $picker-bar-title-font-weight;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__button {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
padding: $picker-bar-button-padding;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
height: 100%;
|
|
49
|
+
}
|
|
50
|
+
&__wrapper {
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
&__item {
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
align-items: center;
|
|
57
|
+
height: 35px;
|
|
58
|
+
}
|
|
59
|
+
&__hairline {
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 108px;
|
|
62
|
+
height: 34px;
|
|
63
|
+
width: 100%;
|
|
64
|
+
border: $picker-item-active-line-border;
|
|
65
|
+
border-left: 0;
|
|
66
|
+
border-right: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__list {
|
|
70
|
+
position: relative;
|
|
71
|
+
display: block;
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 252px;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
text-align: center;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-roller {
|
|
79
|
+
display: block;
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: 108px;
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: $picker-item-height;
|
|
84
|
+
z-index: 1;
|
|
85
|
+
transform-style: preserve-3d;
|
|
86
|
+
|
|
87
|
+
&-item {
|
|
88
|
+
display: block;
|
|
89
|
+
backface-visibility: hidden;
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 0;
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: $picker-item-height;
|
|
94
|
+
line-height: $picker-item-height;
|
|
95
|
+
color: $picker-item-text-color;
|
|
96
|
+
font-size: $picker-item-text-font-size;
|
|
97
|
+
|
|
98
|
+
&-hidden {
|
|
99
|
+
visibility: hidden;
|
|
100
|
+
opacity: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&-content {
|
|
106
|
+
display: block;
|
|
107
|
+
position: absolute;
|
|
108
|
+
top: 108px;
|
|
109
|
+
width: 100%;
|
|
110
|
+
height: $picker-item-height;
|
|
111
|
+
color: $picker-item-active-text-color;
|
|
112
|
+
z-index: 2;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
border-left: 0;
|
|
115
|
+
border-right: 0;
|
|
116
|
+
}
|
|
117
|
+
&-list-panel {
|
|
118
|
+
display: block;
|
|
119
|
+
transform-style: preserve-3d;
|
|
120
|
+
}
|
|
121
|
+
&-item {
|
|
122
|
+
display: block;
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
text-overflow: ellipsis;
|
|
126
|
+
height: $picker-item-height;
|
|
127
|
+
line-height: $picker-item-height;
|
|
128
|
+
text-align: center;
|
|
129
|
+
font-size: 16px;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
.nut-picker {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
view {
|
|
5
|
-
display: block;
|
|
6
|
-
}
|
|
7
|
-
&__content {
|
|
8
|
-
display: block;
|
|
9
|
-
position: relative;
|
|
10
|
-
text-align: center;
|
|
11
|
-
overflow-y: hidden;
|
|
12
|
-
&:hover {
|
|
13
|
-
cursor: grab;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
2
|
+
// 标题
|
|
17
3
|
&__bar {
|
|
18
4
|
display: flex;
|
|
19
5
|
height: 56px;
|
|
20
6
|
align-items: center;
|
|
21
7
|
justify-content: space-between;
|
|
22
|
-
padding: 0 15px;
|
|
23
|
-
font-size: 16px;
|
|
24
8
|
}
|
|
9
|
+
&__button {
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
padding: $picker-bar-button-padding;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
min-width: 50px;
|
|
16
|
+
}
|
|
17
|
+
&__left {
|
|
18
|
+
color: $picker-cancel-color;
|
|
19
|
+
font-size: $picker-bar-cancel-font-size;
|
|
20
|
+
}
|
|
21
|
+
&__right {
|
|
22
|
+
color: $picker-ok-color;
|
|
23
|
+
font-size: $picker-bar-ok-font-size;
|
|
24
|
+
}
|
|
25
|
+
|
|
25
26
|
&__column {
|
|
26
27
|
display: flex;
|
|
27
28
|
position: relative;
|
|
@@ -32,13 +33,16 @@
|
|
|
32
33
|
flex-grow: 1;
|
|
33
34
|
height: 100%;
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
|
|
37
|
+
&__title {
|
|
38
|
+
flex: 1;
|
|
39
|
+
@include oneline-ellipsis();
|
|
40
|
+
text-align: center;
|
|
41
|
+
color: $picker-bar-title-color;
|
|
42
|
+
font-size: $picker-bar-title-font-size;
|
|
43
|
+
font-weight: $picker-bar-title-font-weight;
|
|
41
44
|
}
|
|
45
|
+
|
|
42
46
|
&__wrapper {
|
|
43
47
|
display: block;
|
|
44
48
|
}
|
|
@@ -53,7 +57,7 @@
|
|
|
53
57
|
top: 108px;
|
|
54
58
|
height: 34px;
|
|
55
59
|
width: 100%;
|
|
56
|
-
border:
|
|
60
|
+
border: $picker-item-active-line-border;
|
|
57
61
|
border-left: 0;
|
|
58
62
|
border-right: 0;
|
|
59
63
|
}
|
|
@@ -72,7 +76,7 @@
|
|
|
72
76
|
position: absolute;
|
|
73
77
|
top: 108px;
|
|
74
78
|
width: 100%;
|
|
75
|
-
height:
|
|
79
|
+
height: $picker-item-height;
|
|
76
80
|
z-index: 1;
|
|
77
81
|
transform-style: preserve-3d;
|
|
78
82
|
|
|
@@ -82,10 +86,10 @@
|
|
|
82
86
|
position: absolute;
|
|
83
87
|
top: 0;
|
|
84
88
|
width: 100%;
|
|
85
|
-
height:
|
|
86
|
-
line-height:
|
|
87
|
-
color:
|
|
88
|
-
font-size:
|
|
89
|
+
height: $picker-item-height;
|
|
90
|
+
line-height: $picker-item-height;
|
|
91
|
+
color: $picker-item-text-color;
|
|
92
|
+
font-size: $picker-item-text-font-size;
|
|
89
93
|
|
|
90
94
|
&-hidden {
|
|
91
95
|
visibility: hidden;
|
|
@@ -99,7 +103,8 @@
|
|
|
99
103
|
position: absolute;
|
|
100
104
|
top: 108px;
|
|
101
105
|
width: 100%;
|
|
102
|
-
height:
|
|
106
|
+
height: $picker-item-height;
|
|
107
|
+
color: $picker-item-active-text-color;
|
|
103
108
|
z-index: 2;
|
|
104
109
|
overflow: hidden;
|
|
105
110
|
border-left: 0;
|
|
@@ -114,9 +119,10 @@
|
|
|
114
119
|
white-space: nowrap;
|
|
115
120
|
overflow: hidden;
|
|
116
121
|
text-overflow: ellipsis;
|
|
117
|
-
height:
|
|
118
|
-
line-height:
|
|
122
|
+
height: $picker-item-height;
|
|
123
|
+
line-height: $picker-item-height;
|
|
119
124
|
text-align: center;
|
|
120
125
|
font-size: 16px;
|
|
126
|
+
color: $picker-columns-item-color;
|
|
121
127
|
}
|
|
122
128
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
background: $progress-inner-background-color;
|
|
15
15
|
-webkit-transition: all 0.4s;
|
|
16
16
|
transition: all 0.4s;
|
|
17
|
-
position: relative;
|
|
17
|
+
// position: relative;
|
|
18
18
|
.nut-progress-text {
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-direction: column;
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
font-size: $progress-small-text-font-size;
|
|
55
55
|
line-height: $progress-small-text-line-height;
|
|
56
56
|
padding: $progress-small-text-padding;
|
|
57
|
-
top: $progress-small-text-top;
|
|
57
|
+
// top: $progress-small-text-top;
|
|
58
|
+
top: 50%;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
&.nut-progress-base {
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
font-size: $progress-base-text-font-size;
|
|
64
65
|
line-height: $progress-base-text-line-height;
|
|
65
66
|
padding: $progress-base-text-padding;
|
|
66
|
-
top:
|
|
67
|
+
top: 50%;
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
&.nut-progress-large {
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
font-size: $progress-large-text-font-size;
|
|
73
74
|
line-height: $progress-large-text-line-height;
|
|
74
75
|
padding: $progress-large-text-padding;
|
|
75
|
-
top:
|
|
76
|
+
top: 50%;
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
}
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
border-radius: $progress-insidetext-border-radius;
|
|
92
93
|
position: absolute;
|
|
93
94
|
transition: all 0.4s;
|
|
94
|
-
top:
|
|
95
|
+
top: 50%;
|
|
95
96
|
min-width: 0px;
|
|
96
97
|
}
|
|
97
98
|
.nut-icon-success,
|