From 3f7bf2ce142a70678b155427683b51ea2881e912 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:03:56 +0300 Subject: [PATCH] Refactor #3965 - For InputNumber --- .../lib/inputnumber/BaseInputNumber.vue | 290 ++++++++++++++++ components/lib/inputnumber/InputNumber.d.ts | 5 + components/lib/inputnumber/InputNumber.vue | 326 +++--------------- 3 files changed, 339 insertions(+), 282 deletions(-) create mode 100644 components/lib/inputnumber/BaseInputNumber.vue diff --git a/components/lib/inputnumber/BaseInputNumber.vue b/components/lib/inputnumber/BaseInputNumber.vue new file mode 100644 index 000000000..f16bbb392 --- /dev/null +++ b/components/lib/inputnumber/BaseInputNumber.vue @@ -0,0 +1,290 @@ + diff --git a/components/lib/inputnumber/InputNumber.d.ts b/components/lib/inputnumber/InputNumber.d.ts index 3cb6edd5f..5ce199869 100755 --- a/components/lib/inputnumber/InputNumber.d.ts +++ b/components/lib/inputnumber/InputNumber.d.ts @@ -267,6 +267,11 @@ export interface InputNumberProps { * @type {InputNumberPassThroughOptions} */ pt?: InputNumberPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/inputnumber/InputNumber.vue b/components/lib/inputnumber/InputNumber.vue index 7b0b4cfe1..fa06ce8fd 100755 --- a/components/lib/inputnumber/InputNumber.vue +++ b/components/lib/inputnumber/InputNumber.vue @@ -1,11 +1,10 @@