Color
This commit is contained in:
parent
6a0427b216
commit
1604f5b4aa
1 changed files with 3 additions and 3 deletions
|
@ -36,15 +36,15 @@
|
||||||
end: t.endDate.toString(),
|
end: t.endDate.toString(),
|
||||||
label: t.title,
|
label: t.title,
|
||||||
ganttBarConfig: {
|
ganttBarConfig: {
|
||||||
color: colorIsDark(t.getHexColor()) ? 'white' : 'black',
|
color: colorIsDark(t.getHexColor()) ? 'black' : 'white',
|
||||||
backgroundColor: t.getHexColor(),
|
backgroundColor: t.getHexColor(),
|
||||||
handles: true,
|
handles: true,
|
||||||
}
|
}
|
||||||
}]"
|
}]"
|
||||||
:highlight-on-hover="true"
|
:highlight-on-hover="true"
|
||||||
>
|
>
|
||||||
<template v-slot:label>
|
<template #bar-label="{bar}">
|
||||||
<span>{{ t.title }}</span>
|
<span>{{bar.label}}</span>
|
||||||
</template>
|
</template>
|
||||||
</g-gantt-row>
|
</g-gantt-row>
|
||||||
</g-gantt-chart>
|
</g-gantt-chart>
|
||||||
|
|
Loading…
Reference in a new issue