1
私は反復アイテムカルーセルを作る方法を探しています。リターンパグ.carousel-item${activeornot}
アクティブなクラスのブートストラップカルーセルを反復データに追加すると、反応するアプリケーションの最初のキーだけが返されます
return _.map(this.props.editor_pick_data, function (value, key){
if(key == 0){
}
return (
pug`
.carousel-item.active(key=${key}, style=${{display: 'relative'}})
.col-md-3.col-sm-6.col-xs-12npm
a.thumbnail(href="#")
img.img-responsive(src=${value.item.images[1].big_thumbnail})
`
)
})
ああその構造がどのように実装それ。感謝は完璧に働く –