mirror of
https://github.com/iconify/iconify.git
synced 2025-01-06 23:23:58 +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[];
|
||||
}
|
||||
|
||||
export const Icon = defineComponent({
|
||||
export const Icon = defineComponent<IconProps>({
|
||||
// Do not inherit other attributes: it is handled by render()
|
||||
inheritAttrs: false,
|
||||
|
||||
|
@ -73,7 +73,7 @@ export function addCollection(
|
||||
/**
|
||||
* Component
|
||||
*/
|
||||
export const Icon = defineComponent({
|
||||
export const Icon = defineComponent<IconProps>({
|
||||
// Do not inherit other attributes: it is handled by render()
|
||||
inheritAttrs: false,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user