修改完成
This commit is contained in:
@@ -5,16 +5,14 @@ $component = [System.IO.File]::ReadAllText((Join-Path $root 'components/tree/Tre
|
||||
foreach ($expected in @(
|
||||
'grid-template-columns: auto minmax(0, 1fr)',
|
||||
'min-height: min(640px, calc((100vw - 16px) * 1.48))',
|
||||
'pointer-events: none'
|
||||
'background: url("/static/assets/modules/tree/transparent/t01-state-panel.png")',
|
||||
'background: url("/static/assets/modules/tree/transparent/t07-search-input-frame.png")'
|
||||
)) {
|
||||
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"
|
||||
}
|
||||
if ($component -match '(?m)\bposition\s*:') {
|
||||
throw 'TreeMemberForm must not retain positioning in ordinary forms, fields, actions, or result content'
|
||||
}
|
||||
|
||||
Write-Output 'TREE-MEMBER-FORM-DOCUMENT-FLOW-CONTRACT PASS'
|
||||
|
||||
Reference in New Issue
Block a user