From 5b6fd8ac8ea51475e4f8a5d9c70016e45fe30370 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 14:15:28 +0300 Subject: [PATCH] Refactor #3965 - For InputSwitch --- .../lib/inputswitch/BaseInputSwitch.vue | 104 ++++++++++++++++++ components/lib/inputswitch/InputSwitch.d.ts | 10 ++ components/lib/inputswitch/InputSwitch.vue | 85 +------------- 3 files changed, 119 insertions(+), 80 deletions(-) create mode 100644 components/lib/inputswitch/BaseInputSwitch.vue diff --git a/components/lib/inputswitch/BaseInputSwitch.vue b/components/lib/inputswitch/BaseInputSwitch.vue new file mode 100644 index 000000000..ca7ee7e64 --- /dev/null +++ b/components/lib/inputswitch/BaseInputSwitch.vue @@ -0,0 +1,104 @@ + diff --git a/components/lib/inputswitch/InputSwitch.d.ts b/components/lib/inputswitch/InputSwitch.d.ts index bfb6dc5fd..3eb9a44c8 100755 --- a/components/lib/inputswitch/InputSwitch.d.ts +++ b/components/lib/inputswitch/InputSwitch.d.ts @@ -104,6 +104,16 @@ export interface InputSwitchProps { * Establishes a string value that labels the component. */ 'aria-label'?: string | undefined; + /** + * Uses to pass attributes to DOM elements inside the component. + * @type {InputSwitchPassThroughMethodOptions} + */ + pt?: InputSwitchPassThroughMethodOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } export interface InputSwitchSlots {} diff --git a/components/lib/inputswitch/InputSwitch.vue b/components/lib/inputswitch/InputSwitch.vue index 0741c61ed..a7274deb8 100755 --- a/components/lib/inputswitch/InputSwitch.vue +++ b/components/lib/inputswitch/InputSwitch.vue @@ -1,6 +1,6 @@ - -