-
What happened?
import { Button, Menu } from "antd"
function IndexPopup() {
return (
<div
style={{
display: "flex",
flexDirection: "column",
padding: 16
}}>
<h1>
Welcome to your <a href="https://www.plasmo.com">Plasmo</a> Extension!
</h1>
<Button type="primary">Hello Ant Design</Button>
+ <Menu items={[{ key: "aa", label: "a" }]} />
</div>
)
}
export default IndexPopup VersionLatest What OS are you seeing the problem on?MacOSX What browsers are you seeing the problem on?Chrome, Microsoft Edge Relevant log outputNo response (OPTIONAL) Contact DetailsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
I just tried that code and it worked on my end: |
Beta Was this translation helpful? Give feedback.
-
Try this on your browser |
Beta Was this translation helpful? Give feedback.
-
What about? |
Beta Was this translation helpful? Give feedback.
-
We have been a bit busy unfortunately but will get to this when we have time |
Beta Was this translation helpful? Give feedback.
-
Just tested, doesn't work for me yeah. Try testing the menu component in an empty extension tho - it worked. And check your code, perhaps antd wasn't able to parse your items for some reason. BTW, we're not antd maintainer, and integration between plasmo and antd is not a priority. We welcome your question but please ask them in the discussion or in our Discord instead: https://www.plasmo.com/s/d I've create a channel for antd in our discord, so feel free to use that space :) |
Beta Was this translation helpful? Give feedback.
-
I know the cause of the problem
|
Beta Was this translation helpful? Give feedback.
I know the cause of the problem
antd
relies onrc-menu
. Therc-menu
exportsuseFullPath
in this way