✨(component): 新增 table 组件 header 插槽
This commit is contained in:
parent
42502be232
commit
ccf208e884
@ -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
|
||||
|
@ -17,6 +17,7 @@
|
||||
<h3>1.4.15 <span class="layui-badge-rim">2022-09-27</span></h3>
|
||||
<ul>
|
||||
<li>[新增] tag-input 标签输入框组件。</li>
|
||||
<li>[新增] table 组件 header 插槽, 用于在工具栏与表格之间插入元素。</li>
|
||||
<li>[新增] tabitem 组件 icon 属性, 用于自定义 tab-item 图标。</li>
|
||||
<li>[修复] cascader 外部清空modelValue, 内部displayValue不清空问题。</li>
|
||||
<li>[修复] tolltip 组件 content 自动定位。</li>
|
||||
|
Loading…
Reference in New Issue
Block a user