mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 12:16:30 +00:00
refactor: code improve
This commit is contained in:
parent
cd111e9c99
commit
e89ff1f729
@ -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,
|
||||
},
|
||||
{
|
||||
|
@ -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": "已加载"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user