mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 17:59:57 +08:00
67ee019478
* 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
30 lines
576 B
TypeScript
30 lines
576 B
TypeScript
import React from 'react';
|
|
import { Mentions } from 'antd';
|
|
|
|
const options = ['afc163', 'zombiej', 'yesmeck'].map((value) => ({
|
|
value,
|
|
key: value,
|
|
label: value,
|
|
}));
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<div style={{ marginBottom: 10 }}>
|
|
<Mentions
|
|
style={{ width: '100%' }}
|
|
placeholder="this is disabled Mentions"
|
|
disabled
|
|
options={options}
|
|
/>
|
|
</div>
|
|
<Mentions
|
|
style={{ width: '100%' }}
|
|
placeholder="this is readOnly Mentions"
|
|
readOnly
|
|
options={options}
|
|
/>
|
|
</>
|
|
);
|
|
|
|
export default App;
|