feat(Icon): use @antfu/nuxt-icon-poc (#76)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
Benjamin Canac
2024-04-24 14:10:54 +02:00
committed by GitHub
parent a44a24962b
commit 142affb9a7
4 changed files with 1175 additions and 1301 deletions

View File

@@ -42,6 +42,7 @@
"release": "release-it"
},
"dependencies": {
"@antfu/nuxt-icon-poc": "^0.0.7",
"@nuxt/kit": "^3.11.2",
"@nuxt/schema": "^3.11.2",
"@nuxtjs/color-mode": "^3.4.0",
@@ -49,7 +50,6 @@
"@tailwindcss/vite": "4.0.0-alpha.14",
"@vueuse/core": "^10.9.0",
"defu": "^6.1.4",
"nuxt-icon": "^0.6.10",
"ohash": "^1.1.3",
"radix-vue": "^1.7.2",
"scule": "^1.3.0",

2456
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -40,7 +40,10 @@ export default defineNuxtModule<ModuleOptions>({
addVitePlugin(tailwindcss)
await installModule('nuxt-icon')
await installModule('@antfu/nuxt-icon-poc', {
componentName: 'UIcon',
cssLayer: 'components'
})
// await installModule('@nuxtjs/color-mode', { classSuffix: '' })
addPlugin({

View File

@@ -1,13 +0,0 @@
<script lang="ts">
export interface IconProps {
name: string
}
</script>
<script setup lang="ts">
defineProps<IconProps>()
</script>
<template>
<Icon :name="name" />
</template>