tooltip-event.d.ts 476 B

123456789101112131415161718
  1. /**
  2. * @description tooltip 事件
  3. * @author lkw
  4. */
  5. import { DomElement } from '../../../utils/dom-core';
  6. import Editor from '../../../editor/index';
  7. /**
  8. * 生成 Tooltip 的显示隐藏函数
  9. */
  10. export declare function createShowHideFn(editor: Editor): {
  11. showCodeTooltip: ($code: DomElement) => void;
  12. hideCodeTooltip: () => void;
  13. };
  14. /**
  15. * 绑定 tooltip 事件
  16. * @param editor 编辑器实例
  17. */
  18. export default function bindTooltipEvent(editor: Editor): void;