chore: fix all typos (#9053)

This commit is contained in:
neverland
2021-07-17 16:07:42 +08:00
committed by GitHub
parent 5807f39687
commit 34d4937f2b
28 changed files with 38 additions and 44 deletions

View File

@@ -61,7 +61,7 @@ test('swipe to switch tab', async () => {
const onChange = jest.fn();
const wrapper = mount({
template: `
<van-tabs v-model="active" swipeable @change="onChange">
<van-tabs v-model:active="active" swipeable @change="onChange">
<van-tab title="title1">Text</van-tab>
<van-tab title="title2">Text</van-tab>
<van-tab title="title3" disabled>Text</van-tab>
@@ -153,7 +153,7 @@ test('name prop', async () => {
const wrapper = mount({
template: `
<van-tabs v-model="active" @click="onClick" @disabled="onDisabled" @change="onChange">
<van-tabs v-model:active="active" @click="onClick" @disabled="onDisabled" @change="onChange">
<van-tab title="title1" name="a">Text</van-tab>
<van-tab title="title2" name="b">Text</van-tab>
<van-tab title="title3" name="c" disabled>Text</van-tab>
@@ -301,7 +301,7 @@ test('rendered event', async () => {
const wrapper = mount({
template: `
<van-tabs v-model="active" @rendered="onRendered">
<van-tabs v-model:active="active" @rendered="onRendered">
<van-tab name="a" title="title1">Text</van-tab>
<van-tab name="b" title="title2">Title2</van-tab>
</van-tabs>