fix: 修复 TypeScript 编译错误

- 在 CopyTradingCreateRequest 和 CopyTradingUpdateRequest 接口中添加 pushFilteredOrders 字段
- 修复 InputNumber parser 函数的返回类型,应该返回 number 而不是 string
This commit is contained in:
WrBug
2026-01-12 14:59:42 +08:00
parent f6fc836e79
commit 8f01588221
3 changed files with 6 additions and 4 deletions
@@ -833,9 +833,9 @@ const AddModal: React.FC<AddModalProps> = ({
style={{ width: '60%' }}
placeholder={t('copyTradingAdd.maxMarketEndDatePlaceholder') || '输入时间值(可选)'}
parser={(value) => {
if (!value) return ''
if (!value) return 0
const num = parseInt(value.replace(/\D/g, ''), 10)
return isNaN(num) ? '' : num.toString()
return isNaN(num) ? 0 : num
}}
formatter={(value) => {
if (!value && value !== 0) return ''
@@ -757,9 +757,9 @@ const EditModal: React.FC<EditModalProps> = ({
style={{ width: '60%' }}
placeholder={t('copyTradingEdit.maxMarketEndDatePlaceholder') || '输入时间值(可选)'}
parser={(value) => {
if (!value) return ''
if (!value) return 0
const num = parseInt(value.replace(/\D/g, ''), 10)
return isNaN(num) ? '' : num.toString()
return isNaN(num) ? 0 : num
}}
formatter={(value) => {
if (!value && value !== 0) return ''