[new feature] Image: add loading-placeholder prop (#3893)
This commit is contained in:
@@ -41,7 +41,7 @@ Vue.use(Image);
|
||||
|
||||
### 圆形图片
|
||||
|
||||
通过`round`属性可以设置图片变圆
|
||||
通过`round`属性可以设置图片变圆,注意当图片宽高不相等且`fit`为`contain`或`scale-down`时,将无法填充一个完整的圆形。
|
||||
|
||||
```html
|
||||
<van-image
|
||||
@@ -95,11 +95,12 @@ Vue.use(Image);
|
||||
|------|------|------|------|------|
|
||||
| src | 图片链接 | `string` | - | - |
|
||||
| fit | 图片填充模式 | `string` | `fill` | - |
|
||||
| round | 圆形图片,当图片宽高不相等时 `fit=contain` 和 `fit=scale-down` 可能无法实现「圆形」图片 | `boolean` | `false` | - |
|
||||
| alt | 替代文本 | `string` | - | - |
|
||||
| width | 宽度,默认单位为 px | `string | number` | - | - |
|
||||
| height | 高度,默认单位为 px | `string | number` | - | - |
|
||||
| round | 是否显示为圆形 | `boolean` | `false` | - |
|
||||
| lazy-load | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | `boolean` | `false` | - |
|
||||
| loading-placeholder | 是否展示图片加载中提示 | `boolean` | `true` | `2.0.9` |
|
||||
|
||||
### 图片填充模式
|
||||
|
||||
|
||||
Reference in New Issue
Block a user