ballcat-projects / ballcat-admin-ui-vue3

基于 vite3、vue3、typescript、ant-design-vue 实现的后台管理 ui
Apache License 2.0
26 stars 12 forks source link

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:

  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.

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