npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mini-refreshview

v0.0.9

Published

[![npm](https://img.shields.io/npm/v/mini-refreshview.svg)](https://www.npmjs.com/package/mini-refreshview) [![Package Control](https://img.shields.io/packagecontrol/dm/mini-refreshview.svg)](https://github.com/mini-plug/mini-RefreshView.git) ![GitHub l

Downloads

6

Readme

mini-refreshview

npm Package Control GitHub last commit (branch) Build Status

实例

screenshot

使用方法

  1. npm i mini-refreshview or yarn add mini-refreshview

  2. Page的json文件内添加配置

     {
      "usingComponents": {
      "refreshview": "mini-refreshview/refreshview",
      "refreshheader": "mini-refreshview/refreshheader",
      "refreshfooter": "mini-refreshview/refreshfooter"
      }
    }
  3. 在布局中配置

    <refreshview id="refreshView"
                key="{{index}}"
                isRefresh="{{isRefresh}}"
                isLoadMore='{{isLoadMore}}'
                enableRefresh="{{enableRefresh}}"
                enableLoadMore="{{enableRefresh}}"
                bindonRefresh="onRefresh" 
                bindonLoadMore="onLoadMore">
        
        <refreshheader slot="header">
            <view style='background:#11f111;height:150rpx'>viewHeader</view>
        </refreshheader>
        
        <scroll-view slot="content" style='background:orange;'>
            <view wx:for='{{data}}' wx:key='{{index}}'>{{index}}</view>
        </scroll-view>
        
        <refreshfooter slot="footer">
            <view style="background:#33f111 ;height:150rpx">
                footer
            </view>
        </refreshfooter>
    
    </refreshview>
        
  4. 属性

    • properties

      字段名|类型|必填|描述 :----:|:----:|:----:|:----: key|String|否|布局标记 isRefresh|Boolean|否|控制刷新状态 isLoadMore|Boolean|否|控制加载状态 enableRefresh|Boolean|否|是否开启刷新 enableLoadMore|Boolean|否|是否开启加载 bindonRefresh|Function|否|刷新状态回调({key}) bindonLoadMore|Function|否|加载状态回调({key})

    • slot

      名称|描述 :----:|:----: header| 刷新布局(必须为refreshheader) content|显示界面 footer| 加载布局(必须为refreshfooter)

测试

`npm run dev`

PS

若不可滑动,注意 Pageoverflow:hidden