LoginSignup
0
0

More than 3 years have passed since last update.

NUXTでgenerateするとluminous-lightboxが動かない

Posted at

NUXTでLuminousGalleryを使おうとすると動かなかったのでメモ。

公式通りプラグイン内で

var galleryOpts = {
  // Whether pressing the arrow keys should move to the next/previous slide.
  arrowNavigation: true
};

var luminousOpts = {
  // These options have the same defaults and potential values as the Luminous class.
};

new LuminousGallery(document.querySelectorAll("a"), galleryOpts, luminousOpts);

とやるとgenerateすると動かないので、

new LuminousGallery(document.querySelectorAll("a"), galleryOpts, luminousOpts);

この部分だけluminousを動かすvueファイル内で

  mounted(){
    new LuminousGallery(document.querySelectorAll(".luminous"));
  }

としてあげると解決した。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0