@nutui/nutui-react-taro 3.0.13 → 3.0.14
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 +26 -12
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/datepicker/utils.js +1 -1
- package/dist/cjs/packages/elevator/elevator.d.ts +3 -20
- package/dist/cjs/packages/elevator/elevator.js +119 -91
- package/dist/cjs/packages/elevator/index.d.ts +1 -1
- package/dist/cjs/packages/elevator/style/elevator.scss +61 -33
- package/dist/cjs/packages/elevator/style/style.css +65 -40
- package/dist/cjs/packages/elevator/style/style.harmony.css +69 -41
- package/dist/cjs/packages/elevator/style-jmapp/elevator.scss +61 -33
- package/dist/cjs/packages/elevator/style-jmapp/style.css +56 -31
- package/dist/cjs/packages/elevator/style-jrkf/elevator.scss +61 -33
- package/dist/cjs/packages/elevator/style-jrkf/style.css +56 -31
- package/dist/cjs/packages/image/image.js +2 -2
- package/dist/cjs/packages/input/input.js +1 -1
- package/dist/cjs/packages/navbar/style/navbar.scss +2 -0
- package/dist/cjs/packages/navbar/style/style.css +2 -0
- package/dist/cjs/packages/navbar/style/style.harmony.css +2 -0
- package/dist/cjs/packages/navbar/style-jmapp/navbar.scss +2 -0
- package/dist/cjs/packages/navbar/style-jmapp/style.css +2 -0
- package/dist/cjs/packages/navbar/style-jrkf/navbar.scss +2 -0
- package/dist/cjs/packages/navbar/style-jrkf/style.css +2 -0
- package/dist/cjs/packages/switch/switch.js +0 -1
- package/dist/cjs/packages/tabpane/style/style.css +1 -1
- package/dist/cjs/packages/tabpane/style/tabpane.scss +1 -1
- package/dist/cjs/packages/tabpane/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/tabpane/style-jmapp/tabpane.scss +1 -1
- package/dist/cjs/packages/tabpane/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/tabpane/style-jrkf/tabpane.scss +1 -1
- package/dist/cjs/types/spec/elevator/base.d.ts +5 -2
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/datepicker/utils.js +1 -1
- package/dist/es/packages/elevator/elevator.d.ts +3 -20
- package/dist/es/packages/elevator/elevator.js +119 -91
- package/dist/es/packages/elevator/index.d.ts +1 -1
- package/dist/es/packages/elevator/style/elevator.scss +61 -33
- package/dist/es/packages/elevator/style/style.css +65 -40
- package/dist/es/packages/elevator/style/style.harmony.css +69 -41
- package/dist/es/packages/elevator/style-jmapp/elevator.scss +61 -33
- package/dist/es/packages/elevator/style-jmapp/style.css +56 -31
- package/dist/es/packages/elevator/style-jrkf/elevator.scss +61 -33
- package/dist/es/packages/elevator/style-jrkf/style.css +56 -31
- package/dist/es/packages/image/image.js +2 -2
- package/dist/es/packages/input/input.js +1 -1
- package/dist/es/packages/navbar/style/navbar.scss +2 -0
- package/dist/es/packages/navbar/style/style.css +2 -0
- package/dist/es/packages/navbar/style/style.harmony.css +2 -0
- package/dist/es/packages/navbar/style-jmapp/navbar.scss +2 -0
- package/dist/es/packages/navbar/style-jmapp/style.css +2 -0
- package/dist/es/packages/navbar/style-jrkf/navbar.scss +2 -0
- package/dist/es/packages/navbar/style-jrkf/style.css +2 -0
- package/dist/es/packages/switch/switch.js +0 -1
- package/dist/es/packages/tabpane/style/style.css +1 -1
- package/dist/es/packages/tabpane/style/tabpane.scss +1 -1
- package/dist/es/packages/tabpane/style-jmapp/style.css +1 -1
- package/dist/es/packages/tabpane/style-jmapp/tabpane.scss +1 -1
- package/dist/es/packages/tabpane/style-jrkf/style.css +1 -1
- package/dist/es/packages/tabpane/style-jrkf/tabpane.scss +1 -1
- package/dist/es/types/spec/elevator/base.d.ts +15 -6
- package/dist/nutui.react.umd.js +858 -837
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +36 -36
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +44 -44
- package/dist/style.css +1 -1
- package/dist/style.scss +35 -35
- package/dist/styles/variables-jmapp.scss +14 -2
- package/dist/styles/variables-jrkf.scss +14 -2
- package/dist/styles/variables.scss +24 -43
- package/package.json +1 -1
|
@@ -3,65 +3,64 @@
|
|
|
3
3
|
/* #ifndef harmony */
|
|
4
4
|
/* #endif */
|
|
5
5
|
.nut-elevator {
|
|
6
|
-
width: 100%;
|
|
7
|
-
display: block;
|
|
8
6
|
position: relative;
|
|
9
|
-
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
10
9
|
}
|
|
11
10
|
.nut-elevator-list {
|
|
12
|
-
display: block;
|
|
13
11
|
position: relative;
|
|
14
12
|
top: 0;
|
|
13
|
+
display: flex;
|
|
14
|
+
width: 100%;
|
|
15
15
|
overflow: hidden;
|
|
16
|
-
font-size: var(--nutui-elevator-list-font-size, var(--nutui-font-text-small));
|
|
17
|
-
color: var(--nutui-elevator-list-color, var(--nutui-color-title));
|
|
18
16
|
}
|
|
19
17
|
.nut-elevator-list-inner {
|
|
20
|
-
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
min-height: 100%;
|
|
21
21
|
width: 100%;
|
|
22
|
-
display: block;
|
|
23
22
|
background-color: var(--nutui-elevator-list-bg-color, #ffffff);
|
|
24
23
|
overflow: auto;
|
|
25
24
|
}
|
|
26
25
|
.nut-elevator-list-item {
|
|
27
|
-
display:
|
|
26
|
+
display: flex;
|
|
27
|
+
}
|
|
28
|
+
.nut-elevator-list-item-sublist {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
28
31
|
}
|
|
29
32
|
.nut-elevator-list-item-code {
|
|
30
33
|
display: flex;
|
|
31
|
-
|
|
34
|
+
align-items: center;
|
|
32
35
|
height: var(--nutui-elevator-list-item-code-height, 20px);
|
|
33
|
-
line-height: var(--nutui-elevator-list-item-code-line-height, 20px);
|
|
34
36
|
font-size: var(--nutui-elevator-list-item-code-font-size, var(--nutui-font-text));
|
|
35
37
|
color: var(--nutui-elevator-list-item-code-color, var(--nutui-color-title));
|
|
36
|
-
padding: var(--nutui-elevator-list-item-padding, 0 20px);
|
|
37
38
|
font-weight: var(--nutui-elevator-list-item-code-font-weight, var(--nutui-font-weight-bold));
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
border-bottom: var(--nutui-elevator-list-item-code-border-bottom, none);
|
|
40
|
-
background-color: var(--nutui-elevator-list-item-code-background-color, var(--nutui-color-default-light));
|
|
41
39
|
}
|
|
42
40
|
.nut-elevator-list-item-name {
|
|
43
41
|
display: flex;
|
|
44
42
|
align-items: center;
|
|
45
|
-
padding: var(--nutui-elevator-list-item-padding, 0 20px);
|
|
46
43
|
height: var(--nutui-elevator-list-item-name-height, 52px);
|
|
47
|
-
|
|
44
|
+
font-size: var(--nutui-elevator-list-font-size, var(--nutui-font-text-small));
|
|
45
|
+
color: var(--nutui-elevator-list-color, var(--nutui-color-title));
|
|
48
46
|
}
|
|
49
47
|
.nut-elevator-list-item-name-highcolor {
|
|
50
48
|
color: var(--nutui-color-primary);
|
|
49
|
+
font-weight: 600;
|
|
51
50
|
}
|
|
52
51
|
.nut-elevator-list-fixed {
|
|
53
|
-
display: flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
width: 100%;
|
|
56
52
|
position: absolute;
|
|
57
53
|
top: 0;
|
|
58
54
|
left: 0;
|
|
59
55
|
z-index: 1;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
width: 100%;
|
|
60
59
|
padding: var(--nutui-elevator-list-item-padding, 0 20px);
|
|
61
60
|
height: var(--nutui-elevator-list-item-code-height, 20px);
|
|
62
|
-
background-color: var(--nutui-elevator-list-fixed-bg-color, var(--nutui-color-default-light));
|
|
63
61
|
box-sizing: border-box;
|
|
64
62
|
box-shadow: var(--nutui-elevator-list-fixed-box-shadow, 0 0 10px #eee);
|
|
63
|
+
background-color: var(--nutui-elevator-list-fixed-bg-color, var(--nutui-color-default-light));
|
|
65
64
|
}
|
|
66
65
|
.nut-elevator-list-fixed-title {
|
|
67
66
|
font-size: var(--nutui-elevator-list-item-code-font-size, var(--nutui-font-text));
|
|
@@ -73,35 +72,61 @@
|
|
|
73
72
|
right: var(--nutui-elevator-list-item-code-current-right, 40px);
|
|
74
73
|
top: var(--nutui-elevator-list-item-code-current-top, 50%);
|
|
75
74
|
transform: var(--nutui-elevator-bars-transform, translateY(-50%));
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
76
78
|
width: var(--nutui-elevator-list-item-code-current-width, 48px);
|
|
77
79
|
height: var(--nutui-elevator-list-item-code-current-height, 48px);
|
|
78
|
-
line-height: var(--nutui-elevator-list-item-code-current-line-height, 48px);
|
|
79
80
|
border-radius: var(--nutui-elevator-list-item-code-current-border-radius, 50% 0 50% 50%);
|
|
80
81
|
background: var(--nutui-elevator-list-item-code-current-bg-color, var(--nutui-color-default-light));
|
|
81
82
|
box-shadow: 0px 2px 6px 0px rgba(4, 1, 135, 0.08);
|
|
82
|
-
|
|
83
|
+
color: var(--nutui-elevator-list-item-code-current-color, #ffffff);
|
|
83
84
|
}
|
|
84
85
|
.nut-elevator-bars {
|
|
85
86
|
position: absolute;
|
|
86
87
|
right: var(--nutui-elevator-bars-right, 10px);
|
|
87
88
|
top: var(--nutui-elevator-bars-top, 50%);
|
|
88
|
-
color: var(--nutui-color-text-help);
|
|
89
|
-
font-size: var(--nutui-elevator-bars-font-size, var(--nutui-font-text-xs));
|
|
90
89
|
transform: var(--nutui-elevator-bars-transform, translateY(-50%));
|
|
91
|
-
padding: var(--nutui-elevator-bars-padding, 15px 0);
|
|
92
|
-
background-color: var(--nutui-elevator-bars-background-color, transparent);
|
|
93
|
-
border-radius: var(--nutui-elevator-bars-border-radius, 6px);
|
|
94
|
-
text-align: center;
|
|
95
90
|
z-index: var(--nutui-elevator-bars-z-index, 2);
|
|
96
91
|
}
|
|
92
|
+
.nut-elevator-bars-inner {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
}
|
|
97
96
|
.nut-elevator-bars-inner-item {
|
|
98
|
-
display:
|
|
99
|
-
|
|
97
|
+
display: inline-flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
height: 16px;
|
|
101
|
+
width: 16px;
|
|
102
|
+
border-radius: 50%;
|
|
103
|
+
margin: 1px 0;
|
|
104
|
+
color: var(--nutui-elevator-bars-color, var(--nutui-color-text-help));
|
|
105
|
+
font-size: var(--nutui-elevator-bars-font-size, var(--nutui-font-text-xs));
|
|
100
106
|
cursor: pointer;
|
|
101
107
|
}
|
|
102
108
|
.nut-elevator-bars-inner-item-active {
|
|
103
109
|
font-weight: var(--nutui-font-weight-bold);
|
|
104
110
|
color: var(--nutui-elevator-bars-active-color, var(--nutui-color-primary));
|
|
111
|
+
/* #ifndef weapp jd*/
|
|
112
|
+
background: linear-gradient(to right, #ff475d, #ff0f23);
|
|
113
|
+
/* #endif */
|
|
114
|
+
/* #ifdef weapp jd*/
|
|
115
|
+
background: #ff0f23;
|
|
116
|
+
/* #endif */
|
|
117
|
+
}
|
|
118
|
+
.nut-elevator-horizontal .nut-elevator-list-item-code {
|
|
119
|
+
width: var(--nutui-elevator-list-item-code-width, 34px);
|
|
120
|
+
justify-content: center;
|
|
121
|
+
}
|
|
122
|
+
.nut-elevator-vertical .nut-elevator-list-item {
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
}
|
|
125
|
+
.nut-elevator-vertical .nut-elevator-list-item-code {
|
|
126
|
+
border-bottom: var(--nutui-elevator-list-item-code-border-bottom, none);
|
|
127
|
+
}
|
|
128
|
+
.nut-elevator-vertical .nut-elevator-list-item-name, .nut-elevator-vertical .nut-elevator-list-item-code {
|
|
129
|
+
padding: var(--nutui-elevator-list-item-padding, 0 20px);
|
|
105
130
|
}
|
|
106
131
|
|
|
107
132
|
[dir=rtl] .nut-elevator-list-fixed,
|
|
@@ -1,68 +1,66 @@
|
|
|
1
1
|
.nut-elevator {
|
|
2
|
-
width: 100%;
|
|
3
|
-
display: block;
|
|
4
2
|
position: relative;
|
|
5
|
-
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
6
5
|
|
|
7
6
|
&-list {
|
|
8
|
-
display: block;
|
|
9
7
|
position: relative;
|
|
10
8
|
top: 0;
|
|
9
|
+
display: flex;
|
|
10
|
+
width: 100%;
|
|
11
11
|
overflow: hidden;
|
|
12
|
-
font-size: $elevator-list-font-size;
|
|
13
|
-
color: $elevator-list-color;
|
|
14
12
|
|
|
15
13
|
&-inner {
|
|
16
|
-
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
min-height: 100%;
|
|
17
17
|
width: 100%;
|
|
18
|
-
display: block;
|
|
19
18
|
background-color: $elevator-list-bg-color;
|
|
20
19
|
overflow: auto;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
&-item {
|
|
24
|
-
display:
|
|
25
|
-
|
|
23
|
+
display: flex;
|
|
24
|
+
&-sublist {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
}
|
|
26
28
|
&-code {
|
|
27
29
|
display: flex;
|
|
28
|
-
|
|
30
|
+
align-items: center;
|
|
29
31
|
height: $elevator-list-item-code-height;
|
|
30
|
-
line-height: $elevator-list-item-code-line-height;
|
|
31
32
|
font-size: $elevator-list-item-code-font-size;
|
|
32
33
|
color: $elevator-list-item-code-color;
|
|
33
|
-
padding: $elevator-list-item-padding;
|
|
34
34
|
font-weight: $elevator-list-item-code-font-weight;
|
|
35
|
-
box-sizing: border-box;
|
|
36
|
-
border-bottom: $elevator-list-item-code-border-bottom;
|
|
37
|
-
background-color: $elevator-list-item-code-background-color;
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
&-name {
|
|
41
38
|
display: flex;
|
|
42
39
|
align-items: center;
|
|
43
|
-
padding: $elevator-list-item-padding;
|
|
44
40
|
height: $elevator-list-item-name-height;
|
|
45
|
-
|
|
41
|
+
font-size: $elevator-list-font-size;
|
|
42
|
+
color: $elevator-list-color;
|
|
46
43
|
|
|
47
44
|
&-highcolor {
|
|
48
45
|
color: $color-primary;
|
|
46
|
+
font-weight: 600;
|
|
49
47
|
}
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
&-fixed {
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
width: 100%;
|
|
57
52
|
position: absolute;
|
|
58
53
|
top: 0;
|
|
59
54
|
left: 0;
|
|
60
55
|
z-index: 1;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
width: 100%;
|
|
61
59
|
padding: $elevator-list-item-padding;
|
|
62
60
|
height: $elevator-list-item-code-height;
|
|
63
|
-
background-color: $elevator-list-fixed-bg-color;
|
|
64
61
|
box-sizing: border-box;
|
|
65
62
|
box-shadow: $elevator-list-fixed-box-shadow;
|
|
63
|
+
background-color: $elevator-list-fixed-bg-color;
|
|
66
64
|
&-title {
|
|
67
65
|
font-size: $elevator-list-item-code-font-size;
|
|
68
66
|
color: $elevator-list-fixed-color;
|
|
@@ -76,41 +74,71 @@
|
|
|
76
74
|
right: $elevator-list-item-code-current-right;
|
|
77
75
|
top: $elevator-list-item-code-current-top;
|
|
78
76
|
transform: $elevator-bars-transform;
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
79
80
|
width: $elevator-list-item-code-current-width;
|
|
80
81
|
height: $elevator-list-item-code-current-height;
|
|
81
|
-
line-height: $elevator-list-item-code-current-line-height;
|
|
82
82
|
border-radius: $elevator-list-item-code-current-border-radius;
|
|
83
83
|
background: $elevator-list-item-code-current-bg-color;
|
|
84
84
|
box-shadow: $elevator-list-item-code-current-box-shadow;
|
|
85
|
-
|
|
85
|
+
color: $elevator-list-item-code-current-color;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
&-bars {
|
|
89
89
|
position: absolute;
|
|
90
90
|
right: $elevator-bars-right;
|
|
91
91
|
top: $elevator-bars-top;
|
|
92
|
-
color: $color-text-help;
|
|
93
|
-
font-size: $elevator-bars-font-size;
|
|
94
92
|
transform: $elevator-bars-transform;
|
|
95
|
-
padding: $elevator-bars-padding;
|
|
96
|
-
background-color: $elevator-bars-background-color;
|
|
97
|
-
border-radius: $elevator-bars-border-radius;
|
|
98
|
-
text-align: center;
|
|
99
93
|
z-index: $elevator-bars-z-index;
|
|
100
94
|
|
|
101
95
|
&-inner {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
102
98
|
&-item {
|
|
103
|
-
display:
|
|
104
|
-
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
height: 16px;
|
|
103
|
+
width: 16px;
|
|
104
|
+
border-radius: 50%;
|
|
105
|
+
margin: 1px 0;
|
|
106
|
+
color: $elevator-bars-color;
|
|
107
|
+
font-size: $elevator-bars-font-size;
|
|
105
108
|
cursor: pointer;
|
|
106
|
-
|
|
107
109
|
&-active {
|
|
108
110
|
font-weight: $font-weight-bold;
|
|
109
111
|
color: $elevator-bars-active-color;
|
|
112
|
+
/* #ifndef weapp jd*/
|
|
113
|
+
background: linear-gradient(to right, #ff475d, #ff0f23);
|
|
114
|
+
/* #endif */
|
|
115
|
+
/* #ifdef weapp jd*/
|
|
116
|
+
background: #ff0f23;
|
|
117
|
+
/* #endif */
|
|
110
118
|
}
|
|
111
119
|
}
|
|
112
120
|
}
|
|
113
121
|
}
|
|
122
|
+
&-horizontal {
|
|
123
|
+
.nut-elevator-list-item {
|
|
124
|
+
&-code {
|
|
125
|
+
width: $elevator-list-item-code-width;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
&-vertical {
|
|
131
|
+
.nut-elevator-list-item {
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
&-code {
|
|
134
|
+
border-bottom: $elevator-list-item-code-border-bottom;
|
|
135
|
+
}
|
|
136
|
+
&-name,
|
|
137
|
+
&-code {
|
|
138
|
+
padding: $elevator-list-item-padding;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
114
142
|
}
|
|
115
143
|
|
|
116
144
|
[dir='rtl'] .nut-elevator,
|
|
@@ -3,65 +3,64 @@
|
|
|
3
3
|
/* #ifndef harmony */
|
|
4
4
|
/* #endif */
|
|
5
5
|
.nut-elevator {
|
|
6
|
-
width: 100%;
|
|
7
|
-
display: block;
|
|
8
6
|
position: relative;
|
|
9
|
-
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
10
9
|
}
|
|
11
10
|
.nut-elevator-list {
|
|
12
|
-
display: block;
|
|
13
11
|
position: relative;
|
|
14
12
|
top: 0;
|
|
13
|
+
display: flex;
|
|
14
|
+
width: 100%;
|
|
15
15
|
overflow: hidden;
|
|
16
|
-
font-size: var(--nutui-elevator-list-font-size, var(--nutui-font-text-small));
|
|
17
|
-
color: var(--nutui-elevator-list-color, var(--nutui-color-title));
|
|
18
16
|
}
|
|
19
17
|
.nut-elevator-list-inner {
|
|
20
|
-
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
min-height: 100%;
|
|
21
21
|
width: 100%;
|
|
22
|
-
display: block;
|
|
23
22
|
background-color: var(--nutui-elevator-list-bg-color, #ffffff);
|
|
24
23
|
overflow: auto;
|
|
25
24
|
}
|
|
26
25
|
.nut-elevator-list-item {
|
|
27
|
-
display:
|
|
26
|
+
display: flex;
|
|
27
|
+
}
|
|
28
|
+
.nut-elevator-list-item-sublist {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
28
31
|
}
|
|
29
32
|
.nut-elevator-list-item-code {
|
|
30
33
|
display: flex;
|
|
31
|
-
|
|
34
|
+
align-items: center;
|
|
32
35
|
height: var(--nutui-elevator-list-item-code-height, 20px);
|
|
33
|
-
line-height: var(--nutui-elevator-list-item-code-line-height, 20px);
|
|
34
36
|
font-size: var(--nutui-elevator-list-item-code-font-size, var(--nutui-font-text));
|
|
35
37
|
color: var(--nutui-elevator-list-item-code-color, var(--nutui-color-title));
|
|
36
|
-
padding: var(--nutui-elevator-list-item-padding, 0 20px);
|
|
37
38
|
font-weight: var(--nutui-elevator-list-item-code-font-weight, var(--nutui-font-weight-bold));
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
border-bottom: var(--nutui-elevator-list-item-code-border-bottom, none);
|
|
40
|
-
background-color: var(--nutui-elevator-list-item-code-background-color, var(--nutui-color-default-light));
|
|
41
39
|
}
|
|
42
40
|
.nut-elevator-list-item-name {
|
|
43
41
|
display: flex;
|
|
44
42
|
align-items: center;
|
|
45
|
-
padding: var(--nutui-elevator-list-item-padding, 0 20px);
|
|
46
43
|
height: var(--nutui-elevator-list-item-name-height, 52px);
|
|
47
|
-
|
|
44
|
+
font-size: var(--nutui-elevator-list-font-size, var(--nutui-font-text-small));
|
|
45
|
+
color: var(--nutui-elevator-list-color, var(--nutui-color-title));
|
|
48
46
|
}
|
|
49
47
|
.nut-elevator-list-item-name-highcolor {
|
|
50
48
|
color: var(--nutui-color-primary, #ff6666);
|
|
49
|
+
font-weight: 600;
|
|
51
50
|
}
|
|
52
51
|
.nut-elevator-list-fixed {
|
|
53
|
-
display: flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
width: 100%;
|
|
56
52
|
position: absolute;
|
|
57
53
|
top: 0;
|
|
58
54
|
left: 0;
|
|
59
55
|
z-index: 1;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
width: 100%;
|
|
60
59
|
padding: var(--nutui-elevator-list-item-padding, 0 20px);
|
|
61
60
|
height: var(--nutui-elevator-list-item-code-height, 20px);
|
|
62
|
-
background-color: var(--nutui-elevator-list-fixed-bg-color, var(--nutui-color-default-light));
|
|
63
61
|
box-sizing: border-box;
|
|
64
62
|
box-shadow: var(--nutui-elevator-list-fixed-box-shadow, 0 0 10px #eee);
|
|
63
|
+
background-color: var(--nutui-elevator-list-fixed-bg-color, var(--nutui-color-default-light));
|
|
65
64
|
}
|
|
66
65
|
.nut-elevator-list-fixed-title {
|
|
67
66
|
font-size: var(--nutui-elevator-list-item-code-font-size, var(--nutui-font-text));
|
|
@@ -73,35 +72,61 @@
|
|
|
73
72
|
right: var(--nutui-elevator-list-item-code-current-right, 40px);
|
|
74
73
|
top: var(--nutui-elevator-list-item-code-current-top, 50%);
|
|
75
74
|
transform: var(--nutui-elevator-bars-transform, translateY(-50%));
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
76
78
|
width: var(--nutui-elevator-list-item-code-current-width, 48px);
|
|
77
79
|
height: var(--nutui-elevator-list-item-code-current-height, 48px);
|
|
78
|
-
line-height: var(--nutui-elevator-list-item-code-current-line-height, 48px);
|
|
79
80
|
border-radius: var(--nutui-elevator-list-item-code-current-border-radius, 50% 0 50% 50%);
|
|
80
81
|
background: var(--nutui-elevator-list-item-code-current-bg-color, var(--nutui-color-default-light));
|
|
81
82
|
box-shadow: 0px 2px 6px 0px rgba(4, 1, 135, 0.08);
|
|
82
|
-
|
|
83
|
+
color: var(--nutui-elevator-list-item-code-current-color, #ffffff);
|
|
83
84
|
}
|
|
84
85
|
.nut-elevator-bars {
|
|
85
86
|
position: absolute;
|
|
86
87
|
right: var(--nutui-elevator-bars-right, 10px);
|
|
87
88
|
top: var(--nutui-elevator-bars-top, 50%);
|
|
88
|
-
color: var(--nutui-color-text-help);
|
|
89
|
-
font-size: var(--nutui-elevator-bars-font-size, var(--nutui-font-text-xs));
|
|
90
89
|
transform: var(--nutui-elevator-bars-transform, translateY(-50%));
|
|
91
|
-
padding: var(--nutui-elevator-bars-padding, 15px 0);
|
|
92
|
-
background-color: var(--nutui-elevator-bars-background-color, transparent);
|
|
93
|
-
border-radius: var(--nutui-elevator-bars-border-radius, 6px);
|
|
94
|
-
text-align: center;
|
|
95
90
|
z-index: var(--nutui-elevator-bars-z-index, 2);
|
|
96
91
|
}
|
|
92
|
+
.nut-elevator-bars-inner {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
}
|
|
97
96
|
.nut-elevator-bars-inner-item {
|
|
98
|
-
display:
|
|
99
|
-
|
|
97
|
+
display: inline-flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
height: 16px;
|
|
101
|
+
width: 16px;
|
|
102
|
+
border-radius: 50%;
|
|
103
|
+
margin: 1px 0;
|
|
104
|
+
color: var(--nutui-elevator-bars-color, var(--nutui-color-text-help));
|
|
105
|
+
font-size: var(--nutui-elevator-bars-font-size, var(--nutui-font-text-xs));
|
|
100
106
|
cursor: pointer;
|
|
101
107
|
}
|
|
102
108
|
.nut-elevator-bars-inner-item-active {
|
|
103
109
|
font-weight: var(--nutui-font-weight-bold);
|
|
104
110
|
color: var(--nutui-elevator-bars-active-color, var(--nutui-color-primary, #ff6666));
|
|
111
|
+
/* #ifndef weapp jd*/
|
|
112
|
+
background: linear-gradient(to right, #ff475d, #ff0f23);
|
|
113
|
+
/* #endif */
|
|
114
|
+
/* #ifdef weapp jd*/
|
|
115
|
+
background: #ff0f23;
|
|
116
|
+
/* #endif */
|
|
117
|
+
}
|
|
118
|
+
.nut-elevator-horizontal .nut-elevator-list-item-code {
|
|
119
|
+
width: var(--nutui-elevator-list-item-code-width, 34px);
|
|
120
|
+
justify-content: center;
|
|
121
|
+
}
|
|
122
|
+
.nut-elevator-vertical .nut-elevator-list-item {
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
}
|
|
125
|
+
.nut-elevator-vertical .nut-elevator-list-item-code {
|
|
126
|
+
border-bottom: var(--nutui-elevator-list-item-code-border-bottom, none);
|
|
127
|
+
}
|
|
128
|
+
.nut-elevator-vertical .nut-elevator-list-item-name, .nut-elevator-vertical .nut-elevator-list-item-code {
|
|
129
|
+
padding: var(--nutui-elevator-list-item-padding, 0 20px);
|
|
105
130
|
}
|
|
106
131
|
|
|
107
132
|
[dir=rtl] .nut-elevator-list-fixed,
|
|
@@ -65,7 +65,7 @@ var Image = function Image(props) {
|
|
|
65
65
|
} : {}, radius !== undefined && radius !== null ? {
|
|
66
66
|
overflow: 'hidden',
|
|
67
67
|
borderRadius: pxCheck(radius)
|
|
68
|
-
} : {});
|
|
68
|
+
} : {}, style);
|
|
69
69
|
var imgStyle = (0, _object_spread_props._)((0, _object_spread._)({}, style), {
|
|
70
70
|
width: width,
|
|
71
71
|
height: height
|
|
@@ -109,7 +109,7 @@ var Image = function Image(props) {
|
|
|
109
109
|
className: (0, _classnames.default)(classPrefix, (0, _define_property._)({}, "".concat(classPrefix, "-basic"), _taro.default.getEnv() !== 'WEB'), className),
|
|
110
110
|
style: containerStyle
|
|
111
111
|
}, /*#__PURE__*/ _react.default.createElement(_components.Image, (0, _object_spread_props._)((0, _object_spread._)({}, rest), {
|
|
112
|
-
className: "".concat(classPrefix, "-default
|
|
112
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-default"), className && "".concat(className, "-image"), (0, _define_property._)({}, "".concat(classPrefix, "-error"), isError)),
|
|
113
113
|
style: imgStyle,
|
|
114
114
|
src: src,
|
|
115
115
|
onLoad: function onLoad(e) {
|
|
@@ -134,7 +134,7 @@ var Input = /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
|
|
134
134
|
updateValue((event.detail || event.currentTarget).value, 'onChange');
|
|
135
135
|
};
|
|
136
136
|
var handleBlur = function handleBlur(event) {
|
|
137
|
-
var val = _taro.default.getEnv() === 'WEB' ? event.target.value : value;
|
|
137
|
+
var val = _taro.default.getEnv() === 'WEB' ? event.target.value : event.detail.value;
|
|
138
138
|
updateValue(val, 'onBlur');
|
|
139
139
|
setTimeout(function() {
|
|
140
140
|
return setActive(false);
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
align-items: center;
|
|
12
12
|
height: var(--nutui-navbar-height, 44px);
|
|
13
13
|
box-sizing: border-box;
|
|
14
|
+
background: var(--nutui-navbar-background, #ffffff);
|
|
15
|
+
box-shadow: var(--nutui-navbar-box-shadow, 0 0 transparent);
|
|
14
16
|
font-size: var(--nutui-navbar-font-size, var(--nutui-font-size-base, 14px));
|
|
15
17
|
color: var(--nutui-navbar-color, var(--nutui-color-title, #1a1a1a));
|
|
16
18
|
overflow: hidden;
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
align-items: center;
|
|
12
12
|
height: var(--nutui-navbar-height, 44px);
|
|
13
13
|
box-sizing: border-box;
|
|
14
|
+
background: var(--nutui-navbar-background, #ffffff);
|
|
15
|
+
box-shadow: var(--nutui-navbar-box-shadow, 0px);
|
|
14
16
|
font-size: var(--nutui-navbar-font-size, var(--nutui-font-text));
|
|
15
17
|
color: var(--nutui-navbar-color, var(--nutui-color-title));
|
|
16
18
|
overflow: hidden;
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
align-items: center;
|
|
12
12
|
height: var(--nutui-navbar-height, 44px);
|
|
13
13
|
box-sizing: border-box;
|
|
14
|
+
background: var(--nutui-navbar-background, #ffffff);
|
|
15
|
+
box-shadow: var(--nutui-navbar-box-shadow, 0px);
|
|
14
16
|
font-size: var(--nutui-navbar-font-size, var(--nutui-font-text));
|
|
15
17
|
color: var(--nutui-navbar-color, var(--nutui-color-title));
|
|
16
18
|
overflow: hidden;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
flex-shrink: 0;
|
|
8
8
|
display: block;
|
|
9
|
-
background-color: var(--nutui-tabs-tabpane-
|
|
9
|
+
background-color: var(--nutui-tabs-tabpane-background-color, #fff);
|
|
10
10
|
color: var(--nutui-color-title, #1a1a1a);
|
|
11
11
|
padding: var(--nutui-tabs-tabpane-padding, 24px 20px);
|
|
12
12
|
box-sizing: border-box;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
flex-shrink: 0;
|
|
8
8
|
display: block;
|
|
9
|
-
background-color: var(--nutui-tabs-tabpane-
|
|
9
|
+
background-color: var(--nutui-tabs-tabpane-background-color, #fff);
|
|
10
10
|
color: var(--nutui-color-title);
|
|
11
11
|
padding: var(--nutui-tabs-tabpane-padding, 24px 20px);
|
|
12
12
|
box-sizing: border-box;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
width: 100%;
|
|
7
7
|
flex-shrink: 0;
|
|
8
8
|
display: block;
|
|
9
|
-
background-color: var(--nutui-tabs-tabpane-
|
|
9
|
+
background-color: var(--nutui-tabs-tabpane-background-color, #fff);
|
|
10
10
|
color: var(--nutui-color-title);
|
|
11
11
|
padding: var(--nutui-tabs-tabpane-padding, 24px 20px);
|
|
12
12
|
box-sizing: border-box;
|
|
@@ -8,10 +8,13 @@ export interface ElevatorItem {
|
|
|
8
8
|
export type ElevatorFloorKey = string;
|
|
9
9
|
export type ElevatorList = {
|
|
10
10
|
list: Array<ElevatorItem>;
|
|
11
|
-
|
|
12
|
-
[key: ElevatorFloorKey]: string;
|
|
11
|
+
[key: string]: SimpleValue | Array<ElevatorItem>;
|
|
13
12
|
};
|
|
13
|
+
export type ElevatorMode = 'horizontal' | 'vertical';
|
|
14
14
|
export interface BaseElevator extends BaseProps {
|
|
15
|
+
defaultValue?: ElevatorItem;
|
|
16
|
+
value?: ElevatorItem;
|
|
17
|
+
mode: ElevatorMode;
|
|
15
18
|
height: SimpleValue;
|
|
16
19
|
floorKey: ElevatorFloorKey;
|
|
17
20
|
list: ElevatorList[];
|