form validate plugin
npm install v2-checkA component form validation plugin in Vue 2.0. github
You can install the package via npm:
``bash`
$ npm install -s v2-check
Otherwise, you can just get v2-check.js into your code.
Import v2-check before initializing Vue.
`javascript
import Vue from 'vue'
import v2Check from 'v2-check'
Vue.use(v2Check)
`
Then you can use the check-item and the check-all directive on your component. Ex:
`javascript
Text option:
{{ $getFormItemMessage(initFormData.uuid, initFormData.textOption.name) }}
`
Awesome, you can also see this demo on JSFiddle.
The MIT License (MIT). Please see License File for more information.
v2-check` Still in the process of continuous improvement, if you have any problems during the development process, I welcome you to submit it in the issue.