项目开发中....
二开时请不要修改 pro-componets 内部文件,其对标 react 版本的 pro-componets, 如有任何需要修改的问题,或者和 react 版本不一致的现象,请提 issues, 会尽快解决。
目前功能还在移植中,由于工作量太大,初版本只考虑移植 pro-layout 以及 pro-table(精简掉 searchform 模块), 后续 pro-components 将独立出一个仓库进行维护,同时会发布到 npm 仓库,方便引用。
项目强制要求使用 pnpm 进行依赖管理,使用 npm 或者 yarn 下载依赖将会报错。
npm install -g pnpm
pnpm install
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
.vue
Imports in TSTypeScript 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:
Extensions: Show Built-in Extensions
from VSCode's command paletteTypeScript and JavaScript Language Features
, right click and select Disable (Workspace)
Developer: Reload Window
from the command palette.See Vite Configuration Reference.
pnpm install
pnpm run dev
pnpm run build
pnpm run lint