Prettier format all js files

This commit is contained in:
George Drummond
2019-01-24 09:38:43 -05:00
parent 20604e6ca9
commit 619bc9fe59
32 changed files with 553 additions and 443 deletions

View File

@@ -5,30 +5,28 @@ export default {
name: String,
initialErrors: {
type: Array,
default: () => []
default: () => [],
},
initialValue: String,
},
data: function () {
data: function() {
const showError = (this.initialErrors && this.initialErrors.length) || false
return {
showError: showError,
showValid: !showError && !!this.initialValue,
validationError: this.initialErrors.join(' ')
validationError: this.initialErrors.join(' '),
}
},
methods: {
onInput: function (e) {
onInput: function(e) {
this.$root.$emit('field-change', {
value: e.target.value,
name: this.name
name: this.name,
})
this.showError = false
this.showValid = true
}
}
},
},
}