UNPKG

@wfrog/vc

Version:

vue3 组件库 vc

34 lines (33 loc) 1.08 kB
import { default as ICropper } from 'cropperjs'; export declare const TYPE_UPLOAD = "upload"; export declare const TYPE_CAMERA = "camera"; export declare const WINDOW_IMAGE = "image"; export declare const WINDOW_VIDEO = "video"; export declare const WINDOW_CANVAS = "canvas"; export declare const WINDOW_PLACEHOLDER = "placeholder"; export interface IDialogCameraUploadProps { visible: boolean; type?: ('upload' | 'camera')[]; width?: number; fixWidth?: number; height?: number; accept?: string; cropper?: boolean; cropperOption?: ICropper.Options; } export declare function useVideosList(): { cameras: globalThis.Ref<{ readonly deviceId: string; readonly groupId: string; readonly kind: MediaDeviceKind; readonly label: string; toJSON: () => any; }[], MediaDeviceInfo[] | { readonly deviceId: string; readonly groupId: string; readonly kind: MediaDeviceKind; readonly label: string; toJSON: () => any; }[]>; getVideosList: () => Promise<void>; };