diff --git a/projects/ui/src/lib/components/po-tree-view/po-tree-view-base.component.ts b/projects/ui/src/lib/components/po-tree-view/po-tree-view-base.component.ts index 49fc92aad0..a97d6fb46e 100644 --- a/projects/ui/src/lib/components/po-tree-view/po-tree-view-base.component.ts +++ b/projects/ui/src/lib/components/po-tree-view/po-tree-view-base.component.ts @@ -67,6 +67,7 @@ export class PoTreeViewBaseComponent { private _items: Array = []; private _selectable: boolean = false; + private _maxLevel = poTreeViewMaxLevel; /** * Lista de itens do tipo `PoTreeViewItem` que será renderizada pelo componente. @@ -98,7 +99,6 @@ export class PoTreeViewBaseComponent { return this._selectable; } - private _maxLevel = poTreeViewMaxLevel; /** * @optional * diff --git a/projects/ui/src/lib/components/po-tree-view/po-tree-view.component.ts b/projects/ui/src/lib/components/po-tree-view/po-tree-view.component.ts index 8d336aee77..98b89d0abb 100644 --- a/projects/ui/src/lib/components/po-tree-view/po-tree-view.component.ts +++ b/projects/ui/src/lib/components/po-tree-view/po-tree-view.component.ts @@ -56,7 +56,6 @@ export class PoTreeViewComponent extends PoTreeViewBaseComponent implements OnIn ngOnChanges(changes?: SimpleChanges) { if (changes?.['inputedItems']) { - // Chama o set items this.items = this.inputedItems; } } diff --git a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.html b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.html index 35d97e0ba4..f6b50b04e2 100644 --- a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.html +++ b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.html @@ -22,7 +22,7 @@
- +
diff --git a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts index ed51b3a70e..f9956e2eac 100644 --- a/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts +++ b/projects/ui/src/lib/components/po-tree-view/samples/sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts @@ -59,6 +59,7 @@ export class SamplePoTreeViewLabsComponent implements OnInit { this.itemProperties = []; this.selectable = undefined; this.treeViewItem = {}; + this.maxLevel = 4; } private getTreeViewItemNode(items: Array, value: string) {