npm install --save vca-ui
import VcaUi from 'vca-ui'
Vue.use(VcaUi)
Everything you need for forms.
<vca-form>
content
</vca-form>
<vca-field label="Label">
content
</vca-field>
<vca-field-row>
content
</vca-field-row>
Vuelidate rules can apply to the input via rules
property.
The errorMsg will show if a rule is invalid.
For row padding add the propertys first
or last
<vca-input errorMsg="error" v-model="value" :rules="$v.value">
content
</vca-input>
<vca-money-input v-model="money" :amount="money" :rules="$v.value" select/>
Edit money
datatype. With select
the input provide a dropsdown for currency selection. Default the currency will display as label.
Money
money: {
amount: 0, //int in cents
currency: "EUR" //currenry tag
}
List of Currency. Use select
option for selectable list.
currencies: [
{
label: '€',
value: 'EUR'
}
]
<vca-tabs>
<vca-tab>
content
</vca-tab>
</vca-tabs>
npm install
npm run build
npm run lint