| | |
| | | <template> |
| | | <div class="table-slot"> |
| | | <template v-if="$slots.setting"> |
| | | <div class="search"> |
| | | <slot name="search"></slot> |
| | | </div> |
| | | </template> |
| | | <div class="table"> |
| | | <template v-if="$slots.setting"> |
| | | <div style="margin-bottom: 20px;"> |
| | | <slot name="setting"></slot> |
| | | <Table :data="tableData" :total="total" :queryForm="queryForm" @currentChange="handleCurrentChange" @sizeChange="handleSizeChange"> |
| | | </div> |
| | | </template> |
| | | <template v-if="$slots.table"> |
| | | <Table :data="tableData" :total="total" :queryForm="queryForm" @currentChange="handleCurrentChange" |
| | | @sizeChange="handleSizeChange"> |
| | | <slot name="table"></slot> |
| | | </Table> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .search { |
| | | padding: 34px 30px 15px 30px; |
| | | box-shadow: 0px 10px 19px 0px rgba(0, 0, 0, 0.06); |