ant-design/components/input-number/demo/change-on-wheel.tsx

13 lines
279 B
TypeScript
Raw Normal View History

import React from 'react';
import { InputNumber } from 'antd';
const onChange = (value: number) => {
console.log('changed', value);
};
const App: React.FC = () => (
<InputNumber min={1} max={10} defaultValue={3} onChange={onChange} changeOnWheel />
);
export default App;