@inkline/inkline
Version:
Inkline is the Vue.js UI/UX Library built for creating your next design system
33 lines (32 loc) • 806 B
JavaScript
export default {
data () {
return {
schema: this.$inkline.form({
group: {
firstName: {
validators: [
{ name: 'required' }
]
},
lastName: {
validators: ['required']
}
}
})
};
},
methods: {
setEmail () {
this.schema.group.email = this.$inkline.form({
validators: [
{ name: 'email' }
]
});
},
setAddress () {
this.schema.group.address = this.$inkline.form({
value: '32 Inkline St.'
});
}
}
};