demo: rm padding of overlayInnerStyle (#49761)

* demo: rm overlayInnerStyle

* demo: rm overlayInnerStyle
This commit is contained in:
lijianan 2024-07-08 09:59:34 +08:00 committed by GitHub
parent 2a5665616d
commit d9f052d5cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -24,7 +24,6 @@ Array [
<div
class="ant-popover-inner"
role="tooltip"
style="padding: 0px;"
>
<div
class="ant-popover-inner-content"

View File

@ -2,10 +2,7 @@ import React from 'react';
import { Button, Popover, QRCode } from 'antd';
const App: React.FC = () => (
<Popover
overlayInnerStyle={{ padding: 0 }}
content={<QRCode value="https://ant.design" bordered={false} />}
>
<Popover content={<QRCode value="https://ant.design" bordered={false} />}>
<Button type="primary">Hover me</Button>
</Popover>
);