mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 02:18:07 +08:00
066be35de3
* feat: support options * feat: update package * feat: update package * feat: update doc * feat: update doc * feat: update doc * feat: add test case
43 lines
564 B
Markdown
43 lines
564 B
Markdown
---
|
|
order: 5
|
|
title:
|
|
zh-CN: 向上展开
|
|
en-US: Placement
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
向上展开建议。
|
|
|
|
## en-US
|
|
|
|
Change the suggestions placement.
|
|
|
|
```tsx
|
|
import React from 'react';
|
|
import { Mentions } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Mentions
|
|
style={{ width: '100%' }}
|
|
placement="top"
|
|
options={[
|
|
{
|
|
value: 'afc163',
|
|
label: 'afc163',
|
|
},
|
|
{
|
|
value: 'zombieJ',
|
|
label: 'zombieJ',
|
|
},
|
|
{
|
|
value: 'yesmeck',
|
|
label: 'yesmeck',
|
|
},
|
|
]}
|
|
/>
|
|
);
|
|
|
|
export default App;
|
|
```
|