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-05-20 12:14:38 +00:00
|
|
|
<div class="card flex justify-center">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Stepper value="1" linear class="basis-[50rem]">
|
|
|
|
<StepList>
|
|
|
|
<Step value="1">Header I</Step>
|
|
|
|
<Step value="2">Header II</Step>
|
|
|
|
<Step value="3">Header III</Step>
|
|
|
|
</StepList>
|
|
|
|
<StepPanels>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="1">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
2024-07-02 10:13:47 +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 I</div>
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-12 21:12:30 +00:00
|
|
|
<div class="flex pt-6 justify-end">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" @click="activateCallback('2')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="2">
|
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-21 08:47:21 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="activateCallback('1')" />
|
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="activateCallback('3')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="3">
|
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-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-12 21:12:30 +00:00
|
|
|
<div class="pt-6">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="activateCallback('2')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepPanels>
|
2024-02-21 08:47:21 +00:00
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
|
|
|
basic: `
|
2024-06-04 06:23:16 +00:00
|
|
|
<Stepper value="1" linear>
|
|
|
|
<StepList>
|
|
|
|
<Step value="1">Header I</Step>
|
|
|
|
<Step value="2">Header II</Step>
|
|
|
|
<Step value="3">Header III</Step>
|
|
|
|
</StepList>
|
|
|
|
<StepPanels>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="1">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
2024-07-02 10:13:47 +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 I</div>
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-07-02 10:13:47 +00:00
|
|
|
<div class="flex pt-6 justify-end">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" @click="activateCallback('2')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="2">
|
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-21 08:47:21 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="activateCallback('1')" />
|
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="activateCallback('3')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="3">
|
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-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-12 21:12:30 +00:00
|
|
|
<div class="pt-6">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="activateCallback('2')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepPanels>
|
2024-02-21 08:47:21 +00:00
|
|
|
</Stepper>
|
|
|
|
`,
|
|
|
|
options: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex justify-center">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Stepper value="1" linear class="basis-[50rem]">
|
|
|
|
<StepList>
|
|
|
|
<Step value="1">Header I</Step>
|
|
|
|
<Step value="2">Header II</Step>
|
|
|
|
<Step value="3">Header III</Step>
|
|
|
|
</StepList>
|
|
|
|
<StepPanels>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="1">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
2024-07-02 10:13:47 +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 I</div>
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-12 21:12:30 +00:00
|
|
|
<div class="flex pt-6 justify-end">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" @click="activateCallback('2')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="2">
|
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-21 08:47:21 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="activateCallback('1')" />
|
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="activateCallback('3')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="3">
|
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-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-12 21:12:30 +00:00
|
|
|
<div class="pt-6">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="activateCallback('2')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepPanels>
|
2024-02-21 08:47:21 +00:00
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex justify-center">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Stepper value="1" linear class="basis-[50rem]">
|
|
|
|
<StepList>
|
|
|
|
<Step value="1">Header I</Step>
|
|
|
|
<Step value="2">Header II</Step>
|
|
|
|
<Step value="3">Header III</Step>
|
|
|
|
</StepList>
|
|
|
|
<StepPanels>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="1">
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex flex-col h-48">
|
2024-07-02 10:13:47 +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 I</div>
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-12 21:12:30 +00:00
|
|
|
<div class="flex pt-6 justify-end">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Next" icon="pi pi-arrow-right" @click="activateCallback('2')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="2">
|
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-21 08:47:21 +00:00
|
|
|
</div>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="flex pt-6 justify-between">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="activateCallback('1')" />
|
|
|
|
<Button label="Next" icon="pi pi-arrow-right" iconPos="right" @click="activateCallback('3')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
<StepPanel v-slot="{ activateCallback }" value="3">
|
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-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-12 21:12:30 +00:00
|
|
|
<div class="pt-6">
|
2024-06-04 06:23:16 +00:00
|
|
|
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="activateCallback('2')" />
|
2024-02-21 08:47:21 +00:00
|
|
|
</div>
|
2024-06-04 06:23:16 +00:00
|
|
|
</StepPanel>
|
|
|
|
</StepPanels>
|
2024-02-21 08:47:21 +00:00
|
|
|
</Stepper>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|