From 015b7eee5c701ebf86ec84a20685a7287d83fe49 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 25 Oct 2023 12:50:23 +0100 Subject: [PATCH 1/4] Refactor on nuxt module doc --- doc/nuxt/SetupDoc.vue | 10 ++++++---- doc/nuxt/configuration/OptionsDoc.vue | 7 ++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/doc/nuxt/SetupDoc.vue b/doc/nuxt/SetupDoc.vue index 22d198e36..1970aba69 100644 --- a/doc/nuxt/SetupDoc.vue +++ b/doc/nuxt/SetupDoc.vue @@ -17,8 +17,8 @@ export default defineNuxtConfig({ modules: [ 'nuxt-primevue' ], - primevue: { - /* Options */ + primevue: { + /* Options */ } }) ` @@ -29,9 +29,11 @@ export default defineNuxtConfig({ modules: [ 'nuxt-primevue' ], - primevue: { + primevue: { usePrimeVue: true, options: {}, + importPT: undefined, + cssLayerOrder: 'tailwind-base, primevue, tailwind-utilities', components: { prefix: '', name: undefined, @@ -51,7 +53,7 @@ export default defineNuxtConfig({ exclude: undefined } } -}) +}) ` } }; diff --git a/doc/nuxt/configuration/OptionsDoc.vue b/doc/nuxt/configuration/OptionsDoc.vue index abe48da55..9fdefd82e 100644 --- a/doc/nuxt/configuration/OptionsDoc.vue +++ b/doc/nuxt/configuration/OptionsDoc.vue @@ -11,14 +11,11 @@ export default { return { code: { basic: ` -primevue: { +primevue: { options: { unstyled: true, ripple: true, - inputStyle: 'filled', - pt: { - - } + inputStyle: 'filled' } } ` From b6c96e83a03ba80dd58f7a4af4df28b7bfb38878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 25 Oct 2023 15:20:58 +0300 Subject: [PATCH 2/4] Fixed #4690 - MegaMenu: separate label and submenuLabel pt options --- components/lib/megamenu/MegaMenu.d.ts | 4 ++++ components/lib/megamenu/MegaMenuSub.vue | 2 +- components/lib/megamenu/style/MegaMenuStyle.js | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/components/lib/megamenu/MegaMenu.d.ts b/components/lib/megamenu/MegaMenu.d.ts index c86a2605f..0d863065a 100755 --- a/components/lib/megamenu/MegaMenu.d.ts +++ b/components/lib/megamenu/MegaMenu.d.ts @@ -98,6 +98,10 @@ export interface MegaMenuPassThroughOptions { * Used to pass attributes to the submenu's DOM element. */ submenu?: MegaMenuPassThroughOptionType; + /** + * Used to pass attributes to the submenu label's DOM element. + */ + submenuLabel?: MegaMenuPassThroughOptionType; /** * Used to pass attributes to the separator's DOM element. */ diff --git a/components/lib/megamenu/MegaMenuSub.vue b/components/lib/megamenu/MegaMenuSub.vue index b9c203ed9..240c3b272 100644 --- a/components/lib/megamenu/MegaMenuSub.vue +++ b/components/lib/megamenu/MegaMenuSub.vue @@ -32,7 +32,7 @@