1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-01-17 12:48:26 +01: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(