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

aifp-form-making

v0.0.1-beta.8

Published

aifp-form-making

Downloads

15

Readme

aifp-form-making

tp-form

前端开发无可避免要遇到表单设计的问题,特别是一些和流程、报表、统计相关的需求时,可动态自定义设计的表单尤为重要。这样就能根据当前需求,设计出最符合的表单,用来收集数据。现在介绍一下摸索出来的表单设计器,采用的是Vue,ElementUI为大框架技术,还用到了Vue.draggable,vue-json-viewer,lodash等。

主题内容

  • 表单设计器<MakeFormLayout></MakeFormLayout>
  • 表单显示器<TpForm></TpForm>

本表单设计器主要包括以上两项内容,MakeFormLayout组件的作用是用于显示设计界面给用户,用户可以通过该组件自定义设计表单。而TpForm组件则是用于展示作用,将用户自定义设计的表单展示出来供其他用户填写。

特点

  • 支持可视化设计
  • 支持修改时的实时预览
  • 支持表单校验
  • 自定义正则校验
  • 表单栅格化布局
  • 支持数据远程获取
  • 可拓展性非常强,只需在固定位置创建文件即可立即拓展

支持组件

主要分为以下几个类型组件:

输入型组件

  • 单行文本
  • 多行文本
  • 密码输入
  • 手机号输入

选择型组件

  • 单项选择框(支持数据远程获取)
  • 多项选择框(支持数据远程获取)
  • 下拉选择框(支持数据远程获取)
  • 时间选择
  • 时间范围选择
  • 日期选择
  • 日期范围选择

按钮型组件

  • 开关
  • 评分
  • 计数器

布局型组件

  • 链接
  • 分割线

项目命令

npm install
npm run serve

演示地址

跳转到演示地址

开发准备

yarn install

发布流程(按顺序执行)

yarn lib