From 9cf9957e5b28cac2d3d52293283ec15b6a93ee6f Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Thu, 8 Oct 2026 09:50:36 +0800 Subject: [PATCH] =?UTF-8?q?style(verify-code):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E6=A0=B7=E5=BC=8F=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E5=8D=87=20Android=20=E8=AE=BE=E5=A4=87=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 继续用隐藏原生输入框,避免与自定义绘制的数字冲突。 - 将输入内容和光标移出可视区域,优化 APP-PLUS 端体验。 --- components/verify-code/verify-code.vue | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/components/verify-code/verify-code.vue b/components/verify-code/verify-code.vue index d47bd23..9d7d6b6 100644 --- a/components/verify-code/verify-code.vue +++ b/components/verify-code/verify-code.vue @@ -280,21 +280,21 @@ function codeFormat(val: string | undefined, isPassword: boolean): string { } } -/* #ifdef APP-PLUS */ -/* - * App 的原生 input 如果覆盖在验证码格上,部分 Android 设备会出现 - * 原生光标/输入绘制层与自绘数字冲突。沿用 u-code-input 的隐藏输入方式, - * 将输入内容和原生光标移出可视区域,验证码格只负责展示响应式状态。 - */ -.xt__verify-code { - overflow: hidden; -} - -.xt__input { - left: -750rpx; - width: 1500rpx; - z-index: 1; -} +/* #ifdef APP-PLUS */ +/* + * App 的原生 input 如果覆盖在验证码格上,部分 Android 设备会出现 + * 原生光标/输入绘制层与自绘数字冲突。沿用 u-code-input 的隐藏输入方式, + * 将输入内容和原生光标移出可视区域,验证码格只负责展示响应式状态。 + */ +.xt__verify-code { + overflow: hidden; +} + +.xt__input { + left: -750rpx; + width: 1500rpx; + z-index: 1; +} .xt__input-ground { z-index: 2;