refactor: q-step count
This commit is contained in:
parent
a09fbeb29e
commit
c76dd473bb
1 changed files with 14 additions and 1 deletions
|
|
@ -448,7 +448,7 @@ const currentData = computed(() => {
|
|||
<q-step
|
||||
v-for="(item, index) in props.row.history"
|
||||
:key="index"
|
||||
:name="1"
|
||||
:name="index"
|
||||
:title="$t(mapName(item.field).title)"
|
||||
:caption="$t(mapName(item.field).i18n)"
|
||||
:icon="`mdi-numeric-${props.row.history.length - index}`"
|
||||
|
|
@ -538,4 +538,17 @@ const currentData = computed(() => {
|
|||
cursor: pointer;
|
||||
font-family: 'Noto Sans Thai', sans-serif;
|
||||
}
|
||||
|
||||
:deep(.q-stepper) {
|
||||
counter-reset: css-counter;
|
||||
}
|
||||
|
||||
:deep(.q-stepper__dot)span > * {
|
||||
display: none;
|
||||
}
|
||||
|
||||
:deep(.q-stepper__dot) span::before {
|
||||
counter-increment: css-counter;
|
||||
content: counter(css-counter);
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue