import { type VNode } from "vue-demi"; import type { Events } from "./types"; export default class EPGItem { /** * 当前 EPGItem 的 DOM 元素 */ el: HTMLElement | undefined; /** * 当前元素是否未默认选择的元素 */ isDefault: boolean; /** * 是否为当前焦点 */ isFocus: boolean; /** * 当前元素的唯一 ID */ id: string; /** * 返回当前 EPGItem 的 HTMLElement 的 getBoundingClientRect */ getRect(): DOMRect | undefined; /** * 当前元素的所有监听器函数 */ events: Events; focusClass: string | undefined; constructor(vnode: VNode, binding: { [x: string]: any; value: { default: boolean; class: string; }; }); }