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 🙏

© 2025 – Pkg Stats / Ryan Hefner

pbui-wx

v1.0.3

Published

pbui-wx组件库

Downloads

18

Readme

Pbui-微信小程序版(pbui-wx)文档

Pbui-wx 是一套基于微信小程序的基础样式组件库,于 2021 年开发上线。

使用指南

使用 Pbui-wx 前,请确保你已经学习过微信官方的 小程序简易教程自定义组件介绍

安装

步骤一 通过 npm 安装

npm i pbui-wx

步骤二 修改 project.config.json
基础开发
{
  ...
  "setting": {
    ...
    "packNpmManually": true,
    "packNpmRelationList": [
      {
        "packageJsonPath": "./package.json",
        "miniprogramNpmDistDir": "./"
      }
    ]
  }
}
云开发
{
  ...
  "setting": {
    ...
    "packNpmManually": true,
    "packNpmRelationList": [
      {
        "packageJsonPath": "./package.json",
        "miniprogramNpmDistDir": "./miniprogram/"
      }
    ]
  }
}
步骤三 构建 npm 包

打开微信开发者工具,点击 工具 -> 构建 npm,并勾选 使用 npm 模块 选项,构建完成后,即可引入组件。

使用

引入组件

以 pb-table 组件为例,只需要在app.jsonindex.json中配置 pb-table 对应的路径即可。

"usingComponents": {
  "pb-table": "pbui-wx/pb-table/pb-table"
}
使用组件

引入组件后,可以在 wxml 中直接使用组件

<pb-table></pb-table>

基础组件

按钮 pb-button

引入组件
"usingComponents": {
  "pb-button": "pbui-wx/pb-button/pb-button"
}
使用组件
<pb-button></pb-button>
属性配置

| 属性名 | 示例属性值 | 类型 | 说明 | | ----------- | ---------- | ------ | ------------ | | pbText | 按钮 | String | 按钮显示内容 | | pbClass | pbClass | Object | 自定义样式 | | bindmyevent | pbClick | Object | 点击事件 |

表格 pb-table

引入组件
"usingComponents": {
  "pb-table": "pbui-wx/pb-table/pb-table"
}
使用组件
<pb-table></pb-table>
属性配置

| 属性名 | 示例属性值 | 类型 | 说明 | | ------- | ---------- | ------ | ---------------- | | pbList | pbList | Array | 列表显示内容列表 | | pbClass | pbClass | Object | 自定义样式 |

开发中...