Procházet zdrojové kódy

feat: 统一缩进

nobody před 2 roky
rodič
revize
27613cb1a4

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

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
untitled.dag


Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů