This is an automated email from the ASF dual-hosted git repository.

songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 4a4acce  [Fix][UI Next] Fix build error.
4a4acce is described below

commit 4a4acce2c528b22a8e6f89d05969c43eef4f625c
Author: labbomb <[email protected]>
AuthorDate: Fri Feb 25 18:15:23 2022 +0800

    [Fix][UI Next] Fix build error.
---
 .../projects/workflow/components/dag/use-custom-cell-builder.ts  | 2 +-
 .../views/projects/workflow/components/dag/use-dag-drag-drop.ts  | 2 +-
 .../src/views/projects/workflow/components/dag/use-task-edit.ts  | 2 +-
 .../src/views/resource/file/create/index.tsx                     | 1 -
 dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx  | 9 ++-------
 5 files changed, 5 insertions(+), 11 deletions(-)

diff --git 
a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-custom-cell-builder.ts
 
b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-custom-cell-builder.ts
index b682879..a5c0ffa 100644
--- 
a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-custom-cell-builder.ts
+++ 
b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-custom-cell-builder.ts
@@ -129,7 +129,7 @@ export function useCustomCellBuilder() {
     connects
       .filter((r) => !!r.preTaskCode)
       .forEach((c) => {
-        const edge = buildEdge(c.preTaskCode + '', c.postTaskCode, c.name)
+        const edge = buildEdge(c.preTaskCode + '', c.postTaskCode + '', c.name)
         edges.push(edge)
       })
     return {
diff --git 
a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-dag-drag-drop.ts
 
b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-dag-drag-drop.ts
index 0cc22f3..e3a4276 100644
--- 
a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-dag-drag-drop.ts
+++ 
b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-dag-drag-drop.ts
@@ -19,7 +19,7 @@ import { ref } from 'vue'
 import type { Ref } from 'vue'
 import type { Graph } from '@antv/x6'
 import { genTaskCodeList } from '@/service/modules/task-definition'
-import { Dragged } from './types'
+import { Coordinate, Dragged } from './types'
 import { TaskType } from '@/views/projects/task/constants/task-type'
 import { useRoute } from 'vue-router'
 
diff --git 
a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts
 
b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts
index e0851ce..992ff74 100644
--- 
a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts
+++ 
b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-task-edit.ts
@@ -53,7 +53,7 @@ export function useTaskEdit(options: Options) {
    * Append a new task
    */
   function appendTask(code: number, type: TaskType, coordinate: Coordinate) {
-    addNode(code + '', type, '', coordinate)
+    addNode(code + '', type, '', 'YES', coordinate)
     taskDefinitions.value.push({
       code,
       taskType: type,
diff --git a/dolphinscheduler-ui-next/src/views/resource/file/create/index.tsx 
b/dolphinscheduler-ui-next/src/views/resource/file/create/index.tsx
index ba55691..f16e0a5 100644
--- a/dolphinscheduler-ui-next/src/views/resource/file/create/index.tsx
+++ b/dolphinscheduler-ui-next/src/views/resource/file/create/index.tsx
@@ -97,7 +97,6 @@ export default defineComponent({
           </NFormItem>
           <NFormItem label={t('resource.file.file_content')} path='content'>
             <div
-              class={styles.cont}
               style={{
                 width: '90%'
               }}
diff --git a/dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx 
b/dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx
index b5e1f66..a6317d7 100644
--- a/dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx
+++ b/dolphinscheduler-ui-next/src/views/resource/file/edit/index.tsx
@@ -76,14 +76,9 @@ export default defineComponent({
           >
             <NFormItem path='content'>
               <div
-                class={styles.cont}
-                style={{
-                  width: '90%'
-                }}
+                style={{width: '90%'}}
               >
-                <MonacoEditor
-                  v-model={[this.resourceViewRef.value?.content, 'value']}
-                />
+                <MonacoEditor v-model={[this.resourceViewRef.value.content, 
'value']} />
               </div>
             </NFormItem>
             {this.routeNameRef === 'resource-file-edit' && (

Reply via email to