add:添加类型

This commit is contained in:
zlong committed 2024-11-25 23:05:49 +08:00
1 parent df4d5848a2
commit 0e521db11e
5 files changed
+28 -22

No files matched your search

+5 -4
View File
@@ -10,10 +10,10 @@ const sizeLimit = ref<UploadProps['sizeLimit']>({
unit: 'MB',
});
const file1 = ref<UploadProps['value']>([]);
const disabled = ref(false);
const autoUpload = ref(true);
const showImageFileName = ref(true);
const uploadAllFilesInOneRequest = ref(false);
const disabled = ref<boolean>(false);
const autoUpload = ref<boolean>(true);
const showImageFileName = ref<boolean>(true);
const uploadAllFilesInOneRequest = ref<boolean>(false);
const handleFail: UploadProps['onFail'] = ({ file }) => {
MessagePlugin.error(`文件 ${file.name} 上传失败`);
};
@@ -36,6 +36,7 @@ const props = defineProps({
}
}
})
const emits = defineEmits(['on-success'])
watch(() => props.imageUrl,(newVal) => {
if(newVal){