File tree Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 259
259
"VTabs" : {
260
260
"props" : {
261
261
"spaced" : " 3.10.0"
262
+ },
263
+ "slots" : {
264
+ "next" : " 3.11.0" ,
265
+ "prev" : " 3.11.0"
262
266
}
263
267
},
264
268
"VTextField" : {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ interface SlideGroupSlot {
42
42
isSelected : GroupProvide [ 'isSelected' ]
43
43
}
44
44
45
- type VSlideGroupSlots = {
45
+ export type VSlideGroupSlots = {
46
46
default : SlideGroupSlot
47
47
prev : SlideGroupSlot
48
48
next : SlideGroupSlot
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ export type VTabsSlots<T> = {
35
35
tab : VTabsSlot < T >
36
36
item : VTabsSlot < T >
37
37
window : never
38
+ prev : never
39
+ next : never
38
40
} & {
39
41
[ key : `tab.${string } `] : VTabsSlot < T >
40
42
[ key : `item.${string } `] : VTabsSlot < T >
@@ -144,19 +146,23 @@ export const VTabs = genericComponent<new <T = TabItem>(
144
146
{ ...scopeId }
145
147
{ ...attrs }
146
148
>
147
- { slots . default ?.( ) ?? items . value . map ( item => (
148
- slots . tab ?.( { item } ) ?? (
149
- < VTab
150
- { ...item }
151
- key = { item . text }
152
- value = { item . value }
153
- spaced = { props . spaced }
154
- v-slots = { {
155
- default : slots [ `tab.${ item . value } ` ] ? ( ) => slots [ `tab.${ item . value } ` ] ?.( { item } ) : undefined ,
156
- } }
157
- />
158
- )
159
- ) ) }
149
+ { {
150
+ default : slots . default ?? ( ( ) => items . value . map ( item => (
151
+ slots . tab ?.( { item } ) ?? (
152
+ < VTab
153
+ { ...item }
154
+ key = { item . text }
155
+ value = { item . value }
156
+ spaced = { props . spaced }
157
+ v-slots = { {
158
+ default : slots [ `tab.${ item . value } ` ] ? ( ) => slots [ `tab.${ item . value } ` ] ?.( { item } ) : undefined ,
159
+ } }
160
+ />
161
+ )
162
+ ) ) ) ,
163
+ prev : slots . prev ,
164
+ next : slots . next ,
165
+ } }
160
166
</ VSlideGroup >
161
167
162
168
{ hasWindow && (
You can’t perform that action at this time.
0 commit comments