feat: highlight current funnel step in deal modal
This commit is contained in:
parent
cf9e5e4540
commit
8fe0dccead
@ -11,7 +11,11 @@
|
||||
v-for="(step, index) in steps"
|
||||
:key="index"
|
||||
class="progress-step"
|
||||
:class="{ 'bg-green-500': index < requisition.stage_index, 'bg-white': index >= requisition.stage_index ?? 0 }"
|
||||
:class="{
|
||||
'step-completed': index < requisition.stage_index,
|
||||
'step-current': index === requisition.stage_index,
|
||||
'step-pending': index > requisition.stage_index
|
||||
}"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@ -433,6 +437,15 @@ const typeReq = computed(() => {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
}
|
||||
.step-completed {
|
||||
background-color: #5cb85c;
|
||||
}
|
||||
.step-current {
|
||||
background-color: rgba(56, 142, 60, .20);
|
||||
}
|
||||
.step-pending {
|
||||
background-color: #fff;
|
||||
}
|
||||
.progress-step::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user