解决 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(() => {
if (props.type == "file") {
return !isEmpty(list.value);
return props.showFileList ? !isEmpty(list.value) : false;
} else {
return true;
}

View File

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