You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
738 B
Plaintext

declare type SelectionRangeType = HTMLElement | ChildNode[];
declare type SetSelectionRangeType = SelectionRangeType | DocumentFragment;
export declare type SelectionRangeElemType = SelectionRangeType | null;
/**
* @description 选区的 Element
* @author tonghan
*/
declare class SelectionRangeElem {
private _element;
constructor();
/**
* 设置 SelectionRangeElem 的值
* @param { SetSelectionRangeType } data
*/
set(data: SetSelectionRangeType): void;
/**
* 获取 SelectionRangeElem 的值
* @returns { SelectionRangeType } Elem
*/
get(): SelectionRangeElemType;
/**
* 清除 SelectionRangeElem 的值
*/
clear(): void;
}
export default SelectionRangeElem;