docs: update numeric type

This commit is contained in:
陈嘉涵
2020-01-29 10:11:09 +08:00
parent 36ba412f70
commit c6f424baa7
85 changed files with 197 additions and 197 deletions
+3 -3
View File
@@ -103,12 +103,12 @@ Vue.use(GridItem);
| Attribute | Description | Type | Default |
|------|------|------|------|
| column-num `v2.0.4` | Column Num | *number* | `4` |
| gutter | Gutter | *string \| number* | `0` |
| gutter | Gutter | *number \| string* | `0` |
| border | Whether to show border | *boolean* | `true` |
| center | Whether to center content | *boolean* | `true` |
| square | Whether to be square shape | *boolean* | `false` |
| clickable | Whether to show click feedback when clicked | *boolean* | `false` |
| icon-size `v2.2.6` | Icon size | *string \| number* | `28px` |
| icon-size `v2.2.6` | Icon size | *number \| string* | `28px` |
### GridItem Props
@@ -117,7 +117,7 @@ Vue.use(GridItem);
| text | Text | *string* | - |
| icon | Icon name or URL | *string* | - |
| dot `v2.2.1` | Whether to show red dot | *boolean* | `false` |
| info `v2.2.1` | Content of the badge | *string \| number* | - |
| info `v2.2.1` | Content of the badge | *number \| string* | - |
| url | Link URL | *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 | *boolean* | `false` |
+3 -3
View File
@@ -121,12 +121,12 @@ Vue.use(GridItem);
| 参数 | 说明 | 类型 | 默认值 |
|------|------|------|------|
| column-num `v2.0.4` | 列数 | *number* | `4` |
| gutter | 格子之间的间距,默认单位为`px` | *string \| number* | `0` |
| gutter | 格子之间的间距,默认单位为`px` | *number \| string* | `0` |
| border | 是否显示边框 | *boolean* | `true` |
| center | 是否将格子内容居中显示 | *boolean* | `true` |
| square | 是否将格子固定为正方形 | *boolean* | `false` |
| clickable | 是否开启格子点击反馈 | *boolean* | `false` |
| icon-size `v2.2.6` | 图标大小,默认单位为`px` | *string \| number* | `28px` |
| icon-size `v2.2.6` | 图标大小,默认单位为`px` | *number \| string* | `28px` |
### GridItem Props
@@ -135,7 +135,7 @@ Vue.use(GridItem);
| text | 文字 | *string* | - |
| icon | [图标名称](#/zh-CN/icon) 或图片链接 | *string* | - |
| dot `v2.2.1` | 是否显示图标右上角小红点 | *boolean* | `false` |
| info `v2.2.1` | 图标右上角徽标的内容 | *string \| number* | - |
| info `v2.2.1` | 图标右上角徽标的内容 | *number \| string* | - |
| url | 点击后跳转的链接地址 | *string* | - |
| to | 点击后跳转的目标路由对象,同 vue-router 的 [to 属性](https://router.vuejs.org/zh/api/#to) | *string \| object* | - |
| replace | 是否在跳转时替换当前页面历史 | *boolean* | `false` |