[Improvement] support Number type info (#845)

This commit is contained in:
neverland
2018-04-10 17:35:10 +08:00
committed by GitHub
parent d3f6042650
commit 64898e1900
12 changed files with 26 additions and 15 deletions
+1 -1
View File
@@ -47,5 +47,5 @@ export default {
| Attribute | Description | Type | Default | Accepted Values |
|-----------|-----------|-----------|-------------|-------------|
| title | Content | `String` | `''` | - |
| info | Info Message | `String` | `''` | - |
| info | Info Message | `String | Number` | `''` | - |
| url | Link | `String` | - | - |
+1 -1
View File
@@ -61,7 +61,7 @@ Use `info` prop to show messages in upper right corner of icon
| text | Button text | `String` | - | - |
| icon | Icon | `String` | - | - |
| icon-class | Icon class name | `String` | `''` | - |
| info | Info message | `String` | - | - |
| info | Info message | `String | Number` | - | - |
| url | Link | `String` | - | - |
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - | - |
| replace | If true, the navigation will not leave a history record | `String` | `false` | - |
+1 -1
View File
@@ -49,7 +49,7 @@ import 'vant/lib/vant-css/icon-local.css';
| Attribute | Description | Type | Default | Accepted Values |
|-----------|-----------|-----------|-------------|-------------|
| name | Icon name | `String` | `''` | - |
| info | Info message | `String` | `''` | - |
| info | Info message | `String | Number` | `''` | - |
### Event
+1 -1
View File
@@ -78,7 +78,7 @@ export default {
|-----------|-----------|-----------|-------------|-------------|
| icon | Icon name | `String` | - | Names from Icon Component |
| dot | Whether to show red dot | `Boolean` | - | - |
| info | Info message | `String` | - | - |
| info | Info message | `String | Number` | - | - |
| url | Link | `String` | - | - |
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - | - |
| replace | If true, the navigation will not leave a history record | `String` | `false` | - |