|
1 year ago | |
---|---|---|
.github/workflows | 1 year ago | |
.husky | 1 year ago | |
.vscode | 1 year ago | |
guidelines | 1 year ago | |
pro-components | 1 year ago | |
public | 1 year ago | |
scripts | 1 year ago | |
src | 1 year ago | |
types | 1 year ago | |
.editorconfig | 1 year ago | |
.env | 1 year ago | |
.env.development | 1 year ago | |
.env.production | 1 year ago | |
.env.test | 1 year ago | |
.eslintrc-auto-import.json | 1 year ago | |
.eslintrc.cjs | 1 year ago | |
.gitignore | 1 year ago | |
.lintstagedrc.json | 1 year ago | |
.prettierignore | 1 year ago | |
.prettierrc | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
commitlint.config.js | 1 year ago | |
index.html | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year ago | |
pnpm-lock.yaml | 1 year ago | |
tsconfig.app.json | 1 year ago | |
tsconfig.json | 1 year ago | |
tsconfig.node.json | 1 year ago | |
vite.config.ts | 1 year ago |
README.md
ballcat-ui-vue3
项目开发中....
二开时请不要修改 pro-componets 内部文件,其对标 react 版本的 pro-componets, 如有任何需要修改的问题,或者和 react 版本不一致的现象,请提 issues, 会尽快解决。
目前功能还在移植中,由于工作量太大,初版本只考虑移植 pro-layout 以及 pro-table(精简掉 searchform 模块), 后续 pro-components 将独立出一个仓库进行维护,同时会发布到 npm 仓库,方便引用。
包管理工具
项目强制要求使用 pnpm 进行依赖管理,使用 npm 或者 yarn 下载依赖将会报错。
npm install -g pnpm
pnpm install
Recommended IDE Setup
VSCode + 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 Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
Customize configuration
See Vite Configuration Reference.
Project Setup
pnpm install
Compile and Hot-Reload for Development
pnpm run dev
Type-Check, Compile and Minify for Production
pnpm run build
Lint with ESLint
pnpm run lint