Skip to content

基于Ant design pro的变种, antdesign 后台管理模板 -- 老皮学前端

License

Notifications You must be signed in to change notification settings

ye-carol/ant-design-pro

 
 

Repository files navigation

PKAQ Design extend Ant Design Pro

当前主分支 Lilith extend v2

交流QQ群: 83864896

运行前需要安装

  • git
  • nodejs
  • yarn

使用方式

$ git clone 
$ yarn install
$ yarn start         # visit http://localhost:8000

设置淘宝镜像

yarn config set registry https://registry.npm.taobao.org --global

需要补充得知识

目录说明

  • dist: 打包目录
  • mock: mock data
  • public: 公共资源
  • src
    • app 模块目录
    • assets 资源目录
    • common 公共组件
    • component 自定义组件
    • |- App: 高阶组件
    • |- Page: 内页包装器

snapshot

TIP: - 代码里针对namespace和model文件名进行了忽略大小写的处理 - reducer名字和effects名字不要重复,否则在调用的时候会出现混乱(优先effects>reducer)

问题

  • 不支model花式命名:当期版本model的文件名必须与所指定的namespace一致,因为router.js中是通过读取文件名来判断已经注册的model 中是否存在该model的,又由于存在namespace的唯一性约束,所以当两者不一致时无法通过此种方式判断对应文件名的model是否已经注册导致异常
  • Mirror Site in China: http://ant-design-pro.gitee.io

// 格式化代码 yarn run prettier

About

基于Ant design pro的变种, antdesign 后台管理模板 -- 老皮学前端

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.0%
  • CSS 9.8%
  • Other 0.2%