mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1 line
6.5 KiB
JavaScript
1 line
6.5 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{307:function(E,C,u){"use strict";u.r(C);var s={created:function(){this.content=unescape("%3Ch2%3ELazyload%20%u56FE%u7247%u61D2%u52A0%u8F7D%3C/h2%3E%0A%3Ch3%3E%u4F7F%u7528%u6307%u5357%3C/h3%3E%0A%3Cp%3E%3Ccode%3ELazyload%3C/code%3E%20%u662F%20%3Ccode%3EVue%3C/code%3E%20%u6307%u4EE4%uFF0C%u4F7F%u7528%u524D%u9700%u8981%u5BF9%u6307%u4EE4%u8FDB%u884C%u6CE8%u518C%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-js%22%3E%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20Vue%20%3Cspan%20class%3D%22hljs-keyword%22%3Efrom%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%27vue%27%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20%7B%20Lazyload%20%7D%20%3Cspan%20class%3D%22hljs-keyword%22%3Efrom%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant%27%3C/span%3E%3B%0A%0A%3Cspan%20class%3D%22hljs-comment%22%3E//%20options%20%u4E3A%u53EF%u9009%u53C2%u6570%uFF0C%u65E0%u5219%u4E0D%u4F20%3C/span%3E%0AVue.use%28Lazyload%2C%20options%29%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3E%u4EE3%u7801%u6F14%u793A%3C/h3%3E%0A%3Ch4%3E%u57FA%u7840%u7528%u6CD5%3C/h4%3E%0A%3Cp%3E%u5C06%3Ccode%3Ev-lazy%3C/code%3E%u6307%u4EE4%u7684%u503C%u8BBE%u7F6E%u4E3A%u4F60%u9700%u8981%u61D2%u52A0%u8F7D%u7684%u56FE%u7247%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-html%22%3E%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Eimg%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-for%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22img%20in%20imageList%22%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-lazy%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22img%22%3C/span%3E%20%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-javascript%22%3E%3Cspan%20class%3D%22hljs-keyword%22%3Eexport%3C/span%3E%20%3Cspan%20class%3D%22hljs-keyword%22%3Edefault%3C/span%3E%20%7B%0A%20%20data%28%29%20%7B%0A%20%20%20%20%3Cspan%20class%3D%22hljs-keyword%22%3Ereturn%3C/span%3E%20%7B%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3EimageList%3C/span%3E%3A%20%5B%0A%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-string%22%3E%27https%3A//img.yzcdn.cn/1.jpg%27%3C/span%3E%2C%0A%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-string%22%3E%27https%3A//img.yzcdn.cn/2.jpg%27%3C/span%3E%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%3B%0A%20%20%7D%0A%7D%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3E%u80CC%u666F%u56FE%u61D2%u52A0%u8F7D%3C/h4%3E%0A%3Cp%3E%u548C%u56FE%u7247%u61D2%u52A0%u8F7D%u4E0D%u540C%uFF0C%u80CC%u666F%u56FE%u61D2%u52A0%u8F7D%u9700%u8981%u4F7F%u7528%3Ccode%3Ev-lazy%3Abackground-image%3C/code%3E%uFF0C%u503C%u8BBE%u7F6E%u4E3A%u80CC%u666F%u56FE%u7247%u7684%u5730%u5740%uFF0C%u9700%u8981%u6CE8%u610F%u7684%u662F%u5FC5%u987B%u58F0%u660E%u5BB9%u5668%u9AD8%u5EA6%u3002%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-html%22%3E%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Ediv%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-for%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22img%20in%20imageList%22%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-lazy%3Abackground-image%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22img%22%3C/span%3E%20/%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3E%u61D2%u52A0%u8F7D%u6A21%u5757%3C/h4%3E%0A%3Cp%3E%u61D2%u52A0%u8F7D%u6A21%u5757%u9700%u8981%u4F7F%u7528%u5230%3Ccode%3Elazy-component%3C/code%3E%uFF0C%u5C06%u9700%u8981%u61D2%u52A0%u8F7D%u7684%u5185%u5BB9%u653E%u5728%3Ccode%3Elazy-component%3C/code%3E%u4E2D%u5373%u53EF%u3002%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-html%22%3E%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Elazy-component%3C/span%3E%26gt%3B%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Eimg%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-for%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22img%20in%20imageList%22%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-lazy%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22img%22%3C/span%3E%20%26gt%3B%3C/span%3E%0A%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B/%3Cspan%20class%3D%22hljs-name%22%3Elazy-component%3C/span%3E%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3EOptions%3C/h3%3E%0A%3Ctable%3E%0A%3Cthead%3E%0A%3Ctr%3E%0A%3Cth%3E%u53C2%u6570%3C/th%3E%0A%3Cth%3E%u8BF4%u660E%3C/th%3E%0A%3Cth%3E%u7C7B%u578B%3C/th%3E%0A%3Cth%3E%u9ED8%u8BA4%u503C%3C/th%3E%0A%3Cth%3E%u7248%u672C%3C/th%3E%0A%3C/tr%3E%0A%3C/thead%3E%0A%3Ctbody%3E%0A%3Ctr%3E%0A%3Ctd%3Eloading%3C/td%3E%0A%3Ctd%3E%u52A0%u8F7D%u65F6%u7684%u56FE%u7247%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eerror%3C/td%3E%0A%3Ctd%3E%u9519%u8BEF%u65F6%u7684%u56FE%u7247%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Epreload%3C/td%3E%0A%3Ctd%3E%u9884%u52A0%u8F7D%u9AD8%u5EA6%u7684%u6BD4%u4F8B%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eattempt%3C/td%3E%0A%3Ctd%3E%u5C1D%u8BD5%u6B21%u6570%3C/td%3E%0A%3Ctd%3E%3Ccode%3ENumber%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3E3%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3ElistenEvents%3C/td%3E%0A%3Ctd%3E%u76D1%u542C%u7684%u4E8B%u4EF6%3C/td%3E%0A%3Ctd%3E%3Ccode%3EArray%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Escroll%3C/code%3E%u7B49%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Eadapter%3C/td%3E%0A%3Ctd%3E%u9002%u914D%u5668%3C/td%3E%0A%3Ctd%3E%3Ccode%3EObject%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Efilter%3C/td%3E%0A%3Ctd%3E%u56FE%u7247%20URL%20%u8FC7%u6EE4%3C/td%3E%0A%3Ctd%3E%3Ccode%3EObject%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3ElazyComponent%3C/td%3E%0A%3Ctd%3E%u662F%u5426%u80FD%u61D2%u52A0%u8F7D%u6A21%u5757%3C/td%3E%0A%3Ctd%3E%3Ccode%3EBoolean%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3Efalse%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3C/tbody%3E%0A%3C/table%3E%0A%3Cp%3E%u66F4%u591A%u5185%u5BB9%u8BF7%u53C2%u7167%uFF1A%3Ca%20href%3D%22https%3A//github.com/hilongjw/vue-lazyload%22%3Evue-lazyload%20%u5B98%u65B9%u6587%u6863%3C/a%3E%3C/p%3E%0A")}},t=u(7),a=Object(t.a)(s,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var E=this.$createElement;return(this._self._c||E)("section",{domProps:{innerHTML:this._s(this.content)}})}],!1,null,null,null);C.default=a.exports}}]); |