From a21c83e92712e4094a739e6b958c845498fab555 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: Fri, 19 May 2023 15:19:16 +0300 Subject: [PATCH] Refactor #3965 - For Toolbar --- components/lib/toolbar/BaseToolbar.vue | 57 ++++++++++++++++++++++++++ components/lib/toolbar/Toolbar.d.ts | 5 +++ components/lib/toolbar/Toolbar.vue | 41 ++++-------------- 3 files changed, 69 insertions(+), 34 deletions(-) create mode 100644 components/lib/toolbar/BaseToolbar.vue diff --git a/components/lib/toolbar/BaseToolbar.vue b/components/lib/toolbar/BaseToolbar.vue new file mode 100644 index 000000000..ccee98a41 --- /dev/null +++ b/components/lib/toolbar/BaseToolbar.vue @@ -0,0 +1,57 @@ + diff --git a/components/lib/toolbar/Toolbar.d.ts b/components/lib/toolbar/Toolbar.d.ts index 668180840..8f50f5064 100755 --- a/components/lib/toolbar/Toolbar.d.ts +++ b/components/lib/toolbar/Toolbar.d.ts @@ -62,6 +62,11 @@ export interface ToolbarProps { * @type {ToolbarPassThroughOptions} */ pt?: ToolbarPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/toolbar/Toolbar.vue b/components/lib/toolbar/Toolbar.vue index 47a014c3d..1e92a9c3b 100755 --- a/components/lib/toolbar/Toolbar.vue +++ b/components/lib/toolbar/Toolbar.vue @@ -1,49 +1,22 @@ - -