ant-design/components/input-number/demo/basic.md

21 lines
330 B
Markdown
Raw Normal View History

2015-07-01 14:48:47 +08:00
# 基本
- 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>
2015-07-01 14:50:21 +08:00
, document.getElementById('components-input-number-demo-basic'));
2015-07-01 14:48:47 +08:00
````