2019-05-17 12:05:03 +08:00
|
|
|
---
|
|
|
|
order: 5
|
|
|
|
title:
|
|
|
|
zh-CN: 向上展开
|
|
|
|
en-US: Placement
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
向上展开建议。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Change the suggestions placement.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2022-05-23 14:37:16 +08:00
|
|
|
import React from 'react';
|
2022-11-23 21:00:24 +08:00
|
|
|
import { Mentions } from 'antd';
|
2019-05-17 12:05:03 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2022-11-23 21:00:24 +08:00
|
|
|
<Mentions
|
|
|
|
style={{ width: '100%' }}
|
|
|
|
placement="top"
|
|
|
|
options={[
|
|
|
|
{
|
|
|
|
value: 'afc163',
|
|
|
|
label: 'afc163',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'zombieJ',
|
|
|
|
label: 'zombieJ',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'yesmeck',
|
|
|
|
label: 'yesmeck',
|
|
|
|
},
|
|
|
|
]}
|
|
|
|
/>
|
2019-05-17 12:05:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-17 12:05:03 +08:00
|
|
|
```
|