|
@@ -12,6 +12,7 @@
|
|
|
:on-preview="filePreview"
|
|
|
:on-success="onSuccess"
|
|
|
:before-remove="onRemove"
|
|
|
+ :show-file-list="showList"
|
|
|
>
|
|
|
<el-button type="primary">选择文件</el-button>
|
|
|
<template #tip v-if="tip">
|
|
@@ -27,7 +28,6 @@
|
|
|
<script setup>
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import { omit, cloneDeep, isArray } from 'lodash-es'
|
|
|
-
|
|
|
let dialog = ref({ show: false, url: '' })
|
|
|
const props = defineProps({
|
|
|
url: { type: String, default: () => '' },
|
|
@@ -36,7 +36,8 @@ const props = defineProps({
|
|
|
listType: { type: String, default: () => 'text' }, //'text' | 'picture' | 'picture-card'
|
|
|
tip: { type: String, default: () => undefined },
|
|
|
list: { type: Array, default: () => [] },
|
|
|
- model: { type: String, default: () => '' }
|
|
|
+ model: { type: String, default: () => '' },
|
|
|
+ showList: { type: Boolean, default: true }
|
|
|
})
|
|
|
// 图片上传地址
|
|
|
const { url } = toRefs(props)
|