???
This commit is contained in:
parent
14ea90e445
commit
c6ac3d1647
18
README.md
18
README.md
|
@ -1,18 +1,8 @@
|
||||||
# Vue 3 + TypeScript + Vite
|
# KUNGalgame 论坛的 Vue 前端重构版本
|
||||||
|
|
||||||
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.
|
这个项目的技术栈为:Vite + Vue3 + Ts + Pinia + less,它并没有依赖任何 UI 库
|
||||||
|
|
||||||
## Recommended IDE Setup
|
### 纯 HTML / CSS 版本:https://github.com/KUN1007/kungalgame-pure-css
|
||||||
|
|
||||||
- [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
|
PS: 这个项目现在令我感到无从下手,如果你觉得有好的想法,欢迎帮我看看,该项目的介绍文档位于 ./src/assets/docs 下
|
||||||
|
|
||||||
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.
|
|
BIN
src/assets/docs/about.docx
Normal file
BIN
src/assets/docs/about.docx
Normal file
Binary file not shown.
6
src/store/modules/topic.ts
Normal file
6
src/store/modules/topic.ts
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import { reactive, ref } from "vue"
|
||||||
|
import { defineStore } from "pinia";
|
||||||
|
|
||||||
|
export const useTopicStore = defineStore("app", ()=> {
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in a new issue