1.0.2 • Published 8 years ago
meta-select-mixin
Licence
ISC
Version
1.0.2
Deps
1
Size
34 kB
Vulns
0
Weekly
0
meta-select-mixin
Installation
npm install --save meta-select-mixin
You also have to inject a validator instance into your Vue application:
src/main.js
import VeeValidate, { Validator } from 'vee-validate' # Optional language package import ptBR from 'vee-validate/dist/locale/pt_BR' Validator.addLocale(ptBR) # Optional Vue.use(VeeValidate, { inject: false, locale: 'pt_BR', fieldsBagName: 'validationFields', })
Props
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| attrId | string |
false | id |
|
| attrLabel | string |
false | label |
|
| classes | object |
false | {} |
|
| default | string |
false | ||
| disabled | boolean |
false | false | |
| id | string |
true | ||
| label | string |
true | ||
| name | string |
true | ||
| options | array |
true | ||
| readonly | boolean |
false | false | |
| required | boolean |
false | false | |
| validations | object |
false | {} |
Validations applied by vee-validate |
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.