mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Refactor #5592 - For Media section components
This commit is contained in:
parent
527bae0beb
commit
2c45303235
12 changed files with 82 additions and 84 deletions
|
@ -9,17 +9,17 @@ const classes = {
|
|||
}
|
||||
],
|
||||
header: 'p-carousel-header',
|
||||
content: 'p-carousel-content-container',
|
||||
container: 'p-carousel-content',
|
||||
contentContainer: 'p-carousel-content-container',
|
||||
content: 'p-carousel-content',
|
||||
previousButton: ({ instance }) => [
|
||||
'p-carousel-prev-button',
|
||||
{
|
||||
'p-disabled': instance.backwardIsDisabled
|
||||
}
|
||||
],
|
||||
itemsContent: 'p-carousel-viewport',
|
||||
itemsContainer: 'p-carousel-items',
|
||||
itemCloned: ({ index, value, totalShiftedItems, d_numVisible }) => [
|
||||
viewport: 'p-carousel-viewport',
|
||||
itemList: 'p-carousel-item-list',
|
||||
itemClone: ({ index, value, totalShiftedItems, d_numVisible }) => [
|
||||
'p-carousel-item p-carousel-item-clone',
|
||||
{
|
||||
'p-carousel-item-active': totalShiftedItems * -1 === value.length + d_numVisible,
|
||||
|
@ -41,7 +41,7 @@ const classes = {
|
|||
'p-disabled': instance.forwardIsDisabled
|
||||
}
|
||||
],
|
||||
indicators: 'p-carousel-indicators',
|
||||
indicatorList: 'p-carousel-indicator-list',
|
||||
indicator: ({ instance, index }) => [
|
||||
'p-carousel-indicator',
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue