['lot'],
computed: {
balance: {
get: function () {
return {'integer': this.integer, 'decimal': this.decimal }
}
}
},
integer: {
get: getInteger(lot.current_amount)
},
decimal: {
get: getDecimal(lot.current_amount)
},
}
ну больше похоже на правду, если computed сеттер не собираетесь переопределять, то такая объектная запись не нужна, просто balance () { return ... } и в других
export default { props: ['lot'], computed: { balance() { return { integer: getInteger(this.lot.current_amount), decimal: getDecimal(this.lot.current_amount) } } } }
Обсуждают сегодня