ant-design/components/mentions/demo/render-panel.tsx
黑雨 67ee019478
Mentions data driven (#38630)
* feat: reset and force update

* feat: update package

* feat: reset

* feat: update for viewer

* feat: update for viewer

* feat: update for viewer

* feat: update for viewer

* feat: update for viewer

* update doc

* feat: add waring

* feat: update doc

* feat: add test case
2022-11-21 21:34:23 +08:00

22 lines
396 B
TypeScript

import React from 'react';
import { Mentions } from 'antd';
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalMentions } = Mentions;
const options = [
{
value: 'afc163',
label: 'afc163',
},
{
value: 'zombieJ',
label: 'zombieJ',
},
]
const App: React.FC = () => (
<InternalMentions style={{ width: '100%' }} value="@" options={options}/>
);
export default App;