perf: 优化 RePureTableBar 组件的 buttons 具名插槽

This commit is contained in:
xiaoxian521 2023-02-06 20:50:25 +08:00
parent eeea7bf718
commit 151592c660

View File

@ -110,7 +110,9 @@ export default defineComponent({
<div class="flex justify-between w-full h-[60px] p-4">
<p class="font-bold truncate">{props.title}</p>
<div class="flex items-center justify-around">
<div class="flex mr-4">{slots?.buttons()}</div>
{slots?.buttons ? (
<div class="flex mr-4">{slots.buttons()}</div>
) : null}
{props.tableRef?.size ? (
<>
<el-tooltip