feat(Image): add radius prop (#4230)
This commit is contained in:
@@ -11,6 +11,7 @@ export default createComponent({
|
||||
round: Boolean,
|
||||
width: [Number, String],
|
||||
height: [Number, String],
|
||||
radius: [Number, String],
|
||||
lazyLoad: Boolean,
|
||||
showError: {
|
||||
type: Boolean,
|
||||
@@ -48,6 +49,11 @@ export default createComponent({
|
||||
style.height = addUnit(this.height);
|
||||
}
|
||||
|
||||
if (isDef(this.radius)) {
|
||||
style.overflow = 'hidden';
|
||||
style.borderRadius = addUnit(this.radius);
|
||||
}
|
||||
|
||||
return style;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user