From 7409cb3c272eedda86862413710373331487333b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Wed, 5 Apr 2017 12:49:40 +0800 Subject: [PATCH] fixed #549 --- examples/routers/table.vue | 116 ++++++++------------------------- src/components/table/table.vue | 4 +- 2 files changed, 28 insertions(+), 92 deletions(-) diff --git a/examples/routers/table.vue b/examples/routers/table.vue index dc902be0..bed307ce 100644 --- a/examples/routers/table.vue +++ b/examples/routers/table.vue @@ -1,114 +1,50 @@ diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 9358390e..1b588c1a 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -655,8 +655,8 @@ }, created () { if (!this.context) this.currentContext = this.$parent; - this.showSlotHeader = this.$refs.title !== undefined; - this.showSlotFooter = this.$refs.footer !== undefined; + this.showSlotHeader = this.$slots.header !== undefined; + this.showSlotFooter = this.$slots.footer !== undefined; this.rebuildData = this.makeDataWithSortAndFilter(); }, mounted () {