🐛(component): 修复 table 组件 max-height 下 sm 尺寸 th 不生效 close #I5F8DA
This commit is contained in:
		
							parent
							
								
									e05d11ab6d
								
							
						
					
					
						commit
						1a80f062d0
					
				@ -89,12 +89,16 @@
 | 
			
		||||
  padding: 5px 10px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.layui-table-view .layui-table[lay-size="sm"] .layui-table-cell {
 | 
			
		||||
.layui-table[lay-size="sm"] td,
 | 
			
		||||
.layui-table[lay-size="sm"] th,
 | 
			
		||||
.layui-table[lay-size="sm"] .layui-table-cell {
 | 
			
		||||
  height: 30px;
 | 
			
		||||
  line-height: 20px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.layui-table-view .layui-table[lay-size="lg"] .layui-table-cell {
 | 
			
		||||
.layui-table[lay-size="lg"] td,
 | 
			
		||||
.layui-table[lay-size="lg"] th,
 | 
			
		||||
.layui-table[lay-size="lg"] .layui-table-cell {
 | 
			
		||||
  height: 50px;
 | 
			
		||||
  line-height: 25px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -423,7 +423,7 @@ export default {
 | 
			
		||||
::: demo 设置 `height` 或者 `max-height` 即可实现
 | 
			
		||||
 | 
			
		||||
<template>
 | 
			
		||||
  <lay-table :columns="columns8" :dataSource="dataSource8" max-height="300px"></lay-table>
 | 
			
		||||
  <lay-table :columns="columns8" :dataSource="dataSource8" size="sm" max-height="300px"></lay-table>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user