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:
parent
7d1f101f00
commit
a4ac054ede
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user