2024-02-13 06:24:01 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-02-22 09:45:53 +00:00
|
|
|
<p>Layout of the Stepper is configured with the <i>orientation</i> property that accepts <i>horizontal</i> and <i>vertical</i> as available options.</p>
|
2024-02-13 06:24:01 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<div class="card">
|
|
|
|
<Stepper orientation="vertical">
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header I">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content I</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" @click="nextCallback" />
|
2024-02-13 06:24:01 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header II">
|
2024-02-13 06:24:01 +00:00
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content II</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6 gap-2">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Back" severity="secondary" @click="prevCallback" />
|
|
|
|
<Button label="Next" @click="nextCallback" />
|
2024-02-13 06:24:01 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header III">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content III</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Back" severity="secondary" @click="prevCallback" />
|
2024-02-13 06:24:01 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
</div>
|
2024-02-13 07:08:22 +00:00
|
|
|
<DocSectionCode :code="code" />
|
2024-02-13 06:24:01 +00:00
|
|
|
</template>
|
2024-02-13 07:08:22 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
basic: `
|
|
|
|
<Stepper orientation="vertical">
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header I">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content I</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" @click="nextCallback" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header II">
|
2024-02-13 07:08:22 +00:00
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content II</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6 gap-2">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Back" severity="secondary" @click="prevCallback" />
|
|
|
|
<Button label="Next" @click="nextCallback" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header III">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content III</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Back" severity="secondary" @click="prevCallback" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
`,
|
|
|
|
options: `
|
|
|
|
<template>
|
|
|
|
<div class="card">
|
|
|
|
<Stepper orientation="vertical">
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header I">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content I</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" @click="nextCallback" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header II">
|
2024-02-13 07:08:22 +00:00
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content II</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6 gap-2">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Back" severity="secondary" @click="prevCallback" />
|
|
|
|
<Button label="Next" @click="nextCallback" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header III">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content III</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Back" severity="secondary" @click="prevCallback" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
|
|
|
<div class="card">
|
|
|
|
<Stepper orientation="vertical">
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header I">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content I</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Next" @click="nextCallback" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header II">
|
2024-02-13 07:08:22 +00:00
|
|
|
<template #content="{ prevCallback, nextCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content II</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6 gap-2">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Back" severity="secondary" @click="prevCallback" />
|
|
|
|
<Button label="Next" @click="nextCallback" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
2024-02-20 14:56:58 +00:00
|
|
|
<StepperPanel header="Header III">
|
2024-02-22 09:35:09 +00:00
|
|
|
<template #content="{ prevCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
|
|
|
<div class="border-2 border-dashed border-surface-200 dark:border-surface-700 rounded bg-surface-50 dark:bg-surface-950 flex-auto flex justify-center items-center font-medium">Content III</div>
|
2024-02-20 14:56:58 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex py-6">
|
2024-02-22 09:35:09 +00:00
|
|
|
<Button label="Back" severity="secondary" @click="prevCallback" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StepperPanel>
|
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|