瀏覽代碼

fix: add default parameter configuration (#2670)

Co-authored-by: 田丰 <[email protected]>
田丰 9 月之前
父節點
當前提交
9e9bf77dd8
共有 1 個文件被更改,包括 4 次插入0 次删除
  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>;