2017-01-11 6 views
0

私はfoundation orbitにデータベースからのデータが必要ですが、このデータには画像キャプションとテキストが含まれています。vueコンポーネントのv-forを使用した基幹軌道

私はAPIからのすべての情報を取得する必要が
... 
<template> 
    <div class="contemporary orbit" role="region" aria-label="Contemporary Pictures" v-f-orbit> 
     <div v-for="development in components.other_developments"> 
     <ul class="orbit-container" style="height: 500px"> 

      <h1 class="other-developments-orbit-title">{{development.name}}</h1> 

      <button class="orbit-previous"><span class="show-for-sr">Previous Slide</span>&#9664;&#xFE0E;</button> 
      <button class="orbit-next"><span class="show-for-sr">Next Slide</span>&#9654;&#xFE0E;</button> 

      <p class="other-developments-orbit-text">{{development.description}}</p> 

      <a class="other-developments-orbit-button button" id="custom-button">VISIT WEBSITE <i class="fa fa-long-arrow-right" aria-hidden="true"></i> 
      </a> 

      <li class="is-active orbit-slide" data-use-m-u-i="false"> 
       <img class="other-developments-image orbit-image" :src="development.image_url" alt="Space"> 
      </li> 
     </ul> 
     </div> 
    </div> 
</template> 
... 

は、それがスライドするのではなく、その下に最初のものと山までの残りの部分を取り出し、次のように私はvue componentを使用しています。どこですべてのデータをスライドさせるためにv-for directiveを置くことができますか?

答えて

0

これはまだ見つかりませんでしたが、より良い解決策が使用されるでしょうSlick Carousel

関連する問題