forked from syncfusion/ej2-vue-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskbar-temp.vue
59 lines (54 loc) · 2.62 KB
/
taskbar-temp.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<template>
<div v-if="data.TaskName == 'Oscar moments'" style="height:100%">
<div class="e-gantt-child-taskbar e-custom-moments" style="height:100%;border-radius:5px;">
<template v-if="data.ganttProperties.duration < 4">
<img class="moments" src="source/gantt/images/moments.svg" height="32px" width="32px">
</template>
<template v-else>
<img class="moments" src="source/gantt/images/moments.svg" height="32px" width="32px">
<span class="e-task-label" style="position:absolute;top:15px;font-size:12px;text-overflow:ellipsis;height:90%;overflow:hidden;">{{data.Performance}}</span>
</template>
</div>
</div>
<div v-else-if="data.TaskName == 'Oscar performance'" style="height:100%">
<div class="e-gantt-child-taskbar e-custom-performance" style="height:100%;border-radius:5px;">
<template v-if="data.ganttProperties.duration <= 5">
<img class="face-mask" src="source/gantt/images/face-mask.svg" height="32px" width="32px">
</template>
<template v-else>
<img class="face-mask" src="source/gantt/images/face-mask.svg" height="32px" width="32px">
<span class="e-task-label" style="position:absolute;top:5px;font-size:12px;text-overflow:ellipsis;height:90%;overflow:hidden;">{{data.Performance}}</span>
</template>
</div>
</div>
<div v-else style="height:100%">
<div class="e-gantt-parent-taskbar e-custom-parent" style="height:100%;border-radius:5px;text-overflow:ellipsis;">
<template v-if="data.ganttProperties.duration < 4">
<img class="oscar" src="source/gantt/images/oscar.svg" height="32px" width="32px">
</template>
<template v-else>
<template v-if="data.taskData.Winner && data.taskData.Movie">
<img class="oscar" src="source/gantt/images/oscar.svg" height="32px" width="32px">
<span class="e-task-label" style="position:absolute; top:13px;font-size:14px;">{{data.taskData.Winner}}</span>
<span class="e-task-label" style="position:absolute;top:33px;font-size:10px;text-overflow:ellipsis;">{{data.taskData.Movie}}</span>
</template>
<template v-else-if="data.taskData.Movie">
<img class="oscar" src="source/gantt/images/oscar.svg" height="32px" width="32px">
<span class="e-task-label" style="position:absolute; top:13px;font-size:12px;text-overflow:ellipsis;">{{data.taskData.Movie}}</span>
</template>
<template v-else>
<span class="e-task-label"></span>
</template>
</template>
</div>
</div>
</template>
<script>
export default {
data() {
return {
data: {}
};
}
};
</script>