|
@@ -87,15 +87,6 @@ export default {
|
|
|
>
|
|
|
<slot></slot>
|
|
|
<el-table-column
|
|
|
- v-if="hideOperationColumns"
|
|
|
- fixed
|
|
|
- width="55"
|
|
|
- align="center"
|
|
|
- type="index"
|
|
|
- >
|
|
|
- <template slot-scope="scope">{{ scope.row.$index }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
v-for="({ item, attr }, index) in showColumns"
|
|
|
:key="index"
|
|
|
:prop="item.key"
|
|
@@ -222,7 +213,11 @@ export default {
|
|
|
</template>
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
- <slot name="operation" v-bind="scope"> </slot>
|
|
|
+ <slot name="operation" v-bind="scope">
|
|
|
+ <el-tag :size="$attrs.size" type="info">
|
|
|
+ {{ scope.row.$index }}
|
|
|
+ </el-tag>
|
|
|
+ </slot>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<slot v-else name="operation"> </slot>
|