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

xes-wxapp

v0.0.3

Published

微信小程序自定义 UI 组件,基于微信的Component封装

Downloads

3

Readme

xes-wxapp

微信小程序自定义 UI 组件,基于微信的 Component 封装

npm version

快速上手

在线教程文档

目录结构

├─ demo-tools      # 示例组件目录 
│  ├─ module-demo  # 开发组件样例
│  └─ example-demo # example项目组件页面样例
├─ dist            # 生产组件打包目录 
├─ docs            # xes-wxapp 项目组件使用说明文档
├─ example         # example 样例小程序文件
│  ├─ assets       # 静态资源
│  └─ dist         # 组件引用目录
│  └─ pages        # 页面组件示例目录
│  └─ utils        # 工具库
│  └─ app.js 
│  └─ app.json 
│  └─ app.wxss 
├─ screenshots     # 项目截图页面
├─ src             # 开发代码目录
│  ├─ assets       # 静态资源和共用css样式文件
│  ├─ page         # 各个组件页面
│  └─ index.js     # 组件入口
├─ .gitignore      # git库 上传需要忽略的配置文件
├─ .npmignore      # npm包 上传需要忽略的配置文件
├─ gulpfile.js     # gulp 构建工具目录
├─ package.json    # 项目依赖配置文件
└─ README.md       # 项目说明文档

已完成组件(点击跳转说明文档)

开发指令说明

// 安装项目依赖
npm install
// 开发过程中,监听文件夹内容的改变,实时打包到 example/dist
npm run watch
// 开发新的组件 (module -- 组件的名称,已存在的会有提示)
npm run create module
// 打包代码到 example 样例小程序文件夹的dist
npm run dev 
// 打包到生产环境,发布代码
npm run build

使用之前

在开始使用之前,你需要先阅读 微信小程序自定义组件 的相关文档。

如何使用

通过 npm install xes-wxapp --save ,下载包到项目,然后 将dist/ 目录拷贝到自己的小程序项目中。按照如下的方式使用组件,以 Button 为例,其它组件在对应的文档页查看:

在 page.json 中引入组件

"usingComponents": {
  "xes-button": "../../dist/button/index"
}

在 page.wxml 中使用组件

<xes-button type="circle">circle</xes-button>
<xes-button type="small">small</xes-button>
<xes-button type="default">default</xes-button>