antd pop overs 在不同的组件中时,我可以应用不同的样式吗?

Can I apply different styles to antd pop overs when they are in different components?

我想给不同组件的antd弹窗应用不同的样式,尤其是它们出现的位置。例如,如果我有 a 按钮和 b 按钮,我想让一个弹出窗口出现在 a 按钮右侧 50px 处,另一个出现在 b 按钮左侧 100px 处。我不知道该怎么做,因为我似乎无法在 antd pop 组件中添加类名,例如 antd-popover-titleantd-popover-content 等。如果您有任何想法,请告诉我..

弹出框 class 与工具提示相同 API。 https://ant.design/components/tooltip/#API 在那里,您可能会找到多种方式来根据需要设置弹出窗口的样式。使用 overlayClassName、overlayStyle、overlayInnerStyle。 https://codesandbox.io/s/exciting-fermat-izfv8?file=/index.js