File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2424 height : 380px ;
2525 border-radius : 4px ;
2626 }
27-
2827 </ style >
2928</ head >
3029
3332 < sm-web-map map-id ='567946816 ' :map-options ="mapOptions " server-url ='https://www.supermapol.com '
3433 tianditu-key ='1d109683f4d84198e37a38c442d68311 ' @load ="mapLoaded ">
3534 </ 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 ">
3737 < sm-slideshow-item v-for ="item of content " :key ="item.title ">
3838 < h3 style ="margin-top: 8px; "> {{ item.title }}</ h3 >
3939 < p style ="padding: 8px; "> {{ item.description }}</ p >
@@ -54,6 +54,7 @@ <h3 style="margin-top: 8px;">{{ item.title }}</h3>
5454 } ,
5555 content : '' ,
5656 pagination : {
57+ el : '.swiper-pagination' ,
5758 type : 'bullets' ,
5859 clickable : true
5960 } ,
@@ -93,6 +94,7 @@ <h3 style="margin-top: 8px;">{{ item.title }}</h3>
9394 } ,
9495 mapLoaded ( e ) {
9596 this . map = e . map ;
97+ this . slideChange ( { realIndex : 0 } ) ;
9698 }
9799 }
98100 } )
You can’t perform that action at this time.
0 commit comments