refactor: code improve

This commit is contained in:
katherinehhh 2024-01-30 23:18:53 +08:00
parent cd111e9c99
commit e89ff1f729
2 changed files with 9 additions and 1 deletions

View File

@ -46,6 +46,11 @@ const collection = {
title: `{{t("Status", { ns: "${NAMESPACE}" })}}`,
type: 'string',
'x-component': 'Select',
enum: [
{ value: 'loading', label: `{{t("Loading",{ns:"${NAMESPACE}"})}}`, color: 'orange' },
{ value: 'failed', label: `{{t("Failed",{ns:"${NAMESPACE}"})}}`, color: 'red' },
{ value: 'loaded', label: `{{t("Loaded",{ns:"${NAMESPACE}"})}}`, color: 'green' },
],
} as ISchema,
},
{

View File

@ -20,5 +20,8 @@
"The following field types are not compatible and do not support output and display": "以下字段类型未适配,不支持输出和显示",
"Field database type": "字段数据库类型",
"Field interface": "UI类型",
"Status":"状态"
"Status": "状态",
"Loading": "加载中",
"Failed": "加载失败",
"Loaded": "已加载"
}