riku
2025-04-27 f46786f11c5c08ead7501a82e5a71430ad69b782
miniprogram_npm/tdesign-miniprogram/upload/type.d.ts
@@ -12,6 +12,10 @@
        type: ObjectConstructor;
        value?: UploadMpConfig;
    };
    disabled?: {
        type: BooleanConstructor;
        value?: boolean;
    };
    style?: {
        type: StringConstructor;
        value?: string;
@@ -60,6 +64,14 @@
        type: StringConstructor;
        value?: 'media' | 'messageFile';
    };
    draggable?: {
        type: null;
        value?: boolean | Draggable;
    };
    transition?: {
        type: ObjectConstructor;
        value: Transition;
    };
}
export declare type UploadMpConfig = ImageConfig | VideoConfig;
export interface ImageConfig {
@@ -88,6 +100,7 @@
    type?: 'image' | 'video';
    percent?: number;
    status: 'loading' | 'reload' | 'failed' | 'done';
    thumb?: string;
}
export declare type MediaType = 'image' | 'video';
export interface SizeLimitObj {
@@ -97,3 +110,12 @@
}
export declare type SizeUnitArray = ['B', 'KB', 'MB', 'GB'];
export declare type SizeUnit = SizeUnitArray[number];
export interface Draggable {
    vibrate?: boolean;
    collisionVibrate?: boolean;
}
export interface Transition {
    backTransition?: boolean;
    duration?: number;
    timingFunction?: string;
}