@spinacia_/file-viewer
Version:
A file viewer component.
138 lines (126 loc) • 2.65 kB
TypeScript
import { App } from 'vue';
import { ComponentOptionsMixin } from 'vue';
import { DefineComponent } from 'vue';
import { ExtractPropTypes } from 'vue';
import { Plugin as Plugin_2 } from 'vue';
import { PropType } from 'vue';
import { PublicProps } from 'vue';
declare const _default: {
install: (app: App) => void;
};
export default _default;
export declare const Excel_Type: string[];
export declare const FileViewer: SFCWithInstall<DefineComponent< {
res: {
type: PropType<Response>;
};
blob: {
type: PropType<Blob>;
};
type: {
type: PropType<string>;
};
download: {
type: PropType<boolean>;
default: boolean;
};
change: {
type: PropType<boolean>;
default: boolean;
};
fit: {
type: PropType<"contain" | "cover" | "fill" | "none" | "scale-down">;
default: string;
};
watermark: {
type: PropType<string>;
};
watermarkProps: {
type: PropType<Partial<{
columns: number;
rows: number;
color: string;
rotation: number;
fontSize: number;
}>>;
};
pagination: {
type: PropType<number>;
};
filename: {
type: PropType<string>;
};
scrollColor: {
type: PropType<string>;
default: string;
};
scrollHoverColor: {
type: PropType<string>;
default: string;
};
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
res: {
type: PropType<Response>;
};
blob: {
type: PropType<Blob>;
};
type: {
type: PropType<string>;
};
download: {
type: PropType<boolean>;
default: boolean;
};
change: {
type: PropType<boolean>;
default: boolean;
};
fit: {
type: PropType<"contain" | "cover" | "fill" | "none" | "scale-down">;
default: string;
};
watermark: {
type: PropType<string>;
};
watermarkProps: {
type: PropType<Partial<{
columns: number;
rows: number;
color: string;
rotation: number;
fontSize: number;
}>>;
};
pagination: {
type: PropType<number>;
};
filename: {
type: PropType<string>;
};
scrollColor: {
type: PropType<string>;
default: string;
};
scrollHoverColor: {
type: PropType<string>;
default: string;
};
}>>, {
download: boolean;
change: boolean;
fit: "contain" | "cover" | "fill" | "none" | "scale-down";
scrollColor: string;
scrollHoverColor: string;
}, {}>>;
export declare const Image_Type: string[];
export declare const Pdf_Type: string[];
export declare const readFileTypeFromBlob: (blob: Blob) => Promise<{
ext: string;
mime: string;
}>;
declare type SFCWithInstall<T> = T & Plugin_2;
export declare const Text_Type: string[];
export declare const Word_Type: string[];
export declare const Zip_Type: string[];
export { }