[Improvement] support Number type info (#845)
This commit is contained in:
@@ -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` | - | - |
|
||||
|
||||
@@ -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` | - |
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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` | - |
|
||||
|
||||
Reference in New Issue
Block a user