This commit is contained in:
2021-06-20 23:44:08 +08:00
parent 44e2ecb5e3
commit 1811871f5f
5 changed files with 61 additions and 29170 deletions
+24 -16337
View File
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -22,8 +22,7 @@ class App extends React.Component{
return (
<div className="App">
<div className="banner">
<Swiper
data={this.state.images}></Swiper>
<Swiper data={this.state.images}></Swiper>
</div>
</div>
)
+1 -2
View File
@@ -11,8 +11,7 @@ export default class Swiper extends React.Component{
this.aData=[];
this.index=0;
}
changeImg(index){
console.log(index)
changeImg=(index)=>{
this.isInit=false;
this.index=index;
if(this.aData && this.aData.length>0){
+11 -7
View File
@@ -20,22 +20,26 @@
.my-swiper-main .slide img{
width:100%;
height:100%;
border:
0 none;
border:0 none;
}
.my-swiper-main .pagination{
width:auto;
height:auto;
position: absolute;z-index: 3;
left:50%;bottom:8%;transform: translateX(-50%)}
position: absolute;
z-index: 3;
left:50%;
bottom:8%;
transform: translateX(-50%);
}
.my-swiper-main .pagination .dot{
width:
30px;height:8px;
width:30px;
height:8px;
background-color:rgba(0,0,0,0.8);
cursor:pointer;
display: inline-block;
margin-left:2.5px;
margin-right:2.5px;}
margin-right:2.5px;
}
.my-swiper-main .pagination .dot.active{
background-color:rgba(255,255,255,0.8)
}
+24 -12822
View File
File diff suppressed because it is too large Load Diff