mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 23:59:12 +08:00
21 lines
329 B
Markdown
21 lines
329 B
Markdown
|
# 基本
|
||
|
|
||
|
- order: 0
|
||
|
|
||
|
数字输入框
|
||
|
|
||
|
---
|
||
|
|
||
|
````jsx
|
||
|
var InputNumber = antd.InputNumber;
|
||
|
|
||
|
function onChange(v){
|
||
|
console.log('changed',v);
|
||
|
}
|
||
|
|
||
|
React.render(
|
||
|
<div><InputNumber min={1} max={10} defaultValue={3} onChange={onChange} style={{width:100}}/></div>
|
||
|
, document.getElementById('components-inputnumber-demo-basic'));
|
||
|
````
|
||
|
|