refine inline edit table example

This commit is contained in:
Pan 2017-08-24 14:41:01 +08:00 committed by 花裤衩
parent 3c05519a09
commit b98860ace1

View file

@ -83,8 +83,9 @@ export default {
getList() {
this.listLoading = true
fetchList(this.listQuery).then(response => {
this.list = response.data.items.map(v => {
v.edit = false
const items = response.data.items
this.list = items.map(v => {
this.$set(v, 'edit', false)
return v
})
this.listLoading = false