docs: type highlight (#4264)

This commit is contained in:
neverland
2019-08-27 22:09:21 +08:00
committed by GitHub
parent a79750d00c
commit ecbdc2bede
129 changed files with 1493 additions and 1484 deletions

View File

@@ -102,22 +102,22 @@ Vue.use(Grid).use(GridItem);
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| column-num | Column Num | `number` | `4` | 2.0.4 |
| gutter | Gutter | `string | number` | `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` | - |
| column-num | Column Num | *number* | `4` | 2.0.4 |
| gutter | Gutter | *string \| number* | `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` | - |
### GridItem Props
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| text | Text | `string` | - | - |
| icon | Icon name or URL | `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` | - |
| text | Text | *string* | - | - |
| icon | Icon name or URL | *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` | - |
### GridItem Events

View File

@@ -118,22 +118,22 @@ Vue.use(Grid).use(GridItem);
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| column-num | 列数 | `number` | `4` | 2.0.4 |
| gutter | 格子之间的间距,默认单位为`px` | `string | number` | `0` | - |
| border | 是否显示边框 | `boolean` | `true` | - |
| center | 是否将格子内容居中显示 | `boolean` | `true` | - |
| square | 是否将格子固定为正方形 | `boolean` | `false` | - |
| clickable | 是否开启格子点击反馈 | `boolean` | `false` | - |
| column-num | 列数 | *number* | `4` | 2.0.4 |
| gutter | 格子之间的间距,默认单位为`px` | *string \| number* | `0` | - |
| border | 是否显示边框 | *boolean* | `true` | - |
| center | 是否将格子内容居中显示 | *boolean* | `true` | - |
| square | 是否将格子固定为正方形 | *boolean* | `false` | - |
| clickable | 是否开启格子点击反馈 | *boolean* | `false` | - |
### GridItem Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| text | 文字 | `string` | - | - |
| icon | 图标名称或图片链接,可选值见 Icon 组件 | `string` | - | - |
| url | 跳转链接 | `string` | - | - |
| to | 路由跳转对象,同 vue-router 的 to 属性 | `string | object` | - | - |
| replace | 跳转时是否替换当前页面历史 | `boolean` | `false` | - |
| text | 文字 | *string* | - | - |
| icon | 图标名称或图片链接,可选值见 Icon 组件 | *string* | - | - |
| url | 跳转链接 | *string* | - | - |
| to | 路由跳转对象,同 vue-router 的 to 属性 | *string \| object* | - | - |
| replace | 跳转时是否替换当前页面历史 | *boolean* | `false` | - |
### GridItem Events