mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
0e94620a74
* fix: Added bgColor attribute to fix the problem that the background color of the QR code is displayed incorrectly when downloading * chorn: update snap * fix: 新增版本号 * fix: update snap * fix: 去除多余代码 * fix: update snap --------- Co-authored-by: pineapple <zhanglongchao@shizhuang-inc.com>
21 lines
438 B
TypeScript
21 lines
438 B
TypeScript
import { QRCode, Space, theme } from 'antd';
|
|
import React from 'react';
|
|
|
|
const { useToken } = theme;
|
|
|
|
const App: React.FC = () => {
|
|
const { token } = useToken();
|
|
return (
|
|
<Space>
|
|
<QRCode value="https://ant.design/" color={token.colorSuccessText} />
|
|
<QRCode
|
|
value="https://ant.design/"
|
|
color={token.colorInfoText}
|
|
bgColor={token.colorBgLayout}
|
|
/>
|
|
</Space>
|
|
);
|
|
};
|
|
|
|
export default App;
|