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

vue-form10

v1.1.32

Published

A Vue.js project

Readme

vue-form10

Install

npm i -S vue-form10

Usage

<template>
  <div id="app">
    <Form10 :schema="schema" :plugins="form10plugins" v-model="model"/>
    <pre>{{JSON.stringify(model,false,4)}}
    </pre>
  </div>
</template>

<script>
import Form10 from 'vue-form10';
import form10plugins from 'vue-form10/libs/plugins';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Vue from 'vue';

Vue.use(ElementUI);

export default {
  name: 'app',
  data() {
    return {
      model:{

      },
      form10plugins,
      schema: {
        type: 'object',
        title: 'obj',
        properties: {
          str: {
            type: 'string',
            title: 'str',
          },
          obj: {
            type: 'object',
            title: 'obj',
            properties: {
              str: {
                type: 'string',
                title: 'str',
              },
            },
          },
        },
      },
    };
  },
  components: {
    Form10,
  },
};
</script>

Props

v-model

Form10's model

options

Type:Object
Required:false

options.inline

Type:Boolean
Required:false
If the label and the input are on the same line.

options.formProps

Type:Object
Required:false
Pass to form10's topmost el-form component.

options.inheritState

Type:Object
Required:false
Used to compose form10's vuex state. Form10 has its own vuex state, so its format plugins can't access its $parent's state. Pass this.$store.state to this option and the format plugins can access the state by this.$store.state.inherit.

options.typeDefaultFormat

Type:Object
Required:false
Default:{ object: "object", array: "array", number: "number", integer: "number", string: "string", boolean: "boolean", null: "null" }
If a schema has type but doesn't have format, form10 uses typeDefaultFormat[type] to decide its format.

schema

Type:Object
Required:true

plugins

Type:Array
Required:true

Methods

submit

Function():Object

Returns: If has error: { error }
If not: { value }

Reference

Json Schema Validation

Compared with angular-schema-form

  • [ ] required:["a","b"]
  • [ ] key: "address.street"
  • [x] type: "text"
  • [x] title: "Street"
  • [x] notitle: false
  • [x] description: "Street name"
  • [x] validationMessage: "Oh noes, please write a proper address"
  • [x] onChange: "valueChanged(form.key,modelValue)"
  • [ ] (won't support) feedback: false(try to set :status-icon="true" on el-form)
  • [x] disableSuccessState: false
  • [x] disableErrorState: false
  • [x] placeholder: "Input..."
  • [ ] (won't support) ngModelOptions: { ... }
  • [x] readonly: true
  • [x] htmlClass: "street foobar"
  • [ ] (won't support) fieldHtmlClass: "street"
  • [ ] (won't support) labelHtmlClass: "street"
  • [x] copyValueTo: ["address.street"] (can't differentiate user input and model change though)
  • [x] condition: "person.age < 18"
  • [x] destroyStrategy: "remove"