mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-18 11:58:49 +08:00
refactor: upload component (wip)
This commit is contained in:
@@ -16,7 +16,7 @@ import { checkFileType } from './helper';
|
||||
import { UploadResultStatus } from './typing';
|
||||
import { useUploadType } from './use-upload';
|
||||
|
||||
defineOptions({ name: 'ImageUpload' });
|
||||
defineOptions({ name: 'ImageUpload', inheritAttrs: false });
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -106,7 +106,6 @@ watch(
|
||||
return null;
|
||||
}) as UploadProps['fileList'];
|
||||
}
|
||||
emit('update:value', value);
|
||||
if (!isFirstRender.value) {
|
||||
emit('change', value);
|
||||
isFirstRender.value = false;
|
||||
|
||||
Reference in New Issue
Block a user