From 808b7625acbc23d7b556487a19287e4dbad2731c 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: Thu, 25 May 2023 17:09:22 +0300 Subject: [PATCH] Refactor #3965 - For SelectButton --- .../lib/selectbutton/BaseSelectButton.vue | 41 ++++++++++++++ components/lib/selectbutton/SelectButton.d.ts | 5 ++ components/lib/selectbutton/SelectButton.vue | 55 ++++--------------- 3 files changed, 57 insertions(+), 44 deletions(-) create mode 100644 components/lib/selectbutton/BaseSelectButton.vue diff --git a/components/lib/selectbutton/BaseSelectButton.vue b/components/lib/selectbutton/BaseSelectButton.vue new file mode 100644 index 000000000..97b5d014e --- /dev/null +++ b/components/lib/selectbutton/BaseSelectButton.vue @@ -0,0 +1,41 @@ + diff --git a/components/lib/selectbutton/SelectButton.d.ts b/components/lib/selectbutton/SelectButton.d.ts index 8c2b9f4d4..ea3058fb4 100755 --- a/components/lib/selectbutton/SelectButton.d.ts +++ b/components/lib/selectbutton/SelectButton.d.ts @@ -140,6 +140,11 @@ export interface SelectButtonProps { * @type {SelectButtonPassThroughOptions} */ pt?: SelectButtonPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/selectbutton/SelectButton.vue b/components/lib/selectbutton/SelectButton.vue index 0694b990e..372ba791c 100755 --- a/components/lib/selectbutton/SelectButton.vue +++ b/components/lib/selectbutton/SelectButton.vue @@ -1,5 +1,5 @@