|
@@ -1,5 +1,12 @@
|
|
|
<template>
|
|
|
- <el-table class="custom-table" stripe :data="data.data" :height="height" style="width: 100%" @cell-click="onClick">
|
|
|
+ <el-table
|
|
|
+ class="custom-table"
|
|
|
+ stripe
|
|
|
+ :data="data.data"
|
|
|
+ :height="height"
|
|
|
+ style="width: 100%"
|
|
|
+ @cell-click="onClick"
|
|
|
+ >
|
|
|
<el-table-column
|
|
|
v-for="col in data.column"
|
|
|
:key="col"
|
|
@@ -14,11 +21,26 @@
|
|
|
:header-align="'center'"
|
|
|
>
|
|
|
<template v-if="col.slot == true" #default="item">
|
|
|
- <slot :name="col.field" :column="col" :row="item.row" :all="item" :data="item.row[col.field]"></slot>
|
|
|
+ <slot
|
|
|
+ :name="col.field"
|
|
|
+ :column="col"
|
|
|
+ :row="item.row"
|
|
|
+ :all="item"
|
|
|
+ :data="item.row[col.field]"
|
|
|
+ ></slot>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-pagination class="mg-t-8" v-if="pageable" @current-change="handleCurrentChange" :current-page="currentPage" :page-size="pageSize" :total="data.total" v-bind="elPaggingProps"> </el-pagination>
|
|
|
+ <el-pagination
|
|
|
+ class="mg-t-8"
|
|
|
+ v-if="pageable"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-size="pageSize"
|
|
|
+ :total="data.total"
|
|
|
+ v-bind="elPaggingProps"
|
|
|
+ >
|
|
|
+ </el-pagination>
|
|
|
</template>
|
|
|
|
|
|
<script>
|