From 4e3488ec6b8d4666c9fda667820e7e8e46f0329f 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: Tue, 30 May 2023 11:25:54 +0300 Subject: [PATCH] Refactor #3965 - For PanelMenu --- components/lib/panelmenu/BasePanelMenu.vue | 125 +++++++++++++++++++ components/lib/panelmenu/PanelMenu.d.ts | 9 ++ components/lib/panelmenu/PanelMenu.vue | 132 +++++---------------- components/lib/panelmenu/PanelMenuList.vue | 17 ++- components/lib/panelmenu/PanelMenuSub.vue | 87 ++++++-------- 5 files changed, 210 insertions(+), 160 deletions(-) create mode 100644 components/lib/panelmenu/BasePanelMenu.vue diff --git a/components/lib/panelmenu/BasePanelMenu.vue b/components/lib/panelmenu/BasePanelMenu.vue new file mode 100644 index 000000000..cfbd015e4 --- /dev/null +++ b/components/lib/panelmenu/BasePanelMenu.vue @@ -0,0 +1,125 @@ + diff --git a/components/lib/panelmenu/PanelMenu.d.ts b/components/lib/panelmenu/PanelMenu.d.ts index eadd4eda7..db7dfba81 100755 --- a/components/lib/panelmenu/PanelMenu.d.ts +++ b/components/lib/panelmenu/PanelMenu.d.ts @@ -91,6 +91,10 @@ export interface PanelMenuPassThroughOptions { * Uses to pass attributes to the label's DOM element. */ label?: PanelMenuPassThroughOptionType; + /** + * Uses to pass attributes to the submenu's DOM element. + */ + submenu?: PanelMenuPassThroughOptionType; /** * Uses to pass attributes to the separator's DOM element. */ @@ -193,6 +197,11 @@ export interface PanelMenuProps { * @type {PanelMenuPassThroughOptions} */ pt?: PanelMenuPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/panelmenu/PanelMenu.vue b/components/lib/panelmenu/PanelMenu.vue index 0c62dc052..ca14f67a3 100644 --- a/components/lib/panelmenu/PanelMenu.vue +++ b/components/lib/panelmenu/PanelMenu.vue @@ -1,10 +1,10 @@