2 次代码提交 930edcb4fb ... 380b40955d

作者 SHA1 备注 提交日期
  nobody 380b40955d Merge branch 'yili' of http://gogsb.soaringnova.com/ylproj/jupyterlab into yili 2 年之前
  nobody 27613cb1a4 feat: 统一缩进 2 年之前
共有 3 个文件被更改,包括 9 次插入1 次删除
  1. 9 0
      packages/yili-dag/src/ScriptEditor.tsx
  2. 0 1
      packages/yili-dag/src/ScriptNodeInfo.tsx
  3. 0 0
      untitled.dag

+ 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)

文件差异内容过多而无法显示
+ 0 - 0
untitled.dag


部分文件因为文件数量过多而无法显示