Skip to content

kmdtmyk/vue-fields

Repository files navigation

Publish Test

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