1 Star 0 Fork 0

wy2010344/npm_mve

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
virtualTreeChildren.d.ts 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
wangyang 提交于 2021-07-31 16:15 . 初始化
export declare type VirtualChildType<EO> = EO | VirtualChild<EO>;
export interface VirtualChildParam<EO> {
remove(e: EO): void;
append(e: EO, isMove?: boolean): void;
insertBefore(e: EO, old: EO, isMove?: boolean): void;
}
/**虚拟的子层树*/
export declare class VirtualChild<EO> {
private param;
private parent?;
private constructor();
private children;
static deepRun<EO>(view: VirtualChildType<EO>, fun: (view: EO) => void): void;
/**自己的后一个节点 */
private after?;
private pureRemove;
remove(index: number): void;
move(oldIndex: number, newIndex: number): void;
private pureInsert;
private nextEL;
insert(index: number, view: VirtualChildType<EO>): void;
private static preformaceAdd;
private static realNextEO;
private static realParentNext;
static newRootChild<EO>(param: VirtualChildParam<EO>): VirtualChild<EO>;
push(view: VirtualChildType<EO>): void;
newChildAt(index: number): VirtualChild<EO>;
newChildAtLast(): VirtualChild<EO>;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/wy2010344/npm_mve.git
[email protected]:wy2010344/npm_mve.git
wy2010344
npm_mve
npm_mve
master

搜索帮助