primevue-mirror/doc/stepper/BasicDoc.vue

174 lines
9.7 KiB
Vue
Raw Normal View History

2024-02-13 06:24:01 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Stepper consists of one or more StepperPanel elements.</p>
</DocSectionText>
2024-02-21 13:21:01 +00:00
<div class="card" style="padding-left: 20rem; padding-right: 20rem">
2024-02-13 06:24:01 +00:00
<Stepper>
2024-02-20 14:56:58 +00:00
<StepperPanel header="Header I">
<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 I</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" disabled @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" iconPos="right" @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-02-20 14:56:58 +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 II</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" iconPos="right" @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">
<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 III</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" disabled iconPos="right" @click="nextCallback" />
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>
2024-02-20 14:56:58 +00:00
<StepperPanel header="Header I">
<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 I</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" disabled @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" iconPos="right" @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-02-20 14:56:58 +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 II</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" iconPos="right" @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">
<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 III</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" disabled iconPos="right" @click="nextCallback" />
2024-02-13 07:08:22 +00:00
</div>
</template>
</StepperPanel>
</Stepper>
`,
options: `
<template>
<div class="card">
<Stepper>
2024-02-20 14:56:58 +00:00
<StepperPanel header="Header I">
<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 I</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" disabled @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" iconPos="right" @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-02-20 14:56:58 +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 II</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" iconPos="right" @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">
<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 III</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" disabled iconPos="right" @click="nextCallback" />
2024-02-13 07:08:22 +00:00
</div>
</template>
</StepperPanel>
</Stepper>
</div>
</template>
`,
composition: `
<template>
<div class="card">
<Stepper>
2024-02-20 14:56:58 +00:00
<StepperPanel header="Header I">
<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 I</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" disabled @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" iconPos="right" @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-02-20 14:56:58 +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 II</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" iconPos="right" @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">
<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 III</div>
</div>
<div class="flex pt-4 justify-content-between">
<Button label="Back" severity="secondary" icon="pi pi-arrow-left" @click="prevCallback" />
<Button label="Next" severity="contrast" icon="pi pi-arrow-right" disabled iconPos="right" @click="nextCallback" />
2024-02-13 07:08:22 +00:00
</div>
</template>
</StepperPanel>
</Stepper>
</div>
</template>
`
}
};
}
};
</script>