refactor: Icons Type Declarations
All checks were successful
CI / cache-and-install (push) Successful in 1m26s

This commit is contained in:
严浩
2024-08-27 17:20:31 +08:00
parent 04110516fa
commit b37ecb7251
5 changed files with 9 additions and 9 deletions

View File

@ -9,7 +9,7 @@
<div b="1px solid pink">
<div>Icons({ autoInstall: true })</div>
<i-carbon-face-cool class="text-yellow" w-32 h-32 />
<icon-carbon-face-cool class="text-yellow" w-32 h-32 />
</div>
<div b="1px solid pink">
@ -19,12 +19,12 @@
<div b="1px solid pink">
<div>pacman.svg</div>
<!-- FIXME: [unocss] failed to load icon "svg-pacman" -->
<i-svg-pacman text-blue w-48 h-48 />
<icon-svg-pacman text-blue w-48 h-48 />
<some-icon text-cyan w-48 h-48 />
</div>
</div>
</template>
<script setup lang="ts">
//
import SomeIcon from '~icons/svg/pacman';
</script>

View File

@ -1,4 +1,5 @@
<script setup>
// https://vue-macros.dev/zh-CN/features/reactivity-transform.html
let count = $ref(0);
console.log(count);

2
src/types/env.d.ts vendored
View File

@ -1,4 +1,4 @@
/// <reference types="vite/client" />
/// <reference types="unplugin-vue-router/client" />
/* /// <reference types="@vue-macros/reactivity-transform/macros-global" /> */
/// <reference types="unplugin-vue-macros/macros-global" />
/// <reference types="unplugin-icons/types/vue" />