feat(prop): 隐藏操作列
This commit is contained in:
@ -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>
|
||||
}>(), {
|
||||
|
Reference in New Issue
Block a user