mirror of
https://github.com/iconify/iconify.git
synced 2025-01-22 22:58:27 +00:00
fix: provide prop types to vue component
This commit is contained in:
parent
456ed17236
commit
8b2aeff300
@ -236,7 +236,7 @@ interface IconComponentData {
|
|||||||
classes?: string[];
|
classes?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Icon = defineComponent({
|
export const Icon = defineComponent<IconProps>({
|
||||||
// Do not inherit other attributes: it is handled by render()
|
// Do not inherit other attributes: it is handled by render()
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ export function addCollection(
|
|||||||
/**
|
/**
|
||||||
* Component
|
* Component
|
||||||
*/
|
*/
|
||||||
export const Icon = defineComponent({
|
export const Icon = defineComponent<IconProps>({
|
||||||
// Do not inherit other attributes: it is handled by render()
|
// Do not inherit other attributes: it is handled by render()
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user