Skip to content

Commit 80d8ef1

Browse files
authored
docs(Tag): fix closeable demo (youzan#4938)
1 parent ca48edb commit 80d8ef1

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/tag/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,19 @@ Vue.use(Tag);
7373

7474
```html
7575
<van-tag
76-
v-if="showPrimary"
77-
type="primary"
76+
v-if="show.primary"
77+
closeable
7878
size="medium"
79+
type="primary"
7980
@close="close('primary')"
8081
>
8182
Tag
8283
</van-tag>
8384
<van-tag
84-
v-if="showSuccess"
85-
type="success"
85+
v-if="show.success"
86+
closeable
8687
size="medium"
88+
type="success"
8789
@close="close('success')"
8890
>
8991
Tag

src/tag/README.zh-CN.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,19 @@ Vue.use(Tag);
8383

8484
```html
8585
<van-tag
86-
v-if="showPrimary"
87-
type="primary"
86+
v-if="show.primary"
87+
closeable
8888
size="medium"
89+
type="primary"
8990
@close="close('primary')"
9091
>
9192
标签
9293
</van-tag>
9394
<van-tag
94-
v-if="showSuccess"
95-
type="success"
95+
v-if="show.success"
96+
closeable
9697
size="medium"
98+
type="success"
9799
@close="close('success')"
98100
>
99101
标签

0 commit comments

Comments
 (0)