权限设计

This commit is contained in:
2025-08-15 19:14:20 +08:00
parent f2330cf965
commit d5092e7a58
7 changed files with 35 additions and 17 deletions

View File

@ -314,7 +314,7 @@ const uploadedSuccessfully = (res: any) => {
emit('update:modelValue', listToString(fileList.value));
proxy?.$modal.closeLoading();
}
if (props.autoUpload) {
if (props.autoUpload && props.limit === fileList.value.length) {
fileUploadRef.value?.clearFiles();
fileList.value = [];
emit('update:modelValue', ''); // 同步到外部 v-model