SSENSE/vue-carousel

Question: How can I render two carousel on one page with nuxt?

Open

#224 建立於 2018年6月20日

在 GitHub 查看
 (11 留言) (0 反應) (0 負責人)JavaScript (1,705 star) (513 fork)batch import
bughelp wantedquestion

描述

I have a problem with nuxt:

If I use two carousel into one page, I get this error you may have an infinite update loop in a component render function And the first carousel doesn't have correct width/height

The template is like:

<div>
    <no-ssr>
        <carousel>
            <slide>
                ...
            </slide
            <slide>
                ...
            </slide
        </carousel>
    </no-ssr>
    ...
    ...

    <no-ssr>
        <carousel>
            <slide>
                ...
            </slide
            <slide>
                ...
            </slide
        </carousel>
    </no-ssr>
</div>

And plugin:

import Vue from 'vue'

import VueCarousel from 'vue-carousel'

Vue.use(VueCarousel)

貢獻者指南