@@ -161,11 +161,14 @@ const initApi = ({
161161 dispatch,
162162 broadcast,
163163 emit,
164- refs ,
164+ vm ,
165165 props,
166166 CLASS_PREFIX ,
167167 parent
168- } : Pick < IInputRenderlessParams , 'api' | 'state' | 'dispatch' | 'broadcast' | 'emit' | 'refs' | 'props' | 'parent' > & {
168+ } : Pick <
169+ IInputRenderlessParams ,
170+ 'api' | 'state' | 'dispatch' | 'broadcast' | 'emit' | 'refs' | 'props' | 'parent' | 'vm'
171+ > & {
169172 CLASS_PREFIX : IInputClassPrefixConstants
170173} ) => {
171174 Object . assign ( api , {
@@ -174,7 +177,7 @@ const initApi = ({
174177 broadcast,
175178 showBox : showBox ( state ) ,
176179 clear : clear ( emit ) ,
177- getInput : getInput ( refs ) ,
180+ getInput : getInput ( vm ) ,
178181 handleChange : handleChange ( emit ) ,
179182 watchFormSelect : watchFormSelect ( { emit, props, state } ) ,
180183 calcIconOffset : calcIconOffset ( { CLASS_PREFIX , parent } ) ,
@@ -327,7 +330,7 @@ export const renderless = (
327330 }
328331 const state = initState ( { reactive, computed, mode, props, parent, constants, api } )
329332
330- initApi ( { api, state, dispatch, broadcast, emit, refs, props, CLASS_PREFIX , parent } )
333+ initApi ( { api, state, dispatch, broadcast, emit, refs, props, CLASS_PREFIX , parent, vm } )
331334
332335 const storages = useStorageBox ( { api, props, reactive, toRefs } )
333336
0 commit comments