uni app首屏切换闪屏问题的解决办法
//首页tabbar切换 闪屏import loadingPlus from “@/common/mixin/loading-plus.vue”Vue.component(‘loading-plus’,loadingPlus)
·
1.首页tabbar切换 闪屏
import loadingPlus from “@/common/mixin/loading-plus.vue”
Vue.component(‘loading-plus’,loadingPlus)
2.swiper 组件自定义小圆点
建立一个和swiper同级的组件,在组件定义小圆点的样式或者用
import uniSwiperDot from ‘@/components/uni-swiper-dot/uni-swiper-dot.vue’; uni app自带的样式
.swiper-point{
position: absolute;
bottom: 20rpx;
left: 45%;
display: flex;
.point{
width: 10rpx;
height: 10rpx;
margin-right: 12rpx;
border-radius: 5rpx;
background: #FFFFFF;
}
.point-on{
width: 40rpx;
height: 10rpx;
background: rgba(0,0,0,.15);
}
}
3.uni -app 的ui框架 是
更多推荐
已为社区贡献1条内容
所有评论(0)