mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-26 01:42:30 +08:00
10e46c107e
* feat: add suffix prop & change controls animation * feat: add opacity * refactor: calc * refactor: change file * test: change text --------- Co-authored-by: afc163 <afc163@gmail.com>
21 lines
521 B
TypeScript
21 lines
521 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%' }} />
|
|
<br />
|
|
<br />
|
|
<InputNumber suffix="RMB" style={{ width: '100%' }} />
|
|
</>
|
|
);
|
|
|
|
export default App;
|