科斯洛伐飞
科斯洛伐飞
  • 发布:2019-06-03 14:34
  • 更新:2019-06-03 15:52
  • 阅读:2255

uin-app引入swiper浏览器上不显示,微信小程序显示,这个是为什么呢?

分类:uni-app

查看样式的时候,没有渲染出来

2019-06-03 14:34 负责人:无 分享
已邀请:
xx_

xx_

template里怎么写的

  • 科斯洛伐飞 (作者)

    <template>

    <view>

    <view class="uni-padding-wrap">

    <view class="page-section swiper">

    <view class="page-section-spacing">

    <swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">

    <swiper-item>

    <view class="swiper-item uni-bg-red">A</view>

    </swiper-item>

    <swiper-item>

    <view class="swiper-item uni-bg-green">B</view>

    </swiper-item>

    <swiper-item>

    <view class="swiper-item uni-bg-blue">C</view>

    </swiper-item>

    </swiper>

    </view>

    </view>

    </view>

    <view class="swiper-list">

    <view class="uni-list-cell uni-list-cell-pd">

    <view class="uni-list-cell-db">指示点</view>

    <switch :checked="indicatorDots" @change="changeIndicatorDots" />

    </view>

    <view class="uni-list-cell uni-list-cell-pd">

    <view class="uni-list-cell-db">自动播放11</view>

    <switch :checked="autoplay" @change="changeAutoplay" />

    </view>

    </view>

    <view class="uni-padding-wrap">

    <view class="uni-common-mt">

    <text>幻灯片切换时长(ms)</text>

    <text class="info">{{duration}}</text>

    </view>

    <slider @change="durationChange" :value="duration" min="500" max="2000" />

    <view class="uni-common-mt">

    <text>自动播放间隔时长(ms)</text>

    <text class="info">{{interval}}</text>

    </view>

    <slider @change="intervalChange" :value="interval" min="2000" max="10000" />

    </view>

    </view>

    </template>

    2019-06-03 22:32

  • 科斯洛伐飞 (作者)

    这个里面就是例子的源码啊

    2019-06-03 22:33

该问题目前已经被锁定, 无法添加新回复