mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
fix: allow autoplay when value has valid count
This commit is contained in:
parent
96ad315316
commit
1be7b681e8
1 changed files with 5 additions and 2 deletions
|
@ -601,11 +601,14 @@ export default {
|
|||
isVertical() {
|
||||
return this.orientation === 'vertical';
|
||||
},
|
||||
hasValidItemCount() {
|
||||
return this.value && this.value.length >= this.d_numVisible;
|
||||
},
|
||||
isCircular() {
|
||||
return this.value && this.d_circular && this.value.length >= this.d_numVisible;
|
||||
return this.hasValidItemCount() && this.d_circular;
|
||||
},
|
||||
isAutoplay() {
|
||||
return this.autoplayInterval && this.allowAutoplay;
|
||||
return this.hasValidItemCount() && this.autoplayInterval && this.allowAutoplay;
|
||||
},
|
||||
firstIndex() {
|
||||
return this.isCircular() ? -1 * (this.totalShiftedItems + this.d_numVisible) : this.totalShiftedItems * -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue