mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-28 19:18:40 +08:00
21 lines
259 B
Markdown
21 lines
259 B
Markdown
# 基本
|
|
|
|
- order: 0
|
|
|
|
数字输入框
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { InputNumber } from 'antd';
|
|
|
|
function onChange(value) {
|
|
console.log('changed', value);
|
|
}
|
|
|
|
ReactDOM.render(
|
|
<InputNumber min={1} max={10} defaultValue={3} onChange={onChange} />
|
|
, mountNode);
|
|
````
|
|
|