Skip to content

Commit

Permalink
[type:improve] Scale Rule Modal not allowed negative number (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
VampireAchao authored Nov 18, 2024
1 parent b262a38 commit 88804fb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/routes/System/Scale/RuleModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import React, { Component } from "react";
import { Form, Input, Modal, Select, Switch } from "antd";
import { Form, Input, InputNumber, Modal, Select, Switch } from "antd";
import { getIntlContent } from "../../../utils/IntlUtils";
import { ConfigType } from "./globalData";

Expand Down Expand Up @@ -166,7 +166,8 @@ class RuleModal extends Component {
{getFieldDecorator("minimum", {
initialValue: minimum,
})(
<Input
<InputNumber
min={0}
type="number"
allowClear
placeholder={getIntlContent(
Expand All @@ -182,7 +183,8 @@ class RuleModal extends Component {
{getFieldDecorator("maximum", {
initialValue: maximum,
})(
<Input
<InputNumber
min={0}
type="number"
allowClear
placeholder={getIntlContent(
Expand Down

0 comments on commit 88804fb

Please sign in to comment.