2 Commits 930edcb4fb ... 380b40955d

Author SHA1 Message Date
  nobody 380b40955d Merge branch 'yili' of http://gogsb.soaringnova.com/ylproj/jupyterlab into yili 2 years ago
  nobody 27613cb1a4 feat: 统一缩进 2 years ago

+ 9 - 0
packages/yili-dag/src/ScriptEditor.tsx

@@ -117,6 +117,15 @@ export default class ScriptEditor extends React.Component<any, any> {
           error_list: [],
         }
       },
+      indentUnit: 4,
+      tabSize: 4,
+      extraKeys: {
+        Tab: (cm) => {
+          const indentUnit = cm.getOption("indentUnit") as number
+          var spaces = Array(indentUnit + 1).join(" ");
+          cm.replaceSelection(spaces);
+        }
+      }
     })
     editor.setSize(null, '100%')
     editor.setValue(this.props.scriptText)

+ 0 - 1
packages/yili-dag/src/ScriptNodeInfo.tsx

@@ -183,7 +183,6 @@ export default class ScriptNodeInfo extends React.Component<any, any> {
       return item.group === 'bottom' ? pre.concat(item) : pre
     }, [])
     currentOutputPorts.forEach((item: any) => {
-      console.log('item:', item);
       const index = outputData.findIndex((output: any) => output.outputVar === item.id)
       if (index === -1) {
         node.removePort(item.id)

File diff suppressed because it is too large
+ 0 - 0
untitled.dag


Some files were not shown because too many files changed in this diff