https://kmdtmyk.github.io/vue-fields/
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)
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' |
MIT