一套基于 Ng-zorro-antd【ANT DESIGN】 的企业后台模板。
确保 node
版本 >= 6.9.0 且 npm
版本 >= 3 以上。
ng-alain
本身并非组件库,只是一个单纯的企业后台模板,你可以直接克隆到你的本地,然后立即进入实际开发。
# clone ng-alain repo
# --depth 1 removes all but one .git commit history
git clone --depth 1 https://github.com/cipchk/ng-alain.git
# change directory
cd ng-alain
# install npm package
npm install
# in china please use cnpm (https://github.com/cnpm/cnpm)
# cnpm install
# start the serve
npm start
# use HMR
npm run serve:hmr
[vscode] 建议安装 ng-zorro-vscode 插件,含
nz-alain-*
代码片断。
包 | 版本 |
---|---|
ng-alain |
0.1.2-rc.2 |
ng-zorro-antd |
^0.5.3 |
@angular |
^4.4.5 |
@angular/cli |
^1.4.7 |
第三方类型[可选]
包 | 额外依赖 | 说明 |
---|---|---|
font-awesome |
||
simple-line-icons |
||
weather-icons |
||
angular-baidu-maps |
BaidDu Map | |
angular-qq-maps |
QQ Map | |
angular-web-storage |
LocalStorage | |
ng2-charts |
chart.js |
|
d3 |
||
g2-angular |
g2 |
|
jquery-sparkline |
jquery |
|
ng2-file-upload |
||
ng2-img-cropper |
||
ngx-color-picker |
||
ng-tree-antd |
angular-tree-component |
|
ng2-dnd |
||
sweetalert |
||
file-saver |
ng-alain
非常单纯,整体的设计都基于 ng-zorro-antd
。虽然 antd 的栅格、布局已经足够满足我们日常的需求,然而出于对企业后台在开发过程中总是需要一点微调,因此我独立构建了一套用作这类需求工具类样式。
因此,在你开始ANTD之前最好先了解以下系列文章,他们会帮助你更好的理解 antd 是怎么一回事,以及为什么需要这一套工具类规则。
- 整个antd的指引文章(非常经典一定要细读)
- 设计规则
- CSS组件补丁类
- 工具类规则
- 接地气Pipe
- ACL访问控制
- 目录结构与版本升级说明
- 为了减少github的发布,后续有关
ng-alain
的文章,会一直发布在我的SF专栏当中。
- 基于
ng-zorro-antd
- 响应式
- 国际化
- ACL访问控制
- 延迟加载及良好的启用画面
- 良好的UI路由设计
- 十种颜色版本
- Less预编译
- 良好的目录组织结构
- 简单升级
- 模块热替换
- 支持Docker部署
Please follow this guidelines when reporting bugs and feature requests:
- Use GitHub Issues board to report bugs and feature requests (not our email address)
- Please always write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.
Thanks for understanding!
The MIT License (see the LICENSE file for the full text)