保存视觉审核与文档流迁移进度

This commit is contained in:
rain
2026-07-20 17:23:09 +08:00
parent 5a31a75da0
commit 01d246c47b
59 changed files with 3615 additions and 378 deletions
@@ -0,0 +1,20 @@
$ErrorActionPreference = 'Stop'
$root = Split-Path $PSScriptRoot -Parent
$component = [System.IO.File]::ReadAllText((Join-Path $root 'components/tree/TreeMemberForm.vue'), [System.Text.Encoding]::UTF8)
foreach ($expected in @(
'grid-template-columns: auto minmax(0, 1fr)',
'min-height: min(640px, calc((100vw - 16px) * 1.48))',
'pointer-events: none'
)) {
if (-not $component.Contains($expected)) { throw "TreeMemberForm document-flow contract missing: $expected" }
}
foreach ($selector in @('.member-form, .member-form-result','.member-field > text','.member-field input')) {
$escaped = [regex]::Escape($selector)
if ($component -match "(?s)$escaped\s*\{[^}]*position\s*:\s*(absolute|fixed|sticky)\s*;") {
throw "TreeMemberForm normal content selector uses positioning: $selector"
}
}
Write-Output 'TREE-MEMBER-FORM-DOCUMENT-FLOW-CONTRACT PASS'