mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Refactor #5681
This commit is contained in:
parent
3cc675e50f
commit
e1367fd494
89 changed files with 376 additions and 339 deletions
4
components/lib/drawer/Drawer.d.ts
vendored
4
components/lib/drawer/Drawer.d.ts
vendored
|
@ -79,10 +79,10 @@ export interface DrawerPassThroughOptions {
|
|||
*/
|
||||
title?: DrawerPassThroughOptionType;
|
||||
/**
|
||||
* Used to pass attributes to the previous button's DOM element.
|
||||
* Used to pass attributes to the close button's DOM element.
|
||||
* @see {@link ButtonPassThroughOptions}
|
||||
*/
|
||||
toggler?: ButtonPassThroughOptions<DrawerSharedPassThroughMethodOptions>;
|
||||
pcCloseButton?: ButtonPassThroughOptions<DrawerSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to pass attributes to the content's DOM element.
|
||||
*/
|
||||
|
|
|
@ -13,17 +13,17 @@
|
|||
v-if="showCloseIcon"
|
||||
:ref="closeButtonRef"
|
||||
type="button"
|
||||
:class="cx('closeButton')"
|
||||
:class="cx('pcCloseButton')"
|
||||
:aria-label="closeAriaLabel"
|
||||
:unstyled="unstyled"
|
||||
@click="hide"
|
||||
v-bind="closeButtonProps"
|
||||
:pt="ptm('closeButton')"
|
||||
:pt="ptm('pcCloseButton')"
|
||||
data-pc-group-section="iconcontainer"
|
||||
>
|
||||
<template #icon="slotProps">
|
||||
<slot name="closeicon" :class="cx('closeIcon')">
|
||||
<component :is="closeIcon ? 'span' : 'TimesIcon'" :class="[cx('closeIcon'), closeIcon, slotProps.class]" v-bind="ptm('closeButton')['icon']"></component>
|
||||
<slot name="closeicon">
|
||||
<component :is="closeIcon ? 'span' : 'TimesIcon'" :class="[closeIcon, slotProps.class]" v-bind="ptm('pcCloseButton')['icon']"></component>
|
||||
</slot>
|
||||
</template>
|
||||
</Button>
|
||||
|
|
|
@ -187,7 +187,7 @@ const classes = {
|
|||
],
|
||||
header: 'p-drawer-header',
|
||||
title: 'p-drawer-title',
|
||||
closeButton: 'p-drawer-close-button',
|
||||
pcCloseButton: 'p-drawer-close-button',
|
||||
content: 'p-drawer-content'
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue