feat(prop): 隐藏操作列

This commit is contained in:
2023-07-22 15:52:26 +08:00
parent 8b3794aae6
commit d241e51221
3 changed files with 6 additions and 3 deletions

View File

@ -30,7 +30,7 @@
/>
</template>
</el-table-column>
<el-table-column align="center" :label="label3" width="200px">
<el-table-column v-if="!hideActions" align="center" :label="label3" width="200px">
<template #default="{ row, $index }">
<el-popconfirm v-if="allowReplace" :title="replacePopconfirm" :disabled="disabled" @confirm="remove($index)">
<template #reference>
@ -96,6 +96,8 @@ const props = withDefaults(defineProps<{
disabled?: boolean
/** 隐藏新增按钮 */
hideAdd?: boolean
/** 隐藏操作列 */
hideActions?: boolean
/** 文件上传的请求函数 */
request?: (formData: FormData) => Promise<FileVO>
}>(), {