Fixed #5599 - Menu / Stepper: Pass Through Unstyled Mode

pull/5630/head
tugcekucukoglu 2024-04-19 15:28:49 +03:00
parent b0b91c2050
commit 169a9af8eb
2 changed files with 17 additions and 1 deletions

View File

@ -31,6 +31,7 @@
:item="child"
:templates="$slots"
:focusedOptionId="focusedOptionId"
:unstyled="unstyled"
@item-click="itemClick"
@item-mousemove="itemMouseMove"
:pt="pt"
@ -39,7 +40,19 @@
</template>
</template>
<li v-else-if="visible(item) && item.separator" :key="'separator' + i.toString()" :class="[cx('separator'), item.class]" :style="item.style" role="separator" v-bind="ptm('separator')"></li>
<PVMenuitem v-else :key="label(item) + i.toString()" :id="id + '_' + i" :item="item" :index="i" :templates="$slots" :focusedOptionId="focusedOptionId" @item-click="itemClick" @item-mousemove="itemMouseMove" :pt="pt" />
<PVMenuitem
v-else
:key="label(item) + i.toString()"
:id="id + '_' + i"
:item="item"
:index="i"
:templates="$slots"
:focusedOptionId="focusedOptionId"
:unstyled="unstyled"
@item-click="itemClick"
@item-mousemove="itemMouseMove"
:pt="pt"
/>
</template>
</ul>
<div v-if="$slots.end" :class="cx('end')" v-bind="ptm('end')">

View File

@ -31,6 +31,7 @@
:clickCallback="(event) => onItemClick(event, index)"
:getStepPT="getStepPT"
:getStepProp="getStepProp"
:unstyled="unstyled"
/>
</slot>
<slot v-if="index !== stepperpanels.length - 1" name="separator">
@ -42,6 +43,7 @@
:active="isStepActive(index)"
:highlighted="index < d_activeStep"
:getStepPT="getStepPT(step, 'separator', index)"
:unstyled="unstyled"
/>
</slot>
</li>
@ -61,6 +63,7 @@
:nextCallback="(event) => nextCallback(event, index)"
:getStepPT="getStepPT"
:aria-labelledby="getStepHeaderActionId(index)"
:unstyled="unstyled"
/>
</template>
</div>