Skip to content

Commit

Permalink
fix: detail should be readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Aug 3, 2022
1 parent b908061 commit bb8f4fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<list-block-common-component class="eo-block-container" *ngIf="['formData', 'json', 'xml'].includes(bodyType)"
[mainObject]="listConf" [(list)]="model"></list-block-common-component>
<!-- Raw -->
<eo-monaco-editor [(code)]="model" *ngIf="bodyType === 'raw'"
<eo-monaco-editor [(code)]="model" *ngIf="bodyType === 'raw'" [config]="{readOnly: true}"
[eventList]="['type', 'format', 'copy', 'search', 'replace']">
</eo-monaco-editor>
<!-- Binary -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
</li>
</ul>
<!-- JSON / XML / Raw -->
<eo-monaco-editor *ngIf="modelType === 'string'" class="mt20" [(code)]="model"
<eo-monaco-editor *ngIf="modelType === 'string'" class="mt20" [(code)]="model" [config]="{readOnly: true}"
[eventList]="['type', 'format', 'copy', 'search']"></eo-monaco-editor>
</div>

0 comments on commit bb8f4fe

Please sign in to comment.