Vue Mobile UI Component Mint-ui Usage Guide

Source: Internet
Author: User

1. Loading pull-down refresh usage

 This . $refs. loadmore.ontoploaded (); this. $refs. loadmore.onbottomloaded ();

The animation of the refresh pull-down load shows what you want to see before the request has no data.

SetTimeout (() = {                this. $refs. loadmore.ontoploaded ();             );

The idea of JQ:

The default is to load the first page, and then pull down when the request data is loaded.

Over here:

Function

Loadtop (); Loadbottom ()

will be the default home at once, so it is equivalent to the default load. Only need to be clear when dealing with the data.

In addition to loading, the second page of data is inserted into the method, the new request to the data and the original data is merged.

 This this. Homelist.concat (response.data.list);
The new data is the next page

Vue Mobile UI Component Mint-ui Usage Guide

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.