Skip to content

Commit d32d2e3

Browse files
authored
feat(NePaginator): add listboxOptionsPanelStyle prop (#95)
1 parent eff20ac commit d32d2e3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/components/NePaginator.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ const props = defineProps({
4747
pageSizeLabel: {
4848
type: String,
4949
required: true
50+
},
51+
listboxOptionsPanelStyle: {
52+
type: String,
53+
default: ''
5054
}
5155
})
5256
@@ -136,6 +140,7 @@ function navigateToPage(page: number) {
136140
no-options-label=""
137141
optional-label=""
138142
aria-labelledby="page-size-label"
143+
:options-panel-style="listboxOptionsPanelStyle"
139144
/>
140145
</div>
141146
</div>

stories/NePaginator.stories.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const meta: Meta<typeof NePaginator> = {
1717
nextLabel: 'Go to next page',
1818
navPaginationLabel: 'Pagination',
1919
rangeOfTotalLabel: 'of',
20-
pageSizeLabel: 'Show'
20+
pageSizeLabel: 'Show',
21+
listboxOptionsPanelStyle: ''
2122
}
2223
}
2324

0 commit comments

Comments
 (0)