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

sparrow_miniapp_ui

v1.0.10

Published

sparrow_miniapp_ui 是北京汉光百货前端团队自主开发的微信小程序ui组件库,旨在帮助开发者快速开发微信小程序。 > 注意:目前该组件库还处于beta阶段,图标库还未完善。非团队成员请先不要使用该组件库。

Downloads

4

Readme

sparrow_miniapp_ui

介绍

sparrow_miniapp_ui 是北京汉光百货前端团队自主开发的微信小程序ui组件库,旨在帮助开发者快速开发微信小程序。

注意:目前该组件库还处于beta阶段,图标库还未完善。非团队成员请先不要使用该组件库。

快速上手

使用之前

微信小程序最低基础版本号为:1.9.90

注意:部分组件的部分功能要求的版本号比较高,如果发现部分功能不生效,可能是版本号太低的原因

组件是基于微信小程序自定义组件构建,需要开发者先阅读熟悉小程 自定义组件

引入组件

通过npm的方式下载构建

如何使用

以actionsheet为例:

  1. 在页面的json文件中加入 usingComponents 配置字段
"usingComponents": {
  "spr-actionsheet": "miniprogram_npm/sparrow_miniapp_ui/actionsheet/actionsheet"
}
  1. 在对应页面的wxml中直接使用改组件
<spr-actionsheet show="{{show}}" selectList="{{selectList}}" title="{{title}}" active="{{active}}" bind:select="select"></spr-actionsheet>
Page({
    data: {
        show: false,
        selectList: ['选项一', '选项二', '选项三'],
        active: 0,
        title: '这是一个标题'
    },
    showActionSheet() {
        this.setData({
            show: true,
        })
    },
    select(e) {
        let {
            value,
            index
        } = e.detail;
        this.setData({
            active: index,
        })
    }
})

各组件的具体用法需要参考具体文档:使用文档