@@ -27,6 +27,7 @@ export interface IPublicModelNodeChildren<
2727
2828 /**
2929 * 是否为空
30+ *
3031 * @returns
3132 */
3233 get isEmptyNode ( ) : boolean ;
@@ -44,13 +45,15 @@ export interface IPublicModelNodeChildren<
4445
4546 /**
4647 * 删除指定节点
48+ *
4749 * delete the node
4850 * @param node
4951 */
5052 delete ( node : Node ) : boolean ;
5153
5254 /**
5355 * 插入一个节点
56+ *
5457 * insert a node at specific position
5558 * @param node 待插入节点
5659 * @param at 插入下标
@@ -60,6 +63,7 @@ export interface IPublicModelNodeChildren<
6063
6164 /**
6265 * 返回指定节点的下标
66+ *
6367 * get index of node in current children
6468 * @param node
6569 * @returns
@@ -68,6 +72,7 @@ export interface IPublicModelNodeChildren<
6872
6973 /**
7074 * 类似数组 splice 操作
75+ *
7176 * provide the same function with {Array.prototype.splice}
7277 * @param start
7378 * @param deleteCount
@@ -77,6 +82,7 @@ export interface IPublicModelNodeChildren<
7782
7883 /**
7984 * 返回指定下标的节点
85+ *
8086 * get node with index
8187 * @param index
8288 * @returns
@@ -85,6 +91,7 @@ export interface IPublicModelNodeChildren<
8591
8692 /**
8793 * 是否包含指定节点
94+ *
8895 * check if node exists in current children
8996 * @param node
9097 * @returns
@@ -93,19 +100,22 @@ export interface IPublicModelNodeChildren<
93100
94101 /**
95102 * 类似数组的 forEach
103+ *
96104 * provide the same function with {Array.prototype.forEach}
97105 * @param fn
98106 */
99107 forEach ( fn : ( node : Node , index : number ) => void ) : void ;
100108
101109 /**
102110 * 类似数组的 reverse
111+ *
103112 * provide the same function with {Array.prototype.reverse}
104113 */
105114 reverse ( ) : Node [ ] ;
106115
107116 /**
108117 * 类似数组的 map
118+ *
109119 * provide the same function with {Array.prototype.map}
110120 * @param fn
111121 */
@@ -141,27 +151,31 @@ export interface IPublicModelNodeChildren<
141151
142152 /**
143153 * 类似数组的 reduce
154+ *
144155 * provide the same function with {Array.prototype.reduce}
145156 * @param fn
146157 */
147158 reduce ( fn : ( acc : any , cur : Node ) => any , initialValue : any ) : void ;
148159
149160 /**
150161 * 导入 schema
162+ *
151163 * import schema
152164 * @param data
153165 */
154166 importSchema ( data ?: IPublicTypeNodeData | IPublicTypeNodeData [ ] ) : void ;
155167
156168 /**
157169 * 导出 schema
170+ *
158171 * export schema
159172 * @param stage
160173 */
161174 exportSchema ( stage : IPublicEnumTransformStage ) : IPublicTypeNodeSchema ;
162175
163176 /**
164177 * 执行新增、删除、排序等操作
178+ *
165179 * excute remove/add/sort operations
166180 * @param remover
167181 * @param adder
0 commit comments