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