From 83f61ee46eeae1e5f5b2b2a649fc83836a4b68d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=9B=E7=9A=93?= Date: Thu, 7 Jan 2021 10:25:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=8A=8A=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=A4=A7=E5=B0=8F=E6=94=B9=E5=9B=9E=20medium?= =?UTF-8?q?,=20=E5=B7=A6=E4=BE=A7=E5=9B=BE=E6=A0=87=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=88=90=20large?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor-core/src/widgets/title/index.tsx | 2 +- packages/utils/src/svg-icon.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor-core/src/widgets/title/index.tsx b/packages/editor-core/src/widgets/title/index.tsx index 5a8ac589b..6374eb2ab 100644 --- a/packages/editor-core/src/widgets/title/index.tsx +++ b/packages/editor-core/src/widgets/title/index.tsx @@ -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) { diff --git a/packages/utils/src/svg-icon.tsx b/packages/utils/src/svg-icon.tsx index a0bde9eab..f75724b06 100644 --- a/packages/utils/src/svg-icon.tsx +++ b/packages/utils/src/svg-icon.tsx @@ -18,7 +18,7 @@ export interface IconProps { export function SVGIcon({ fill, - size = 'large', + size = 'medium', viewBox, style, children,