@@ -176,7 +176,7 @@ const initState = ({ api, reactive, vm, computed, props, utils, parent, breakpoi
176176 return state
177177}
178178
179- const initApi = ( { api, props, hooks, state, vnode, others, utils, parent } ) => {
179+ const initApi = ( { api, props, hooks, state, vnode, others, utils, parent, isPCMode } ) => {
180180 const { t, emit, dispatch, nextTick, vm } = vnode
181181 const { TimePanel, TimeRangePanel } = others
182182 const { destroyPopper, popperElm, updatePopper } = initPopper ( { props, hooks, vnode } )
@@ -190,7 +190,7 @@ const initApi = ({ api, props, hooks, state, vnode, others, utils, parent }) =>
190190 hidePicker : hidePicker ( { destroyPopper, state } ) ,
191191 handleSelectChange : ( { tz, date } ) => ! state . ranged && emit ( 'select-change' , { tz, date } ) ,
192192 getPanel : getPanel ( others ) ,
193- handleFocus : handleFocus ( { emit, vm, state, api, props } ) ,
193+ handleFocus : handleFocus ( { emit, vm, state, api, props, isPCMode } ) ,
194194 getTimezone : getTimezone ( { props, utils } ) ,
195195 emitChange : emitChange ( { api, dispatch, emit, props, state } ) ,
196196 parsedValue : parsedValue ( { api, props, state, t } ) ,
@@ -213,7 +213,7 @@ const initApi = ({ api, props, hooks, state, vnode, others, utils, parent }) =>
213213 handleClose : handleClose ( { api, props, state } ) ,
214214 displayValue : displayValue ( { api, props, state } ) ,
215215 handlePick : handlePick ( { api, state } ) ,
216- watchPickerVisible : watchPickerVisible ( { api, vm, dispatch, emit, props, state, nextTick } ) ,
216+ watchPickerVisible : watchPickerVisible ( { api, vm, dispatch, emit, props, state, nextTick, isPCMode } ) ,
217217 watchMobileVisible : watchMobileVisible ( { api, props, state, nextTick } ) ,
218218 formatToString : formatToString ( { api, state } ) ,
219219 watchIsRange : watchIsRange ( { api, state, TimePanel, TimeRangePanel } ) ,
@@ -306,14 +306,14 @@ export const renderless = (
306306) : IPickerApi => {
307307 const api = { } as IPickerApi
308308 const { reactive, computed, watch, onBeforeUnmount, inject, markRaw, onMounted } = hooks
309- const { vm, service, parent, useBreakpoint } = vnode
309+ const { vm, service, parent, useBreakpoint, isPCMode } = vnode
310310 const { utils = { } } = service || { }
311311 const breakpoint = useBreakpoint ( )
312312 const state = initState ( { api, reactive, vm, computed, props, utils, parent, inject, breakpoint } )
313313
314314 parent . tinyForm = parent . tinyForm || inject ( 'form' , null )
315315
316- initApi ( { api, props, hooks, state, vnode, others, utils, parent } )
316+ initApi ( { api, props, hooks, state, vnode, others, utils, parent, isPCMode } )
317317 initWatch ( { api, state, props, watch, markRaw } )
318318
319319 api . initGlobalTimezone ( )
0 commit comments