2024-02-13 06:24:01 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-06-04 06:23:16 +00:00
|
|
|
<p>Layout of the Stepper is configured with the <i>StepItem</i> helper component.</p>
|
2024-02-13 06:24:01 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<div class="card">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Stepper value="1">
|
|
|
|
<StepItem value="1">
|
|
|
|
<Step>Header I</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
2024-06-04 06:23:16 +00:00
|
|
|
<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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
|
|
|
<Button label="Next" @click="activateCallback('2')" />
|
2024-02-13 06:24:01 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
|
|
|
<StepItem value="2">
|
|
|
|
<Step>Header II</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
|
|
|
<Button label="Back" severity="secondary" @click="activateCallback('1')" />
|
|
|
|
<Button label="Next" iconPos="right" @click="activateCallback('3')" />
|
2024-02-13 06:24:01 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
|
|
|
<StepItem value="3">
|
|
|
|
<Step>Header III</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
|
|
|
<Button label="Back" severity="secondary" @click="activateCallback('2')" />
|
2024-02-13 06:24:01 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
2024-02-13 06:24:01 +00:00
|
|
|
</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: `
|
2024-06-04 06:23:16 +00:00
|
|
|
<Stepper value="1">
|
|
|
|
<StepItem value="1">
|
|
|
|
<Step>Header I</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
2024-06-04 06:23:16 +00:00
|
|
|
<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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
|
|
|
<Button label="Next" @click="activateCallback('2')" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
|
|
|
<StepItem value="2">
|
|
|
|
<Step>Header II</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
|
|
|
<Button label="Back" severity="secondary" @click="activateCallback('1')" />
|
|
|
|
<Button label="Next" iconPos="right" @click="activateCallback('3')" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
|
|
|
<StepItem value="3">
|
|
|
|
<Step>Header III</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
|
|
|
<Button label="Back" severity="secondary" @click="activateCallback('2')" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
2024-02-13 07:08:22 +00:00
|
|
|
</Stepper>
|
|
|
|
`,
|
|
|
|
options: `
|
|
|
|
<template>
|
|
|
|
<div class="card">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Stepper value="1">
|
|
|
|
<StepItem value="1">
|
|
|
|
<Step>Header I</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
2024-06-04 06:23:16 +00:00
|
|
|
<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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
|
|
|
<Button label="Next" @click="activateCallback('2')" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
|
|
|
<StepItem value="2">
|
|
|
|
<Step>Header II</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
|
|
|
<Button label="Back" severity="secondary" @click="activateCallback('1')" />
|
|
|
|
<Button label="Next" iconPos="right" @click="activateCallback('3')" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
|
|
|
<StepItem value="3">
|
|
|
|
<Step>Header III</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
|
|
|
<Button label="Back" severity="secondary" @click="activateCallback('2')" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
2024-02-13 07:08:22 +00:00
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
|
|
|
<div class="card">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Stepper value="1">
|
|
|
|
<StepItem value="1">
|
|
|
|
<Step>Header I</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
2024-06-04 06:23:16 +00:00
|
|
|
<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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
|
|
|
<Button label="Next" @click="activateCallback('2')" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
|
|
|
<StepItem value="2">
|
|
|
|
<Step>Header II</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
|
|
|
<Button label="Back" severity="secondary" @click="activateCallback('1')" />
|
|
|
|
<Button label="Next" iconPos="right" @click="activateCallback('3')" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
|
|
|
<StepItem value="3">
|
|
|
|
<Step>Header III</Step>
|
|
|
|
<StepPanel v-slot="{ activateCallback }">
|
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-06-04 06:23:16 +00:00
|
|
|
<div class="flex pt-6 justify-start">
|
|
|
|
<Button label="Back" severity="secondary" @click="activateCallback('2')" />
|
2024-02-13 07:08:22 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepItem>
|
2024-02-13 07:08:22 +00:00
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|