改变表格滚动条样式
div::-webkit-scrollbar {
width: 16px;
height: 16px;
background-color: #F5F5F5;
}
/*定义滚动条轨道 内阴影+圆角*/
div::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(177, 175, 175, 0.3);
border-radius: 10px;
background-color: #F5F5F5;
}
/*定义滑块 内阴影+圆角*/
div::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(107, 106, 106, 0.3);
background-color: #555;
}
百度地图使用注意:(angular)
搜索功能
div布局需要和百度API一样
项目中使用的插件
https://mdbootstrap.com
https://ng-bootstrap.github.io/#/components/progressbar/examples
ng-zorro样式修改
::ng-deep
:host ::ng-deep
:root
:host /deep/
对于ABP发布
配置地址带上IP,不能使用127.0.0.1或者localhost
angular组件传值
1.父子
(1)父到子
1.Input -------------可以setter拦截
@Input() name:any;
2.子组件创建模板引用变量
<app-test #name></app-test>
3.父组件使用@ViewChild引用子组件
// 获得子组件方法和属性
import { BodertableComponent } from'../table/bodertable/bodertable.component';
@ViewChild(BodertableComponent,{static:true}) BodertableComponent:BodertableComponent;
@ViewChild('test',{static:true}) test:ElementRef;
this.test.nativeElement
(2)子到父
1.@Output 事件发射-----$event对象
2.直接在子组件构造函数中注入父组件----已知具体父组件
3.父组件暴露一个接口-类,注入子组件
2.兄弟
1.利用service传递
https://jasonwatmore.com/post/2016/12/01/angular-2-communicating-between-components-with-observable-subject
文字超出不折行
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
echarts大小调整
grid属性
项目内存溢出问题 out of memoty
npm install -g increase-memory-limit
increase-memory-limit