chore: remove slots mixin
This commit is contained in:
@@ -1,18 +0,0 @@
|
|||||||
/**
|
|
||||||
* Use scopedSlots in Vue 2.6+
|
|
||||||
* downgrade to slots in lower version
|
|
||||||
*/
|
|
||||||
export const SlotsMixin = {
|
|
||||||
methods: {
|
|
||||||
slots(name = 'default', props) {
|
|
||||||
const { $slots, $scopedSlots } = this;
|
|
||||||
const scopedSlot = $scopedSlots[name];
|
|
||||||
|
|
||||||
if (scopedSlot) {
|
|
||||||
return scopedSlot(props);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $slots[name];
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user