feat: 1.升级 Ant Design Ui 至 v6 2. 修复企业充值金额输入限制

This commit is contained in:
zhanjunhao
2026-11-10 18:49:38 +08:00
parent 425077f94b
commit fc4db4e75d
106 changed files with 1417 additions and 1010 deletions
@@ -305,7 +305,7 @@ function renderRecordTime(text) {
function renderRecordType(type, t) {
const config = TYPE_CONFIG[type] || TYPE_CONFIG.default;
return (
<AntTag bordered={false} color={RECORD_TYPE_COLORS[type]}>
<AntTag variant='filled' color={RECORD_TYPE_COLORS[type]}>
{t(config.label)}
</AntTag>
);
@@ -324,7 +324,7 @@ function renderRecordUseTime(record, t) {
{useTime}
{firstTime && <em>{firstTime}</em>}
</span>
<AntTag bordered={false} color={record.is_stream ? 'cyan' : undefined}>
<AntTag variant='filled' color={record.is_stream ? 'cyan' : undefined}>
{record.is_stream ? t('流') : t('非流')}
</AntTag>
</span>
@@ -409,7 +409,7 @@ const applyUsageRecordPresentation = (
const group =
record.group || getLogOther(record.other)?.group || '';
return group && node?.props?.children ? (
<AntTag bordered={false}>{group}</AntTag>
<AntTag variant='filled'>{group}</AntTag>
) : null;
},
};