From 3c38e4f7f1d88e779bb10960184a7d34d0e9ac61 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Thu, 9 Mar 2017 16:03:36 +0800 Subject: [PATCH] update Table cell --- examples/routers/table.vue | 99 ++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------- src/components/table/cell.vue | 2 +- 2 files changed, 41 insertions(+), 60 deletions(-) diff --git a/examples/routers/table.vue b/examples/routers/table.vue index e48f4fa..374504c 100644 --- a/examples/routers/table.vue +++ b/examples/routers/table.vue @@ -1,94 +1,75 @@ diff --git a/src/components/table/cell.vue b/src/components/table/cell.vue index 1f7a63b..b488eae 100644 --- a/src/components/table/cell.vue +++ b/src/components/table/cell.vue @@ -60,7 +60,7 @@ this.$el.innerHTML = ''; let methods = {}; Object.keys($parent).forEach(key => { - const func = this.$parent.$parent.$parent[`${key}`]; + const func = $parent[`${key}`]; if (typeof(func) === 'function' && func.name === 'boundFn') { methods[`${key}`] = func; } -- libgit2 0.21.4