mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
2cdf586291
* chore: fix lint * chore: fix lint * test: fix 16 * fix: lint
28 lines
577 B
TypeScript
28 lines
577 B
TypeScript
import React from 'react';
|
|
import { ConfigProvider, Mentions } from 'antd';
|
|
|
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalMentions } = Mentions;
|
|
|
|
const options = [
|
|
{
|
|
value: 'afc163',
|
|
label: 'afc163',
|
|
},
|
|
{
|
|
value: 'zombieJ',
|
|
label: 'zombieJ',
|
|
},
|
|
];
|
|
|
|
const App: React.FC = () => (
|
|
<ConfigProvider
|
|
theme={{
|
|
components: { Mentions: { dropdownHeight: 500, controlItemWidth: 300, zIndexPopup: 1000 } },
|
|
}}
|
|
>
|
|
<InternalMentions style={{ width: '100%' }} value="@" options={options} />
|
|
</ConfigProvider>
|
|
);
|
|
|
|
export default App;
|