@@ -5,12 +5,12 @@ exports[`click option 1`] = `
55 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title" ><div class = " van-ellipsis" >B</div ></span ></div >
66 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title" ><div class = " van-ellipsis" >B</div ></span ></div >
77 <div class = " van-dropdown-item van-dropdown-item--down" style = " z-index: 10; top: 0px;" >
8- <div class = " van-popup van-popup--top van-dropdown-item__content van-popup-slide-top-leave van-popup-slide-top-leave-active" style = " transition-duration: 0.2s; z-index: 2011 ;" >
9- <div class = " van-cell van-cell--clickable" >
10- <div class = " van-cell__title" style = " " ><span >A</span ></div >
8+ <div class = " van-popup van-popup--top van-dropdown-item__content van-popup-slide-top-leave van-popup-slide-top-leave-active" style = " transition-duration: 0.2s; z-index: 2013 ;" >
9+ <div class = " van-cell van-cell--clickable" style = " " >
10+ <div class = " van-cell__title" ><span >A</span ></div >
1111 </div >
12- <div class = " van-cell van-cell--clickable" >
13- <div class = " van-cell__title" style = " color: rgb(25, 137, 250); " ><span >B</span ></div >
12+ <div class = " van-cell van-cell--clickable" style = " color: rgb(25, 137, 250); " >
13+ <div class = " van-cell__title" ><span >B</span ></div >
1414 <div class = " van-cell__value" ><i class = " van-icon van-icon-success van-dropdown-item__icon" style = " color: rgb(25, 137, 250);" >
1515 <!----></i ></div >
1616 </div >
@@ -27,10 +27,10 @@ exports[`close-on-click-outside 1`] = `
2727 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title" ><div class = " van-ellipsis" >A</div ></span ></div >
2828 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title" ><div class = " van-ellipsis" >A</div ></span ></div >
2929 <div class = " van-dropdown-item van-dropdown-item--down" style = " z-index: 10; top: 0px;" >
30- <div class = " van-overlay van-fade-leave van-fade-leave-active" style = " z-index: 2004 ; position: absolute; animation-duration: 0.2s;" ></div >
30+ <div class = " van-overlay van-fade-leave van-fade-leave-active" style = " z-index: 2006 ; position: absolute; animation-duration: 0.2s;" ></div >
3131 <div class = " van-popup van-popup--top van-dropdown-item__content van-popup-slide-top-leave van-popup-slide-top-leave-active" style = " transition-duration: 0.2s;" >
32- <div class = " van-cell van-cell--clickable" >
33- <div class = " van-cell__title" style = " color: rgb(25, 137, 250); " ><span >A</span ></div >
32+ <div class = " van-cell van-cell--clickable" style = " color: rgb(25, 137, 250); " >
33+ <div class = " van-cell__title" ><span >A</span ></div >
3434 <div class = " van-cell__value" ><i class = " van-icon van-icon-success van-dropdown-item__icon" style = " color: rgb(25, 137, 250);" >
3535 <!----></i ></div >
3636 </div >
@@ -73,10 +73,10 @@ exports[`direction up 1`] = `
7373 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title van-dropdown-menu__title--down" ><div class = " van-ellipsis" >A</div ></span ></div >
7474 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title van-dropdown-menu__title--down" ><div class = " van-ellipsis" >A</div ></span ></div >
7575 <div class = " van-dropdown-item van-dropdown-item--up" style = " z-index: 10; bottom: 768px;" >
76- <div class = " van-overlay van-fade-enter-active" style = " z-index: 2008 ; position: absolute; animation-duration: 0.2s;" ></div >
76+ <div class = " van-overlay van-fade-enter-active" style = " z-index: 2010 ; position: absolute; animation-duration: 0.2s;" ></div >
7777 <div class = " van-popup van-popup--bottom van-dropdown-item__content van-popup-slide-bottom-enter van-popup-slide-bottom-enter-active" style = " transition-duration: 0.2s;" >
78- <div class = " van-cell van-cell--clickable" >
79- <div class = " van-cell__title" style = " color: rgb(25, 137, 250); " ><span >A</span ></div >
78+ <div class = " van-cell van-cell--clickable" style = " color: rgb(25, 137, 250); " >
79+ <div class = " van-cell__title" ><span >A</span ></div >
8080 <div class = " van-cell__value" ><i class = " van-icon van-icon-success van-dropdown-item__icon" style = " color: rgb(25, 137, 250);" >
8181 <!----></i ></div >
8282 </div >
@@ -96,10 +96,10 @@ exports[`disable close-on-click-outside 1`] = `
9696 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title" ><div class = " van-ellipsis" >A</div ></span ></div >
9797 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title" ><div class = " van-ellipsis" >A</div ></span ></div >
9898 <div class = " van-dropdown-item van-dropdown-item--down" style = " z-index: 10; top: 0px;" >
99- <div class = " van-overlay van-fade-enter van-fade-enter-active" style = " z-index: 2006 ; position: absolute; animation-duration: 0.2s;" ></div >
99+ <div class = " van-overlay van-fade-enter van-fade-enter-active" style = " z-index: 2008 ; position: absolute; animation-duration: 0.2s;" ></div >
100100 <div class = " van-popup van-popup--top van-dropdown-item__content van-popup-slide-top-enter van-popup-slide-top-enter-active" style = " transition-duration: 0.2s;" >
101- <div class = " van-cell van-cell--clickable" >
102- <div class = " van-cell__title" style = " color: rgb(25, 137, 250); " ><span >A</span ></div >
101+ <div class = " van-cell van-cell--clickable" style = " color: rgb(25, 137, 250); " >
102+ <div class = " van-cell__title" ><span >A</span ></div >
103103 <div class = " van-cell__value" ><i class = " van-icon van-icon-success van-dropdown-item__icon" style = " color: rgb(25, 137, 250);" >
104104 <!----></i ></div >
105105 </div >
@@ -123,15 +123,40 @@ exports[`disable dropdown item 1`] = `
123123</div >
124124` ;
125125
126+ exports [` render option icon 1` ] = `
127+ <div class = " van-dropdown-menu van-hairline--top-bottom" >
128+ <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title" ><div class = " van-ellipsis" >A</div ></span ></div >
129+ <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title" ><div class = " van-ellipsis" >A</div ></span ></div >
130+ <div class = " van-dropdown-item van-dropdown-item--down" style = " z-index: 10; top: 0px;" >
131+ <div class = " van-overlay van-fade-enter van-fade-enter-active" style = " z-index: 2004; position: absolute; animation-duration: 0.2s;" ></div >
132+ <div class = " van-popup van-popup--top van-dropdown-item__content van-popup-slide-top-enter van-popup-slide-top-enter-active" style = " transition-duration: 0.2s;" >
133+ <div class = " van-cell van-cell--clickable" style = " color: rgb(25, 137, 250);" ><i class = " van-icon van-icon-success van-cell__left-icon" >
134+ <!----></i >
135+ <div class = " van-cell__title" ><span >A</span ></div >
136+ <div class = " van-cell__value" ><i class = " van-icon van-icon-success van-dropdown-item__icon" style = " color: rgb(25, 137, 250);" >
137+ <!----></i ></div >
138+ </div >
139+ <div class = " van-cell van-cell--clickable" ><i class = " van-icon van-icon-success van-cell__left-icon" >
140+ <!----></i >
141+ <div class = " van-cell__title" ><span >B</span ></div >
142+ </div >
143+ </div >
144+ </div >
145+ <div class = " van-dropdown-item van-dropdown-item--down" style = " z-index: 10; top: 0px; display: none;" >
146+ <!---->
147+ </div >
148+ </div >
149+ ` ;
150+
126151exports [` show dropdown item 1` ] = `
127152<div class = " van-dropdown-menu van-hairline--top-bottom" >
128153 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title van-dropdown-menu__title--down" style = " color: rgb(25, 137, 250);" ><div class = " van-ellipsis" >A</div ></span ></div >
129154 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title" ><div class = " van-ellipsis" >A</div ></span ></div >
130155 <div class = " van-dropdown-item van-dropdown-item--down" style = " z-index: 10; top: 0px;" >
131156 <div class = " van-overlay van-fade-enter van-fade-enter-active" style = " z-index: 2000; position: absolute; animation-duration: 0.2s;" ></div >
132157 <div class = " van-popup van-popup--top van-dropdown-item__content van-popup-slide-top-enter van-popup-slide-top-enter-active" style = " transition-duration: 0.2s;" >
133- <div class = " van-cell van-cell--clickable" >
134- <div class = " van-cell__title" style = " color: rgb(25, 137, 250); " ><span >A</span ></div >
158+ <div class = " van-cell van-cell--clickable" style = " color: rgb(25, 137, 250); " >
159+ <div class = " van-cell__title" ><span >A</span ></div >
135160 <div class = " van-cell__value" ><i class = " van-icon van-icon-success van-dropdown-item__icon" style = " color: rgb(25, 137, 250);" >
136161 <!----></i ></div >
137162 </div >
@@ -152,8 +177,8 @@ exports[`show dropdown item 2`] = `
152177 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title van-dropdown-menu__title--down" style = " color: rgb(25, 137, 250);" ><div class = " van-ellipsis" >A</div ></span ></div >
153178 <div class = " van-dropdown-item van-dropdown-item--down" style = " z-index: 10; top: 0px;" >
154179 <div class = " van-popup van-popup--top van-dropdown-item__content van-popup-slide-top-leave van-popup-slide-top-leave-active" style = " transition-duration: 0s;" >
155- <div class = " van-cell van-cell--clickable" >
156- <div class = " van-cell__title" style = " color: rgb(25, 137, 250); " ><span >A</span ></div >
180+ <div class = " van-cell van-cell--clickable" style = " color: rgb(25, 137, 250); " >
181+ <div class = " van-cell__title" ><span >A</span ></div >
157182 <div class = " van-cell__value" ><i class = " van-icon van-icon-success van-dropdown-item__icon" style = " color: rgb(25, 137, 250);" >
158183 <!----></i ></div >
159184 </div >
@@ -165,8 +190,8 @@ exports[`show dropdown item 2`] = `
165190 <div class = " van-dropdown-item van-dropdown-item--down" style = " z-index: 10; top: 0px;" >
166191 <div class = " van-overlay van-fade-enter van-fade-enter-active" style = " z-index: 2001; position: absolute; animation-duration: 0.2s;" ></div >
167192 <div class = " van-popup van-popup--top van-dropdown-item__content van-popup-slide-top-enter van-popup-slide-top-enter-active" style = " transition-duration: 0.2s;" >
168- <div class = " van-cell van-cell--clickable" >
169- <div class = " van-cell__title" style = " color: rgb(25, 137, 250); " ><span >A</span ></div >
193+ <div class = " van-cell van-cell--clickable" style = " color: rgb(25, 137, 250); " >
194+ <div class = " van-cell__title" ><span >A</span ></div >
170195 <div class = " van-cell__value" ><i class = " van-icon van-icon-success van-dropdown-item__icon" style = " color: rgb(25, 137, 250);" >
171196 <!----></i ></div >
172197 </div >
@@ -184,8 +209,8 @@ exports[`show dropdown item 3`] = `
184209 <div role = " button" tabindex = " 0" class = " van-dropdown-menu__item" ><span class = " van-dropdown-menu__title" style = " " ><div class = " van-ellipsis" >A</div ></span ></div >
185210 <div class = " van-dropdown-item van-dropdown-item--down" style = " z-index: 10; top: 0px;" >
186211 <div class = " van-popup van-popup--top van-dropdown-item__content van-popup-slide-top-leave van-popup-slide-top-leave-active" style = " transition-duration: 0s;" >
187- <div class = " van-cell van-cell--clickable" >
188- <div class = " van-cell__title" style = " color: rgb(25, 137, 250); " ><span >A</span ></div >
212+ <div class = " van-cell van-cell--clickable" style = " color: rgb(25, 137, 250); " >
213+ <div class = " van-cell__title" ><span >A</span ></div >
189214 <div class = " van-cell__value" ><i class = " van-icon van-icon-success van-dropdown-item__icon" style = " color: rgb(25, 137, 250);" >
190215 <!----></i ></div >
191216 </div >
@@ -197,8 +222,8 @@ exports[`show dropdown item 3`] = `
197222 <div class = " van-dropdown-item van-dropdown-item--down" style = " z-index: 10; top: 0px;" >
198223 <div class = " van-overlay van-fade-leave van-fade-leave-active" style = " z-index: 2001; position: absolute; animation-duration: 0.2s;" ></div >
199224 <div class = " van-popup van-popup--top van-dropdown-item__content van-popup-slide-top-leave van-popup-slide-top-leave-active" style = " transition-duration: 0.2s;" >
200- <div class = " van-cell van-cell--clickable" >
201- <div class = " van-cell__title" style = " color: rgb(25, 137, 250); " ><span >A</span ></div >
225+ <div class = " van-cell van-cell--clickable" style = " color: rgb(25, 137, 250); " >
226+ <div class = " van-cell__title" ><span >A</span ></div >
202227 <div class = " van-cell__value" ><i class = " van-icon van-icon-success van-dropdown-item__icon" style = " color: rgb(25, 137, 250);" >
203228 <!----></i ></div >
204229 </div >
0 commit comments