@nutui/nutui 3.1.16 → 3.1.18-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/README.md +1 -1
- package/dist/nutui.d.ts +3 -1
- package/dist/nutui.es.js +1860 -773
- package/dist/nutui.umd.js +1871 -778
- package/dist/packages/_es/ActionSheet.js +8 -3
- package/dist/packages/_es/Address.js +60 -7
- package/dist/packages/_es/Audio.js +289 -0
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/BackTop.js +3 -3
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +13 -4
- package/dist/packages/_es/Calendar.js +428 -209
- package/dist/packages/_es/Card.js +1 -2
- package/dist/packages/_es/Cascader.js +2 -2
- package/dist/packages/_es/Cell.js +2 -2
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +2 -2
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +4 -2
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -2
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Elevator.js +10 -5
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +2 -2
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +8 -5
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +7 -2
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +18 -59
- package/dist/packages/_es/NoticeBar.js +38 -23
- package/dist/packages/_es/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +1 -2
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +2 -1
- package/dist/packages/_es/Popover.js +4 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +24 -11
- package/dist/packages/_es/Radio.js +2 -2
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +2 -2
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +12 -4
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +8 -6
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +143 -0
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +2 -2
- package/dist/packages/_es/Swiper.js +2 -2
- package/dist/packages/_es/SwiperItem.js +3 -8
- package/dist/packages/_es/Switch.js +2 -2
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +7 -3
- package/dist/packages/_es/Table.js +2 -2
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +7 -2
- package/dist/packages/_es/Toast.js +15 -8
- package/dist/packages/_es/Uploader.js +1 -1
- package/dist/packages/_es/Video.js +1 -55
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +5 -7
- package/dist/packages/_es/index2.js +7 -58
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +64 -0
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/util.js +1 -1
- package/dist/packages/actionsheet/index.scss +7 -6
- package/dist/packages/address/index.scss +8 -0
- package/dist/packages/audio/index.scss +66 -0
- package/dist/packages/audiooperate/index.scss +13 -0
- package/dist/packages/button/index.scss +5 -5
- package/dist/packages/calendar/index.scss +47 -41
- package/dist/packages/calendaritem/index.scss +57 -42
- package/dist/packages/cell/index.scss +3 -3
- package/dist/packages/cellgroup/index.scss +1 -1
- package/dist/packages/elevator/index.scss +3 -0
- package/dist/packages/infiniteloading/index.scss +1 -1
- package/dist/packages/input/index.scss +4 -2
- package/dist/packages/navbar/index.scss +2 -0
- package/dist/packages/noticebar/index.scss +11 -5
- package/dist/packages/notify/index.scss +1 -0
- package/dist/packages/progress/index.scss +21 -17
- package/dist/packages/range/index.scss +8 -8
- package/dist/packages/row/index.scss +3 -0
- package/dist/packages/sticky/index.scss +5 -0
- package/dist/packages/swiper/index.scss +4 -4
- package/dist/packages/switch/index.scss +8 -8
- package/dist/packages/tabbar/index.scss +7 -4
- package/dist/packages/tabbaritem/index.scss +4 -3
- package/dist/packages/tabs/index.scss +1 -0
- package/dist/packages/toast/index.scss +8 -7
- package/dist/style.css +1 -1
- package/dist/styles/font/config.json +6 -1
- package/dist/styles/font/demo_index.html +118 -3
- package/dist/styles/font/iconfont.css +23 -3
- package/dist/styles/font/iconfont.js +25 -24
- package/dist/styles/font/iconfont.json +35 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +46 -43
- package/dist/styles/variables.scss +123 -42
- package/package.json +12 -13
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
.nut-noticebar-page {
|
|
2
|
-
width: 100%;
|
|
2
|
+
// width: 100%;
|
|
3
3
|
display: flex;
|
|
4
|
+
padding: 0px $noticebar-box-padding-right 0 $noticebar-box-padding-left;
|
|
4
5
|
height: $noticebar-height;
|
|
5
6
|
font-size: $noticebar-font-size;
|
|
6
7
|
position: relative;
|
|
7
8
|
align-items: center;
|
|
8
9
|
&.wrapable {
|
|
9
10
|
height: auto;
|
|
10
|
-
padding:
|
|
11
|
+
padding: $noticebar-wrapable-padding-bottom $noticebar-wrapable-padding-right $noticebar-wrapable-padding-bottom
|
|
12
|
+
$noticebar-wrapable-padding-left;
|
|
11
13
|
.wrap {
|
|
12
14
|
height: auto;
|
|
13
15
|
.content {
|
|
@@ -25,7 +27,8 @@
|
|
|
25
27
|
.left-icon {
|
|
26
28
|
height: $noticebar-left-icon-width;
|
|
27
29
|
min-width: $noticebar-left-icon-width;
|
|
28
|
-
margin:
|
|
30
|
+
margin: $noticebar-lefticon-padding-top $noticebar-lefticon-padding-right $noticebar-lefticon-padding-bottom
|
|
31
|
+
$noticebar-lefticon-padding-left;
|
|
29
32
|
background-size: 100% 100%;
|
|
30
33
|
}
|
|
31
34
|
.right-icon {
|
|
@@ -33,9 +36,11 @@
|
|
|
33
36
|
align-items: center;
|
|
34
37
|
justify-content: center;
|
|
35
38
|
width: $noticebar-right-icon-width;
|
|
36
|
-
margin:
|
|
39
|
+
margin: $noticebar-righticon-padding-top $noticebar-righticon-padding-right $noticebar-righticon-padding-bottom
|
|
40
|
+
$noticebar-righticon-padding-left;
|
|
37
41
|
}
|
|
38
42
|
.wrap {
|
|
43
|
+
display: flex;
|
|
39
44
|
flex: 1;
|
|
40
45
|
height: $noticebar-line-height;
|
|
41
46
|
line-height: $noticebar-line-height;
|
|
@@ -72,7 +77,7 @@
|
|
|
72
77
|
|
|
73
78
|
@keyframes nut-notice-bar-play-infinite {
|
|
74
79
|
to {
|
|
75
|
-
transform:
|
|
80
|
+
transform: translateX(-100%);
|
|
76
81
|
}
|
|
77
82
|
}
|
|
78
83
|
// 垂直方向的滚动
|
|
@@ -90,6 +95,7 @@
|
|
|
90
95
|
height: $noticebar-height;
|
|
91
96
|
font-size: $noticebar-font-size;
|
|
92
97
|
overflow: hidden;
|
|
98
|
+
padding: 0px $noticebar-box-padding-right 0 $noticebar-box-padding-left;
|
|
93
99
|
|
|
94
100
|
.horseLamp_list {
|
|
95
101
|
margin: 0;
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
.nut-progress-outer {
|
|
6
6
|
flex: 1;
|
|
7
|
-
background-color:
|
|
8
|
-
border-radius:
|
|
7
|
+
background-color: $progress-outer-background-color;
|
|
8
|
+
border-radius: $progress-outer-border-radius;
|
|
9
9
|
height: 10px;
|
|
10
10
|
.nut-progress-inner {
|
|
11
11
|
width: 30%;
|
|
12
12
|
height: 100%;
|
|
13
|
-
border-radius:
|
|
13
|
+
border-radius: $progress-outer-border-radius;
|
|
14
14
|
background: $progress-inner-background-color;
|
|
15
15
|
-webkit-transition: all 0.4s;
|
|
16
16
|
transition: all 0.4s;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
left: 0;
|
|
31
31
|
right: 0;
|
|
32
32
|
bottom: 0;
|
|
33
|
-
border-radius:
|
|
33
|
+
border-radius: $progress-outer-border-radius;
|
|
34
34
|
animation: progressActive 2s ease-in-out infinite;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -49,26 +49,30 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
&.nut-progress-small {
|
|
52
|
-
height:
|
|
52
|
+
height: $progress-small-height;
|
|
53
53
|
.nut-progress-text {
|
|
54
|
-
font-size:
|
|
55
|
-
line-height:
|
|
56
|
-
padding:
|
|
57
|
-
top: -
|
|
54
|
+
font-size: $progress-small-text-font-size;
|
|
55
|
+
line-height: $progress-small-text-line-height;
|
|
56
|
+
padding: $progress-small-text-padding;
|
|
57
|
+
top: $progress-small-text-top;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
&.nut-progress-base {
|
|
61
|
-
height:
|
|
61
|
+
height: $progress-base-height;
|
|
62
62
|
.nut-progress-text {
|
|
63
|
-
font-size:
|
|
64
|
-
line-height:
|
|
63
|
+
font-size: $progress-base-text-font-size;
|
|
64
|
+
line-height: $progress-base-text-line-height;
|
|
65
|
+
padding: $progress-base-text-padding;
|
|
66
|
+
top: $progress-base-text-top;
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
&.nut-progress-large {
|
|
68
|
-
height:
|
|
70
|
+
height: $progress-large-height;
|
|
69
71
|
.nut-progress-text {
|
|
70
|
-
font-size:
|
|
71
|
-
line-height:
|
|
72
|
+
font-size: $progress-large-text-font-size;
|
|
73
|
+
line-height: $progress-large-text-line-height;
|
|
74
|
+
padding: $progress-large-text-padding;
|
|
75
|
+
top: $progress-large-text-top;
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
78
|
}
|
|
@@ -82,9 +86,9 @@
|
|
|
82
86
|
min-width: 35px;
|
|
83
87
|
}
|
|
84
88
|
.nut-progress-insidetext {
|
|
85
|
-
padding:
|
|
89
|
+
padding: $progress-insidetext-padding;
|
|
86
90
|
background: $progress-insidetext-background;
|
|
87
|
-
border-radius:
|
|
91
|
+
border-radius: $progress-insidetext-border-radius;
|
|
88
92
|
position: absolute;
|
|
89
93
|
transition: all 0.4s;
|
|
90
94
|
top: -42%;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.min,
|
|
8
8
|
.max {
|
|
9
9
|
font-size: $font-size-1;
|
|
10
|
-
color: $range-
|
|
10
|
+
color: $range-tip-font-color;
|
|
11
11
|
user-select: none;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
position: relative;
|
|
17
17
|
width: 100%;
|
|
18
18
|
height: 3px;
|
|
19
|
-
background-color: $
|
|
19
|
+
background-color: $range-bg-color;
|
|
20
20
|
border-radius: 2px;
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
&::before {
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
position: relative;
|
|
34
34
|
width: 100%;
|
|
35
35
|
height: 100%;
|
|
36
|
-
background: $
|
|
36
|
+
background: $range-bar-bg-color;
|
|
37
37
|
border-radius: inherit;
|
|
38
38
|
transition: all 0.2s;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&-button {
|
|
42
42
|
display: block;
|
|
43
|
-
width:
|
|
44
|
-
height:
|
|
45
|
-
background-color: $
|
|
43
|
+
width: $range-bar-btn-width;
|
|
44
|
+
height: $range-bar-btn-height;
|
|
45
|
+
background-color: $range-bar-btn-bg-color;
|
|
46
46
|
border-radius: 50%;
|
|
47
47
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.15);
|
|
48
|
-
border:
|
|
48
|
+
border: $range-bar-btn-border;
|
|
49
49
|
outline: none;
|
|
50
50
|
|
|
51
51
|
&-wrapper,
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
justify-content: center;
|
|
76
76
|
user-select: none;
|
|
77
77
|
font-size: $font-size-1;
|
|
78
|
-
color: $range-
|
|
78
|
+
color: $range-tip-font-color;
|
|
79
79
|
transform: translate3d(0, -100%, 0);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
bottom: 12px;
|
|
22
22
|
transform: translateX(-50%);
|
|
23
23
|
i {
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
26
|
-
margin-right:
|
|
27
|
-
border-radius:
|
|
24
|
+
width: $swiper-pagination-item-width;
|
|
25
|
+
height: $swiper-pagination-item-height;
|
|
26
|
+
margin-right: $swiper-pagination-item-margin-right;
|
|
27
|
+
border-radius: $swiper-pagination-item-border-radius;
|
|
28
28
|
&:last-child {
|
|
29
29
|
margin-right: 0;
|
|
30
30
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
background-color: $primary-color;
|
|
6
|
-
border-radius:
|
|
6
|
+
border-radius: $switch-border-radius;
|
|
7
7
|
background-size: 100% 100%;
|
|
8
8
|
background-repeat: no-repeat;
|
|
9
9
|
background-position: center center;
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
opacity: 0.6;
|
|
38
38
|
}
|
|
39
39
|
&.nut-switch-base {
|
|
40
|
-
width:
|
|
41
|
-
height:
|
|
42
|
-
line-height:
|
|
40
|
+
width: $switch-width;
|
|
41
|
+
height: $switch-height;
|
|
42
|
+
line-height: $switch-line-height;
|
|
43
43
|
.switch-button {
|
|
44
|
-
height:
|
|
45
|
-
width:
|
|
46
|
-
transform:
|
|
44
|
+
height: $switch-inside-width;
|
|
45
|
+
width: $switch-inside-height;
|
|
46
|
+
transform: $switch-inside-close-transform;
|
|
47
47
|
}
|
|
48
48
|
&.switch-open {
|
|
49
49
|
.switch-button {
|
|
50
|
-
transform:
|
|
50
|
+
transform: $switch-inside-open-transform;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
&.switch-close {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
.nut-tabbar {
|
|
2
2
|
border: 0px;
|
|
3
|
-
|
|
4
|
-
border-
|
|
3
|
+
box-shadow: $tabbar-box-shadow;
|
|
4
|
+
border-bottom: $tabbar-border-bottom;
|
|
5
|
+
border-top: $tabbar-border-top;
|
|
5
6
|
width: 100%;
|
|
6
7
|
display: flex;
|
|
7
8
|
padding: 7px 0;
|
|
@@ -11,14 +12,16 @@
|
|
|
11
12
|
&:last-child {
|
|
12
13
|
border-right: 0;
|
|
13
14
|
}
|
|
15
|
+
|
|
14
16
|
&-bottom {
|
|
15
17
|
position: fixed;
|
|
16
18
|
bottom: 0px;
|
|
17
19
|
left: 0px;
|
|
18
20
|
z-index: 888;
|
|
19
21
|
}
|
|
22
|
+
|
|
20
23
|
&-safebottom {
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
margin-bottom: constant(safe-area-inset-bottom);
|
|
25
|
+
margin-bottom: env(safe-area-inset-bottom);
|
|
23
26
|
}
|
|
24
27
|
}
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
|
|
36
36
|
&_num {
|
|
37
37
|
line-height: 1;
|
|
38
|
-
font-size: $font-size
|
|
38
|
+
font-size: $tabbar-item-text-font-size;
|
|
39
39
|
color: $white;
|
|
40
40
|
padding: 1px 2px 2px 3px;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&_nums {
|
|
44
44
|
line-height: 1;
|
|
45
|
-
font-size: $font-size
|
|
45
|
+
font-size: $tabbar-item-text-font-size;
|
|
46
46
|
color: $white;
|
|
47
47
|
padding: 2px 1px 2px 2px;
|
|
48
48
|
}
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
background-position: center center;
|
|
53
53
|
}
|
|
54
54
|
&_nav-word {
|
|
55
|
-
font-size: $font-size
|
|
55
|
+
font-size: $tabbar-item-text-font-size;
|
|
56
|
+
line-height: $tabbar-item-text-line-height;
|
|
56
57
|
display: block;
|
|
57
58
|
}
|
|
58
59
|
&_big-word {
|
|
@@ -32,27 +32,28 @@
|
|
|
32
32
|
justify-content: center;
|
|
33
33
|
pointer-events: auto;
|
|
34
34
|
height: 100%;
|
|
35
|
+
background: $toast-cover-bg-color;
|
|
35
36
|
}
|
|
36
37
|
&-inner {
|
|
37
38
|
display: inline-block;
|
|
38
|
-
font-size: $font-size
|
|
39
|
+
font-size: $toast-text-font-size;
|
|
39
40
|
min-width: 40%;
|
|
40
41
|
max-width: 65%;
|
|
41
42
|
text-align: center;
|
|
42
|
-
padding:
|
|
43
|
+
padding: $toast-inner-padding;
|
|
43
44
|
word-break: break-all;
|
|
44
|
-
background:
|
|
45
|
-
border-radius:
|
|
46
|
-
color: $
|
|
45
|
+
background: $toast-inner-bg-color;
|
|
46
|
+
border-radius: $toast-inner-border-radius;
|
|
47
|
+
color: $toast-font-color;
|
|
47
48
|
}
|
|
48
49
|
&-text {
|
|
49
|
-
font-size:
|
|
50
|
+
font-size: $toast-text-font-size;
|
|
50
51
|
&:empty {
|
|
51
52
|
margin-bottom: -8px;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
&-title {
|
|
55
|
-
font-size:
|
|
56
|
+
font-size: $toast-title-font-size;
|
|
56
57
|
&:empty {
|
|
57
58
|
margin-bottom: -8px;
|
|
58
59
|
}
|