From 25d60f9718e3a30b2ce60f01665d85e2ccf95dcd Mon Sep 17 00:00:00 2001 From: Jz0ojiang Date: Wed, 12 Aug 2026 03:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E8=A1=8C=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E7=94=A8=20label=20=E5=8C=85=20button=20=E5=9E=8B=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 没有 for 的 label 会绑定内部第一个可关联控件。导入 ini 的「内容」行里 那是 DropFile 的按钮:悬停 textarea 会点亮投放区,点到行内空白处直接 弹出文件选择框。SelectBox 的开关按钮同理(InboundForm、RuleGroupForm、 ini 映射行),悬停整行都会点亮它。这些行改用 div,无障碍名换成控件 自己的 aria-label。ComboBox 的行保持 label——它第一个可关联控件是文本 输入框,label 转发过去正是想要的行为。 --- web/views/InboundForm.vue | 22 ++++++++++++++++------ web/views/IniImportForm.vue | 20 +++++++++++++++----- web/views/RuleGroupForm.vue | 13 ++++++++----- 3 files changed, 39 insertions(+), 16 deletions(-) diff --git a/web/views/InboundForm.vue b/web/views/InboundForm.vue index c22bb6d..2a9629d 100644 --- a/web/views/InboundForm.vue +++ b/web/views/InboundForm.vue @@ -154,13 +154,15 @@ function submit() { -