refactor: Icons Type Declarations
All checks were successful
CI / cache-and-install (push) Successful in 1m26s
All checks were successful
CI / cache-and-install (push) Successful in 1m26s
This commit is contained in:
@ -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>
|
||||
|
@ -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
2
src/types/env.d.ts
vendored
@ -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" />
|
||||
|
Reference in New Issue
Block a user