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" :item="child"
:templates="$slots" :templates="$slots"
:focusedOptionId="focusedOptionId" :focusedOptionId="focusedOptionId"
:unstyled="unstyled"
@item-click="itemClick" @item-click="itemClick"
@item-mousemove="itemMouseMove" @item-mousemove="itemMouseMove"
:pt="pt" :pt="pt"
@ -39,7 +40,19 @@
</template> </template>
</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> <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> </template>
</ul> </ul>
<div v-if="$slots.end" :class="cx('end')" v-bind="ptm('end')"> <div v-if="$slots.end" :class="cx('end')" v-bind="ptm('end')">

View File

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