@@ -102,7 +102,7 @@ const initWatcher = ({
102
102
export const renderless = (
103
103
props : ITabsProps ,
104
104
{ onMounted, onUpdated, provide, reactive, watch } : ISharedRenderlessParamHooks ,
105
- { refs, parent, emit, constants, nextTick, childrenHandler } : ITabsRenderlessParamUtils
105
+ { refs, parent, vm , emit, constants, nextTick, childrenHandler } : ITabsRenderlessParamUtils
106
106
) : ITabsApi => {
107
107
const api = { } as ITabsApi
108
108
const state : ITabsState = initState ( { reactive, props } )
@@ -113,20 +113,20 @@ export const renderless = (
113
113
handleTabRemove : handleTabRemove ( { emit, props } ) ,
114
114
changeDirection : changeDirection ( { props, state } ) ,
115
115
changeCurrentName : changeCurrentName ( { emit, state } ) ,
116
- calcMorePanes : calcMorePanes ( { parent , props, state, refs } ) ,
117
- calcExpandPanes : calcExpandPanes ( { parent , props, state } ) ,
118
- calcPaneInstances : calcPaneInstances ( { constants, parent , state, childrenHandler } ) ,
116
+ calcMorePanes : calcMorePanes ( { vm , props, state, refs } ) ,
117
+ calcExpandPanes : calcExpandPanes ( { vm , props, state } ) ,
118
+ calcPaneInstances : calcPaneInstances ( { constants, vm , state, childrenHandler } ) ,
119
119
handleTabDragStart : handleTabDragStart ( { emit } ) ,
120
120
handleTabDragOver : handleTabDragOver ( { emit } ) ,
121
121
handleTabDragEnd : handleTabDragEnd ( { state, emit } ) ,
122
122
handleTabClick : handleTabClick ( { api, emit, props, refs } ) ,
123
123
setCurrentName : setCurrentName ( { api, props, refs, state } ) ,
124
- created : created ( { api, parent , state } )
124
+ created : created ( { api, vm , state } )
125
125
} )
126
126
127
127
api . created ( )
128
128
129
- provide ( 'rootTabs' , parent )
129
+ provide ( 'rootTabs' , vm )
130
130
131
131
provide ( 'separator' , state . separator )
132
132
0 commit comments