2024-02-13 06:22:45 +00:00
|
|
|
<template>
|
|
|
|
<div
|
|
|
|
:id="id"
|
2024-04-30 14:09:49 +00:00
|
|
|
:class="cx('stepper.panelContent', { stepperpanel, index })"
|
2024-02-13 06:22:45 +00:00
|
|
|
role="tabpanel"
|
|
|
|
:aria-labelledby="ariaLabelledby"
|
2024-04-30 14:09:49 +00:00
|
|
|
v-bind="{ ...getStepPT(stepperpanel, 'root', index), ...getStepPT(stepperpanel, 'panelContent', index) }"
|
2024-02-13 06:22:45 +00:00
|
|
|
data-pc-name="stepperpanel"
|
|
|
|
:data-pc-index="index"
|
|
|
|
:data-p-active="active"
|
|
|
|
>
|
|
|
|
<component
|
|
|
|
v-if="template"
|
|
|
|
:is="template"
|
|
|
|
:index="index"
|
|
|
|
:active="active"
|
|
|
|
:highlighted="highlighted"
|
|
|
|
:clickCallback="(event) => onItemClick(event, index)"
|
|
|
|
:prevCallback="(event) => prevCallback(event, index)"
|
|
|
|
:nextCallback="(event) => nextCallback(event, index)"
|
|
|
|
></component>
|
|
|
|
<component v-else :is="stepperpanel"></component>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'StepperContent',
|
|
|
|
hostName: 'Stepper',
|
|
|
|
extends: BaseComponent,
|
|
|
|
props: {
|
|
|
|
id: null,
|
|
|
|
template: null,
|
|
|
|
ariaLabelledby: null,
|
|
|
|
stepperpanel: null,
|
|
|
|
index: null,
|
|
|
|
active: null,
|
|
|
|
highlighted: null,
|
|
|
|
clickCallback: null,
|
|
|
|
prevCallback: null,
|
|
|
|
nextCallback: null,
|
|
|
|
getStepPT: null
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|