mirror of
https://github.com/youzan/vant.git
synced 2026-01-18 01:00:43 +08:00
chore: fix all typos (#9053)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user