解决 cl-upload show-file-list 异常显示问题

This commit is contained in:
神仙都没用 2024-03-13 17:25:06 +08:00
parent 25ec0b9cad
commit c861c59f29
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ const list = ref<Upload.Item[]>([]);
// //
const showList = computed(() => { const showList = computed(() => {
if (props.type == "file") { if (props.type == "file") {
return !isEmpty(list.value); return props.showFileList ? !isEmpty(list.value) : false;
} else { } else {
return true; return true;
} }

View File

@ -6,7 +6,7 @@ export default (): ModuleConfig => {
description: "基于 el-upload 封装的文件上传组件", description: "基于 el-upload 封装的文件上传组件",
author: "COOL", author: "COOL",
version: "1.1.3", version: "1.1.3",
updateTime: "2024-02-23", updateTime: "2024-03-13",
demo: [ demo: [
{ {
name: "基础用法", name: "基础用法",