mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
18 lines
440 B
TypeScript
18 lines
440 B
TypeScript
|
import React from 'react';
|
||
|
import { UserOutlined } from '@ant-design/icons';
|
||
|
import { InputNumber } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<InputNumber prefix="¥" style={{ width: '100%' }} />
|
||
|
<br />
|
||
|
<br />
|
||
|
<InputNumber addonBefore={<UserOutlined />} prefix="¥" style={{ width: '100%' }} />
|
||
|
<br />
|
||
|
<br />
|
||
|
<InputNumber prefix="¥" disabled style={{ width: '100%' }} />
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|