90 lines
2.7 KiB
Vue
Raw Normal View History

2022-06-01 10:15:55 +03:00
<template>
2022-08-09 19:15:28 +03:00
<div>
<nav aria-label="Progress">
<ol role="list" class="flex mb-10">
2022-11-21 10:56:17 +03:00
<li class="w-1/3">
2022-08-09 19:15:28 +03:00
<span class="pr-6 flex flex-col">
<span
class="w-full h-1 bg-gray-300 rounded-xl text-transparent"
2022-11-24 16:30:22 +03:00
:class="[{ 'bg-purple': active_state >= 0 }]"
>
Text
</span>
2022-06-01 10:15:55 +03:00
2022-11-24 16:30:22 +03:00
<span
class="text-sm font-normal mt-2"
:class="[{ 'font-bold': active_state >= 0 }]"
>
2022-08-09 19:15:28 +03:00
{{ translations.company.title }}
</span>
</span>
</li>
2022-06-01 10:15:55 +03:00
2022-11-21 10:56:17 +03:00
<li class="w-1/3">
2022-08-09 19:15:28 +03:00
<span class="px-3 flex flex-col">
<span
class="w-full h-1 bg-gray-300 rounded-xl text-transparent"
2022-11-24 16:30:22 +03:00
:class="[{ 'bg-purple': active_state >= 1 }]"
>
Text
</span>
2022-06-01 10:15:55 +03:00
2022-11-24 16:30:22 +03:00
<span
class="text-sm font-normal mt-2"
:class="[{ 'font-bold': active_state >= 1 }]"
>
2022-08-09 19:15:28 +03:00
{{ translations.currencies.title }}
</span>
</span>
</li>
2022-11-21 10:56:17 +03:00
<li class="w-1/3">
2022-08-09 19:15:28 +03:00
<span class="pl-6 flex flex-col">
<span
2022-11-24 16:30:22 +03:00
:class="[{'bg-purple': active_state == 2}]"
2022-08-09 19:15:28 +03:00
class="w-full h-1 bg-gray-300 rounded-xl text-transparent"
2022-11-24 16:30:22 +03:00
>
Text
</span>
2022-08-09 19:15:28 +03:00
2022-11-24 16:30:22 +03:00
<span
class="text-sm font-normal mt-2"
:class="[{ 'font-bold': active_state == 2 }]"
>
2022-08-09 19:15:28 +03:00
{{ translations.finish.title }}
</span>
</span>
</li>
</ol>
</nav>
</div>
2022-06-01 10:15:55 +03:00
</template>
<script>
2022-08-09 19:15:28 +03:00
export default {
name: "Steps",
2022-06-01 10:15:55 +03:00
2022-08-09 19:15:28 +03:00
components: {},
2022-06-01 10:15:55 +03:00
2022-08-09 19:15:28 +03:00
props: {
active_state: {
type: [Boolean, String, Number],
}
},
2022-06-01 10:15:55 +03:00
2022-08-09 19:15:28 +03:00
created() {
this.translations = wizard_translations;
},
2022-06-01 10:15:55 +03:00
2022-08-09 19:15:28 +03:00
data() {
return {
translations: {
company: {},
currencies: {},
finish: {},
},
};
},
};
</script>