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