File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 24
24
height : 380px ;
25
25
border-radius : 4px ;
26
26
}
27
-
28
27
</ style >
29
28
</ head >
30
29
33
32
< sm-web-map map-id ='567946816 ' :map-options ="mapOptions " server-url ='https://www.supermapol.com '
34
33
tianditu-key ='1d109683f4d84198e37a38c442d68311 ' @load ="mapLoaded ">
35
34
</ sm-web-map >
36
- < sm-slideshow :collapsed ="false " :autoplay ="autoplay " :pagination ="pagination " @change ="slideChange ">
35
+ < sm-slideshow v-if ="content.length > 0 " :collapsed ="false " :autoplay ="autoplay " :pagination ="pagination "
36
+ @change ="slideChange ">
37
37
< sm-slideshow-item v-for ="item of content " :key ="item.title ">
38
38
< h3 style ="margin-top: 8px; "> {{ item.title }}</ h3 >
39
39
< p style ="padding: 8px; "> {{ item.description }}</ p >
@@ -54,6 +54,7 @@ <h3 style="margin-top: 8px;">{{ item.title }}</h3>
54
54
} ,
55
55
content : '' ,
56
56
pagination : {
57
+ el : '.swiper-pagination' ,
57
58
type : 'bullets' ,
58
59
clickable : true
59
60
} ,
@@ -93,6 +94,7 @@ <h3 style="margin-top: 8px;">{{ item.title }}</h3>
93
94
} ,
94
95
mapLoaded ( e ) {
95
96
this . map = e . map ;
97
+ this . slideChange ( { realIndex : 0 } ) ;
96
98
}
97
99
}
98
100
} )
You can’t perform that action at this time.
0 commit comments