收藏
回答

swiper中包含live-player不能滑动吗?

<swiper
  class="swiper-box"
  duration="300"
  :circular="circular"
  :current="current"
  :vertical="true"
  bindanimationfinish="swiperChange"
  bindtap="tabVideo"
>
  <swiper-item v-for="(item, index) in videoObjList" :key="index">
    <!-- 直播 -->
    <live-player
        v-if="topicDetail.liveStatus && topicDetail.liveStatus.code === 2"
        :src="playUrl"
        :style="{ height: poptype === 'video-share' ? 0 : showSlide && goodsList.length > 0 ? '50%' : '100%' }"
        autoplay
        :class="{ goodsListShow: showSlide && goodsList.length > 0, 'textinput-show': liveTextInputShow }"
        objectFit="fillCrop"
        binderror="livePlayerError"
        :controls="false"
  >
    <cover-view class="flex-box" style="position: relative;">
        <cover-view class="live-info">
            <!--主播信息-->
            <live-celebrity
                    :avatar="topicDetail.liveHostInfo.headImg.url"
                    :name="topicDetail.liveHostInfo.userName"
                    :spectators-number="maxUserNum + lang.watch"
            ></live-celebrity>
        </cover-view>
    </cover-view>
</live-player>
  </swiper-item>
</swiper>
像这样,swiper里包含直播组件,直播组件上有其他的内容,直播组件宽为100%, 高为100%,这样是滑动不了的吗?
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签