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:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user