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

need-miniprogram-ui

v0.2.17

Published

小程序UI组件库

Downloads

9

Readme

need-miniprogram-ui

🙋 介绍

NeedCodeStudio. 开发的一套小程序组件库,让小程序开发者「更快」地搭建出自己的小程序。组件的交互和视觉参考多个手机OS,使其小程序贴近移动端使用体验。

🔥 特性

  1. 适配暗夜模式
  2. 适配小程序平板端
  3. 体积小,wxml/wxss 代码压缩
  4. 详细类型定义文件,与 npm 包捆绑
  5. 多平台小程序运行(待实现)

📱 扫码预览

🧑‍💻 使用

  1. 下载安装
npm install need-miniprogram-ui --save
  1. 点击开发者工具中的菜单栏:工具 --> 构建 npm
  2. 引入封装库
import { Http } from 'need-miniprogram-ui'
  1. 引入组件
{
  "usingComponents": {
		"nm-button": "need-miniprogram-ui/button/button"
	},
}

尺寸单位

为了兼容 PC 端 和 Pad 端,所有组件采用 px 作为尺寸单位,请在使用时注意。

暗黑模式

所有组件自动适配暗黑模式,如需取消,请找到自己项目 miniprogram_npm 文件夹,打开 miniprogram_npm/need-miniprogram-ui/dark.wxss,把里面的内容清空即可(需保留dark.wxss文件)。

组件类型定义

declare namespace NeedMiniprogramUI.xxxx {
  type Data = {}

  type Props = {}

  type Instance = {}

  ...
}

📝 TODO

  • [ ] pad后台组件
  • [ ] 组件使用文档
  • [ ] 多平台
  • [ ] 扫码预览