✨(component): 修复 upload 组件 acceptMime 默认值无效
This commit is contained in:
parent
efecad532e
commit
325fa56b4f
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user