Proformdigit uses min
limit to input the minimum value, Max
limit to input the maximum value, fieldprops
limit to input the decimal places
Keep two decimal places fieldprops = {precision: 2}}
<ProFormDigit
label="InputNumber"
name="num"
min={1}
max={22}
fieldProps={{ precision: 2 }}
/>
fieldProps={{ precision: 0 }}
<ProFormDigit
label="InputNumber"
name="num"
min={1}
max={22}
fieldProps={{ precision: 0 }}
/>
Read More:
- Solution to page scroll bar failure caused by opening secondary spring frame in Ant Design modal form
- Solve the problem of showing unregistered (unknown custom element) when importing components into Ant Design Pro
- Ant Design upload listtype = “picture card” realizes multi image upload and click preview image encapsulation
- Using UMI plugin keep alive to realize keep alive state storage in UMI Ant Design
- Ant Design ‘cross env’ is not an internal or external command, nor is it an error reporting problem for a runnable program
- 【arm】arm-assembly-print-register-value-in-decimal
- Conversion from hexadecimal to decimal
- Error in DESeqDataSet(se, design = design, ignoreRank) : some values in assay are negative
- socket.error : [errno 10048] and view PID process number and port number
- Java long type error: error: integer number too large
- Datacamp course: database design
- QuartusII software exception: error: top level design entity “” is undefined
- Elmentui form. When setting input type = number, remove the up and down arrows
- A convenient method to count the total number of query results in MySQL
- modelsim actually error loading design?
- Design of MQ asynchronous collection report data
- Design and implementation of music website based on Java
- System architecture and product design of resource scheduling platform
- [Solved] vivado Install Error: Xilinx Design Tool Display in Red
- Vivado Error: (vlog-7) Failed to open design unit file