Browse Source

fix: add default parameter configuration (#2670)

Co-authored-by: 田丰 <[email protected]>
田丰 9 months ago
parent
commit
9e9bf77dd8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/semi-ui/jsonViewer/index.tsx

+ 4 - 0
packages/semi-ui/jsonViewer/index.tsx

@@ -52,6 +52,10 @@ class JsonViewerCom extends BaseComponent<JsonViewerProps, JsonViewerState> {
         width: 400,
         height: 400,
         value: '',
+        options: {
+            readOnly: false,
+            autoWrap: true
+        }
     };
 
     private editorRef: React.RefObject<HTMLDivElement>;