[Fix][UI Next][V1.0.0-Alpha] Fix the DATA_QUALITY icon is null. (#8822)

This commit is contained in:
songjianet 2022-03-11 10:00:30 +08:00 committed by GitHub
parent 939f280e71
commit a9c9eb00d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

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

View File

@ -107,6 +107,9 @@ $bgLight: #ffffff;
&.icon-sub_process {
background-image: url('@/assets/images/task-icons/sub_process.png');
}
&.icon-data_quality {
background-image: url('@/assets/images/task-icons/data_quality.png');
}
&.icon-procedure {
background-image: url('@/assets/images/task-icons/procedure.png');
}
@ -162,6 +165,9 @@ $bgLight: #ffffff;
&.icon-sub_process {
background-image: url('@/assets/images/task-icons/sub_process_hover.png');
}
&.icon-data_quality {
background-image: url('@/assets/images/task-icons/data_quality_hover.png');
}
&.icon-procedure {
background-image: url('@/assets/images/task-icons/procedure_hover.png');
}