UNPKG

@cn-ui/core

Version:

The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.

17 lines (16 loc) 410 B
import Viewer from "viewerjs"; import "viewerjs/dist/viewer.css"; type Options = Viewer.Options; /** * 输入的数据,可以使用 Img 标签 */ export type ImgData = { alt: string; src: string; } | HTMLImageElement; export declare const useViewer: (props?: Options) => { addImages(image: ImgData[]): void; replaceImages(newImages: ImgData[]): void; getViewer(): Viewer; }; export {};