vuepress-plugin-lightgallery
Version:
Light Gallery plugin for VuePress
40 lines (39 loc) • 1.05 kB
TypeScript
import { PluginFunction } from "vuepress/core";
//#region src/node/options.d.ts
/** LightGallery plugins */
type LightGalleryPlugin = "autoplay" | "fullscreen" | "pager" | "thumbnail" | "rotate" | "share" | "zoom";
/** Options of plugin */
interface LightGalleryPluginOptions {
/**
* Image selector
*
* 图片选择器
*
* @default "[vp-content] :not(a) > img:not([no-view])"
*/
selector?: string;
/**
* Light Gallery Plugins to enable
*
* 想要启用的 Light Gallery 插件。
*
* 可选值 / Optional Values:
*
* - "autoplay"
* - "fullscreen"
* - "pager"
* - "thumbnail"
* - "rotate"
* - "share"
* - "zoom"
*
* @default ["pager", "share", "zoom"]
*/
plugins?: LightGalleryPlugin[];
}
//#endregion
//#region src/node/lightgalleryPlugin.d.ts
declare const lightgalleryPlugin: (options?: LightGalleryPluginOptions, legacy?: boolean) => PluginFunction;
//#endregion
export { LightGalleryPlugin, LightGalleryPluginOptions, lightgalleryPlugin };
//# sourceMappingURL=index.d.ts.map