From e53aecc54e3437257a227b287a993b34c8b4efee Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Fri, 26 Jun 2026 18:02:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8B=E6=8B=89=E6=A1=86=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E8=BE=93=E5=85=A5=E6=A1=86=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index d3b01ff..e09f6e8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -33,5 +33,13 @@ @import "uview-plus/index.scss"; @import '@/static/scss/index.scss'; - +/* 修复 uView u-input 在 disabled/readonly/select 状态(渲染为 u-input--selectlike)时 + 只能点右侧图标、无法整行点击的问题: + 框架仅把 u-input 内部元素设为 pointer-events:none,但根节点 .u-input 仍拦截点击, + 导致点击无法穿透到父级 u-form-item 触发其 @click 选择事件。 + 这里让整个 selectlike 态 u-input 都不接收指针事件,使点击穿透到 u-form-item, + 从而实现整行点击均可弹出下拉/选择。全局生效,无需逐页面修改。 */ +.u-input--selectlike { + pointer-events: none !important; +} \ No newline at end of file