Skip to content

Commit

Permalink
fix: snapshot update (#2481)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-huxiyang authored Jul 25, 2024
1 parent f853081 commit fc9a96e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 179 deletions.
164 changes: 0 additions & 164 deletions src/packages/cascader/__tests__/__snapshots__/cascader.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,169 +1,5 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Cascader > change tab 1`] = `
<div>
<div
class="nut-overlay"
style="--nutui-overlay-zIndex: 1000;"
/>
<div
class="nut-popup nut-popup-round nut-popup-bottom"
style="z-index: 1000;"
>
<div
class="nut-cascader "
>
<div
class="nut-tabs nut-tabs-horizontal"
>
<div
class="nut-tabs-titles nut-tabs-titles-line nut-tabs-titles-scrollable"
>
<div
class="nut-tabs-titles-item nut-tabs-titles-item-active"
>
<span
class="nut-tabs-titles-item-text"
>
请选择
</span>
<span
class="nut-tabs-titles-item-line"
/>
</div>
</div>
<div
class="nut-tabs-content-wrap"
>
<div
class="nut-tabs-content"
style="transform: translate3d(-0%, 0, 0); transition-duration: 300ms;"
>
<div
class="nut-tabpane active"
>
<div
class="nut-cascader-pane"
>
<div
class="nut-cascader-item"
>
<div
class="nut-cascader-item-title"
>
浙江
</div>
</div>
<div
class="disabled nut-cascader-item"
>
<div
class="nut-cascader-item-title"
>
湖南
</div>
</div>
<div
class="nut-cascader-item"
>
<div
class="nut-cascader-item-title"
>
福建
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;

exports[`Cascader > change tab 2`] = `
<div>
<div
class="nut-overlay"
style="--nutui-overlay-zIndex: 1000;"
/>
<div
class="nut-popup nut-popup-round nut-popup-bottom"
style="z-index: 1000;"
>
<div
class="nut-cascader "
>
<div
class="nut-tabs nut-tabs-horizontal"
>
<div
class="nut-tabs-titles nut-tabs-titles-line nut-tabs-titles-scrollable"
>
<div
class="nut-tabs-titles-item nut-tabs-titles-item-active"
>
<span
class="nut-tabs-titles-item-text"
>
请选择
</span>
<span
class="nut-tabs-titles-item-line"
/>
</div>
</div>
<div
class="nut-tabs-content-wrap"
>
<div
class="nut-tabs-content"
style="transform: translate3d(-0%, 0, 0); transition-duration: 300ms;"
>
<div
class="nut-tabpane active"
>
<div
class="nut-cascader-pane"
>
<div
class="nut-cascader-item"
>
<div
class="nut-cascader-item-title"
>
浙江
</div>
</div>
<div
class="disabled nut-cascader-item"
>
<div
class="nut-cascader-item-title"
>
湖南
</div>
</div>
<div
class="nut-cascader-item"
>
<div
class="nut-cascader-item-title"
>
福建
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
`;

exports[`Cascader > options 1`] = `<div />`;

exports[`Cascader > options with format 1`] = `<div />`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ exports[`Ellipsis Props expand and collapse 1`] = `
</div>
`;

exports[`Ellipsis Props expand and collapse 2`] = `
<div>
<div
class="nut-ellipsis"
>
NutUI3.0上线后我们研发团队也在不断的优化、测试、使用、迭代 Vue3 的相关组件,但是在跨端小程序的开发过程中,发现没有合适的组件库可以支持多端开发。为了填补这一空白,同时为了优化开发者体验,让 NutUI 能够为更多的开发者带来便利,我们决定在 NutUI 中增加小程序多端适配的能力。
</div>
</div>
`;

exports[`Ellipsis click text 1`] = `
<div>
<div
Expand Down
12 changes: 7 additions & 5 deletions src/packages/menu/__test__/__snapshots__/menu.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`should match snapshot 1`] = `
class="nut-menu-bar"
>
<div
class="nut-menu-title "
class="nut-menu-title nut-menu-title-0"
>
<div
class="nut-menu-title-text"
Expand Down Expand Up @@ -46,7 +46,9 @@ exports[`should match snapshot 1`] = `
class="nut-menu-container-item active"
style="flex-basis: 100%;"
>
<i>
<i
class="nut-menu-container-item-icon"
>
<svg
aria-labelledby="Check"
class="nut-icon nut-icon-Check "
Expand All @@ -63,7 +65,7 @@ exports[`should match snapshot 1`] = `
</svg>
</i>
<div
class=""
class="nut-menu-container-item-title "
>
全部商品
</div>
Expand All @@ -73,7 +75,7 @@ exports[`should match snapshot 1`] = `
style="flex-basis: 100%;"
>
<div
class=""
class="nut-menu-container-item-title "
>
新款商品
</div>
Expand All @@ -83,7 +85,7 @@ exports[`should match snapshot 1`] = `
style="flex-basis: 100%;"
>
<div
class=""
class="nut-menu-container-item-title "
>
活动商品
</div>
Expand Down

0 comments on commit fc9a96e

Please sign in to comment.