- 支持最新angular版本
- Support the latest angular version
- 所有组件onPush,性能卓越
- All components onPush, excellent performance
- 代码示例丰富,有完整服务端后台,前后端分离示例
- Rich code examples, complete server background, front-end and back-end separation examples
- 常用工具类,服务, 指令,管道,封装了表格,抽屉,对话框等常用功能
- Common tools, services, instructions, pipelines。Encapsulates common functions such as tables, drawers, and dialog boxes
- 全部组件均为独立组件,文件量减少(如果需要module版本,请看这里)
- Standalone Components(module style is here)
有关文档与示例,请访问 doc
angular这1年来的更新,比以往几年来更新都多,api有不少写法不一致,所以未及时更新schematic,现在single只是开发者预览版,为了保证生产,我在ng16版本也没有使用,我想等api写法稳定后再更新schematic,如果你想用我提供的schematic,目前只能适配ng15版本的,采用module而不是独立组件的版本。
1.如果您用我的项目进行学习或者参考,请先确定您使用的是angular哪个版本,因为angular15后写法有部分不一样,所以我的建议是,您正在使用angular什么版本,则下载对应版本的ng-ant-admin,最新版本直接从master分支下载即可,历史版本在这个链接进行下载这里。
1.If you use my project for study or reference, please first determine which version of angular you are using, because some of the writing methods are different after angular15, so my suggestion is, what version of angular are you using, then download the corresponding version of ng -ant-admin, the latest version can be downloaded directly from the master branch, and the historical version can be downloaded from this link here。
2.账号admin,密码123456 ,系统管理菜单下都为真是api接口调用示例,数据库每10分钟从备份恢复一次
2.Account admin, password 123456, under the system management menu are real api interface call examples, the database is restored from backup every 10 minutes
3.默认登录超时时间为1h,上传,下载,websocket,系统管理模块均为真实接口调用展示。
3.The default login timeout is 1h, upload, download, websocket, and system management modules are all real interface call display。
4.完成最常用的权限控制,人员账号管理,角色管理,菜单管理,登录超时等。添加了大量业务示例,开箱即用。
4.Complete the most commonly used permission control, personnel account management, role management, menu management, login timeout, etc. Added a lot of business examples, out of the box。
5.使用本项目遇到问题,可以加入376065816 qq群号与我沟通。
5.If you encounter problems using this project, you can join the 376065816 qq group number to communicate with me。
快速二开使用详解 快速二开使用详解
项目搭建简易教程 项目搭建简易教程
online demo地址 demo
纯净版项目地址 pure
pure project address pure
服务端源码地址 serviceApi
serviceApi address serviceApi
线上swagger地址 swagger
key需要设置成路由地址最后一个'/'后的字符串,并且要唯一
The key needs to be set to the string after the last '/' of the routing address, and it must be unique
const routes: Routes = [
{path: '', data: {key: 'login', shouldDetach: 'no'}, component: LoginFormComponent}
];
enum EquipmentWidth {
xs, // (max-width: 575.98px)
sm, // (min-width: 576px) and (max-width: 767.98px)
md, // (min-width: 768px) and (max-width: 991.98px)
lg, // (min-width: 992px) and (max-width: 1199.98px)
xl, // (min-width: 1200px) and (max-width: 1599.98px)
xxl // (min-width: 1600px)
}
使用方式(How to use)
constructor(private windowsWidthService: WindowsWidthService) {
}
this.windowsWidthService.getWindowWidthStore().pipe(takeUntil(this.destory$)).subscribe(res => {
this.currentEquipmentWidth = res;
this.cdr.markForCheck();
})
export const routes: Routes = [
{
path: 'contact',
loadChildren: import(() => './contact/contact.module').then(m => m.ContactModule),
data: {
preload: false
}
}
];
const routes: Routes = [
{path: '', data: {key: 'login', shouldDetach: 'no'}, component: LoginFormComponent}
];
模块中打开新tab页来展示详情,必须设置参数如下(Open a new tab page in the module to display the details, and the parameters must be set as follows)
在data中设置(newTab Set newTab in data)
const routes: Routes = [
{path: '', component: TabsComponent, data: {title: '标签页操作', key: 'tabs'}},
{path: 'example-detail', component: DetailComponent, data: {newTab:'true', title: '演示详情', key: 'example-detail'}}
];
在data中设置scrollContain 为元素选择器 (Set scrollContain as element selector in data)
{path: '', component: KeepScrollPageComponent, data: {title: '缓存滚动条', key: 'keep-scroll-page',scrollContain:['#div-scroll1','#div-scroll2']}}
_onReuseInit: () => void;
_onReuseDestroy: () => void;
直接在目标组件中写出方法名为_onReuseInit或者_onReuseDestroy的方法即可实现
It can be realized by directly writing the method named _onReuseInit or _onReuseDestroy in the target component
我是自费服务器搭建后端服务接口,所以如果本项目对您有用,如果您也愿意的话,麻烦举起您性感的小手帮我点个免费的star以资鼓励,谢谢啊
if help you, if you want ,please give me a star ,thank you
如果本项目对您有用,正巧您如果也想请我喝一杯咖啡,请扫下面的码,哈哈
If this project is useful to you, and you happen to want to invite me for a cup of coffee, please scan Alipay or WeChat
MIT