Compare commits
2 Commits
cf9e5e4540
...
a240d99d73
| Author | SHA1 | Date | |
|---|---|---|---|
| a240d99d73 | |||
| 8fe0dccead |
@ -11,7 +11,11 @@
|
|||||||
v-for="(step, index) in steps"
|
v-for="(step, index) in steps"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="progress-step"
|
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>
|
||||||
</div>
|
</div>
|
||||||
@ -426,13 +430,23 @@ const typeReq = computed(() => {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: 1px solid #DEDEDE;
|
border: 1px solid #DEDEDE;
|
||||||
background-color: #5cb85c;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-step {
|
.progress-step {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
.step-completed {
|
||||||
|
background-color: #5cb85c;
|
||||||
|
}
|
||||||
|
.step-current {
|
||||||
|
background-color: #e2574c;
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
|
.step-pending {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
.progress-step::before {
|
.progress-step::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user