fix:修改slertLable定位不准的问题,给system的所有button添加默认type

This commit is contained in:
zhangyu
2020-10-27 16:22:29 +08:00
parent deb6575a24
commit 67a4edb4ef
2 changed files with 8 additions and 8 deletions

View File

@@ -156,7 +156,7 @@
let self=this;
return function(position) {
let clientHeight = (document.body.clientHeight<document.documentElement.clientHeight)?document.body.clientHeight:document.documentElement.clientHeight;
let elHeight=self.type==='asset'?370:(self.type==='project'?70:70);
let elHeight=self.type==='asset'?318:(self.type==='project'?70:70);
if(position.top+elHeight>clientHeight){
return {
left: `${position.left + position.width + 20}px`,
@@ -174,7 +174,7 @@
let self=this;
return function(position) {
let clientHeight = (document.body.clientHeight<document.documentElement.clientHeight)?document.body.clientHeight:document.documentElement.clientHeight;
let elHeight=self.type==='asset'?370:(self.type==='project'?70:70);
let elHeight=self.type==='asset'?318:(self.type==='project'?70:70);
if(position.top+elHeight>clientHeight){
return 'alert-labelUp'
}else{