🐛(component): 修复 drawer content 高度异常
This commit is contained in:
		
							parent
							
								
									8a0db60bed
								
							
						
					
					
						commit
						66c6443a3b
					
				@ -150,7 +150,7 @@ export function calculateContent(
 | 
			
		||||
        return "calc(" + height + " - 86px)";
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    if (type == 1) {
 | 
			
		||||
    if (type == 1 || type == 4) {
 | 
			
		||||
      if (title) {
 | 
			
		||||
        return "calc(" + height + " - 102px)";
 | 
			
		||||
      } else {
 | 
			
		||||
@ -172,7 +172,7 @@ export function calculateContent(
 | 
			
		||||
        return isMessage ? height : "calc(" + height + " - 86px)";
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    if (type == 1) {
 | 
			
		||||
    if (type == 1 || type == 4) {
 | 
			
		||||
      if (title) {
 | 
			
		||||
        return "calc(" + height + " - 51px)";
 | 
			
		||||
      } else {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user