|
|
@ -20,7 +20,7 @@ import { |
|
|
|
TaskType, |
|
|
|
TaskType, |
|
|
|
TASK_TYPES_MAP |
|
|
|
TASK_TYPES_MAP |
|
|
|
} from '@/views/projects/task/constants/task-type' |
|
|
|
} from '@/views/projects/task/constants/task-type' |
|
|
|
import Styles from './dag.module.scss' |
|
|
|
import styles from './dag.module.scss' |
|
|
|
|
|
|
|
|
|
|
|
export default defineComponent({ |
|
|
|
export default defineComponent({ |
|
|
|
name: 'workflow-dag-sidebar', |
|
|
|
name: 'workflow-dag-sidebar', |
|
|
@ -32,10 +32,10 @@ export default defineComponent({ |
|
|
|
})) |
|
|
|
})) |
|
|
|
|
|
|
|
|
|
|
|
return () => ( |
|
|
|
return () => ( |
|
|
|
<div class={Styles.sidebar}> |
|
|
|
<div class={styles.sidebar}> |
|
|
|
{allTaskTypes.map((task) => ( |
|
|
|
{allTaskTypes.map((task) => ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
class={Styles.draggable} |
|
|
|
class={styles.draggable} |
|
|
|
draggable='true' |
|
|
|
draggable='true' |
|
|
|
onDragstart={(e) => { |
|
|
|
onDragstart={(e) => { |
|
|
|
context.emit('dragStart', e, task.type as TaskType) |
|
|
|
context.emit('dragStart', e, task.type as TaskType) |
|
|
@ -43,10 +43,10 @@ export default defineComponent({ |
|
|
|
> |
|
|
|
> |
|
|
|
<em |
|
|
|
<em |
|
|
|
class={[ |
|
|
|
class={[ |
|
|
|
Styles['sidebar-icon'], |
|
|
|
styles['sidebar-icon'], |
|
|
|
Styles['icon-' + task.type.toLocaleLowerCase()] |
|
|
|
styles['icon-' + task.type.toLocaleLowerCase()] |
|
|
|
]} |
|
|
|
]} |
|
|
|
></em> |
|
|
|
/> |
|
|
|
<span>{task.alias}</span> |
|
|
|
<span>{task.alias}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
))} |
|
|
|
))} |
|
|
|