2022-03-26 18:53:56 +08:00
|
|
|
import { buildProps, definePropType } from '@element-plus/utils'
|
2022-03-26 13:33:24 +08:00
|
|
|
|
|
|
|
import type { ExtractPropTypes } from 'vue'
|
|
|
|
|
2022-03-26 18:53:56 +08:00
|
|
|
const EventHandler = {
|
|
|
|
type: definePropType<(e: Event) => boolean | void>(Function),
|
|
|
|
} as const
|
|
|
|
|
2022-03-27 10:55:03 +08:00
|
|
|
export const tooltipV2TriggerProps = buildProps({
|
2022-03-26 18:53:56 +08:00
|
|
|
onBlur: EventHandler,
|
|
|
|
onClick: EventHandler,
|
|
|
|
onFocus: EventHandler,
|
|
|
|
onMouseDown: EventHandler,
|
|
|
|
onMouseEnter: EventHandler,
|
|
|
|
onMouseLeave: EventHandler,
|
2022-03-26 13:33:24 +08:00
|
|
|
} as const)
|
|
|
|
|
2022-03-27 10:55:03 +08:00
|
|
|
export type TooltipV2TriggerProps = ExtractPropTypes<
|
|
|
|
typeof tooltipV2TriggerProps
|
2022-03-26 13:33:24 +08:00
|
|
|
>
|