From a4ac054edeb64a578258e3e6cf98e9d3e1617846 Mon Sep 17 00:00:00 2001 From: Andrei Khokhlov Date: Sat, 28 Sep 2024 03:10:33 +0700 Subject: [PATCH] fix: Fixing default values for `size` and `stroke` attributes (#1145) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Paweł Kuna <1282324+codecalm@users.noreply.github.com> --- packages/icons-vue/src/createVueComponent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icons-vue/src/createVueComponent.ts b/packages/icons-vue/src/createVueComponent.ts index 0626058ba..c1ecc1a4d 100644 --- a/packages/icons-vue/src/createVueComponent.ts +++ b/packages/icons-vue/src/createVueComponent.ts @@ -9,7 +9,7 @@ const createVueComponent = iconNamePascal: string, iconNode: IconNode, ): Icon => - ({ color = 'currentColor', size, stroke, title, class: classes, ...rest }: IconProps, { attrs, slots }) => { + ({ color = 'currentColor', size = 24, stroke = 2, title, class: classes, ...rest }: IconProps, { attrs, slots }) => { let children = [...iconNode.map((child) => h(...child)), ...(slots.default ? [slots.default()] : [])]; if (title) children = [h('title', title), ...children]; return h(