Files
admin-govern/README.md
2024-01-26 16:15:40 +08:00

16 lines
1001 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Vue 3 + TypeScript + Vite
这个模板可以帮助您开始使用Vue 3和TypeScript在Vite中进行开发。该模板使用了Vue 3的<script setup>script setup
推荐的IDE设置
VS Code + Volar并禁用Vetur+ TypeScript Vue Plugin (Volar)。
在TS中对.vue导入提供类型支持
TypeScript 默认情况下无法处理.vue导入的类型信息因此我们用vue-tsc替换了tsc CLI进行类型检查。在编辑器中我们需要TypeScript Vue Plugin (Volar)来让TypeScript语言服务了解.vue类型。
如果独立的TypeScript插件对您来说不够快Volar还实现了一种Take Over Mode它的性能更好。您可以按照以下步骤启用它
禁用内置的TypeScript扩展
从VSCode的命令面板中运行Extensions: Show Built-in Extensions
找到TypeScript and JavaScript Language Features右键单击并选择Disable (Workspace)
通过运行Developer: Reload Window命令重新加载VSCode窗口。