From 3168936376a0f1bf4945fcb429d45181cad9c2a8 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 1 Jun 2022 07:36:32 +0100 Subject: [PATCH] Fixed #2602 - Add Nuxt3 support for components using teleport --- rollup.config.js | 1 + src/components/autocomplete/AutoComplete.vue | 16 +++----- src/components/calendar/Calendar.vue | 18 ++++---- .../cascadeselect/CascadeSelect.vue | 16 +++----- src/components/colorpicker/ColorPicker.vue | 18 ++++---- src/components/confirmpopup/ConfirmPopup.vue | 8 ++-- src/components/contextmenu/ContextMenu.vue | 8 ++-- src/components/datatable/ColumnFilter.vue | 8 ++-- src/components/dialog/Dialog.vue | 14 +++---- src/components/dropdown/Dropdown.vue | 16 +++----- src/components/galleria/Galleria.vue | 8 ++-- src/components/image/Image.vue | 8 +++- src/components/menu/Menu.vue | 8 ++-- src/components/multiselect/MultiSelect.vue | 16 +++----- src/components/overlaypanel/OverlayPanel.vue | 8 +++- src/components/password/Password.vue | 16 +++----- src/components/portal/Portal.vue | 41 +++++++++++++++++++ src/components/portal/package.json | 8 ++++ src/components/sidebar/Sidebar.vue | 8 +++- src/components/tieredmenu/TieredMenu.vue | 8 ++-- src/components/toast/Toast.vue | 8 ++-- src/components/treeselect/TreeSelect.vue | 16 +++----- src/components/utils/DomHandler.js | 4 ++ src/components/utils/Utils.d.ts | 1 + vue.config.js | 1 + 25 files changed, 166 insertions(+), 116 deletions(-) create mode 100644 src/components/portal/Portal.vue create mode 100644 src/components/portal/package.json diff --git a/rollup.config.js b/rollup.config.js index 37b7e4ec1..11e325c34 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -14,6 +14,7 @@ let coreDependencies = { 'primevue/api': 'primevue.api', 'primevue/config': 'primevue.config', 'primevue/ripple': 'primevue.ripple', + 'primevue/portal': 'primevue.portal', 'primevue/tooltip': 'primevue.tooltip', 'primevue/virtualscroller': 'primevue.virtualscroller', 'primevue/confirmationeventbus': 'primevue.confirmationeventbus', diff --git a/src/components/autocomplete/AutoComplete.vue b/src/components/autocomplete/AutoComplete.vue index 8b14976cb..d8a2c6201 100755 --- a/src/components/autocomplete/AutoComplete.vue +++ b/src/components/autocomplete/AutoComplete.vue @@ -16,7 +16,7 @@