uViewUI轮播图u-swiper去掉标题背景灰黑色的方法:
其实uViewUI作者已经在Props属性里有说明了,小白看不懂,不知道怎么操作而已。
就是给u-swiper绑定一个自定义标题样式属性:title-style="abc",
给这个属性传递对象(Object)类型的数据(值)即可。
去掉前:

去掉后:

上代码:
<template>
<view>
<u-swiper :list="banner" title="true" :title-style="abc"></u-swiper>
</view>
</template>
<script>
export default {
data() {
return {
abc:{
'background-color':'rgba(0, 0, 0, 0)',
},
}
}
}
</script>
<style>
</style>