@shixinde/vuepress-theme-init
Version:
13 lines (12 loc) • 3.47 kB
JavaScript
import{_ as s,c as e,o as a,a as n}from"./app-Dx9bNbfq.js";const t={},i=n(`<h2 id="小程序触底刷新下一页" tabindex="-1"><a class="header-anchor" href="#小程序触底刷新下一页"><span>小程序触底刷新下一页</span></a></h2><h3 id="usereachbottom" tabindex="-1"><a class="header-anchor" href="#usereachbottom"><span>useReachBottom<a href="https://taro-docs.jd.com/docs/composition-api#usereachbottom" target="_blank" rel="noopener noreferrer"></a></span></a></h3><p>监听用户上拉触底事件。等同于 <code>onReachBottom</code> 页面生命周期钩子。</p><div class="language-text line-numbers-mode" data-highlighter="prismjs" data-ext="text" data-title="text"><pre class="language-text"><code><span class="line"></span>
<span class="line"> onReachBottom() {</span>
<span class="line"> if (this.theListCurrentPage < this.theListPagination.lastPage) {</span>
<span class="line"> this.theListCurrentPage++</span>
<span class="line"> this.onGetList()</span>
<span class="line"> }</span>
<span class="line"> },</span>
<span class="line"> </span>
<span class="line"> </span>
<span class="line"> </span>
<span class="line"> </span>
<span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div>`,4),l=[i];function c(o,r){return a(),e("div",null,l)}const d=s(t,[["render",c],["__file","Taro.html.vue"]]),h=JSON.parse('{"path":"/vue%E7%AC%94%E8%AE%B0%E5%8F%8A%E5%91%A8%E8%BE%B9%E7%94%9F%E6%80%81/Taro.html","title":"","lang":"zh-CN","frontmatter":{},"headers":[{"level":2,"title":"小程序触底刷新下一页","slug":"小程序触底刷新下一页","link":"#小程序触底刷新下一页","children":[{"level":3,"title":"useReachBottom","slug":"usereachbottom","link":"#usereachbottom","children":[]}]}],"git":{"updatedTime":1755347964000,"contributors":[{"name":"袁果锅","email":"2914310412@qq.com","commits":1}]},"filePathRelative":"vue笔记及周边生态/Taro.md","excerpt":"<h2>小程序触底刷新下一页</h2>\\n<h3><a class=\\"header-anchor\\" href=\\"#usereachbottom\\"><span>useReachBottom</span></a><a href=\\"https://taro-docs.jd.com/docs/composition-api#usereachbottom\\" target=\\"_blank\\" rel=\\"noopener noreferrer\\"></a></h3>\\n<p>监听用户上拉触底事件。等同于 <code>onReachBottom</code> 页面生命周期钩子。</p>\\n<div class=\\"language-text\\" data-highlighter=\\"prismjs\\" data-ext=\\"text\\" data-title=\\"text\\"><pre class=\\"language-text\\"><code><span class=\\"line\\"></span>\\n<span class=\\"line\\"> onReachBottom() {</span>\\n<span class=\\"line\\"> if (this.theListCurrentPage < this.theListPagination.lastPage) {</span>\\n<span class=\\"line\\"> this.theListCurrentPage++</span>\\n<span class=\\"line\\"> this.onGetList()</span>\\n<span class=\\"line\\"> }</span>\\n<span class=\\"line\\"> },</span>\\n<span class=\\"line\\"> </span>\\n<span class=\\"line\\"> </span>\\n<span class=\\"line\\"> </span>\\n<span class=\\"line\\"> </span>\\n<span class=\\"line\\"></span></code></pre></div>"}');export{d as comp,h as data};