mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
12218c8454
- Finish implementing tooltip-v2
21 lines
523 B
TypeScript
21 lines
523 B
TypeScript
import { buildProps, definePropType } from '@element-plus/utils'
|
|
|
|
import type { ExtractPropTypes } from 'vue'
|
|
|
|
const EventHandler = {
|
|
type: definePropType<(e: Event) => boolean | void>(Function),
|
|
} as const
|
|
|
|
export const tooltipV2TriggerProps = buildProps({
|
|
onBlur: EventHandler,
|
|
onClick: EventHandler,
|
|
onFocus: EventHandler,
|
|
onMouseDown: EventHandler,
|
|
onMouseEnter: EventHandler,
|
|
onMouseLeave: EventHandler,
|
|
} as const)
|
|
|
|
export type TooltipV2TriggerProps = ExtractPropTypes<
|
|
typeof tooltipV2TriggerProps
|
|
>
|