Skip to content

Commit

Permalink
fix: api-script
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Jul 15, 2022
1 parent 031cfd6 commit 3bd80c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,49 +56,6 @@
</ng-container>
</ng-template>
</ng-template>
<!-- <nz-tree-view [nzTreeControl]="treeControl" [nzDataSource]="dataSource" nzBlockNode>
<nz-tree-node *nzTreeNodeDef="let node" nzTreeNodePadding>
<nz-tree-node-toggle nzTreeNodeNoopToggle></nz-tree-node-toggle>
<nz-tree-node-option [nzDisabled]="node.disabled" [nzSelected]="false" (nzClick)="insertCode(node)">
<span class="text-sm text-blue-400"> {{ node.name }}</span>
<ng-container *ngIf="node.note">
<span
[nzTooltipTitle]="titleTemplate"
[nzTooltipPlacement]="['topLeft', 'leftTop']"
class="text-blue-400"
nzTooltipColor="black"
nz-tooltip
>
[?]
</span>
<ng-template #titleTemplate let-thing>
<p style="color: #99c6da" *ngIf="node.note.code">{{ node.note.code }}</p>
<p *ngIf="node.note.desc">{{ node.note.desc }}</p>
<ng-container *ngIf="node.note.input">
<br />
<p style="color: #999" i18n>---input---</p>
<p *ngFor="let item of node.note.input">
<span style="color: #ff9800">{{ item.key }}:</span>{{ item.value }}
</p>
</ng-container>
<ng-container *ngIf="node.note.output">
<br />
<p style="color: #999" i18n>---return---</p>
<p>{{ node.note.output }}</p>
</ng-container>
</ng-template>
</ng-container>
</nz-tree-node-option>
</nz-tree-node>
<nz-tree-node *nzTreeNodeDef="let node; when: hasChild" nzTreeNodePadding>
<nz-tree-node-toggle>
<i nz-icon nzType="caret-down" nzTreeNodeToggleRotateIcon></i>
</nz-tree-node-toggle>
<nz-tree-node-option [nzDisabled]="node.disabled" [nzSelected]="false">
{{ node.name }}
</nz-tree-node-option>
</nz-tree-node>
</nz-tree-view> -->
</div>
<div class="flex-1">
<eo-editor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export class ApiScriptComponent implements OnInit {
title: name,
key: index,
name,
children: children.map(({ caption, ...child }) => ({
children: children.map(({ caption, ...child }, i) => ({
title: child.name,
key: caption,
key: caption + i,
caption,
...child,
isLeaf: true,
Expand Down

0 comments on commit 3bd80c6

Please sign in to comment.