Skip to content

Commit

Permalink
refine inline edit table example
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Aug 28, 2017
1 parent 3c05519 commit b98860a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/example/table/inlineEditTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b98860a

Please sign in to comment.