[Improvement] Icon add 'info' prop (#447)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<demo-section>
|
||||
<demo-block :title="$t('title')">
|
||||
<van-col span="8" v-for="icon in icons" :key="icon">
|
||||
<van-icon :name="icon"></van-icon>
|
||||
<van-icon :name="icon" />
|
||||
<span>{{ icon }}</span>
|
||||
</van-col>
|
||||
</demo-block>
|
||||
|
||||
@@ -28,3 +28,4 @@ import 'vant/lib/vant-css/icon-local.css';
|
||||
| Attribute | Description | Type | Default | Accepted Values |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| name | Icon name | `String` | `''` | - |
|
||||
| info | Info message | `String` | `''` | - |
|
||||
|
||||
@@ -28,4 +28,5 @@ import 'vant/lib/vant-css/icon-local.css';
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| name | icon名称 | `String` | `''` | - |
|
||||
| name | 图标名称 | `String` | `''` | - |
|
||||
| info | 图标右上角文字提示 | `String` | `''` | - |
|
||||
|
||||
Reference in New Issue
Block a user