[improvement] Icon: add fit mode for image content (#3667)
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ function Icon(
|
||||
{...inherit(ctx, true)}
|
||||
>
|
||||
{slots.default && slots.default()}
|
||||
{imageIcon && <Image class={bem('image')} src={props.name} />}
|
||||
{imageIcon && <Image class={bem('image')} fit="contain" src={props.name} />}
|
||||
<Info info={props.info} />
|
||||
</props.tag>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user