mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +00:00
Linear Stepper added
This commit is contained in:
parent
15c7860624
commit
874c321b51
3 changed files with 184 additions and 4 deletions
174
doc/stepper/LinearDoc.vue
Normal file
174
doc/stepper/LinearDoc.vue
Normal file
|
@ -0,0 +1,174 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>Stepper consists of one or more StepperPanel elements.</p>
|
||||
</DocSectionText>
|
||||
<div class="card">
|
||||
<Stepper v-model:activeStep="active" linear>
|
||||
<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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
<StepperPanel header="Header II">
|
||||
<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 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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
<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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
</Stepper>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
active: 0,
|
||||
code: {
|
||||
basic: `
|
||||
<Stepper>
|
||||
<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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
<StepperPanel header="Header II">
|
||||
<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 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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
<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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
</Stepper>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<Stepper>
|
||||
<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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
<StepperPanel header="Header II">
|
||||
<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 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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
<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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
</Stepper>
|
||||
</div>
|
||||
</template>
|
||||
`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<Stepper>
|
||||
<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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
<StepperPanel header="Header II">
|
||||
<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 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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
<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" />
|
||||
</div>
|
||||
</template>
|
||||
</StepperPanel>
|
||||
</Stepper>
|
||||
</div>
|
||||
</template>
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue