1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-08-19 04:11:36 +02:00

fix: Fixing default values for size and stroke attributes (#1145)

Co-authored-by: Paweł Kuna <1282324+codecalm@users.noreply.github.com>
This commit is contained in:
Andrei Khokhlov
2024-09-28 03:10:33 +07:00
committed by GitHub
parent 7d1f101f00
commit a4ac054ede

View File

@@ -9,7 +9,7 @@ const createVueComponent =
iconNamePascal: string, iconNamePascal: string,
iconNode: IconNode, iconNode: IconNode,
): Icon => ): 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()] : [])]; let children = [...iconNode.map((child) => h(...child)), ...(slots.default ? [slots.default()] : [])];
if (title) children = [h('title', title), ...children]; if (title) children = [h('title', title), ...children];
return h( return h(