mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
21 lines
361 B
TypeScript
21 lines
361 B
TypeScript
|
import React from 'react';
|
||
|
import { InputNumber } from 'antd';
|
||
|
|
||
|
const onChange = (value: string) => {
|
||
|
console.log('changed', value);
|
||
|
};
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<InputNumber<string>
|
||
|
style={{ width: 200 }}
|
||
|
defaultValue="1"
|
||
|
min="0"
|
||
|
max="10"
|
||
|
step="0.00000000000001"
|
||
|
onChange={onChange}
|
||
|
stringMode
|
||
|
/>
|
||
|
);
|
||
|
|
||
|
export default App;
|