From f01eb5f4aa779806f6269080e700be90d4ff7649 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 14 Jun 2026 19:16:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(dacli):=20=E8=BF=81=E7=A7=BB=20BS-31=20lab?= =?UTF-8?q?el=20=E9=9D=9E=E7=A9=BA=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/form/_blindspots.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/commands/form/_blindspots.ts b/src/commands/form/_blindspots.ts index 9ebdd7a..0b992be 100644 --- a/src/commands/form/_blindspots.ts +++ b/src/commands/form/_blindspots.ts @@ -73,4 +73,18 @@ export function checkBs23(columnDataRaw: unknown): BlindspotIssue[] { } } return issues +} + +export function checkBs31(formDataRaw: unknown): BlindspotIssue[] { + const issues: BlindspotIssue[] = [] + const fields = extractFields(safeParse(formDataRaw)) + if (!fields) return issues + fields.forEach((f, i) => { + const ff = f as { __config__?: { label?: string }; __vModel__?: string } + const label = ff.__config__?.label + if (!label || !label.trim()) { + issues.push({ id: 'BS-31', level: 'ERROR', path: `formData.fields[${i}] (${ff.__vModel__ || '?'})`, message: 'label 为空 → 浏览器层空白' }) + } + }) + return issues } \ No newline at end of file