【修改】插槽问题处理,去除此前的插槽收集方法
This commit is contained in:
@@ -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))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user