mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
17 lines
481 B
TypeScript
17 lines
481 B
TypeScript
|
import React from 'react';
|
||
|
import { InputNumber, Space } from 'antd';
|
||
|
|
||
|
const onChange = (value: number) => {
|
||
|
console.log('changed', value);
|
||
|
};
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Space>
|
||
|
<InputNumber size="large" min={1} max={100000} defaultValue={3} onChange={onChange} />
|
||
|
<InputNumber min={1} max={100000} defaultValue={3} onChange={onChange} />
|
||
|
<InputNumber size="small" min={1} max={100000} defaultValue={3} onChange={onChange} />
|
||
|
</Space>
|
||
|
);
|
||
|
|
||
|
export default App;
|