mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
tag component
This commit is contained in:
28
docs/examples-docs/tag.md
Normal file
28
docs/examples-docs/tag.md
Normal file
@@ -0,0 +1,28 @@
|
||||
## Tag 组件
|
||||
|
||||
### 基础用法
|
||||
```html
|
||||
<z-tag>返现</z-tag>
|
||||
<z-tag :plain="true">返现</z-tag>
|
||||
```
|
||||
|
||||
### 高级用法
|
||||
```html
|
||||
<z-tag type="danger">返现</z-tag>
|
||||
<z-tag type="success">返现</z-tag>
|
||||
<z-tag type="success" :plain="true">返现</z-tag>
|
||||
```
|
||||
|
||||
### API
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| plain | 是否是空心tag | boolean | false | '' |
|
||||
| mark | 是否是标记 | boolean | false | '' |
|
||||
| type | tag类型 | string | '' | 'primary', 'success', 'danger' |
|
||||
|
||||
### Slot
|
||||
|
||||
| name | 描述 |
|
||||
|-----------|-----------|
|
||||
| - | 自定义tag显示内容 |
|
Reference in New Issue
Block a user