This commit is contained in:
veypi
2022-06-05 10:19:11 +08:00
parent 65e2409fae
commit 28daffb38a
11 changed files with 463 additions and 1 deletions
+24
View File
@@ -1,5 +1,17 @@
# vue3 typescript vue-router vuex setup
## 使用模板
```bash
npx degit veypi/vite-starter#master project_name
```
### 最近发现vue3相关库都更新的差不多了,尝试学习了新的版本, 使用setup 的确变了很多,像ref 、prop面目全非,刚开始用还找了很久
## 创建项目
@@ -43,6 +55,18 @@ export default router
### tailwindcss
```bash
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
npx tailwindcss init -p
```
### [vuex](https://next.vuex.vuejs.org/zh/guide/typescript-support.html)
```bash