From 96c7aa15b8b914b35865debb7dda1ba4723dc432 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Fri, 21 Aug 2020 00:19:15 +0800 Subject: [PATCH] chore: remove slots mixin --- src/mixins/slots.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/mixins/slots.js diff --git a/src/mixins/slots.js b/src/mixins/slots.js deleted file mode 100644 index 70449074c..000000000 --- a/src/mixins/slots.js +++ /dev/null @@ -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]; - }, - }, -};