(component): 修复 upload 组件 acceptMime 默认值无效

This commit is contained in:
就眠儀式 2022-08-26 01:32:32 +08:00
parent efecad532e
commit 325fa56b4f

View File

@ -56,7 +56,7 @@ export interface LayUploadProps {
url?: string;
data?: any;
headers?: Recordable;
acceptMime?: "images" | "file" | "video" | "audio";
acceptMime?: string;
field?: string;
size?: number;
multiple?: boolean;
@ -111,8 +111,9 @@ let defaultCutLayerOption: LayerModal = {
shadeClose: true,
type: "component",
};
const props = withDefaults(defineProps<LayUploadProps>(), {
acceptMime: "images",
acceptMime: "image/*",
field: "file",
size: 0,
multiple: false,