{(() => {
const current = formApiRef.current?.getValue('quota') || 0;
return (
{`${t('新额度:')}${renderQuota(current)} + ${renderQuota(addQuotaLocal)} = ${renderQuota(current + parseInt(addQuotaLocal || 0))}`}
);
})()}
{getCurrencyConfig().type !== 'TOKENS' && (
{t('金额')}
({t('仅用于换算,实际保存的是额度')})
{
setAddAmountLocal(val);
setAddQuotaLocal(
val != null && val !== '' ? displayAmountToQuota(Math.abs(val)) * Math.sign(val) : '',
);
}}
style={{ width: '100%' }}
showClear
/>
)}