qianlishi 3 years ago
parent 9407c8a456
commit ef4f3c121d

@ -13,18 +13,20 @@
<el-table-column prop="key" label="key值" width="80" />
<el-table-column label="操作" width="100">
<template slot-scope="scope">
<el-button
@click="handleEditorClick(scope.$index, scope.row)"
type="text"
size="small"
>编辑</el-button
>
<el-button
type="text"
size="small"
@click="handleDeleteClick(scope.$index, scope.row)"
>删除</el-button
>
<div class="button-group">
<el-button
@click="handleEditorClick(scope.$index, scope.row)"
type="text"
size="small"
>编辑</el-button
>
<el-button
type="text"
size="small"
@click="handleDeleteClick(scope.$index, scope.row)"
>删除</el-button
>
</div>
</template>
</el-table-column>
</el-table>
@ -161,4 +163,7 @@ export default {
/deep/.el-table::before {
height: 0;
}
.button-group .el-button {
padding: 0;
}
</style>

@ -27,11 +27,10 @@
</div>
</template>
<script>
import vue from "vue";
import VueSuperSlide from "vue-superslide";
vue.use(VueSuperSlide);
export default {
components: {
VueSuperSlide
},
props: {
value: Object,
ispreview: Boolean

Loading…
Cancel
Save