mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-28 01:09:15 +08:00
* test(DatetimePicker): add test cases * test(DatetimePicker): adjust test cases * test(DatetimePicker): adjust test cases * test(DatetimePicker): update snapshot
95 lines
2.3 KiB
Plaintext
95 lines
2.3 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`should render title slot correctly 1`] = `
|
|
<div class="van-picker__toolbar">
|
|
<button type="button"
|
|
class="van-picker__cancel"
|
|
>
|
|
Cancel
|
|
</button>
|
|
Custom title
|
|
<button type="button"
|
|
class="van-picker__confirm"
|
|
>
|
|
Confirm
|
|
</button>
|
|
</div>
|
|
`;
|
|
|
|
exports[`time type 1`] = `
|
|
<div class="van-picker van-datetime-picker">
|
|
<div class="van-picker__toolbar">
|
|
<button type="button"
|
|
class="van-picker__cancel"
|
|
>
|
|
Cancel
|
|
</button>
|
|
<button type="button"
|
|
class="van-picker__confirm"
|
|
>
|
|
Confirm
|
|
</button>
|
|
</div>
|
|
<div class="van-picker__columns"
|
|
style="height: 264px;"
|
|
>
|
|
<div class="van-picker-column">
|
|
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;"
|
|
class="van-picker-column__wrapper"
|
|
>
|
|
<li role="button"
|
|
style="height: 44px;"
|
|
tabindex="0"
|
|
class="van-picker-column__item van-picker-column__item--selected"
|
|
>
|
|
<div class="van-ellipsis">
|
|
22
|
|
</div>
|
|
</li>
|
|
<li role="button"
|
|
style="height: 44px;"
|
|
tabindex="0"
|
|
class="van-picker-column__item"
|
|
>
|
|
<div class="van-ellipsis">
|
|
23
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="van-picker-column">
|
|
<ul style="transform: translate3d(0, 110px, 0); transition-duration: 0ms; transition-property: none;"
|
|
class="van-picker-column__wrapper"
|
|
>
|
|
<li role="button"
|
|
style="height: 44px;"
|
|
tabindex="0"
|
|
class="van-picker-column__item van-picker-column__item--selected"
|
|
>
|
|
<div class="van-ellipsis">
|
|
58
|
|
</div>
|
|
</li>
|
|
<li role="button"
|
|
style="height: 44px;"
|
|
tabindex="0"
|
|
class="van-picker-column__item"
|
|
>
|
|
<div class="van-ellipsis">
|
|
59
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="van-picker__mask"
|
|
style="background-size: 100% 110px;"
|
|
>
|
|
</div>
|
|
<div class="van-hairline-unset--top-bottom van-picker__frame"
|
|
style="height: 44px;"
|
|
>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|