此目录下文件可以在使用过程中自动按需导入,省略手动导入步骤。
// dark.ts
export const isDark = useDark()<script setup lang="ts">
console.log(isDark)
</script>功能基于 unplugin-auto-import 插件实现,具体配置请参考 unplugin-auto-import。
Files under this directory can be automatically imported on demand during use, omitting the manual import step.
// dark.ts
export const isDark = useDark()<script setup lang="ts">
console.log(isDark)
</script>The function is implemented based on the unplugin-auto-import plug-in. For specific configuration, please refer to unplugin-auto-import.