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

hzz-form

v1.0.13

Published

通用表单

Readme

hzz-form

基于element-ui封装的通用表单,包含以下功能点:

1、支持传入model生成表单,提供配置项

2、支持正则校验和错误提示

3、支持自定义表单样式

4、如有其他需要,自由修改

version

|版本号|描述| |:-|:-| |1.0.0|初始版本,仅支持input textarea select和文本| |1.0.3|1、增加datepicker;2、支持传入按钮事件| |1.0.4|1、增加radio| |1.0.6|1、select下拉选框校验触发事件改为change| |1.0.7|1、增加cascader级联选择器;2、扩展列表项属性,支持属性见element-ui;3、提供部分默认配置信息,可通过传入bind进行覆盖| |1.0.9|1、增加日期和时间选择器;| |1.0.11|1、增加开关;2、提供表单项右侧附加信息(单位、按钮)|

install

npm i hzz-form -S

quick start

import hzzForm from 'hzz-form';
Vue.use(hzzForm);

attributes

|参数|说明|类型|默认值| |:-|:-|:-|:-| |labelWidth|标签宽度|string|60px| |data|表单各项值对象|object|-| |model|表单模板对象|array|-|

model attrubites

|参数|说明|类型|默认值|可选值| |:-|:-|:-|:-|:-| |label|标签文本|string|-|-| |prop|关联data存储该项的值|string|-|-| |type|表单类型|string|-|见下表| |required|是否必填|boolean|false|-| |exp|用于校验的正则|string|-|-| |error|错误信息|string|-|-| |bind|列表属性对象,可传入属性见element-ui|object|-|-| |options|type==='select'时有效,存储下拉选项内容|array|-|-| |btns|type==='btns'时有效,存储按钮内容|array|-|-|

type attribute

|可选值|说明| |:-|:-| |select|下拉选框| |cascader|级联选择器| |radio|按钮框组| |time year month date dates week datetimedatetimerang daterange monthrange|日期和时间选择器| |switch|开关| |btns|按钮| |div|文本| |slot|插槽| |textarea和其他原生 inputtype值|输入框|

author

If you have any question. You can contract me with QQ(1321176618).