From bffef92cb3abbed1d902d473bd906714655cacaf 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 17:05:57 +0300 Subject: [PATCH] Refactor #3965 - For Button --- components/lib/button/BaseButton.vue | 196 +++++++++++++++++++++++++++ components/lib/button/Button.d.ts | 5 + components/lib/button/Button.vue | 131 ++---------------- 3 files changed, 211 insertions(+), 121 deletions(-) create mode 100644 components/lib/button/BaseButton.vue diff --git a/components/lib/button/BaseButton.vue b/components/lib/button/BaseButton.vue new file mode 100644 index 000000000..755de0fd5 --- /dev/null +++ b/components/lib/button/BaseButton.vue @@ -0,0 +1,196 @@ + diff --git a/components/lib/button/Button.d.ts b/components/lib/button/Button.d.ts index f6955bb85..36795965b 100755 --- a/components/lib/button/Button.d.ts +++ b/components/lib/button/Button.d.ts @@ -142,6 +142,11 @@ export interface ButtonProps extends ButtonHTMLAttributes { * @type {ButtonPassThroughOptions} */ pt?: ButtonPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/button/Button.vue b/components/lib/button/Button.vue index 7c58b28b2..780ab6087 100755 --- a/components/lib/button/Button.vue +++ b/components/lib/button/Button.vue @@ -1,139 +1,28 @@