update components to emit valid on field-change and use in TO form

This commit is contained in:
leigh-mil
2019-06-15 13:24:17 -04:00
parent 414e5989f5
commit 56bc9dd4e5
8 changed files with 75 additions and 20 deletions

View File

@@ -31,6 +31,7 @@ export default {
type: Boolean,
default: false,
},
optional: Boolean,
},
data: function() {
@@ -124,7 +125,7 @@ export default {
// Emit a change event
emitEvent('field-change', this, {
value: this._rawValue(value),
valid,
valid: this._isValid(value),
name: this.name,
watch: this.watch,
})