From 2e67881ca74cb4d21da78f9b6046c932b6fc8aec Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 17 Nov 2021 10:14:50 +0800 Subject: [PATCH] fix(Tabs): rename panel class to "van-tab__panel" (#9885) --- .../test/__snapshots__/index.spec.ts.snap | 6 +- packages/vant/src/cascader/test/index.spec.ts | 2 +- .../test/__snapshots__/index.spec.ts.snap | 16 ++-- .../test/__snapshots__/demo.spec.ts.snap | 6 +- .../icon/test/__snapshots__/demo.spec.ts.snap | 8 +- .../test/__snapshots__/demo.spec.ts.snap | 4 +- .../list/test/__snapshots__/demo.spec.ts.snap | 6 +- .../test/__snapshots__/demo.spec.ts.snap | 6 +- packages/vant/src/tab/Tab.tsx | 4 +- packages/vant/src/tab/index.less | 2 +- .../tab/test/__snapshots__/demo.spec.ts.snap | 90 +++++++++---------- .../test/__snapshots__/index.spec.tsx.snap | 44 ++++----- .../test/__snapshots__/insert.spec.tsx.snap | 16 ++-- packages/vant/src/tab/test/index.spec.tsx | 2 +- 14 files changed, 106 insertions(+), 106 deletions(-) diff --git a/packages/vant/src/cascader/test/__snapshots__/index.spec.ts.snap b/packages/vant/src/cascader/test/__snapshots__/index.spec.ts.snap index c21648631..6310bbdda 100644 --- a/packages/vant/src/cascader/test/__snapshots__/index.spec.ts.snap +++ b/packages/vant/src/cascader/test/__snapshots__/index.spec.ts.snap @@ -12,7 +12,7 @@ exports[`should render option slot correctly 1`] = ` `; exports[`should render options-top、options-bottom slots correctly 1`] = ` -
+
Top, tab index: 0
  • @@ -101,7 +101,7 @@ exports[`should update tabs when previous tab is clicked 1`] = ` aria-labelledby="van-tabs-0" style="width: 100px;" > -
    +
    • @@ -126,7 +126,7 @@ exports[`should update tabs when previous tab is clicked 1`] = ` aria-labelledby="van-tabs-1" style="width: 100px;" > -
      +
      • diff --git a/packages/vant/src/cascader/test/index.spec.ts b/packages/vant/src/cascader/test/index.spec.ts index 5241d3eae..b6335db5e 100644 --- a/packages/vant/src/cascader/test/index.spec.ts +++ b/packages/vant/src/cascader/test/index.spec.ts @@ -259,5 +259,5 @@ test('should render options-top、options-bottom slots correctly', async () => { .find('.van-cascader__option') .trigger('click'); - expect(wrapper.find('.van-tab__pane').html()).toMatchSnapshot(); + expect(wrapper.find('.van-tab__panel').html()).toMatchSnapshot(); }); diff --git a/packages/vant/src/coupon-list/test/__snapshots__/index.spec.ts.snap b/packages/vant/src/coupon-list/test/__snapshots__/index.spec.ts.snap index 3482bd566..91d87df39 100644 --- a/packages/vant/src/coupon-list/test/__snapshots__/index.spec.ts.snap +++ b/packages/vant/src/coupon-list/test/__snapshots__/index.spec.ts.snap @@ -62,7 +62,7 @@ exports[`should be the sames as the last snapshot when render coupon list 1`] =