valaxy 0.16.3 → 0.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,13 @@ import LazyLoad from 'vanilla-lazyload'
3
3
  import { onMounted } from 'vue'
4
4
 
5
5
  function createLazyLoadInstance(options = {}) {
6
+ // not removeSrc in markdown-it-image-figures for vite handle relative path in src
7
+ document.querySelectorAll('.lazy').forEach((el) => {
8
+ const imgSrc = el.getAttribute('src')
9
+ el.removeAttribute('src')
10
+ el.setAttribute('data-src', imgSrc ?? '')
11
+ })
12
+
6
13
  return new LazyLoad({
7
14
  elements_selector: '.lazy',
8
15
  ...options,