Skip to content

Commit

Permalink
feat(vue): add support for use Swiper as async component
Browse files Browse the repository at this point in the history
fixes #4613
  • Loading branch information
nolimits4web committed May 28, 2021
1 parent 46d35f7 commit ff53797
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vue/get-children.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ function getChildren(originalSlots = {}, slidesRef, oldSlidesRef) {
if (slotName === 'default') slotName = 'container-end';
if (isFragment && vnode.children) {
getSlidesFromElements(vnode.children, 'default');
} else if (vnode.type && vnode.type.name === 'SwiperSlide') {
} else if (
vnode.type &&
(vnode.type.name === 'SwiperSlide' || vnode.type.name === 'AsyncComponentWrapper')
) {
slides.push(vnode);
} else if (slots[slotName]) {
slots[slotName].push(vnode);
Expand Down

0 comments on commit ff53797

Please sign in to comment.