Refactor #3965, Improve build and Added *Base models

This commit is contained in:
mertsincan 2023-07-03 23:20:35 +01:00
parent f4ba20b222
commit 9247620421
134 changed files with 4230 additions and 1729 deletions

View file

@ -203,7 +203,7 @@ const classes = {
footer: 'p-dialog-footer'
};
const { load: loadStyle } = useStyle(styles, { id: 'primevue_dialog_style', manual: true });
const { load: loadStyle } = useStyle(styles, { name: 'dialog', manual: true });
export default {
name: 'BaseDialog',

View file

@ -189,19 +189,19 @@ export default {
if (!this.modal) {
if (this.maximized) {
!this.isUnstyled && DomHandler.addClass(document.body, 'p-overflow-hidden');
DomHandler.addClass(document.body, 'p-overflow-hidden');
} else {
!this.isUnstyled && DomHandler.removeClass(document.body, 'p-overflow-hidden');
DomHandler.removeClass(document.body, 'p-overflow-hidden');
}
}
},
enableDocumentSettings() {
if (this.modal || (this.maximizable && this.maximized && !this.isUnstyled)) {
if (this.modal || (this.maximizable && this.maximized)) {
DomHandler.addClass(document.body, 'p-overflow-hidden');
}
},
unbindDocumentState() {
if (this.modal || (this.maximizable && this.maximized && !this.isUnstyled)) {
if (this.modal || (this.maximizable && this.maximized)) {
DomHandler.removeClass(document.body, 'p-overflow-hidden');
}
},