[new feature] Image: add loading-placeholder prop (#3893)

This commit is contained in:
neverland
2019-07-18 21:01:14 +08:00
committed by GitHub
parent 6aaab466af
commit 250babecaa
5 changed files with 27 additions and 7 deletions
+4 -1
View File
@@ -33,6 +33,8 @@ Vue.use(Image);
### Round
Show round image, it may not works at `fit=contain` and `fit=scale-down`
```html
<van-image
round
@@ -67,11 +69,12 @@ Vue.use(Lazyload);
|------|------|------|------|
| src | Src | `string` | - | - |
| fit | Fit mode | `string` | `fill` | - |
| round | Roundwhen img width not eq height it may not works at `fit=contain` and `fit=scale-down` | `boolean` | `false` | - |
| alt | Alt | `string` | - | - |
| width | Width | `string | number` | - | - |
| height | Height | `string | number` | - | - |
| round | Whether to be round | `boolean` | `false` | - |
| lazy-load | Whether to enable lazy loadshould register [Lazyload](#/en-US/lazyload) component | `boolean` | `false` | - |
| loading-placeholder | Whether to show loading placeholder | `boolean` | `true` |
### fit optional value