mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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>
This commit is contained in:
@@ -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<typeof TimePicker> &
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user