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 🙏

© 2026 – Pkg Stats / Ryan Hefner

hhh-ui

v1.5.3

Published

An ui project base on Vue.js and elementUI

Readme

hhh-ui

一个基于vue+element的二次开发组件

Build Setup

# install dependencies
安装
 cnpm install hhh-ui -S
hhh-form     element表单组件对的二次封装
props:
    reform:表单的ref属性
    reformRule:表单校验规则默认,{}
        eg:{
            phone: [
                { required: true, message:'错误提示', trigger: 'blur' },
                或者
                {
                    validator: 自定义校验规则,可以参考element的校验规则,
                    required: true,//是否必填
                    trigger: 'blur'//触发校验的方式
                }
            ],
        }
    formData:form表单的值,Array 必填
        eg:[
            {
                type: "input", // 表单输入框的类型
                               //目前支持:input,select,textarea,checkbox,radio,time
                field: "phone",//字段名称
                name: " 手机号:",//字段的文字描述
                divwidth:"100%",//单个表单输入框的宽度,默认一行两个,即50%
                width:'460',//表单输入框的宽度
                value: ""//表单输入框的默认初值
                placeholder: "请输入手机号",//输入框的placeholder提示


                filterable: true, // 下拉选择宽的搜索
                options: [//涉及有选项的
                    {
                        label: "启用",
                        value: 0
                    }
                ],
            }
        ]

使用:
    在main.js中引用import HhhUi from 'hhh-ui'
        全局注册   Vue.use(HhhUi)

    页面引用
      <hhh-form ref="myform" :reformRule="reformRule" :formData="formData" reform="reform"></hhh-form>

        <div class="btn" @click="saveform">保存</div>
        saveform() {
            let formData = this.$refs.myform.submitForm();//要提交的表单数据
            console.log(formData)
        }