# Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
## Recommended IDE Setup
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
## Type Support For `.vue` Imports in TS
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
1. Disable the built-in TypeScript Extension
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
没有合适的资源?快使用搜索试试~ 我知道了~
第1章 封装Pinia状态管理库
共17个文件
json:5个
ts:4个
svg:2个
需积分: 0 1 下载量 40 浏览量
2023-08-14
15:39:45
上传
评论
收藏 24KB ZIP 举报
温馨提示
第1章 封装Pinia状态管理库
资源推荐
资源详情
资源评论
收起资源包目录
练习项目.zip (17个子文件)
练习项目
.vscode
extensions.json 75B
tsconfig.node.json 213B
src
style.css 1KB
main.ts 111B
App.vue 561B
store
index.ts 28B
assets
vue.svg 496B
components
vite-env.d.ts 38B
package.json 410B
public
vite.svg 1KB
package-lock.json 42KB
pnpm-lock.yaml 19KB
vite.config.ts 307B
index.html 362B
.gitignore 253B
tsconfig.json 910B
README.md 1KB
共 17 条
- 1
资源评论
一名不会前端的程序员
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功