Input components for vue.js
vue-fields
Input components for vue.js.
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' |