私はanglejsでflexsliderを使用しています。私はvue.js 2のlaravel 5.3プロジェクトに取り組んでいます。私はこのjsfiddleのようなスライダーを作成する方法を見つけましたが、私が望むのはflexsliderがどのように画像に矢印を付けるかということです。Vuejs 2画像スライダー
new Vue({
el: 'image-slider',
data: {
images: ['http://i.imgur.com/vYdoAKu.jpg', 'http://i.imgur.com/PUD9HQL.jpg', 'http://i.imgur.com/Lfv18Sb.jpg', 'http://i.imgur.com/tmVJtna.jpg', 'http://i.imgur.com/ZfFAkWZ.jpg'],
currentNumber: 0,
timer: null
},
ready: function() {
this.startRotation();
},
methods: {
startRotation: function() {
this.timer = setInterval(this.next, 3000);
},
stopRotation: function() {
clearTimeout(this.timer);
this.timer = null;
},
next: function() {
this.currentNumber += 1
},
prev: function() {
this.currentNumber -= 1
}
}
});
これを行うパッケージ、またはこれを許可するコードを変更する方法はありますか?
あなたはこのテーマのように矢印を表示する意味しますか? http://flexslider.woothemes.com/ – choasia
はい、私は実際にそれを同様の方法で動作させたいです –