mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #4303 - Sidebar: Icon classes not being correctly exposed
This commit is contained in:
parent
b5c5f9fa1c
commit
c54a39c83e
2 changed files with 8 additions and 2 deletions
8
components/lib/sidebar/Sidebar.d.ts
vendored
8
components/lib/sidebar/Sidebar.d.ts
vendored
|
@ -161,8 +161,14 @@ export interface SidebarSlots {
|
||||||
header(): VNode[];
|
header(): VNode[];
|
||||||
/**
|
/**
|
||||||
* Custom close icon template.
|
* Custom close icon template.
|
||||||
|
* @param {Object} scope - close icon slot's params.
|
||||||
*/
|
*/
|
||||||
closeicon(): VNode[];
|
closeicon(scope: {
|
||||||
|
/**
|
||||||
|
* Style class of the close icon
|
||||||
|
*/
|
||||||
|
class: any;
|
||||||
|
}): VNode[];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<slot name="header"></slot>
|
<slot name="header"></slot>
|
||||||
</div>
|
</div>
|
||||||
<button v-if="showCloseIcon" :ref="closeButtonRef" v-ripple autofocus type="button" :class="cx('closeButton')" :aria-label="closeAriaLabel" @click="hide" v-bind="ptm('closeButton')" data-pc-group-section="iconcontainer">
|
<button v-if="showCloseIcon" :ref="closeButtonRef" v-ripple autofocus type="button" :class="cx('closeButton')" :aria-label="closeAriaLabel" @click="hide" v-bind="ptm('closeButton')" data-pc-group-section="iconcontainer">
|
||||||
<slot name="closeicon">
|
<slot name="closeicon" :class="cx('closeIcon')">
|
||||||
<component :is="closeIcon ? 'span' : 'TimesIcon'" :class="[cx('closeIcon'), closeIcon]" v-bind="ptm('closeIcon')"></component>
|
<component :is="closeIcon ? 'span' : 'TimesIcon'" :class="[cx('closeIcon'), closeIcon]" v-bind="ptm('closeIcon')"></component>
|
||||||
</slot>
|
</slot>
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue