mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-07-13 17:21:07 +08:00
Compare commits
No commits in common. "7eaefd04fac0f2a188d9386ea677379ead61e903" and "b117e21dc4d2ccb8abe1052679531c4d78b415b6" have entirely different histories.
7eaefd04fa
...
b117e21dc4
@ -67,33 +67,23 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
</i>
|
||||
</div>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
|
||||
@ -22,17 +22,12 @@ exports[`should render cancel slot correctly 1`] = `
|
||||
`;
|
||||
|
||||
exports[`should render default slot correctly 1`] = `
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div class="van-overlay">
|
||||
</div>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--round van-popup--bottom van-safe-area-bottom van-action-sheet"
|
||||
>
|
||||
<div class="van-popup van-popup--round van-popup--bottom van-safe-area-bottom van-action-sheet">
|
||||
<div class="van-action-sheet__header">
|
||||
Title
|
||||
<i class="van-badge__wrapper van-icon van-icon-cross van-action-sheet__close van-haptics-feedback">
|
||||
|
||||
@ -275,9 +275,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
|
||||
@ -557,18 +557,14 @@ exports[`formatter prop 1`] = `
|
||||
`;
|
||||
|
||||
exports[`popup wrapper 1`] = `
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
`;
|
||||
|
||||
exports[`popup wrapper 2`] = `
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2001;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -576,8 +572,6 @@ exports[`popup wrapper 2`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2001;"
|
||||
role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--round van-popup--bottom van-calendar__popup"
|
||||
>
|
||||
<div class="van-calendar">
|
||||
|
||||
@ -19,9 +19,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
|
||||
@ -95,9 +95,9 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div role="dialog"
|
||||
<div class="van-popup van-popup--center van-dialog"
|
||||
role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--center van-dialog"
|
||||
aria-labelledby="Title"
|
||||
style="display: none;"
|
||||
>
|
||||
|
||||
@ -30,9 +30,9 @@ exports[`should render default slot correctly 1`] = `
|
||||
`;
|
||||
|
||||
exports[`should render footer slot correctly 1`] = `
|
||||
<div role="dialog"
|
||||
<div class="van-popup van-popup--center van-dialog"
|
||||
role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--center van-dialog"
|
||||
aria-labelledby="message"
|
||||
>
|
||||
<div class="van-dialog__content van-dialog__content--isolated">
|
||||
|
||||
@ -30,9 +30,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -40,9 +38,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -78,9 +74,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -88,9 +82,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -126,9 +118,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -136,9 +126,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -174,9 +162,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<div style="bottom: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--up"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -184,9 +170,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<div style="bottom: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--up"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -220,9 +204,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -230,9 +212,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
|
||||
@ -29,9 +29,7 @@ exports[`click option 1`] = `
|
||||
<div style="top: 100px;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2007; position: absolute; animation-duration: 0.2s; display: none;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -39,9 +37,8 @@ exports[`click option 1`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2007; transition-duration: 0.2s; display: none;"
|
||||
role="menu"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--top van-dropdown-item__content"
|
||||
role="menu"
|
||||
aria-labelledby="van-dropdown-menu-0"
|
||||
>
|
||||
<div class="van-cell van-cell--clickable van-dropdown-item__option van-dropdown-item__option--active"
|
||||
@ -76,9 +73,7 @@ exports[`click option 1`] = `
|
||||
<div style="top: 100px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -115,9 +110,7 @@ exports[`close-on-click-outside 1`] = `
|
||||
<div style="top: 100px;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2004; position: absolute; animation-duration: 0.2s; display: none;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -125,9 +118,8 @@ exports[`close-on-click-outside 1`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2004; transition-duration: 0.2s; display: none;"
|
||||
role="menu"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--top van-dropdown-item__content"
|
||||
role="menu"
|
||||
aria-labelledby="van-dropdown-menu-0"
|
||||
>
|
||||
<div class="van-cell van-cell--clickable van-dropdown-item__option van-dropdown-item__option--active"
|
||||
@ -162,9 +154,7 @@ exports[`close-on-click-outside 1`] = `
|
||||
<div style="top: 100px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -190,9 +180,7 @@ exports[`destroy one item 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -229,9 +217,7 @@ exports[`direction up 1`] = `
|
||||
<div style="bottom: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--up"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -239,9 +225,7 @@ exports[`direction up 1`] = `
|
||||
<div style="bottom: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--up"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -278,9 +262,7 @@ exports[`direction up 2`] = `
|
||||
<div style="bottom: 768px;"
|
||||
class="van-dropdown-item van-dropdown-item--up"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2006; position: absolute; animation-duration: 0.2s;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -288,9 +270,8 @@ exports[`direction up 2`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2006; transition-duration: 0.2s;"
|
||||
role="menu"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--bottom van-dropdown-item__content"
|
||||
role="menu"
|
||||
aria-labelledby="van-dropdown-menu-0"
|
||||
>
|
||||
<div class="van-cell van-cell--clickable van-dropdown-item__option van-dropdown-item__option--active"
|
||||
@ -325,9 +306,7 @@ exports[`direction up 2`] = `
|
||||
<div style="bottom: 768px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--up"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -364,9 +343,7 @@ exports[`disable close-on-click-outside 1`] = `
|
||||
<div style="top: 100px;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2005; position: absolute; animation-duration: 0.2s;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -374,9 +351,8 @@ exports[`disable close-on-click-outside 1`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2005; transition-duration: 0.2s;"
|
||||
role="menu"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--top van-dropdown-item__content"
|
||||
role="menu"
|
||||
aria-labelledby="van-dropdown-menu-0"
|
||||
>
|
||||
<div class="van-cell van-cell--clickable van-dropdown-item__option van-dropdown-item__option--active"
|
||||
@ -411,9 +387,7 @@ exports[`disable close-on-click-outside 1`] = `
|
||||
<div style="top: 100px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -438,9 +412,7 @@ exports[`disable dropdown item 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -477,9 +449,7 @@ exports[`render option icon 1`] = `
|
||||
<div style="top: 100px;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2003; position: absolute; animation-duration: 0.2s;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -487,9 +457,8 @@ exports[`render option icon 1`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2003; transition-duration: 0.2s;"
|
||||
role="menu"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--top van-dropdown-item__content"
|
||||
role="menu"
|
||||
aria-labelledby="van-dropdown-menu-0"
|
||||
>
|
||||
<div class="van-cell van-cell--clickable van-dropdown-item__option van-dropdown-item__option--active"
|
||||
@ -528,9 +497,7 @@ exports[`render option icon 1`] = `
|
||||
<div style="top: 100px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -567,9 +534,7 @@ exports[`show dropdown item 1`] = `
|
||||
<div style="top: 100px;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2001; position: absolute; animation-duration: 0.2s;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -577,9 +542,8 @@ exports[`show dropdown item 1`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2001; transition-duration: 0.2s;"
|
||||
role="menu"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--top van-dropdown-item__content"
|
||||
role="menu"
|
||||
aria-labelledby="van-dropdown-menu-0"
|
||||
>
|
||||
<div class="van-cell van-cell--clickable van-dropdown-item__option van-dropdown-item__option--active"
|
||||
@ -614,9 +578,7 @@ exports[`show dropdown item 1`] = `
|
||||
<div style="top: 100px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -653,9 +615,7 @@ exports[`show dropdown item 2`] = `
|
||||
<div style="top: 100px;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2001; position: absolute; animation-duration: 0s; display: none;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -663,9 +623,8 @@ exports[`show dropdown item 2`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2001; transition-duration: 0s; display: none;"
|
||||
role="menu"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--top van-dropdown-item__content"
|
||||
role="menu"
|
||||
aria-labelledby="van-dropdown-menu-0"
|
||||
>
|
||||
<div class="van-cell van-cell--clickable van-dropdown-item__option van-dropdown-item__option--active"
|
||||
@ -700,9 +659,7 @@ exports[`show dropdown item 2`] = `
|
||||
<div style="top: 100px;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2002; position: absolute; animation-duration: 0.2s;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -710,9 +667,8 @@ exports[`show dropdown item 2`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2002; transition-duration: 0.2s;"
|
||||
role="menu"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--top van-dropdown-item__content"
|
||||
role="menu"
|
||||
aria-labelledby="van-dropdown-menu-1"
|
||||
>
|
||||
<div class="van-cell van-cell--clickable van-dropdown-item__option van-dropdown-item__option--active"
|
||||
@ -776,9 +732,7 @@ exports[`show dropdown item 3`] = `
|
||||
<div style="top: 100px;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2001; position: absolute; animation-duration: 0s; display: none;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -786,9 +740,8 @@ exports[`show dropdown item 3`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2001; transition-duration: 0s; display: none;"
|
||||
role="menu"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--top van-dropdown-item__content"
|
||||
role="menu"
|
||||
aria-labelledby="van-dropdown-menu-0"
|
||||
>
|
||||
<div class="van-cell van-cell--clickable van-dropdown-item__option van-dropdown-item__option--active"
|
||||
@ -823,9 +776,7 @@ exports[`show dropdown item 3`] = `
|
||||
<div style="top: 100px;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2002; position: absolute; animation-duration: 0.2s; display: none;"
|
||||
class="van-overlay"
|
||||
>
|
||||
@ -833,9 +784,8 @@ exports[`show dropdown item 3`] = `
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div style="z-index: 2002; transition-duration: 0.2s; display: none;"
|
||||
role="menu"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--top van-dropdown-item__content"
|
||||
role="menu"
|
||||
aria-labelledby="van-dropdown-menu-1"
|
||||
>
|
||||
<div class="van-cell van-cell--clickable van-dropdown-item__option van-dropdown-item__option--active"
|
||||
@ -899,9 +849,7 @@ exports[`title prop 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -909,9 +857,7 @@ exports[`title prop 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -937,9 +883,7 @@ exports[`title slot 1`] = `
|
||||
<div style="top: 0px; display: none;"
|
||||
class="van-dropdown-item van-dropdown-item--down"
|
||||
>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
|
||||
@ -1,18 +1,12 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`render image 1`] = `
|
||||
<transition-stub class="van-image-preview__overlay"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub class="van-image-preview__overlay">
|
||||
<div class="van-overlay">
|
||||
</div>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--center van-image-preview"
|
||||
>
|
||||
<div class="van-popup van-popup--center van-image-preview">
|
||||
<div class="van-swipe van-image-preview__swipe">
|
||||
<div style="transition-duration: 300ms; transform: translateX(0px);"
|
||||
class="van-swipe__track"
|
||||
@ -47,18 +41,12 @@ exports[`should change close icon when using close-icon prop 1`] = `
|
||||
`;
|
||||
|
||||
exports[`should render cover slot correctly 1`] = `
|
||||
<transition-stub class="van-image-preview__overlay"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub class="van-image-preview__overlay">
|
||||
<div class="van-overlay">
|
||||
</div>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--center van-image-preview"
|
||||
>
|
||||
<div class="van-popup van-popup--center van-image-preview">
|
||||
<div class="van-swipe van-image-preview__swipe">
|
||||
<div style="transition-duration: 300ms; transform: translateX(0px);"
|
||||
class="van-swipe__track"
|
||||
|
||||
@ -3,9 +3,7 @@
|
||||
exports[`should render Notify correctly 1`] = `
|
||||
<div
|
||||
class="van-popup van-popup--top van-notify van-notify--danger van-popup-slide-top-enter-from van-popup-slide-top-enter-active"
|
||||
role="dialog"
|
||||
style="z-index: 2001; transition-duration: 0.2s;"
|
||||
tabindex="0"
|
||||
>
|
||||
|
||||
test
|
||||
|
||||
@ -702,9 +702,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
|
||||
@ -15,10 +15,7 @@ exports[`should change icon class prefix when using icon-prefix prop 1`] = `
|
||||
<span class="van-popover__wrapper">
|
||||
</span>
|
||||
<transition-stub>
|
||||
<div role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popover van-popover--light"
|
||||
>
|
||||
<div class="van-popup van-popover van-popover--light">
|
||||
<div class="van-popover__arrow">
|
||||
</div>
|
||||
<div role="menu"
|
||||
@ -47,8 +44,6 @@ exports[`should locate to reference element when showed 1`] = `
|
||||
exports[`should locate to reference element when showed 2`] = `
|
||||
<transition-stub>
|
||||
<div style="z-index: 2007; position: absolute; left: 0px; top: 108px; margin: 0px;"
|
||||
role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popover van-popover--light"
|
||||
data-popper-placement="bottom"
|
||||
>
|
||||
@ -65,8 +60,6 @@ exports[`should locate to reference element when showed 2`] = `
|
||||
exports[`should locate to reference element when showed 3`] = `
|
||||
<transition-stub>
|
||||
<div style="z-index: 2007; display: none;"
|
||||
role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popover van-popover--light"
|
||||
>
|
||||
<div class="van-popover__arrow">
|
||||
@ -91,8 +84,6 @@ exports[`should render action slot correctly 1`] = `
|
||||
exports[`should watch placement prop and update location 1`] = `
|
||||
<transition-stub>
|
||||
<div style="z-index: 2008; position: absolute; left: 0px; top: -108px; margin: 0px;"
|
||||
role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popover van-popover--light"
|
||||
data-popper-placement="top"
|
||||
>
|
||||
|
||||
@ -144,8 +144,6 @@ export default defineComponent({
|
||||
zIndex={zIndex.value}
|
||||
duration={props.duration}
|
||||
customStyle={props.overlayStyle}
|
||||
role={props.closeOnClickOverlay ? 'button' : undefined}
|
||||
tabindex={props.closeOnClickOverlay ? 0 : undefined}
|
||||
onClick={onClickOverlay}
|
||||
/>
|
||||
);
|
||||
@ -187,8 +185,6 @@ export default defineComponent({
|
||||
v-show={props.show}
|
||||
ref={popupRef}
|
||||
style={style.value}
|
||||
role="dialog"
|
||||
tabindex={0}
|
||||
class={[
|
||||
bem({
|
||||
round,
|
||||
|
||||
@ -14,9 +14,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -70,27 +68,19 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -132,21 +122,15 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -164,9 +148,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
|
||||
@ -1,17 +1,12 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`should change icon class prefix when using icon-prefix prop 1`] = `
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div class="van-overlay">
|
||||
</div>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--center"
|
||||
>
|
||||
<div class="van-popup van-popup--center">
|
||||
<i class="van-badge__wrapper my-icon my-icon-cross van-popup__close-icon van-popup__close-icon--top-right van-haptics-feedback"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
@ -30,18 +25,13 @@ exports[`should render correct close icon when using close-icon prop 1`] = `
|
||||
`;
|
||||
|
||||
exports[`should render overlay-content slot correctly 1`] = `
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div class="van-overlay">
|
||||
Custom Overlay Content
|
||||
</div>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--center"
|
||||
>
|
||||
<div class="van-popup van-popup--center">
|
||||
</div>
|
||||
</transition-stub>
|
||||
`;
|
||||
|
||||
@ -14,9 +14,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -34,9 +32,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -54,9 +50,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
@ -74,9 +68,7 @@ exports[`should render demo and match snapshot 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
</transition-stub>
|
||||
|
||||
@ -23,17 +23,12 @@ exports[`should render description when using description prop 1`] = `
|
||||
`;
|
||||
|
||||
exports[`should render title and description slot correctly 1`] = `
|
||||
<transition-stub role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<transition-stub>
|
||||
<div class="van-overlay">
|
||||
</div>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--round van-popup--bottom van-safe-area-bottom van-share-sheet"
|
||||
>
|
||||
<div class="van-popup van-popup--round van-popup--bottom van-safe-area-bottom van-share-sheet">
|
||||
<div class="van-share-sheet__header">
|
||||
<h2 class="van-share-sheet__title">
|
||||
Custom Title
|
||||
|
||||
@ -121,7 +121,7 @@ export default {
|
||||
| --- | --- | --- | --- |
|
||||
| direction | 间距方向 | _vertical \| horizontal_ | `horizontal` |
|
||||
| size | 间距大小,如 `20px` `2em`,默认单位为 `px`,支持数组形式来分别设置横向和纵向间距 | _number \| string \| number[] \| string[]_ | `8px` |
|
||||
| align | 设置子元素的对齐方式 | _start \| end \| center \| baseline_ | - |
|
||||
| align | 对齐方式 | _start \| end \| center \| baseline_ | - |
|
||||
| wrap | 是否自动换行,仅适用于水平方向排列 | _boolean_ | `false` |
|
||||
| fill | 是否让 Space 变为一个块级元素,填充整个父元素 | _boolean_ | `false` |
|
||||
|
||||
|
||||
@ -2,9 +2,7 @@
|
||||
|
||||
exports[`create a forbidClick toast 1`] = `
|
||||
<transition-stub>
|
||||
<div role="dialog"
|
||||
tabindex="0"
|
||||
class="van-popup van-popup--center van-toast van-toast--middle van-toast--success"
|
||||
<div class="van-popup van-popup--center van-toast van-toast--middle van-toast--success"
|
||||
style="z-index: 2004;"
|
||||
>
|
||||
<i class="van-badge__wrapper van-icon van-icon-success van-toast__icon">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user