完善内容类型与发布状态中文展示

This commit is contained in:
czl231
2026-08-17 18:59:30 +08:00
parent e9db59509c
commit 27100e171a
4 changed files with 80 additions and 1 deletions

View File

@@ -343,6 +343,19 @@ assertIncludes(
"unknownValueLabel: '未知对账渠道'",
'财务对账渠道必须使用中文枚举并保留未知值提示',
);
for (const contentContract of [
"{ label: '公告', value: 'notice' }",
"{ label: '协议', value: 'agreement' }",
"{ label: '草稿', value: 'draft' }",
"{ label: '已发布', value: 'published' }",
"unknownValueLabel: '未知发布状态'",
]) {
assertIncludes(
resources,
contentContract,
`内容管理缺少中文枚举契约:${contentContract}`,
);
}
assertIncludes(
detailPage,
'!hasResourceFieldLabel(props.definition, actualKey)',