From b98860ace128c447bddbda5af62e6302c6dade3c Mon Sep 17 00:00:00 2001 From: Pan Date: Thu, 24 Aug 2017 14:41:01 +0800 Subject: [PATCH] refine inline edit table example --- src/views/example/table/inlineEditTable.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/example/table/inlineEditTable.vue b/src/views/example/table/inlineEditTable.vue index ca6bde9a..858c63fc 100644 --- a/src/views/example/table/inlineEditTable.vue +++ b/src/views/example/table/inlineEditTable.vue @@ -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