mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-04 20:58:01 +08:00
style: fix some style
This commit is contained in:
parent
155c5fb068
commit
8b63c8ab9a
@ -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"
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user