Merge pull request #5564 from i7slegend/fix/style-for-submenuHeader

fix(#5562): support style for submenuHeader in Menu
pull/5630/head
Tuğçe Küçükoğlu 2024-04-19 14:36:01 +03:00 committed by GitHub
commit 26d976997a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
>
<template v-for="(item, i) of model" :key="label(item) + i.toString()">
<template v-if="item.items && visible(item) && !item.separator">
<li v-if="item.items" :id="id + '_' + i" :class="[cx('submenuHeader'), item.class]" role="none" v-bind="ptm('submenuHeader')">
<li v-if="item.items" :id="id + '_' + i" :class="[cx('submenuHeader'), item.class]" :style="item.style" role="none" v-bind="ptm('submenuHeader')">
<slot name="submenuheader" :item="item">{{ label(item) }}</slot>
</li>
<template v-for="(child, j) of item.items" :key="child.label + i + '_' + j">