✨(component): 新增 table 组件 header 插槽
This commit is contained in:
@@ -24,6 +24,14 @@
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.layui-table-box-header {
|
||||
min-height: 50px;
|
||||
line-height: 30px;
|
||||
background-color: #FAFAFA;
|
||||
padding: 10px 15px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
.layui-table-footer {
|
||||
min-height: 50px;
|
||||
line-height: 30px;
|
||||
|
||||
@@ -659,6 +659,10 @@ onBeforeUnmount(() => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-table-box-header" v-if="slot.header">
|
||||
<slot name="header"></slot>
|
||||
</div>
|
||||
|
||||
<div class="layui-table-box">
|
||||
<!-- 表头 -->
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user