vant/v1/async_167.8c8da464.js
2024-04-20 08:49:23 +00:00

1 line
6.8 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[167],{256:function(s,a,C){"use strict";C.r(a);var l={created:function(){this.content=unescape("%3Ch2%3EWaterfall%3C/h2%3E%0A%3Cp%3ENote%3A%20Waterfall%20is%20deprecated%20and%20no%20longer%20maintained%2C%20please%20use%20the%20%3Ca%20href%3D%22%23/zh-CN/list%22%3EList%3C/a%3E%20component%20instead.%3C/p%3E%0A%3Ch3%3EInstall%3C/h3%3E%0A%3Ch4%3EGlobal%20registration%3C/h4%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%20Waterfall%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%0AVue.use%28Waterfall%29%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch4%3ELocal%20registration%3C/h4%3E%0A%3Cp%3EIf%20you%20just%20watch%20to%20use%20%3Ccode%3EWaterfall%3C/code%3E%20in%20a%20component%2C%20you%20can%20register%20the%20directive%20in%20the%20component.%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-js%22%3E%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20%7B%20Waterfall%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-keyword%22%3Eexport%3C/span%3E%20%3Cspan%20class%3D%22hljs-keyword%22%3Edefault%3C/span%3E%20%7B%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Edirectives%3C/span%3E%3A%20%7B%0A%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3EWaterfallLower%3C/span%3E%3A%20Waterfall%28%3Cspan%20class%3D%22hljs-string%22%3E%27lower%27%3C/span%3E%29%2C%0A%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3EWaterfallUpper%3C/span%3E%3A%20Waterfall%28%3Cspan%20class%3D%22hljs-string%22%3E%27upper%27%3C/span%3E%29%0A%20%20%7D%0A%7D%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3EUsage%3C/h3%3E%0A%3Ch4%3EBasic%20Usage%3C/h4%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%3Eul%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-waterfall-lower%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22loadMore%22%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Ewaterfall-disabled%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22disabled%22%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Ewaterfall-offset%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22400%22%3C/span%3E%0A%26gt%3B%3C/span%3E%0A%20%20%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B%3Cspan%20class%3D%22hljs-name%22%3Eli%3C/span%3E%20%3Cspan%20class%3D%22hljs-attr%22%3Ev-for%3C/span%3E%3D%3Cspan%20class%3D%22hljs-string%22%3E%22item%20in%20list%22%3C/span%3E%26gt%3B%3C/span%3E%7B%7B%20item%20%7D%7D%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B/%3Cspan%20class%3D%22hljs-name%22%3Eli%3C/span%3E%26gt%3B%3C/span%3E%0A%3Cspan%20class%3D%22hljs-tag%22%3E%26lt%3B/%3Cspan%20class%3D%22hljs-name%22%3Eul%3C/span%3E%26gt%3B%3C/span%3E%0A%3C/code%3E%3C/pre%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-js%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%3Elist%3C/span%3E%3A%20%5B%3Cspan%20class%3D%22hljs-number%22%3E0%3C/span%3E%2C%20%3Cspan%20class%3D%22hljs-number%22%3E1%3C/span%3E%2C%20%3Cspan%20class%3D%22hljs-number%22%3E2%3C/span%3E%2C%20%3Cspan%20class%3D%22hljs-number%22%3E3%3C/span%3E%2C%20%3Cspan%20class%3D%22hljs-number%22%3E4%3C/span%3E%2C%20%3Cspan%20class%3D%22hljs-number%22%3E5%3C/span%3E%2C%20%3Cspan%20class%3D%22hljs-number%22%3E6%3C/span%3E%2C%20%3Cspan%20class%3D%22hljs-number%22%3E7%3C/span%3E%2C%20%3Cspan%20class%3D%22hljs-number%22%3E8%3C/span%3E%2C%20%3Cspan%20class%3D%22hljs-number%22%3E9%3C/span%3E%5D%2C%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Edisabled%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-literal%22%3Efalse%3C/span%3E%0A%20%20%20%20%7D%3B%0A%20%20%7D%2C%0A%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Edirectives%3C/span%3E%3A%20%7B%0A%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3EWaterfallLower%3C/span%3E%3A%20Waterfall%28%3Cspan%20class%3D%22hljs-string%22%3E%27lower%27%3C/span%3E%29%0A%20%20%7D%2C%0A%0A%20%20%3Cspan%20class%3D%22hljs-attr%22%3Emethods%3C/span%3E%3A%20%7B%0A%20%20%20%20loadMore%28%29%20%7B%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-keyword%22%3Ethis%3C/span%3E.disabled%20%3D%20%3Cspan%20class%3D%22hljs-literal%22%3Etrue%3C/span%3E%3B%0A%20%20%20%20%20%20setTimeout%28%3Cspan%20class%3D%22hljs-function%22%3E%3Cspan%20class%3D%22hljs-params%22%3E%28%29%3C/span%3E%20%3D%26gt%3B%3C/span%3E%20%7B%0A%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-keyword%22%3Efor%3C/span%3E%20%28%3Cspan%20class%3D%22hljs-keyword%22%3Elet%3C/span%3E%20i%20%3D%20%3Cspan%20class%3D%22hljs-number%22%3E0%3C/span%3E%3B%20i%20%26lt%3B%20%3Cspan%20class%3D%22hljs-number%22%3E5%3C/span%3E%3B%20i++%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-keyword%22%3Ethis%3C/span%3E.list.push%28%3Cspan%20class%3D%22hljs-keyword%22%3Ethis%3C/span%3E.list.length%29%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-keyword%22%3Ethis%3C/span%3E.disabled%20%3D%20%3Cspan%20class%3D%22hljs-literal%22%3Efalse%3C/span%3E%3B%0A%20%20%20%20%20%20%7D%2C%20%3Cspan%20class%3D%22hljs-number%22%3E200%3C/span%3E%29%3B%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3EAPI%3C/h3%3E%0A%3Ctable%3E%0A%3Cthead%3E%0A%3Ctr%3E%0A%3Cth%3EAttribute%3C/th%3E%0A%3Cth%3EDescription%3C/th%3E%0A%3Cth%3EType%3C/th%3E%0A%3Cth%3EDefault%3C/th%3E%0A%3C/tr%3E%0A%3C/thead%3E%0A%3Ctbody%3E%0A%3Ctr%3E%0A%3Ctd%3Ev-waterfall-lower%3C/td%3E%0A%3Ctd%3EFunction%20to%20trigger%20when%20scroll%20to%20bottom%3C/td%3E%0A%3Ctd%3E%3Ccode%3EFunction%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Ev-waterfall-upper%3C/td%3E%0A%3Ctd%3EFunction%20to%20trigger%20when%20scroll%20to%20top%3C/td%3E%0A%3Ctd%3E%3Ccode%3EFunction%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Ewaterfall-disabled%3C/td%3E%0A%3Ctd%3EKey%20of%20the%20property%20to%20control%20disable%20status%20in%20instance%3C/td%3E%0A%3Ctd%3E%3Ccode%3EString%3C/code%3E%3C/td%3E%0A%3Ctd%3E-%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3Ewaterfall-offset%3C/td%3E%0A%3Ctd%3EOffset%20to%20trigger%20callback%20function%3C/td%3E%0A%3Ctd%3E%3Ccode%3ENumber%3C/code%3E%3C/td%3E%0A%3Ctd%3E%3Ccode%3E300%3C/code%3E%3C/td%3E%0A%3C/tr%3E%0A%3C/tbody%3E%0A%3C/table%3E%0A")}},t=C(7),E=Object(t.a)(l,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var s=this.$createElement;return(this._self._c||s)("section",{domProps:{innerHTML:this._s(this.content)}})}],!1,null,null,null);a.default=E.exports}}]);