Skip to content

基于 angular7 , NG-ZORRO,ng-alain 后台开发 脚手架,功能有: http拦截器,auth权限,用户登录 , jwt认证, sweetalert 等

Notifications You must be signed in to change notification settings

ezhuo/ngx-alain

Repository files navigation

基于 angular7 , ng-alain 7.0.0 , ng-zorro 7.0.0

如果能帮到您,请留下您的star再走,谢谢!

一、执行

# install npm package
npm install

# start the serve
npm start

# use HMR
npm run serve:hmr

二、目录说明

src
├─app\@core 核心控制
│       ├─control 基础页面类,使用者可继承
│       ├─data 权限控制、用户、状态类
│       ├─helpers 工具类
│       ├─i18n 语言类
│       ├─model 数据定义接口
│       ├─net http和拦截器
│       ├─startup 初始化服务
│       ├─utils 提醒等工具
│
├─app\@shared 共享模块
│       ├─ directives 全局指令
│       ├─ json-schema 自定义动态表单
│
├─app\layout 公共布局类
│       ├─ common 公共布局组件
│       ├─ default admin后台布局
│       ├─ exception 异常布局
│       ├─ fullscreen 全屏布局
│       ├─ home 前台公共布局
│       ├─ passport 后台登录布局
│       ├─ template 公共HTML模板
│
├─app\routes 业务组件类
│       ├─ admin 后台业务页面
│       ├─ home 前台业务页面
│
├─styles 全局样式类
├─delon delon 类 (直接集成delon的目的是为了可以个性化,方便项目扩展)

三、delon 修改的地方

1. st

1. table\table.component.ts 添加 get stloading()  set stloading() 
2. table\table-data-source.ts: 将 \_HttpClient 更换为 HttpService

2. title.service

1. theme\src\services\title\title.service.ts:添加了 getTitle 方法

3. schema-form

1. form\src\sf.component.ts:添加了 submit() 方法
2. form\src\sf-item-wrap.component.html:添加了[ngStyle]="ui.styleLabel" 和 [ngStyle]="ui.styleControl"
3. form\src\schema\ui.ts:添加了 SFEnumSchema , SFstyleSchema,SFoptionsSchema 接口

About

基于 angular7 , NG-ZORRO,ng-alain 后台开发 脚手架,功能有: http拦截器,auth权限,用户登录 , jwt认证, sweetalert 等

Resources

Stars

Watchers

Forks

Packages

No packages published