test: update all snapshots
This commit is contained in:
@@ -2,94 +2,89 @@
|
||||
|
||||
exports[`should render demo and match snapshot 1`] = `
|
||||
<div>
|
||||
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
|
||||
<!---->
|
||||
<div class="van-cell__title"><span>基础用法</span>
|
||||
<!---->
|
||||
<div class="van-cell van-cell--clickable"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<div class="van-cell__title">
|
||||
<span>
|
||||
基础用法
|
||||
</span>
|
||||
</div>
|
||||
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
<!---->
|
||||
<!---->
|
||||
<!----></i>
|
||||
<!---->
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
|
||||
<!---->
|
||||
<div class="van-cell__title"><span>展示取消按钮</span>
|
||||
<!---->
|
||||
<div class="van-cell van-cell--clickable"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<div class="van-cell__title">
|
||||
<span>
|
||||
展示取消按钮
|
||||
</span>
|
||||
</div>
|
||||
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
<!---->
|
||||
<!---->
|
||||
<!----></i>
|
||||
<!---->
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
|
||||
<!---->
|
||||
<div class="van-cell__title"><span>展示描述信息</span>
|
||||
<!---->
|
||||
<div class="van-cell van-cell--clickable"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<div class="van-cell__title">
|
||||
<span>
|
||||
展示描述信息
|
||||
</span>
|
||||
</div>
|
||||
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
<!---->
|
||||
<!---->
|
||||
<!----></i>
|
||||
<!---->
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
|
||||
<!---->
|
||||
<div class="van-cell__title"><span>选项状态</span>
|
||||
<!---->
|
||||
<div class="van-cell van-cell--clickable"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<div class="van-cell__title">
|
||||
<span>
|
||||
选项状态
|
||||
</span>
|
||||
</div>
|
||||
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
<!---->
|
||||
<!---->
|
||||
<!----></i>
|
||||
<!---->
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="van-cell van-cell--clickable" role="button" tabindex="0">
|
||||
<!---->
|
||||
<div class="van-cell__title"><span>自定义面板</span>
|
||||
<!---->
|
||||
<div class="van-cell van-cell--clickable"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<div class="van-cell__title">
|
||||
<span>
|
||||
自定义面板
|
||||
</span>
|
||||
</div>
|
||||
<!----><i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
<!---->
|
||||
<!---->
|
||||
<!----></i>
|
||||
<!---->
|
||||
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||
</i>
|
||||
</div>
|
||||
</div>
|
||||
<transition-stub>
|
||||
<!---->
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<!---->
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<!---->
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<!---->
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<!---->
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<!---->
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<!---->
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<!---->
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<!---->
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<!---->
|
||||
</transition-stub>
|
||||
`;
|
||||
|
||||
@@ -2,37 +2,49 @@
|
||||
|
||||
exports[`should allow to custom close icon with closeIcon prop 1`] = `
|
||||
<i class="van-badge__wrapper van-icon van-icon-cross van-action-sheet__close">
|
||||
<!---->
|
||||
<!---->
|
||||
<!----></i>
|
||||
</i>
|
||||
`;
|
||||
|
||||
exports[`should render default slot correctly 1`] = `
|
||||
<transition-stub>
|
||||
<div class="van-overlay">
|
||||
<!---->
|
||||
</div>
|
||||
</transition-stub>
|
||||
<transition-stub>
|
||||
<div class="van-popup van-popup--round van-popup--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">
|
||||
<!---->
|
||||
<!---->
|
||||
<!----></i></div>
|
||||
<!---->
|
||||
<div class="van-action-sheet__header">
|
||||
Title
|
||||
<i class="van-badge__wrapper van-icon van-icon-cross van-action-sheet__close">
|
||||
</i>
|
||||
</div>
|
||||
<div class="van-action-sheet__content">
|
||||
<!---->Default</div>
|
||||
<!---->
|
||||
<!---->
|
||||
Default
|
||||
</div>
|
||||
</div>
|
||||
</transition-stub>
|
||||
`;
|
||||
|
||||
exports[`should render description correctly 1`] = `<div class="van-action-sheet__description">This is a description</div>`;
|
||||
exports[`should render description correctly 1`] = `
|
||||
<div class="van-action-sheet__description">
|
||||
This is a description
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`should render description slot when match snapshot 1`] = `<div class="van-action-sheet__description">Custom Description</div>`;
|
||||
exports[`should render description slot when match snapshot 1`] = `
|
||||
<div class="van-action-sheet__description">
|
||||
Custom Description
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`should render subname correctly 1`] = `
|
||||
<button type="button" class="van-action-sheet__item"><span class="van-action-sheet__name">Option</span>
|
||||
<div class="van-action-sheet__subname">Subname</div></button>
|
||||
<button type="button"
|
||||
class="van-action-sheet__item"
|
||||
>
|
||||
<span class="van-action-sheet__name">
|
||||
Option
|
||||
</span>
|
||||
<div class="van-action-sheet__subname">
|
||||
Subname
|
||||
</div>
|
||||
</button>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user