wctdreamlandwebsite-front/plugins/vueLazyLoad.js

10 lines
293 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import Vue from "vue";
import VueLazyLoad from "vue-lazyload";
Vue.use(VueLazyLoad, {
preLoad: 1.33, // 预加载的宽高比4:3
// error: "/default.jpg", // 加载失败时使用的图片
// loading: "/default.jpg", // 加载时的loading图
attempt: 2, // 尝试加载次数
});