mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Refactor #5592 - FileUpload & Overlay components
This commit is contained in:
parent
2c45303235
commit
28d77998c0
7 changed files with 38 additions and 41 deletions
4
components/lib/dialog/Dialog.d.ts
vendored
4
components/lib/dialog/Dialog.d.ts
vendored
|
@ -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}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue