[Improvement] Icon add 'info' prop (#447)

This commit is contained in:
neverland
2017-12-18 11:37:41 +08:00
committed by GitHub
parent 4c18aca42f
commit a8666591c9
8 changed files with 49 additions and 21 deletions
+1 -1
View File
@@ -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>
+1
View File
@@ -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` | `''` | - |
+2 -1
View File
@@ -28,4 +28,5 @@ import 'vant/lib/vant-css/icon-local.css';
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|-----------|-----------|-----------|-------------|-------------|
| name | icon名称 | `String` | `''` | - |
| name | 图标名称 | `String` | `''` | - |
| info | 图标右上角文字提示 | `String` | `''` | - |