|
@@ -10,11 +10,13 @@
|
|
|
@cell-click="tableCellClick"
|
|
|
@cell-dblclick="tableCellDblClick"
|
|
|
@cell-contextmenu="tableCellContextmenu"
|
|
|
- style="width: 100%;">
|
|
|
+ style="width: 100%;"
|
|
|
+ :cell-style="{ textAlign: 'center' }"
|
|
|
+ :header-cell-style="{ 'text-align': 'center' }" >
|
|
|
<el-table-column type="selection" width="50" v-if="isCheck"/>
|
|
|
- <el-table-column type="index" prop="num" label="序号" width="80" v-if="isIndex"/>
|
|
|
+ <el-table-column type="index" prop="num" label="序号" width="80" v-if="isIndex" />
|
|
|
<template v-for="item in columns">
|
|
|
- <el-table-column :prop="item.key" :label="item.name" :align="item.align ?? 'left'" :width="item.width ?? ''" :fixed="item.fixed ?? false">
|
|
|
+ <el-table-column :prop="item.key" :label="item.name" :align="item.align ?? 'left'" :width="item.width ?? ''" :fixed="item.fixed ?? false" >
|
|
|
<template #default="scope" v-if="item.isSlot">
|
|
|
<slot :name='item.key' :row="scope.row" :index="scope.$index"></slot>
|
|
|
</template>
|