【修改】插槽问题处理,去除此前的插槽收集方法

This commit is contained in:
zer0Black
2021-04-16 11:09:51 +08:00
parent 55998565eb
commit 2c7a6f674b
+1 -10
View File
@@ -166,17 +166,8 @@ export default {
return false return false
} }
}, },
slots() { // 获取插槽信息
let slots = []
for (let column of this.columns) {
if (column.scopedSlots && column.scopedSlots.customRender) {
slots.push(column.scopedSlots.customRender)
}
}
return slots
},
scopedSlotsKeys() { scopedSlotsKeys() {
debugger
return Object.keys(this.$scopedSlots).filter(key => !this.usedSlots.includes(key)) return Object.keys(this.$scopedSlots).filter(key => !this.usedSlots.includes(key))
}, },
}, },