From df4994ea68a7dae1896d389d24b581111f444975 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: Mon, 29 May 2023 17:06:26 +0300 Subject: [PATCH] Refactor #3965 - For Menubar --- components/lib/menubar/BaseMenubar.vue | 158 +++++++++++++++++++++++++ components/lib/menubar/Menubar.d.ts | 9 ++ components/lib/menubar/Menubar.vue | 114 ++---------------- components/lib/menubar/MenubarSub.vue | 89 +++++--------- 4 files changed, 206 insertions(+), 164 deletions(-) create mode 100644 components/lib/menubar/BaseMenubar.vue diff --git a/components/lib/menubar/BaseMenubar.vue b/components/lib/menubar/BaseMenubar.vue new file mode 100644 index 000000000..59ef278e6 --- /dev/null +++ b/components/lib/menubar/BaseMenubar.vue @@ -0,0 +1,158 @@ + diff --git a/components/lib/menubar/Menubar.d.ts b/components/lib/menubar/Menubar.d.ts index 7f248d4a6..ccb05d868 100755 --- a/components/lib/menubar/Menubar.d.ts +++ b/components/lib/menubar/Menubar.d.ts @@ -59,6 +59,10 @@ export interface MenubarPassThroughOptions { * Uses to pass attributes to the submenu icon's DOM element. */ submenuIcon?: MenubarPassThroughOptionType; + /** + * Uses to pass attributes to the submenu's DOM element. + */ + submenu?: MenubarPassThroughOptionType; /** * Uses to pass attributes to the separator's DOM element. */ @@ -182,6 +186,11 @@ export interface MenubarProps { * @type {MenubarPassThroughOptions} */ pt?: MenubarPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/menubar/Menubar.vue b/components/lib/menubar/Menubar.vue index 7f8193129..0fad2bce7 100755 --- a/components/lib/menubar/Menubar.vue +++ b/components/lib/menubar/Menubar.vue @@ -1,6 +1,6 @@ - - diff --git a/components/lib/menubar/MenubarSub.vue b/components/lib/menubar/MenubarSub.vue index fbf563d7f..ae9e3cc41 100755 --- a/components/lib/menubar/MenubarSub.vue +++ b/components/lib/menubar/MenubarSub.vue @@ -1,11 +1,11 @@