From fa2b96753fd9c19c7e3f49bd7fec2b2c4e7b58d1 Mon Sep 17 00:00:00 2001 From: devin Date: Thu, 26 Jun 2025 16:36:49 +0800 Subject: [PATCH 1/4] =?UTF-8?q?style=EF=BC=9A=E4=BF=AE=E5=A4=8D=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E9=BC=A0=E6=A0=87=E6=A0=B7=E5=BC=8F=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BA=E6=89=8B=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/opendesign/src/_components/in-box/style/index.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/opendesign/src/_components/in-box/style/index.scss b/packages/opendesign/src/_components/in-box/style/index.scss index 6c43b4f6..38241341 100644 --- a/packages/opendesign/src/_components/in-box/style/index.scss +++ b/packages/opendesign/src/_components/in-box/style/index.scss @@ -20,7 +20,6 @@ background-color: var(--_box-bg-color); transition: all var(--o-duration-s) var(--o-easing-standard); - cursor: pointer; @include hover { border-color: var(--_box-bd-color-hover); background-color: var(--_box-bg-color-hover); -- Gitee From 312917c751be2f0a35c9289768393abb4e6636dd Mon Sep 17 00:00:00 2001 From: devin Date: Thu, 26 Jun 2025 16:47:15 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix(input-number):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/opendesign/src/input-number/style/index.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/opendesign/src/input-number/style/index.scss b/packages/opendesign/src/input-number/style/index.scss index e3ca6d42..6005a6f7 100644 --- a/packages/opendesign/src/input-number/style/index.scss +++ b/packages/opendesign/src/input-number/style/index.scss @@ -7,13 +7,12 @@ justify-content: center; display: flex; cursor: pointer; - min-width: var(--box-height); + min-width: var(--_box-height); font-size: 16px; flex-wrap: wrap; color: var(--input-number-btn-color); } - .o-input-number-btn { width: 100%; height: 50%; -- Gitee From 315219000fb155f95d4d96e125d58a9ca599f290 Mon Sep 17 00:00:00 2001 From: devin Date: Thu, 26 Jun 2025 17:03:25 +0800 Subject: [PATCH 3/4] =?UTF-8?q?feat(input):=20=E6=9A=B4=E9=9C=B2focus?= =?UTF-8?q?=EF=BC=8Cblur=EF=BC=8Cclear=EF=BC=8CtogglePassword=EF=BC=8Cinpu?= =?UTF-8?q?tEl=E6=8E=A5=E5=8F=A3=EF=BC=9B=20#ICGJIO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/opendesign/src/_components/in-input/InInput.vue | 5 +++++ packages/opendesign/src/input/OInput.vue | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/packages/opendesign/src/_components/in-input/InInput.vue b/packages/opendesign/src/_components/in-input/InInput.vue index 61ccfc54..2207813b 100644 --- a/packages/opendesign/src/_components/in-input/InInput.vue +++ b/packages/opendesign/src/_components/in-input/InInput.vue @@ -75,6 +75,10 @@ const focus = () => { inputEl.value?.focus(); }; +const blur = () => { + inputEl.value?.blur(); +}; + /** * 自适应宽度 */ @@ -89,6 +93,7 @@ const mirrorValue = computed(() => { defineExpose({ inputEl, focus, + blur, clear, togglePassword, }); diff --git a/packages/opendesign/src/input/OInput.vue b/packages/opendesign/src/input/OInput.vue index b08396f5..a1eae578 100644 --- a/packages/opendesign/src/input/OInput.vue +++ b/packages/opendesign/src/input/OInput.vue @@ -85,6 +85,14 @@ onMounted(() => { inputId.value = uniqueId(); } }); + +defineExpose({ + focus: inInputRef.value?.focus, + blur: inInputRef.value?.blur, + clear: inInputRef.value?.blur, + inputEl: inInputRef.value?.inputEl, + togglePassword: inInputRef.value?.togglePassword, +});