Skip to content

cube-slide中嵌套cube-scroll无法滑动 #141

Description

@iscmd

<cube-slide ref="slide" :options="slideOptions" :auto-play="false" :initial-index="currentIndex" :data="imgs" :loop="false" :show-dots="indicator !== 'none'" > <cube-slide-item v-for="(item, index) in listImgs" :key="index"> <div class="scroll-list-wrap"> <cube-scroll ref="scroll" :data="item.test" :options="options" @scroll="scrollAction" @scroll-end="scrollEndAction"> <div class="item-content" :style="{ height: isImageCanSlide(item) ? '':'100%' }"> <img v-if="item.data" :class="isImageCanSlide(item) == true ? 'item-img' : 'item-img item-img-short'" :src="item.data" @error="topicImgError" /> <img v-else :class="isImageCanSlide(item) == true ? 'item-img' : 'item-img item-img-short'" :src="item.url" @error="onImageLoad($event, item)" loading="lazy" /> </div> </cube-scroll> </div> </cube-slide-item> </cube-slide>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions