style: fix some style

This commit is contained in:
夜鹰 2022-07-15 16:17:48 +08:00
parent 155c5fb068
commit 8b63c8ab9a
2 changed files with 35 additions and 33 deletions

View File

@ -15,6 +15,7 @@
</div>
<nz-tree
#nzTreeComponent
nzBlockNode
[nzData]="dataSource"
[nzExpandedKeys]="expandedKeys"
(nzClick)="nzClick($event)"
@ -25,7 +26,8 @@
<span class="text-sm">{{ node.title }}</span>
</ng-template>
<ng-template [ngIf]="node.isLeaf">
<span class="text-sm text-blue-400" (click)="insertCode(node)"> {{ node.title }}</span>
<div (click)="insertCode(node)">
<span class="text-sm text-blue-400">{{ node.title }}</span>
<ng-container *ngIf="node.origin.note">
<span
[nzTooltipTitle]="titleTemplate"
@ -54,10 +56,11 @@
</ng-container>
</ng-template>
</ng-container>
</div>
</ng-template>
</ng-template>
</div>
<div class="flex-1">
<div class="flex-1 h-[322px]">
<eo-editor
[(code)]="code"
editorType="javascript"

View File

@ -22,7 +22,7 @@ export class ApiScriptComponent implements OnInit {
selectListSelection = new SelectionModel<FlatNode>(true);
dataSource: NzTreeNodeOptions[] = [];
expandedKeys = [];
expandedKeys = [0];
constructor() {}
@ -54,7 +54,6 @@ export class ApiScriptComponent implements OnInit {
})),
...it,
}));
console.log(this.dataSource);
}
handleChange(code) {