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

21 lines
308 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(
2015-07-20 20:03:45 +08:00
<InputNumber min={1} max={10} defaultValue={3} onChange={onChange} />
2015-07-15 16:13:00 +08:00
, document.getElementById('components-input-number-demo-basic'));
2015-07-01 14:48:47 +08:00
````