1 Star 0 Fork 0

wy2010344/npm_mve

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
childrenBuilder.d.ts 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
wangyang 提交于 2021-10-15 15:55 . 更新
import { VirtualChild, VirtualChildParam } from "./virtualTreeChildren";
import { BuildResult, mve } from "./util";
/**重复的函数节点/组件封装成mve*/
export interface EOChild<EO> {
(parent: VirtualChild<EO>, me: mve.LifeModel): BuildResult;
}
export declare function refreshInit(result?: BuildResult): BuildResult;
export interface FragmentNode<EO> {
init?: BuildResult;
children: EOChild<EO>[];
}
/**
* 片段自定义组件
* @param config
* @param children
* @returns
*/
export declare function fragment<EO>(p: FragmentNode<EO>): EOChild<EO>;
export interface OriginalNode<EO> {
init?: BuildResult;
children: EO[];
}
/**
* 原生组件
* @param config
* @param children
*/
export declare function original<EO>(p: OriginalNode<EO>): EOChild<EO>;
export declare function baseChildrenBuilder<EO>(me: mve.LifeModel, children: EOChild<EO>, parent: VirtualChild<EO>): BuildResult;
export declare function childrenBuilder<EO>(me: mve.LifeModel, x: VirtualChildParam<EO>, children: EOChild<EO>[]): BuildResult;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/wy2010344/npm_mve.git
[email protected]:wy2010344/npm_mve.git
wy2010344
npm_mve
npm_mve
master

搜索帮助