fix(module): use relative imports to components / composables

This commit is contained in:
Benjamin Canac
2024-07-25 17:00:57 +02:00
parent 8bac288687
commit 42f4f8d337
35 changed files with 116 additions and 44 deletions

View File

@@ -0,0 +1,26 @@
<script lang="ts">
export interface IconProps {
name: string
mode?: 'svg' | 'css'
size?: string | number
customize?: (
content: string,
name?: string,
prefix?: string,
provider?: string
) => string
}
</script>
<script setup lang="ts">
import { useForwardProps } from 'radix-vue'
import { reactivePick } from '@vueuse/core'
const props = defineProps<IconProps>()
const iconProps = useForwardProps(reactivePick(props, 'name', 'mode', 'size', 'customize'))
</script>
<template>
<Icon v-bind="iconProps" />
</template>