178 lines
12 KiB
Vue
178 lines
12 KiB
Vue
<template>
|
|
<DocSectionText v-bind="$attrs">
|
|
<p>Layout of the Stepper is configured with the <i>orientation</i> property that accepts <i>horizontal</i> and <i>vertical</i> as options.</p>
|
|
</DocSectionText>
|
|
<div class="card">
|
|
<Stepper orientation="vertical">
|
|
<StepperPanel header="Header 1">
|
|
<template #content="{ nextCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Next" @click="(event) => nextCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
<StepperPanel header="Header 2">
|
|
<template #content="{ prevCallback, nextCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Prev" severity="secondary" @click="(event) => prevCallback(event)" />
|
|
<Button label="Next" @click="(event) => nextCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
<StepperPanel header="Header 3">
|
|
<template #content="{ prevCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Prev" severity="secondary" @click="(event) => prevCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
</Stepper>
|
|
</div>
|
|
<DocSectionCode :code="code" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
code: {
|
|
basic: `
|
|
<Stepper orientation="vertical">
|
|
<StepperPanel header="Header 1">
|
|
<template #content="{ nextCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Next" @click="(event) => nextCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
<StepperPanel header="Header 2">
|
|
<template #content="{ prevCallback, nextCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Prev" severity="secondary" @click="(event) => prevCallback(event)" />
|
|
<Button label="Next" @click="(event) => nextCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
<StepperPanel header="Header 3">
|
|
<template #content="{ prevCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Prev" severity="secondary" @click="(event) => prevCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
</Stepper>
|
|
`,
|
|
options: `
|
|
<template>
|
|
<div class="card">
|
|
<Stepper orientation="vertical">
|
|
<StepperPanel header="Header 1">
|
|
<template #content="{ nextCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Next" @click="(event) => nextCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
<StepperPanel header="Header 2">
|
|
<template #content="{ prevCallback, nextCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Prev" severity="secondary" @click="(event) => prevCallback(event)" />
|
|
<Button label="Next" @click="(event) => nextCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
<StepperPanel header="Header 3">
|
|
<template #content="{ prevCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Prev" severity="secondary" @click="(event) => prevCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
</Stepper>
|
|
</div>
|
|
</template>
|
|
`,
|
|
composition: `
|
|
<template>
|
|
<div class="card">
|
|
<Stepper orientation="vertical">
|
|
<StepperPanel header="Header 1">
|
|
<template #content="{ nextCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Next" @click="(event) => nextCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
<StepperPanel header="Header 2">
|
|
<template #content="{ prevCallback, nextCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Prev" severity="secondary" @click="(event) => prevCallback(event)" />
|
|
<Button label="Next" @click="(event) => nextCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
<StepperPanel header="Header 3">
|
|
<template #content="{ prevCallback }">
|
|
<p class="m-0">
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
</p>
|
|
<div class="flex gap-2 justify-content-end">
|
|
<Button label="Prev" severity="secondary" @click="(event) => prevCallback(event)" />
|
|
</div>
|
|
</template>
|
|
</StepperPanel>
|
|
</Stepper>
|
|
</div>
|
|
</template>
|
|
`
|
|
}
|
|
};
|
|
}
|
|
};
|
|
</script>
|