From f1140d5a90fa10d19ccdf2dbaadb7a13c0011dd7 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Wed, 23 Jul 2025 18:53:12 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=BB=99=20defineIcon=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client-modules/src/render/components/icons.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages-user/client-modules/src/render/components/icons.tsx b/packages-user/client-modules/src/render/components/icons.tsx index 6c6e288..a8926cf 100644 --- a/packages-user/client-modules/src/render/components/icons.tsx +++ b/packages-user/client-modules/src/render/components/icons.tsx @@ -63,7 +63,13 @@ function adjustPath( }; } -function defineIcon( +/** + * 定义一个描边图标 + * @param aspect 图标的宽高比 + * @param pathDef 图标的路径定义函数 + * @param props 图标组件定义的参数配置 + */ +export function defineIcon( aspect: number, pathDef: PathFn, props: SetupComponentOptions = iconsProps