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

@@ -68,16 +68,16 @@ Vue.use(Lazyload);
| Attribute | Description | Type | Default | Version |
|------|------|------|------|------|
| src | Src | `string` | - | - |
| fit | Fit mode | `string` | `fill` | - |
| alt | Alt | `string` | - | - |
| width | Width | `string | number` | - | - |
| height | Height | `string | number` | - | - |
| radius | Border Radius | `string | number` | `0` | 2.1.6 |
| round | Whether to be round | `boolean` | `false` | - |
| lazy-load | Whether to enable lazy loadshould register [Lazyload](#/en-US/lazyload) component | `boolean` | `false` | - |
| show-error | Whether to show error placeholder | `boolean` | `true` | 2.0.9 |
| show-loading | Whether to show loading placeholder | `boolean` | `true` | 2.0.9 |
| src | Src | *string* | - | - |
| fit | Fit mode | *string* | `fill` | - |
| alt | Alt | *string* | - | - |
| width | Width | *string \| number* | - | - |
| height | Height | *string \| number* | - | - |
| radius | Border Radius | *string \| number* | `0` | 2.1.6 |
| round | Whether to be round | *boolean* | `false` | - |
| lazy-load | Whether to enable lazy loadshould register [Lazyload](#/en-US/lazyload) component | *boolean* | `false` | - |
| show-error | Whether to show error placeholder | *boolean* | `true` | 2.0.9 |
| show-loading | Whether to show loading placeholder | *boolean* | `true` | 2.0.9 |
### fit optional value

View File

@@ -94,16 +94,16 @@ Vue.use(Image);
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| src | 图片链接 | `string` | - | - |
| fit | 图片填充模式 | `string` | `fill` | - |
| alt | 替代文本 | `string` | - | - |
| width | 宽度,默认单位为`px` | `string | number` | - | - |
| height | 高度,默认单位为`px` | `string | number` | - | - |
| radius | 圆角大小,默认单位为`px` | `string | number` | `0` | 2.1.6 |
| round | 是否显示为圆形 | `boolean` | `false` | - |
| lazy-load | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | `boolean` | `false` | - |
| show-error | 是否展示图片加载失败提示 | `boolean` | `true` | 2.0.9 |
| show-loading | 是否展示图片加载中提示 | `boolean` | `true` | 2.0.9 |
| src | 图片链接 | *string* | - | - |
| fit | 图片填充模式 | *string* | `fill` | - |
| alt | 替代文本 | *string* | - | - |
| width | 宽度,默认单位为`px` | *string \| number* | - | - |
| height | 高度,默认单位为`px` | *string \| number* | - | - |
| radius | 圆角大小,默认单位为`px` | *string \| number* | `0` | 2.1.6 |
| round | 是否显示为圆形 | *boolean* | `false` | - |
| lazy-load | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | *boolean* | `false` | - |
| show-error | 是否展示图片加载失败提示 | *boolean* | `true` | 2.0.9 |
| show-loading | 是否展示图片加载中提示 | *boolean* | `true` | 2.0.9 |
### 图片填充模式