|
@@ -52,12 +52,21 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
- <el-table-column :key="index" align="center" :label="item.label" :prop="item.prop" :formatter="toFormatter" sortable v-bind="item.options">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ :key="index"
|
|
|
|
+ align="center"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :prop="item.prop"
|
|
|
|
+ :formatter="toFormatter"
|
|
|
|
+ sortable
|
|
|
|
+ v-bind="item.options"
|
|
|
|
+ :show-overflow-tooltip="item.showTip"
|
|
|
|
+ >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
<template v-if="opera.length > 0">
|
|
<template v-if="opera.length > 0">
|
|
- <el-table-column label="操作" align="center">
|
|
|
|
|
|
+ <el-table-column label="操作" align="center" :width="operaWidth">
|
|
<template v-slot="{ row, $index }">
|
|
<template v-slot="{ row, $index }">
|
|
<template v-for="(item, index) in opera">
|
|
<template v-for="(item, index) in opera">
|
|
<template v-if="display(item, row)">
|
|
<template v-if="display(item, row)">
|
|
@@ -115,6 +124,7 @@ export default {
|
|
options: null,
|
|
options: null,
|
|
useSum: { type: Boolean, default: false },
|
|
useSum: { type: Boolean, default: false },
|
|
filter: { type: Array, default: () => [] },
|
|
filter: { type: Array, default: () => [] },
|
|
|
|
+ operaWidth: { type: Number, default: 200 },
|
|
},
|
|
},
|
|
components: {},
|
|
components: {},
|
|
data: () => ({
|
|
data: () => ({
|