@kmdtmyk/vue-fields
v0.2.7
Published
Input components for vue.js
Downloads
143
Readme
Demo
https://kmdtmyk.github.io/vue-fields/
Installation
npm install @kmdtmyk/vue-fields
Register as plugin.
import VueFields from '@kmdtmyk/vue-fields'
Vue.use(VueFields)
Register as component.
import {NumberField} from '@kmdtmyk/vue-fields'
Vue.component('number-field', NumberField)
Plugin option
inputClass
Vue.use(VueFields, {inputClass: 'form-control'})
<text-field/> <!-- <input type='text' class='form-control'> -->
prefix, suffix
Vue.use(VueFields, {prefix: 'v', suffix: ''})
<v-text/> <!-- <input type='text'> -->
|name|default value| |-|-| |inputClass|''| |prefix|''| |suffix|'Field'|
License
MIT