-
- 目标 {index + 1}
-
-
-
- {/* Target Type */}
-
-
-
-
-
- {/* Target Selection */}
-
-
-
-
-
- {/* Allocation Type Toggle */}
-
-
-
-
-
-
-
-
- {/* Percentage or Fixed Amount Input */}
- {target.percentage !== undefined ? (
-
-
- handleTargetChange(index, 'percentage', e.target.value)}
- className="allocation-rule-form__input"
- placeholder="0"
- min="0"
- max="100"
- step="0.01"
- disabled={isLoading}
- />
-
- ) : (
-
-
- handleTargetChange(index, 'fixedAmount', e.target.value)}
- className="allocation-rule-form__input"
- placeholder="0.00"
- min="0"
- step="0.01"
- disabled={isLoading}
- />
-
- )}
-
- {errors[`target_${index}`] && (
-
{errors[`target_${index}`]}
- )}
-