@dignite-ng/expand.dynamic-form 3.1.6 → 3.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/form/tree/tree-config.component.mjs +52 -5
- package/esm2022/lib/components/form/tree/tree-control.component.mjs +45 -5
- package/fesm2022/dignite-ng-expand.dynamic-form.mjs +91 -5
- package/fesm2022/dignite-ng-expand.dynamic-form.mjs.map +1 -1
- package/lib/components/form/tree/tree-config.component.d.ts +11 -0
- package/lib/components/form/tree/tree-control.component.d.ts +10 -0
- package/package.json +1 -1
|
@@ -34,8 +34,19 @@ export declare class TreeConfigComponent implements AfterViewChecked {
|
|
|
34
34
|
nodes: any[];
|
|
35
35
|
/**已展开的节点 */
|
|
36
36
|
anExpandedNode: any[];
|
|
37
|
+
/**是否全部展开 */
|
|
38
|
+
isAllExpanded: boolean;
|
|
37
39
|
/**点击展开树节点图标触发 */
|
|
38
40
|
nzExpandChange(event: any): void;
|
|
41
|
+
/**切换展开/收缩所有节点 */
|
|
42
|
+
toggleExpandAll(): void;
|
|
43
|
+
setExpanded(nodes: any[], expanded: boolean): string[];
|
|
44
|
+
/**获取所有有子节点的节点的key */
|
|
45
|
+
private getAllNodeKeys;
|
|
46
|
+
/**检查是否有任何节点包含子节点 */
|
|
47
|
+
hasAnyNodeWithChildren(): boolean;
|
|
48
|
+
/**更新展开状态 */
|
|
49
|
+
private updateExpandedState;
|
|
39
50
|
/**正在操作的节点项 */
|
|
40
51
|
selectTree: any;
|
|
41
52
|
/**是否创建子节点 */
|
|
@@ -30,8 +30,18 @@ export declare class TreeControlComponent implements OnDestroy, AfterViewChecked
|
|
|
30
30
|
nodes: any[];
|
|
31
31
|
/**已展开的节点 */
|
|
32
32
|
anExpandedNode: any[];
|
|
33
|
+
/**是否全部展开 */
|
|
34
|
+
isAllExpanded: boolean;
|
|
33
35
|
/**点击展开树节点图标触发 */
|
|
34
36
|
nzExpandChange(event: any): void;
|
|
37
|
+
/**切换展开/收缩所有节点 */
|
|
38
|
+
toggleExpandAll(): void;
|
|
39
|
+
/**递归设置nodes中的expanded值 并且返回一个数组 */
|
|
40
|
+
private setExpanded;
|
|
41
|
+
/**获取所有有子节点的节点的key */
|
|
42
|
+
private getAllNodeKeys;
|
|
43
|
+
/**检查是否有任何节点包含子节点 */
|
|
44
|
+
hasAnyNodeWithChildren(): boolean;
|
|
35
45
|
/**切换节点选中状态 */
|
|
36
46
|
toggleNodeChecked(event: any, node: any): void;
|
|
37
47
|
/**清除所有节点的选中状态 */
|