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

@vjsf-arco-design/theme

v0.0.7

Published

基于Vue3 JSON Schema Form适配Arco Design Vue样式包

Readme

@vjsf-arco-design/theme

基于Arco Design Vue/Vue3/JSON Schema生成表单

安装

## npm
npm install --save @vjsf-arco-design/theme

## yarn
yarn add @vjsf-arco-design/theme

## pnpm
pnpm add @vjsf-arco-design/theme

使用


<script lang="ts">
  import {ref} from "vue";
  import VueForm from '@vjsf-arco-design/theme';


  export default {
    name: 'Demo',
    setup() {
      const formData = ref({});
      const schema = {
        type: 'object',
        required: [
          'userName',
          'age',
        ],
        properties: {
          userName: {
            type: 'string',
            title: '用户名',
            default: 'Liu.Jun',
          },
          age: {
            type: 'number',
            title: '年龄'
          },
          bio: {
            type: 'string',
            title: '签名',
            minLength: 10,
            default: '知道的越多、就知道的越少',
            'ui:options': {
              placeholder: '请输入你的签名',
              type: 'textarea',
              rows: 1
            }
          }
        }
      }

      return {
        formData,
        schema
      }
    }
  }

</script>

<template>
  <VueForm
      v-model="formData"
      :schema="schema"
  >
  </VueForm>
</template>

配置

  • form-props
  1. 固定参数部分 (这部分参数和当前使用的ui库无关)
// 默认值
formProps = {
    layoutColumn: 1, // 1 2 3 ,支持 1 2 3 列布局,如果使用inline表单这里配置无效
    inline: false, // 行内表单模式,建议:开启时labelPosition不要配置top, antd不要配置labelCol wrapperCol
    inlineFooter: false, // 如果想要保存按钮和表单元素一行显示,需要配置 true
    labelSuffix: ':', // label后缀
    labelPosition: 'top', // 表单域标签的位置
    isMiniDes: false, // 是否优先mini形式显示描述信息(label文字和描述信息同行显示)
    defaultSelectFirstOption: true, // 单选框必填,是否默认选中第一个
    popover: {}, // 透传给ui 组件库的popver组件,比如element ui Popover,antd a-popover
}
  1. 当前ui库form组件的参数
formProps = {
  // 省略固定参数
  labelWidth: 'auto', // 表单域标签的宽度,例如 '50px'
}

事件

submit

点击提交按钮, 且表单通过了校验

注意: 只有通过form-footer配置的才能触发该事件

validation-failed

点击提交, 且表单不通过, 所捕获的错误信息

注意: 只有通过form-footer配置的才能触发该事件

cancel

点击取消

注意: 只有通过form-footer配置的才能触发该事件

change

  • 参数(newVal, oldVal) 表单的值发生改变

引用类型,只有重新对对象赋值,否则newVal 等于 oldVal 参见 vue watch

form-mounted

  • 参数(formRef, { formData }) 通过该方法可以获取到当前form组件实例