3.7.0大版本发布(优化支持多选)

pull/186/merge
JEECG 2024-06-17 17:52:25 +08:00
parent e793c4baf8
commit 799a55af6e
1 changed files with 4 additions and 1 deletions

View File

@ -108,11 +108,14 @@
//
const multiple = computed(() => {
return props['fileMax'] > 1;
return props['fileMax'] > 1 || props['fileMax'] === 0;
});
//
const uploadVisible = computed(() => {
if (props['fileMax'] === 0) {
return true;
}
return uploadFileList.value.length < props['fileMax'];
});