Refactor #5592 - FileUpload & Overlay components

This commit is contained in:
tugcekucukoglu 2024-04-30 12:58:12 +03:00
parent 2c45303235
commit 28d77998c0
7 changed files with 38 additions and 41 deletions

View file

@ -75,9 +75,9 @@ export interface DialogPassThroughOptions<T = any> {
*/
title?: DialogPassThroughOptionType<T>;
/**
* Used to pass attributes to the header icons' DOM element.
* Used to pass attributes to the header actions' DOM element.
*/
icons?: DialogPassThroughOptionType<T>;
headerActions?: DialogPassThroughOptionType<T>;
/**
* Used to pass attributes to the maximizable Button component.
* @see {@link ButtonPassThroughOptions}

View file

@ -9,7 +9,7 @@
<slot name="header" :class="cx('title')">
<span v-if="header" :id="ariaLabelledById" :class="cx('title')" v-bind="ptm('title')">{{ header }}</span>
</slot>
<div :class="cx('icons')" v-bind="ptm('icons')">
<div :class="cx('headerActions')" v-bind="ptm('headerActions')">
<Button
v-if="maximizable"
:ref="maximizableRef"
@ -296,7 +296,7 @@ export default {
}
},
initDrag(event) {
if (event.target.closest('div').getAttribute('data-pc-section') === 'icons') {
if (event.target.closest('div').getAttribute('data-pc-section') === 'headeractions') {
return;
}

View file

@ -43,7 +43,7 @@ const classes = {
],
header: 'p-dialog-header',
title: 'p-dialog-title',
icons: 'p-dialog-header-actions',
headerActions: 'p-dialog-header-actions',
maximizableButton: 'p-dialog-maximize-button',
closeButton: 'p-dialog-close-button',
content: 'p-dialog-content',