2024-02-21 08:47:21 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-02-22 09:45:53 +00:00
|
|
|
<p>When <i>linear</i> property is present, current step must be completed in order to move to the next step.</p>
|
2024-02-21 08:47:21 +00:00
|
|
|
</DocSectionText>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="card flex justify-content-center">
|
2024-02-22 06:40:04 +00:00
|
|
|
<Stepper linear>
|
2024-02-21 08:47:21 +00:00
|
|
|
<StepperPanel header="Header I">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-02-21 08:47:21 +00:00
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content I</div>
|
|
|
|
</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="flex pt-4 justify-content-end">
|
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel header="Header II">
|
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content II</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex pt-4 justify-content-between">
|
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel header="Header III">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-02-21 08:47:21 +00:00
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content III</div>
|
|
|
|
</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="flex pt-4 justify-content-start">
|
2024-02-21 08:47:21 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
basic: `
|
2024-02-22 06:40:04 +00:00
|
|
|
<Stepper linear>
|
2024-02-21 08:47:21 +00:00
|
|
|
<StepperPanel header="Header I">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-02-21 08:47:21 +00:00
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content I</div>
|
|
|
|
</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="flex pt-4 justify-content-end">
|
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel header="Header II">
|
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content II</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex pt-4 justify-content-between">
|
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel header="Header III">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-02-21 08:47:21 +00:00
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content III</div>
|
|
|
|
</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="flex pt-4 justify-content-start">
|
2024-02-21 08:47:21 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
`,
|
|
|
|
options: `
|
|
|
|
<template>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="card flex justify-content-center">
|
2024-02-22 06:40:04 +00:00
|
|
|
<Stepper linear>
|
2024-02-21 08:47:21 +00:00
|
|
|
<StepperPanel header="Header I">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-02-21 08:47:21 +00:00
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content I</div>
|
|
|
|
</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="flex pt-4 justify-content-end">
|
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel header="Header II">
|
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content II</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex pt-4 justify-content-between">
|
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel header="Header III">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-02-21 08:47:21 +00:00
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content III</div>
|
|
|
|
</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="flex pt-4 justify-content-start">
|
2024-02-21 08:47:21 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
</template>
|
2024-02-22 09:35:09 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.p-stepper {
|
|
|
|
flex-basis: 50rem;
|
|
|
|
}
|
|
|
|
<\/style>
|
2024-02-21 08:47:21 +00:00
|
|
|
`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="card flex justify-content-center">
|
2024-02-22 06:40:04 +00:00
|
|
|
<Stepper linear>
|
2024-02-21 08:47:21 +00:00
|
|
|
<StepperPanel header="Header I">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-02-21 08:47:21 +00:00
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content I</div>
|
|
|
|
</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="flex pt-4 justify-content-end">
|
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel header="Header II">
|
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content II</div>
|
|
|
|
</div>
|
|
|
|
<div class="flex pt-4 justify-content-between">
|
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="nextCallback" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
<StepperPanel header="Header III">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-02-21 08:47:21 +00:00
|
|
|
<div class="flex flex-column h-12rem">
|
|
|
|
<div class="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">Content III</div>
|
|
|
|
</div>
|
2024-02-22 09:35:09 +00:00
|
|
|
<div class="flex pt-4 justify-content-start">
|
2024-02-21 08:47:21 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
</template>
|
2024-02-22 09:35:09 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.p-stepper {
|
|
|
|
flex-basis: 50rem;
|
|
|
|
}
|
|
|
|
<\/style>
|
2024-02-21 08:47:21 +00:00
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
2024-02-22 09:35:09 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.p-stepper {
|
|
|
|
flex-basis: 50rem;
|
|
|
|
}
|
|
|
|
</style>
|