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 66e1123dd..cd6ca59c7 100644 --- a/packages/vant/src/cascader/test/__snapshots__/index.spec.ts.snap +++ b/packages/vant/src/cascader/test/__snapshots__/index.spec.ts.snap @@ -57,19 +57,20 @@ exports[`should update tabs when previous tab is clicked 1`] = `
-
@@ -416,7 +416,7 @@ exports[`should render list-footer slot correctly 1`] = `
@@ -512,7 +512,7 @@ exports[`should use custom src when using empty-image prop 1`] = `
diff --git a/packages/vant/src/dropdown-menu/test/__snapshots__/index.spec.tsx.snap b/packages/vant/src/dropdown-menu/test/__snapshots__/index.spec.tsx.snap index 30c5b5817..e0966e274 100644 --- a/packages/vant/src/dropdown-menu/test/__snapshots__/index.spec.tsx.snap +++ b/packages/vant/src/dropdown-menu/test/__snapshots__/index.spec.tsx.snap @@ -24,7 +24,7 @@ exports[`click option 1`] = ` -
@@ -66,7 +66,7 @@ exports[`click option 1`] = `
- -
@@ -143,7 +143,7 @@ exports[`close-on-click-outside 1`] = `
- -
@@ -365,7 +365,7 @@ exports[`disable close-on-click-outside 1`] = `
- -
@@ -471,7 +471,7 @@ exports[`render option icon 1`] = `
- -
@@ -548,7 +548,7 @@ exports[`show dropdown item 1`] = `
- -
@@ -625,7 +625,7 @@ exports[`show dropdown item 2`] = `
-
@@ -694,7 +694,7 @@ exports[`show dropdown item 3`] = `
-
@@ -736,7 +736,7 @@ exports[`show dropdown item 3`] = `
-
diff --git a/packages/vant/src/empty/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/empty/test/__snapshots__/demo.spec.ts.snap index 8194ad260..31d029c1d 100644 --- a/packages/vant/src/empty/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/empty/test/__snapshots__/demo.spec.ts.snap @@ -42,7 +42,7 @@ exports[`should render demo and match snapshot 1`] = `
diff --git a/packages/vant/src/icon/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/icon/test/__snapshots__/demo.spec.ts.snap index 935079b4d..e04c60d36 100644 --- a/packages/vant/src/icon/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/icon/test/__snapshots__/demo.spec.ts.snap @@ -41,7 +41,7 @@ exports[`should render demo and match snapshot 1`] = `
diff --git a/packages/vant/src/index-bar/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/index-bar/test/__snapshots__/demo.spec.ts.snap index dd7f6246e..e4c6301c1 100644 --- a/packages/vant/src/index-bar/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/index-bar/test/__snapshots__/demo.spec.ts.snap @@ -23,7 +23,7 @@ exports[`should render demo and match snapshot 1`] = `
@@ -867,8 +867,10 @@ exports[`should render demo and match snapshot 1`] = `
-
-
+
+
Z
diff --git a/packages/vant/src/list/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/list/test/__snapshots__/demo.spec.ts.snap index 6ccee5f86..8ef8e141f 100644 --- a/packages/vant/src/list/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/list/test/__snapshots__/demo.spec.ts.snap @@ -31,7 +31,7 @@ exports[`should render demo and match snapshot 1`] = `
diff --git a/packages/vant/src/notice-bar/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/notice-bar/test/__snapshots__/demo.spec.ts.snap index 07adec3dd..6fbedb4ec 100644 --- a/packages/vant/src/notice-bar/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/notice-bar/test/__snapshots__/demo.spec.ts.snap @@ -124,16 +124,22 @@ exports[`should render demo and match snapshot 1`] = ` class="van-notice-bar__content van-ellipsis" >
-
-
+
Content 1
-
+
Content 2
-
+
Content 3
diff --git a/packages/vant/src/popover/test/__snapshots__/index.spec.tsx.snap b/packages/vant/src/popover/test/__snapshots__/index.spec.tsx.snap index e26af7a0b..09edde75a 100644 --- a/packages/vant/src/popover/test/__snapshots__/index.spec.tsx.snap +++ b/packages/vant/src/popover/test/__snapshots__/index.spec.tsx.snap @@ -41,7 +41,7 @@ exports[`should locate to reference element when showed 1`] = ` exports[`should locate to reference element when showed 2`] = ` -
@@ -72,7 +72,7 @@ exports[`should locate to reference element when showed 3`] = ` exports[`should watch placement prop and update location 1`] = ` -
diff --git a/packages/vant/src/pull-refresh/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/pull-refresh/test/__snapshots__/demo.spec.ts.snap index 072104e50..80b453770 100644 --- a/packages/vant/src/pull-refresh/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/pull-refresh/test/__snapshots__/demo.spec.ts.snap @@ -31,7 +31,7 @@ exports[`should render demo and match snapshot 1`] = `
diff --git a/packages/vant/src/swipe/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/swipe/test/__snapshots__/demo.spec.ts.snap index 038471e3f..68ca0e841 100644 --- a/packages/vant/src/swipe/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/swipe/test/__snapshots__/demo.spec.ts.snap @@ -3,19 +3,27 @@ exports[`should render demo and match snapshot 1`] = `
-
-
+
1
-
+
2
-
+
3
-
+
4
@@ -35,18 +43,26 @@ exports[`should render demo and match snapshot 1`] = `
-
-
+
-
+
-
+
-
+
@@ -64,19 +80,27 @@ exports[`should render demo and match snapshot 1`] = `
-
-
+
1
-
+
2
-
+
3
-
+
4
@@ -178,19 +202,27 @@ exports[`should render demo and match snapshot 1`] = `
-
-
+
1
-
+
2
-
+
3
-
+
4
diff --git a/packages/vant/src/tab/README.md b/packages/vant/src/tab/README.md index 989e19165..b933ecdfc 100644 --- a/packages/vant/src/tab/README.md +++ b/packages/vant/src/tab/README.md @@ -36,7 +36,7 @@ import { ref } from 'vue'; export default { setup() { - const active = ref(2); + const active = ref(0); return { active }; }, }; diff --git a/packages/vant/src/tab/README.zh-CN.md b/packages/vant/src/tab/README.zh-CN.md index ce901ae90..26afb112d 100644 --- a/packages/vant/src/tab/README.zh-CN.md +++ b/packages/vant/src/tab/README.zh-CN.md @@ -37,7 +37,7 @@ import { ref } from 'vue'; export default { setup() { - const active = ref(2); + const active = ref(0); return { active }; }, }; diff --git a/packages/vant/src/tab/demo/index.vue b/packages/vant/src/tab/demo/index.vue index 9169569b6..666ff5437 100644 --- a/packages/vant/src/tab/demo/index.vue +++ b/packages/vant/src/tab/demo/index.vue @@ -40,7 +40,17 @@ const t = useTranslate({ }, }); -const active = ref(2); +const active1 = ref(0); +const active2 = ref(0); +const active3 = ref(0); +const active4 = ref(0); +const active5 = ref(0); +const active6 = ref(0); +const active7 = ref(0); +const active8 = ref(0); +const active9 = ref(0); +const active10 = ref(0); +const active11 = ref(0); const activeName = ref('b'); const tabs = [1, 2, 3, 4]; @@ -61,7 +71,7 @@ const beforeChange = (name: number) => {