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

v-schema-form

v3.3.2-1

Published

表单问题,不管是在 jQuery 时代,还是 Vue/React 时代, 都永远是前端工程师们的痛,但是这又是没办法的事情,业务需求多种多样, 对于中后台业务而言,表单页面和报表页面基本上是中后台业务的核心展现形式, 但是,如何帮助开发者更高效的开发表单,目前传统的表单开发方式:

Downloads

688

Readme

VSchemaForm 是什么

背景

表单问题,不管是在 jQuery 时代,还是 Vue/React 时代, 都永远是前端工程师们的痛,但是这又是没办法的事情,业务需求多种多样, 对于中后台业务而言,表单页面和报表页面基本上是中后台业务的核心展现形式, 但是,如何帮助开发者更高效的开发表单,目前传统的表单开发方式:

  • 手动管理表单状态
  • 手动收集表单数据
  • 手动管理表单校验状态

存在哪些问题?

  • 表单状态管理变得越来越难以维护,需要引入状态管理库
  • 传统表单开发的数据结构往往都是扁平结构,没法很好的处理嵌套复杂数据的情况, 如果要处理,工作量会非常大
  • 当业务有动态输出表单的需求的时候,不得不自己开发一个基于某种数据协议的动态输出表单的组件
  • 当业务需要在可视化界面配置产出表单时,需要自己开发一个基于json的动态输出表单组件

方案

基于以上问题的探索,以及受到UForm的启发,研发了VSchemaForm的Vue表单解决方案:

  1. 使用json描述表单内容
  2. 支持多平台(移动端和桌面端)
  3. 支持多个组件库(Element UI、Ant Design Vue、Antd Mobile Vue)
  4. 支持嵌套表单
  5. 支持任意数据的数组解构
  6. 支持复杂布局
  7. 支持副作用函数,统一处理表单内各项的数据联动
  8. 支持解构数据,减少自定义的数据转换
  9. 支持表单校验
  10. 支持扩展自定义的组件的作为输入组件,详情组件,布局组件等