优化
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user