interface FiveDomEventMap {
    click: ((event: FiveDomEvent) => boolean | void);
    dblclick: ((event: FiveDomEvent) => void);
    drag: ((event: FiveDomEvent) => void);
    dragend: ((event: FiveDomEvent) => void);
    dragstart: ((event: FiveDomEvent) => void);
    hover: ((event: FiveDomEvent) => void);
    mousedown: ((event: FiveDomEvent) => void);
    mouseup: ((event: FiveDomEvent) => void);
    unHover: ((event: FiveDomEvent) => void);
}

Properties

click: ((event: FiveDomEvent) => boolean | void)

Type declaration

    • (event): boolean | void
    • Parameters

      Returns boolean | void

      返回 false 可以不阻止 five 的 tap 事件; default: true

点击事件

dblclick: ((event: FiveDomEvent) => void)

双击事件

drag: ((event: FiveDomEvent) => void)

@description: 拖动中

dragend: ((event: FiveDomEvent) => void)

@description: 拖动结束

dragstart: ((event: FiveDomEvent) => void)

@description: 拖动开始

hover: ((event: FiveDomEvent) => void)

鼠标移入事件

mousedown: ((event: FiveDomEvent) => void)

鼠标按下事件

mouseup: ((event: FiveDomEvent) => void)

鼠标抬起事件

unHover: ((event: FiveDomEvent) => void)

鼠标移出事件