[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` | - |
|
||||
|
||||
@@ -48,5 +48,5 @@ export default {
|
||||
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| title | 内容 | `String` | `''` | - |
|
||||
| info | 提示消息 | `String` | `''` | - |
|
||||
| info | 提示消息 | `String | Number` | `''` | - |
|
||||
| url | 跳转链接 | `String` | - | - |
|
||||
|
||||
@@ -61,7 +61,7 @@ export default {
|
||||
| text | 按钮文字 | `String` | - | - |
|
||||
| icon | 图标 | `String` | - | Icon 组件支持的所有图标 |
|
||||
| icon-class | 图标额外类名 | `String` | `''` | - |
|
||||
| info | 图标右上角提示信息 | `String` | - | - |
|
||||
| info | 图标右上角提示信息 | `String | Number` | - | - |
|
||||
| url | 跳转链接 | `String` | - | - |
|
||||
| to | 路由跳转对象,同 `vue-router` 的 to | `String | Object` | - | - |
|
||||
| replace | 跳转时是否替换当前 history | `String` | `false` | - |
|
||||
|
||||
@@ -50,7 +50,7 @@ import 'vant/lib/vant-css/icon-local.css';
|
||||
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| name | 图标名称 | `String` | `''` | - |
|
||||
| info | 图标右上角文字提示 | `String` | `''` | - |
|
||||
| info | 图标右上角文字提示 | `String | Number` | `''` | - |
|
||||
|
||||
### Event
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ export default {
|
||||
|-----------|-----------|-----------|-------------|-------------|
|
||||
| icon | 图标名称 | `String` | - | Icon 组件中可用的类型 |
|
||||
| dot | 是否显示小红点 | `Boolean` | - | - |
|
||||
| info | 图标右上角提示信息 | `String` | - | - |
|
||||
| info | 图标右上角提示信息 | `String | Number` | - | - |
|
||||
| url | 跳转链接 | `String` | - | - |
|
||||
| to | 路由跳转对象,同 `vue-router` 的 to | `String | Object` | - | - |
|
||||
| replace | 跳转时是否替换当前 history | `String` | `false` | - |
|
||||
|
||||
Reference in New Issue
Block a user