This commit is contained in:
梁灏 2017-04-05 12:49:40 +08:00
parent a6fc94382c
commit 7409cb3c27
2 changed files with 28 additions and 92 deletions

View file

@ -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 () {