1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
- exports [` Select demo -- disabled 1` ] = `
3
+ exports [` Select demo -- customStyle 1` ] = `
4
4
.c4 {
5
5
vertical - align : baseline ;
6
6
}
@@ -35,14 +35,59 @@ exports[`Select demo -- disabled 1`] = `
35
35
box - shadow : 0 0 1px 0 rgba (0 ,0 ,0 ,0.12 ),0 8px 12px - 4px rgba (0 ,0 ,0 ,0.12 ),0 2px 1px - 1px rgba (0 ,0 ,0 ,0.05 );
36
36
}
37
37
38
- .c2.c2 {
39
- border - color : #d9d9d9 ;
40
- background : #f7f7f7 ;
41
- color : #cccccc ;
42
- cursor : not - allowed ;
43
- border - width : 1px ;
44
- border - style : solid ;
45
- box - shadow : none ;
38
+ .c1 {
39
+ padding - right : 28px ;
40
+ width : 100 % ;
41
+ text - align : left ;
42
+ }
43
+
44
+ .c3 {
45
+ position : absolute ;
46
+ right : 8px ;
47
+ top : 50 % ;
48
+ margin - top : - 6px ;
49
+ }
50
+
51
+ .c0 {
52
+ box - sizing : border - box ;
53
+ position : relative ;
54
+ display : inline - block ;
55
+ vertical - align : middle ;
56
+ font - size : 12px ;
57
+ color : #0a1633 ;
58
+ }
59
+
60
+ <div >
61
+ <h3 >
62
+ optionListMaxHeight
63
+ </h3 >
64
+ <div
65
+ class = " demo-wrap"
66
+ >
67
+ <div
68
+ class = " c0"
69
+ >
70
+ <div >
71
+ <button
72
+ class = " c1 uc-fe-button uc-fe-button-size-md uc-fe-button-styletype-border c2"
73
+ type = " button"
74
+ >
75
+ <div >
76
+ 请选择
77
+ </div >
78
+ <i
79
+ class = " uc-fe-icon icon__down c3 c4"
80
+ />
81
+ </button >
82
+ </div >
83
+ </div >
84
+ </div >
85
+ </div >
86
+ ` ;
87
+
88
+ exports [` Select demo -- disabled 1` ] = `
89
+ .c4 {
90
+ vertical - align : baseline ;
46
91
}
47
92
48
93
.c6 {
@@ -75,6 +120,46 @@ exports[`Select demo -- disabled 1`] = `
75
120
box - shadow : 0 0 1px 0 rgba (0 ,0 ,0 ,0.12 ),0 8px 12px - 4px rgba (0 ,0 ,0 ,0.12 ),0 2px 1px - 1px rgba (0 ,0 ,0 ,0.05 );
76
121
}
77
122
123
+ .c2 {
124
+ margin : 0 ;
125
+ box - sizing : border - box ;
126
+ border - radius : 2px ;
127
+ border - width : 1px ;
128
+ border - style : solid ;
129
+ text - align : center ;
130
+ - webkit - text - decoration : none ;
131
+ text - decoration : none ;
132
+ cursor : pointer ;
133
+ outline : none ;
134
+ font - size : 12px ;
135
+ display : inline - block ;
136
+ vertical - align : middle ;
137
+ height : 28px ;
138
+ padding : 0 8px ;
139
+ color : #0a1633 ;
140
+ background : #ffffff ;
141
+ border : none ;
142
+ box - shadow : 0 1px 2px 0 rgba (0 ,0 ,0 ,0.08 ),0 1px 1px - 1px rgba (0 ,0 ,0 ,0.30 ),0 1px 3px - 1px rgba (0 ,0 ,0 ,0.12 ),inset 0 1px 0 0 rgba (0 ,0 ,0 ,0.05 );
143
+ - webkit - transition : all .22s cubic - bezier (.4 ,0 ,.2 ,1 );
144
+ transition : all .22s cubic - bezier (.4 ,0 ,.2 ,1 );
145
+ }
146
+
147
+ .c2:hover {
148
+ color : #3860f4 ;
149
+ background : #ffffff ;
150
+ box - shadow : 0 0 1px 0 rgba (0 ,0 ,0 ,0.12 ),0 8px 12px - 4px rgba (0 ,0 ,0 ,0.12 ),0 2px 1px - 1px rgba (0 ,0 ,0 ,0.05 );
151
+ }
152
+
153
+ .c2.c2 {
154
+ border - color : #d9d9d9 ;
155
+ background : #f7f7f7 ;
156
+ color : #cccccc ;
157
+ cursor : not - allowed ;
158
+ border - width : 1px ;
159
+ border - style : solid ;
160
+ box - shadow : none ;
161
+ }
162
+
78
163
.c1 {
79
164
padding - right : 28px ;
80
165
width : 100 % ;
@@ -88,24 +173,24 @@ exports[`Select demo -- disabled 1`] = `
88
173
margin - top : - 6px ;
89
174
}
90
175
91
- .c0 {
176
+ .c5 {
92
177
box - sizing : border - box ;
93
178
position : relative ;
94
179
display : inline - block ;
95
180
vertical - align : middle ;
96
181
font - size : 12px ;
97
182
color : #0a1633 ;
98
- color : #cccccc ;
99
- pointer - events : none ;
100
183
}
101
184
102
- .c5 {
185
+ .c0 {
103
186
box - sizing : border - box ;
104
187
position : relative ;
105
188
display : inline - block ;
106
189
vertical - align : middle ;
107
190
font - size : 12px ;
108
191
color : #0a1633 ;
192
+ color : #cccccc ;
193
+ pointer - events : none ;
109
194
}
110
195
111
196
<div >
0 commit comments