This commit is contained in:
2026-10-20 14:52:06 +08:00
parent 5679b156ca
commit 6f7f8e7632
61 changed files with 191 additions and 193 deletions
@@ -26,7 +26,7 @@ function hasMeaningfulPlaceholder(tag: string): boolean {
}
describe('正式业务模块输入提示合同', () => {
it('所有可编辑 el-input 与 el-input-number 都提供 placeholder', () => {
it('查询条件的可编辑输入框保留 placeholder', () => {
const violations: string[] = []
for (const file of vueFiles(modulesRoot)) {
@@ -37,6 +37,7 @@ describe('正式业务模块输入提示合同', () => {
for (const match of source.matchAll(openingTag)) {
const tag = match[0]
if (!/\s(?:v-model(?::[\w-]+)?(?:\.[\w-]+)*|:model-value)="[^"]*(?:filter|query|search|keyword)/i.test(tag)) continue
if (isPermanentlyReadOnly(tag)) continue
if (hasMeaningfulPlaceholder(tag)) continue