refactor: 把图标默认大小改回 medium, 左侧图标单独设置成 large

This commit is contained in:
力皓 2021-01-07 10:25:40 +08:00
parent 1cfbe450ce
commit 83f61ee46e
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ export class Title extends Component<{ title: TitleContent; className?: string;
title = { label: title };
}
const icon = title.icon ? createIcon(title.icon) : null;
const icon = title.icon ? createIcon(title.icon, { size: 20 }) : null;
let tip: any = null;
if (title.tip) {

View File

@ -18,7 +18,7 @@ export interface IconProps {
export function SVGIcon({
fill,
size = 'large',
size = 'medium',
viewBox,
style,
children,