New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-business-form

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-business-form

A Vue form plugin

  • 0.3.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

vue-business-form

996.icu LICENSE MIT Licence

Render form

Examples

https://codesandbox.io/s/549qnzqyq4

Usage

yarn add vue-business-form
import VueBusinessForm from 'vue-business-form'

Vue.use(VueBusinessForm)
<template>
  <div class="page-login">
    <vue-business-form :form="form" @current="current"></vue-business-form>
  </div>
</template>

<script>
  import { username, password } from 'vue-business-form/fields'

  export default {
    name: 'page-login',
    data() {
      return {
        form: [username(), password()]
      }
    },
    methods: {
      current(res) {
        console.log(res)
      }
    }
  }
</script>

API

Global config

Vue.use(VueBusinessForm[, config])
config.plugins

Support plugins to extend VueBusinessForm. Use mixins in back.

plugins params './src/index.js'
// e.g. './plugins/validate/index.js'

VueBusinessForm config

:form{Array<Option>}

Render form config

Option{Object}
Option params './src/interface/index.js' IFormField
@current{Function}

Return current input data.

{
  name: '',
  value: ''
}

Contribution

Namespace

Components and className use BEM

Component

Form compoents name use VbfF start, e.g. VbfFLogin.vue

<div class="vbf__f-login"></div>
Plugin

Plugin compoents name use VbfP start, e.g. VbfPValidate.vue

<div class="vbf__p-validate__error"></div>

Keywords

FAQs

Package last updated on 03 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc