From eff31e4a5aac25f5686a86da3696fcb408979b25 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: Wed, 24 May 2023 17:26:41 +0300 Subject: [PATCH] Refactor #3965 - For ToggleButton --- .../lib/togglebutton/BaseToggleButton.vue | 95 +++++++++++++++++++ components/lib/togglebutton/ToggleButton.d.ts | 5 + components/lib/togglebutton/ToggleButton.vue | 84 ++-------------- 3 files changed, 107 insertions(+), 77 deletions(-) create mode 100644 components/lib/togglebutton/BaseToggleButton.vue diff --git a/components/lib/togglebutton/BaseToggleButton.vue b/components/lib/togglebutton/BaseToggleButton.vue new file mode 100644 index 000000000..6320c5bcd --- /dev/null +++ b/components/lib/togglebutton/BaseToggleButton.vue @@ -0,0 +1,95 @@ + diff --git a/components/lib/togglebutton/ToggleButton.d.ts b/components/lib/togglebutton/ToggleButton.d.ts index 648a4ea63..0cc5965ff 100755 --- a/components/lib/togglebutton/ToggleButton.d.ts +++ b/components/lib/togglebutton/ToggleButton.d.ts @@ -136,6 +136,11 @@ export interface ToggleButtonProps { * @type {ToggleButtonPassThroughOptions} */ pt?: ToggleButtonPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/togglebutton/ToggleButton.vue b/components/lib/togglebutton/ToggleButton.vue index c1ff13a6d..9090de0fa 100755 --- a/components/lib/togglebutton/ToggleButton.vue +++ b/components/lib/togglebutton/ToggleButton.vue @@ -1,6 +1,6 @@