2023-04-28 06:58:06 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs"></DocSectionText>
|
|
|
|
<div class="card flex justify-content-center">
|
|
|
|
<Steps
|
|
|
|
:model="items"
|
|
|
|
:readonly="false"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'w-30rem' }
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Personal',
|
|
|
|
to: '/steps'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Seat',
|
|
|
|
to: '/steps/seat'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Payment',
|
|
|
|
to: '/steps/payment'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Confirmation',
|
|
|
|
to: '/steps/confirmation'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<Steps
|
2023-04-28 06:58:06 +00:00
|
|
|
:model="items"
|
|
|
|
:readonly="false"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'w-30rem' }
|
|
|
|
}"
|
2023-10-15 09:38:39 +00:00
|
|
|
/>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-04-28 06:58:06 +00:00
|
|
|
<div>
|
|
|
|
<div class="card">
|
|
|
|
<Steps
|
|
|
|
:model="items"
|
|
|
|
:readonly="false"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'w-30rem' }
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Personal',
|
|
|
|
to: '/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Seat',
|
|
|
|
to: '/seat'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Payment',
|
|
|
|
to: '/payment'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Confirmation',
|
|
|
|
to: '/confirmation'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-04-28 06:58:06 +00:00
|
|
|
<div>
|
|
|
|
<div class="card">
|
|
|
|
<Steps
|
|
|
|
:model="items"
|
|
|
|
:readonly="false"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'w-30rem' }
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
|
|
const items = ref([
|
|
|
|
{
|
|
|
|
label: 'Personal',
|
|
|
|
to: "/"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Seat',
|
|
|
|
to: "/seat",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Payment',
|
|
|
|
to: "/payment",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Confirmation',
|
|
|
|
to: "/confirmation",
|
|
|
|
}
|
|
|
|
]);
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-04-28 06:58:06 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|