vue-document-components
Version:
A collection of Vue.js components for document preview, file management, and media handling
64 lines (63 loc) • 1.67 kB
TypeScript
import { VueConstructor } from 'vue';
export interface FallbackMessages {
loadFailed?: string;
downloadTip?: string;
}
export interface PdfPreviewDialogProps {
pdfUrl: string;
title?: string;
allowDownload?: boolean;
filename?: string;
downloadText?: string;
closeText?: string;
newTabText?: string;
loadingText?: string;
errorMessage?: string;
tipText?: string;
fallbackMessages?: FallbackMessages;
showTips?: boolean;
customClass?: string;
}
export interface ImagePreviewDialogProps {
imageUrl: string;
title?: string;
allowDownload?: boolean;
filename?: string;
downloadText?: string;
closeText?: string;
loadingText?: string;
errorMessage?: string;
}
export interface FileUploaderProps {
uploadAction: string;
drag?: boolean;
multiple?: boolean;
accept?: string;
maxSize?: number;
limit?: number;
showFileList?: boolean;
showCustomFileList?: boolean;
autoUpload?: boolean;
disabled?: boolean;
allowPreview?: boolean;
allowDownload?: boolean;
dragText?: string;
clickText?: string;
uploadButtonText?: string;
tipText?: string;
}
export interface InstallOptions {
components?: string[];
}
declare const PdfPreviewDialog: any;
declare const ImagePreviewDialog: any;
declare const FileUploader: any;
export declare function install(Vue: VueConstructor, options?: InstallOptions): void;
declare const _default: {
install: typeof install;
PdfPreviewDialog: any;
ImagePreviewDialog: any;
FileUploader: any;
};
export default _default;
export { PdfPreviewDialog, ImagePreviewDialog, FileUploader };