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
|
2019-05-17 12:05:03 +08:00
|
|
|
import { Mentions } from 'antd';
|
2022-05-21 22:14:15 +08:00
|
|
|
import React from 'react';
|
2019-05-17 12:05:03 +08:00
|
|
|
|
|
|
|
const { Option } = Mentions;
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2019-05-17 12:05:03 +08:00
|
|
|
<Mentions style={{ width: '100%' }} placement="top">
|
|
|
|
<Option value="afc163">afc163</Option>
|
|
|
|
<Option value="zombieJ">zombieJ</Option>
|
|
|
|
<Option value="yesmeck">yesmeck</Option>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Mentions>
|
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
|
|
|
```
|