From 7409cb3c272eedda86862413710373331487333b Mon Sep 17 00:00:00 2001 From: 梁灏 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 dc902be..bed307c 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 9358390..1b588c1 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 () { -- libgit2 0.21.4