跳至主要內容
vuepress-theme-hope

vuepress-plugin-lightgallery

VuePress2 的 gallery 插件

快速上手配置

使用插件

安装

pnpm
pnpm add -D vuepress-plugin-lightgallery

使用

TS
import { lightgalleryPlugin } from "vuepress-plugin-lightgallery";

export default {
  plugins: [
    lightgalleryPlugin({
      // 插件选项
    }),
  ],
};

许可证限制

请注意,虽然这个插件是在 MIT 协议下发布的,但我们目前正在通过 VuePress Theme Hope 的内置 lightgallery 组织许可open in new window 来实现这一点,并且 如果你将其用于非商业用途,我们愿意承认你是我们组织的成员。

组织许可证在非商业用途下对你没有限制,因为它支持无限的开发人员和无限的产品。你可以在任何许可下使用此插件安全地发布你的文档或项目。

但是请注意组织许可证只能用于单个商业产品。如果你想要以商业用途使用本插件,由于 lightgallery 是在 GNU GPL license v3open in new window 下,所以你必须在没有许可证下将你的源代码置于 GNU GPL license v3open in new window 协议下,或者考虑 购买许可证open in new window 以规避可能产生的问题。

你被警告了!

如果你对此表示担忧,你可以考虑使用 @vuepress/plugin-photo-swipeopen in new window