From ce413c9a91b6bedda18df1e24ede573a9c033313 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 12:09:48 +0300 Subject: [PATCH] Refactor #3965 - For Menu --- components/lib/menu/BaseMenu.vue | 114 +++++++++++++++++++++++++++++++ components/lib/menu/Menu.d.ts | 5 ++ components/lib/menu/Menu.vue | 107 ++++------------------------- components/lib/menu/Menuitem.vue | 58 ++++++++-------- 4 files changed, 163 insertions(+), 121 deletions(-) create mode 100644 components/lib/menu/BaseMenu.vue diff --git a/components/lib/menu/BaseMenu.vue b/components/lib/menu/BaseMenu.vue new file mode 100644 index 000000000..894950dbf --- /dev/null +++ b/components/lib/menu/BaseMenu.vue @@ -0,0 +1,114 @@ + diff --git a/components/lib/menu/Menu.d.ts b/components/lib/menu/Menu.d.ts index 3e22b5384..f76570a5c 100755 --- a/components/lib/menu/Menu.d.ts +++ b/components/lib/menu/Menu.d.ts @@ -169,6 +169,11 @@ export interface MenuProps { * @type {MenuPassThroughOptions} */ pt?: MenuPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/menu/Menu.vue b/components/lib/menu/Menu.vue index e8cffe0d4..8d57cdf0d 100644 --- a/components/lib/menu/Menu.vue +++ b/components/lib/menu/Menu.vue @@ -1,14 +1,14 @@ - - diff --git a/components/lib/menu/Menuitem.vue b/components/lib/menu/Menuitem.vue index 293da0c81..9bd715539 100644 --- a/components/lib/menu/Menuitem.vue +++ b/components/lib/menu/Menuitem.vue @@ -1,18 +1,29 @@