[new feature] Image: add round prop (#3838)

This commit is contained in:
一颗红心
2019-07-18 17:12:27 +08:00
committed by neverland
parent 3f33fcc525
commit e1021e70ba
6 changed files with 95 additions and 3 deletions
+12
View File
@@ -31,6 +31,17 @@ Vue.use(Image);
/>
```
### Round
```html
<van-image
round
width="10rem"
height="10rem"
src="https://img.yzcdn.cn/vant/cat.jpeg"
/>
```
### Lazy Load
```html
@@ -56,6 +67,7 @@ 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` | - | - |