# 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.格子滑动时手感不好;2.用偏移量来代替(替换法)实现动画可能更好些。 另外可能还有些小bug,毕竟自己未专业测试过这个demo。
资源推荐
资源详情
资源评论
收起资源包目录
happy-and-happy.zip (34个子文件)
happy-and-happy
tsconfig.node.json 184B
src
style.css 1KB
main.ts 466B
App.vue 40B
assets
vue.svg 496B
components
HelloWorld.vue 786B
Home.vue 18KB
router
index.ts 451B
vite-env.d.ts 38B
happy.zip 105KB
.idea
workspace.xml 3KB
modules.xml 289B
.gitignore 103B
happy-and-happy.iml 469B
package.json 435B
public
pass
readme.txt 231B
pass01.json 187B
vite.svg 1KB
package-lock.json 57KB
happy
pass
readme.txt 231B
pass01.json 187B
assets
index-b0501e82.js 129KB
HelloWorld-1d24836e.css 44B
Home-8c7e4870.js 7KB
Home-2ed054e0.css 477B
index-5a8b102b.css 183KB
HelloWorld-d90b8fad.js 986B
vite.svg 1KB
index.html 458B
vite.config.ts 188B
index.html 366B
.gitignore 253B
tsconfig.json 488B
README.md 1KB
共 34 条
- 1
资源评论
nameliucong
- 粉丝: 6
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功