vuepress-plugin-lightgallery
Version:
Light Gallery plugin for VuePress
43 lines (39 loc) • 996 B
TypeScript
import { PluginFunction } from 'vuepress/core';
/**
* 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[];
}
declare const lightgalleryPlugin: (options?: LightGalleryPluginOptions, legacy?: boolean) => PluginFunction;
export { lightgalleryPlugin };
export type { LightGalleryPlugin, LightGalleryPluginOptions };