chore:二维码精选名片后台控制开启显示

This commit is contained in:
2026-10-21 17:32:30 +08:00
parent 724e7ac134
commit a1d8ee8d7a
4 changed files with 318 additions and 13 deletions

View File

@@ -144,6 +144,12 @@ test('show: 自绘资料行(图标/文字标签退化 + href 派生动作 + doAc
assert.match(showSrc, /onRowTap\(row\)\s*\{[\s\S]*?this\.doAct\(act\)/);
});
test('show: 资料行总开关(面板「显示资料行」, 默认显示, 关后整块隐藏)', () => {
assert.match(showSrc, /showRowsBlock\(\)\s*\{\s*return flagOn\(this\.c\.showRows,\s*true\)/);
// 模板资料行块受开关控制(与头像开关同口径: v-if 直接消费)
assert.match(showSrc, /v-if="showRowsBlock && shownRows\.length" class="card-rows"/);
});
// =============================================================
// 反例(防恒真)
// =============================================================