From c3654150f2efa309acaca2ef952f7268cd53baa1 Mon Sep 17 00:00:00 2001 From: snowbitx <109521682+snowbitx@users.noreply.github.com> Date: Thu, 29 Jan 2026 09:05:57 +0800 Subject: [PATCH] feat(components): [time-picker] supplement type for TimePickerInstance (#23536) * chore(components): [time-picker] export TimePicker instance type * Apply suggestion from @Dsaquel Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com> --------- Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com> --- packages/components/time-picker/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/components/time-picker/index.ts b/packages/components/time-picker/index.ts index 92781a9ca0..ea0b637cc0 100644 --- a/packages/components/time-picker/index.ts +++ b/packages/components/time-picker/index.ts @@ -5,6 +5,14 @@ import TimePickPanel from './src/time-picker-com/panel-time-pick.vue' import type { SFCWithInstall } from '@element-plus/utils' +export type TimePickerInstance = InstanceType & + TimePickerExpose +export type TimePickerExpose = { + focus: () => void + blur: () => void + handleOpen: () => void + handleClose: () => void +} export * from './src/utils' export * from './src/constants' export * from './src/common/props'