保存视觉审核与文档流迁移进度
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$root = Split-Path $PSScriptRoot -Parent
|
||||
$page = [System.IO.File]::ReadAllText((Join-Path $root 'pages/records/r01-people-list.vue'), [System.Text.Encoding]::UTF8)
|
||||
|
||||
foreach ($expected in @(
|
||||
'grid-template-columns: minmax(0, 1fr) 126rpx',
|
||||
'pointer-events: none'
|
||||
)) {
|
||||
if (-not $page.Contains($expected)) { throw "R01 document-flow contract missing: $expected" }
|
||||
}
|
||||
|
||||
foreach ($selector in @('.people-search input','.people-search__action','.person-card__copy')) {
|
||||
$escaped = [regex]::Escape($selector)
|
||||
if ($page -match "(?s)$escaped\s*\{[^}]*position\s*:\s*(absolute|fixed|sticky)\s*;") {
|
||||
throw "R01 normal content selector uses positioning: $selector"
|
||||
}
|
||||
}
|
||||
|
||||
if ($page -notmatch '(?s)\.person-card__copy\s*\{[^}]*position\s*:\s*relative\s*;') { throw 'R01 person-card copy must stay in normal flow above its local skin' }
|
||||
|
||||
Write-Output 'R01-DOCUMENT-FLOW-CONTRACT PASS'
|
||||
Reference in New Issue
Block a user