mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 00:09:39 +08:00
5bf08faeea
* refactor: rename qrcode to qr-code * test: patch test case * chore: fix Form missing displayName * chore: patch displayName * chore: style path * chore: fix compile
13 lines
374 B
TypeScript
13 lines
374 B
TypeScript
import React from 'react';
|
|
import { QRCode, Popover } from 'antd';
|
|
|
|
const src = 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg';
|
|
|
|
const App: React.FC = () => (
|
|
<Popover overlayInnerStyle={{ padding: 0 }} content={<QRCode value={src} bordered={false} />}>
|
|
<img width={100} height={100} src={src} alt="icon" />
|
|
</Popover>
|
|
);
|
|
|
|
export default App;
|