[new feature] Image: add round prop (#3838)
This commit is contained in:
@@ -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 | Round,when 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` | - | - |
|
||||
|
||||
Reference in New Issue
Block a user