Remove emitters for individual value changes
This commit is contained in:
parent
1912a9127f
commit
2f3863b84d
@ -88,14 +88,12 @@ export default {
|
||||
isMonthValid: function() {
|
||||
let _month = parseInt(this.month)
|
||||
let valid = _month >= 0 && _month <= 12
|
||||
this._emitChange('month', this.month, valid)
|
||||
return valid
|
||||
},
|
||||
|
||||
isDayValid: function() {
|
||||
let _day = parseInt(this.day)
|
||||
let valid = _day >= 0 && _day <= this.daysMaxCalculation
|
||||
this._emitChange('day', this.day, valid)
|
||||
return valid
|
||||
},
|
||||
|
||||
@ -111,7 +109,6 @@ export default {
|
||||
valid = parseInt(this.year) >= 1
|
||||
}
|
||||
|
||||
this._emitChange('year', this.year, valid)
|
||||
return valid
|
||||
},
|
||||
|
||||
@ -214,10 +211,6 @@ export default {
|
||||
valid: this.isDateValid,
|
||||
})
|
||||
},
|
||||
|
||||
_emitChange: function(name, value, valid) {
|
||||
emitEvent('field-change', this, { value, name, valid })
|
||||
},
|
||||
},
|
||||
|
||||
render: function(createElement) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user