vue移動端Ui組件 mint-ui 使用指南

來源:互聯網
上載者:User

標籤:思路   nbsp   ade   下拉重新整理   ui組件   blog   color   log   預設   

1、上啦載入下拉重新整理的使用

this.$refs.loadmore.onTopLoaded();this.$refs.loadmore.onBottomLoaded();

上啦重新整理下拉載入的 動畫顯示 在沒有資料的請求前想看見的話

setTimeout(() => {                this.$refs.loadmore.onTopLoaded();            }, 1000);

jq的思路:

  預設載入第一頁,然後下拉的時候在請求資料在載入。

在這裡:

  函數

loadTop ();loadBottom ()

會被預設家在一次,因此就相當於是預設載入了。只需要在資料上處理的時候分清楚就行。

另外上啦載入 ,第二頁的資料插進去的方法是,將新的請求到的資料和 原先的資料 合并。

this.homeList = this.homeList.concat(response.data.list);
// 新的也就是下一頁的資料
response.data.list 

 

vue移動端Ui組件 mint-ui 使用指南

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.