How to use the zepto.showIndicator function in zepto

To help you get started, we’ve selected a few zepto examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eteplus / vue-sui-demo / src / views / user / tasks.vue View on Github external
refreshAll () {
      $.showIndicator()
      setTimeout(function () {
        console.log('refreshAll')
        let cardNumber = $(this.$el).find('.card').length
        let cardHTML = '<div class="card">' +
          '<div class="card-header">card' + cardNumber + '</div>' +
          '<div class="card-content">' +
          '<div class="card-content-inner">' +
          '这里是第' + cardNumber + '个card,下拉刷新会出现第' + (cardNumber + 1) + '个card。' +
          '</div>' +
          '</div>' +
          '</div>'
        $(this.$el).find('.allTasks').prepend(cardHTML)
        // 加载完毕需要重置
        $.pullToRefreshDone('.pull-to-refresh-content')
        $.hideIndicator()
      }.bind(this), 1500)
github sally2015 / vue-project / my-project(3) / src / views / home.vue View on Github external
refreshAll () {
          $.showIndicator() //显示指示器 modal
          setTimeout(function () {
            let cardNumber = $(this.$el).find('.card').length
            let cardHTML = '<div class="card">' +
            '<div class="card-header">card' + cardNumber + '</div>' +
            '<div class="card-content">' +
            '<div class="card-content-inner">' +
            '这里是第' + cardNumber + '个card,下拉刷新会出现第' + (cardNumber + 1) + '个card。' +
            '</div>' +
            '</div>' +
            '</div>'
            $(this.$el).find('.card-container').prepend(cardHTML);

             // 加载完毕需要重置
            $.pullToRefreshDone('.pull-to-refresh-content');
             $.hideIndicator()
          }.bind(this), 1500)
github eteplus / vue-sui-demo / src / views / rank.vue View on Github external
refreshPoint () {
      $.showIndicator()
      setTimeout(function () {
        console.log('refresh')
        $.pullToRefreshDone('.pull-to-refresh-content')
        $.hideIndicator()
      }, 1500)
    },
    refreshInvite () {
github eteplus / vue-sui-demo / src / views / tasks.vue View on Github external
refreshMine () {
      $.showIndicator()
      setTimeout(function () {
        console.log('refreshMine')
        let num = this.length + 1
        let title = `card${num}`
        let content = `这里是第${num}个card,下拉刷新会出现第${num + 1}个card。`
        this.tasks.push({
          id: num,
          title: title,
          content: content
        })
        $.pullToRefreshDone('.pull-to-refresh-content')
        $.hideIndicator()
      }.bind(this), 1500)
    }
  },
github eteplus / vue-sui-demo / src / views / user / withdraw.vue View on Github external
refresh () {
      $.showIndicator()
      setTimeout(function () {
        console.log('refresh')
        $.pullToRefreshDone('.pull-to-refresh-content')
        $.hideIndicator()
      }, 1500)
    }
  },

zepto

Zepto is a minimalist JavaScript library for modern browsers with a largely jQuery-compatible API. If you use jQuery, you already know how to use Zepto.

MIT
Latest version published 8 years ago

Package Health Score

67 / 100
Full package analysis