|
|
1 month ago | |
|---|---|---|
| .vscode | 1 month ago | |
| Net.Framework | 1 month ago | |
| config | 1 month ago | |
| electron | 1 month ago | |
| extensions | 1 month ago | |
| public | 1 month ago | |
| src | 1 month ago | |
| 部署配置 | 1 month ago | |
| .eslintrc.js | 1 month ago | |
| .gitignore | 1 month ago | |
| README.md | 1 month ago | |
| electron-builder.json | 1 month ago | |
| index.html | 1 month ago | |
| package-lock.json | 1 month ago | |
| package.json | 1 month ago | |
| tsconfig.json | 1 month ago | |
| tsconfig.node.json | 1 month ago | |
| vite.config.electron.ts | 1 month ago | |
| vite.config.ts | 1 month ago | |
| 格尔木-体检.txt | 1 month ago | |
README.md
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 to learn more.
Recommended IDE Setup
- VS Code + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
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) 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 that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensionsfrom VSCode's command palette - Find
TypeScript and JavaScript Language Features, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Windowfrom the command palette.
关于报表控件FastReport的说明
由于可能需要在报表模板中做二次开发(如在报表中需要固定行数),导致运行时动态库位置不一致。会出现找不到dll动态库的情况,若更换dll版本,除了extensions/fastReport这个目录需要替换之外,还需要在node_modules\electron\dist目录中做替换;若替换的dll动态库多余原来的dll文件个数,则需要在package.json中extraResources节点添加相关dll。