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

21 lines
328 B
Markdown
Raw Normal View History

2015-07-01 14:48:47 +08:00
# 基本
- order: 0
数字输入框
---
````jsx
var InputNumber = antd.InputNumber;
2015-07-15 16:13:00 +08:00
function onChange(value) {
console.log('changed', value);
2015-07-01 14:48:47 +08:00
}
2015-07-15 16:13:00 +08:00
React.render(
<InputNumber min={1} max={10} defaultValue={3} onChange={onChange} style={{width:100}} />
, document.getElementById('components-input-number-demo-basic'));
2015-07-01 14:48:47 +08:00
````