1
0
mirror of synced 2025-02-16 20:53:13 +03:00

Adds validationLabel to fields meta data

This commit is contained in:
Justin Schroeder 2018-02-02 12:08:21 -05:00
parent 8efe308f98
commit 75e5a4f441

View File

@ -280,7 +280,7 @@ export default {
created () { created () {
this.form.registerField( this.form.registerField(
this.name, this.name,
filter(this.$props, (prop, value) => ['name', 'type', 'id', 'label', 'validation'].includes(prop)), filter(this.$props, (prop, value) => ['name', 'type', 'id', 'label', 'validation', 'validationLabel'].includes(prop))
) )
if (this.initial !== false) { if (this.initial !== false) {
this.form.hydrate({[this.name]: this.initial}) this.form.hydrate({[this.name]: this.initial})