mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
perf: 优化 RePureTableBar
组件的 buttons
具名插槽
This commit is contained in:
parent
eeea7bf718
commit
151592c660
@ -110,7 +110,9 @@ export default defineComponent({
|
|||||||
<div class="flex justify-between w-full h-[60px] p-4">
|
<div class="flex justify-between w-full h-[60px] p-4">
|
||||||
<p class="font-bold truncate">{props.title}</p>
|
<p class="font-bold truncate">{props.title}</p>
|
||||||
<div class="flex items-center justify-around">
|
<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 ? (
|
{props.tableRef?.size ? (
|
||||||
<>
|
<>
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user