ant-design/components/mentions/demo/placement.md

32 lines
502 B
Markdown
Raw Normal View History

---
order: 5
title:
zh-CN: 向上展开
en-US: Placement
---
## zh-CN
向上展开建议。
## en-US
Change the suggestions placement.
```tsx
import { Mentions } from 'antd';
2022-05-23 14:37:16 +08:00
import React from 'react';
const { Option } = Mentions;
const App: React.FC = () => (
<Mentions style={{ width: '100%' }} placement="top">
<Option value="afc163">afc163</Option>
<Option value="zombieJ">zombieJ</Option>
<Option value="yesmeck">yesmeck</Option>
</Mentions>
);
export default App;
```