mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
26 lines
452 B
TypeScript
26 lines
452 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 id = ref('test_id')
|
||
|
const open = ref(false)
|
||
|
const controlled = ref(false)
|
||
|
const trigger = ref('hover')
|
||
|
|
||
|
return {
|
||
|
onToggle,
|
||
|
onOpen,
|
||
|
onClose,
|
||
|
onShow,
|
||
|
onHide,
|
||
|
id,
|
||
|
open,
|
||
|
controlled,
|
||
|
trigger,
|
||
|
}
|
||
|
}
|