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