2023-05-31 10:37:40 +08:00
|
|
|
import React from 'react';
|
2023-07-28 16:17:43 +08:00
|
|
|
import { ConfigProvider, Mentions } from 'antd';
|
2023-05-31 10:37:40 +08:00
|
|
|
|
|
|
|
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;
|