maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
8 lines (7 loc) • 337 B
JavaScript
import { vLazyImgInstall } from "maz-ui";
import { defineNuxtPlugin } from "#imports";
export default defineNuxtPlugin(({ vueApp, $config }) => {
const vLazyImgOptions = $config.public.mazUi?.installVLazyImg;
const options = typeof vLazyImgOptions === "object" ? vLazyImgOptions : void 0;
vueApp.use(vLazyImgInstall, options);
});