|
|
@@ -65,7 +65,7 @@ const curPage = ref(1)
|
|
|
const loading = ref(false)
|
|
|
const tableConfig = ref<CustomTable>({
|
|
|
showOperate: true,
|
|
|
- operateWidth: 120,
|
|
|
+ operateWidth: 140,
|
|
|
...props.tableConfig
|
|
|
})
|
|
|
|
|
|
@@ -223,8 +223,8 @@ defineExpose({
|
|
|
<el-table-column fixed="right" label="操作" :width="tableConfig.operateWidth" v-if="tableConfig.showOperate">
|
|
|
<template #default="{ row }">
|
|
|
<slot name="operateBefore" :row="row"></slot>
|
|
|
- <el-button link type="primary" size="small" @click="handleUpdate(row)">编辑</el-button>
|
|
|
- <el-button link type="danger" size="small" @click="handleDelete(row.id)">删除</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="handleUpdate(row)">编辑</el-button>
|
|
|
+ <el-button type="danger" size="small" @click="handleDelete(row.id)">删除</el-button>
|
|
|
<slot name="operateAfter" :row="row"></slot>
|
|
|
</template>
|
|
|
</el-table-column>
|