Skip to content

Commit

Permalink
fix(form): 修复 compact warning (#7496)
Browse files Browse the repository at this point in the history
Signed-off-by: xliez <[email protected]>
  • Loading branch information
xliez authored Aug 10, 2023
1 parent f9372ce commit b60d33d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/field/src/components/DigitRange/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ const FieldDigitRange: ProFieldFC<FieldDigitRangeProps> = (
: placeholderValue;

const Compact = Space.Compact || Input.Group;
const compactProps = !!Space.Compact ? {} : { compact: true };
const dom = (
<Compact
{...{
compact: true,
}}
{...compactProps}
onBlur={handleGroupBlur}
>
<InputNumber<number>
Expand Down

0 comments on commit b60d33d

Please sign in to comment.