mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
30 lines
554 B
TypeScript
30 lines
554 B
TypeScript
import { ref } from 'vue'
|
|
|
|
export const genTooltipProvides = () => {
|
|
const onOpen = jest.fn()
|
|
const onClose = jest.fn()
|
|
const onToggle = jest.fn()
|
|
const onShow = jest.fn()
|
|
const onHide = jest.fn()
|
|
const onBeforeShow = jest.fn()
|
|
const onBeforeHide = jest.fn()
|
|
const id = ref('test_id')
|
|
const open = ref(false)
|
|
const controlled = ref(false)
|
|
const trigger = ref('hover')
|
|
|
|
return {
|
|
onToggle,
|
|
onOpen,
|
|
onClose,
|
|
onShow,
|
|
onHide,
|
|
onBeforeShow,
|
|
onBeforeHide,
|
|
id,
|
|
open,
|
|
controlled,
|
|
trigger,
|
|
}
|
|
}
|