微信开发者工具打开dist/mp,kswiper无效,轮播图纵向排列,web端正常显示。是我做法有问题吗?
<KSwiper
indicator-dots="indicatorDots"
circular="circularFlag"
autoplay="autoplay"
:duration="duration"
:interval="interval"
>
<KSwiperItem v-for="(item, index) in background" :key="index">
<KView :class="'swiper-item ' + item" />
</KSwiperItem>
</KSwiper>
background: ['one', 'two', 'three']
入口文件 main.js:
import KboneUI from 'kbone-ui'
import 'kbone-ui/lib/weui/weui.css'
Vue.use(KboneUI)
web端:
对应的mp.js文件也要引入css和控件,vue和小程序是分开的