You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
order: 7
|
|
|
|
title:
|
|
|
|
zh-CN: 前缀
|
|
|
|
en-US: Prefix
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
在输入框上添加前缀图标。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Add a prefix inside input.
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
import { InputNumber } from 'antd';
|
|
|
|
import { InfoCircleOutlined, SmileOutlined, UserOutlined } from '@ant-design/icons';
|
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<>
|
|
|
|
<InputNumber prefix="¥" style={{ width: '100%' }} />
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<InputNumber addonBefore={<UserOutlined />} prefix="¥" style={{ width: '100%' }} />
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<InputNumber prefix="¥" disabled style={{ width: '100%' }} />
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
```
|