| | |
| | | type: ObjectConstructor; |
| | | value?: UploadMpConfig; |
| | | }; |
| | | disabled?: { |
| | | type: BooleanConstructor; |
| | | value?: boolean; |
| | | }; |
| | | style?: { |
| | | type: StringConstructor; |
| | | value?: string; |
| | |
| | | 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 { |
| | |
| | | type?: 'image' | 'video'; |
| | | percent?: number; |
| | | status: 'loading' | 'reload' | 'failed' | 'done'; |
| | | thumb?: string; |
| | | } |
| | | export declare type MediaType = 'image' | 'video'; |
| | | export interface SizeLimitObj { |
| | |
| | | } |
| | | 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; |
| | | } |