-
Version of antd-mobileNo response Descriptionhttps://codesandbox.io/s/focused-keller-nntjzf?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
Answered by
GOWxx
May 26, 2022
Replies: 2 comments 3 replies
-
看起来是一个组件用法上的疑问,我来把它转移到 discussion 板块 |
Beta Was this translation helpful? Give feedback.
1 reply
-
type CardProps = {
onHeaderClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void
} 可以看到 在你的 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
awmleer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以看到
onHeaderClick
方法里return
并不会有什么作用如果是想在本页面渲染浮动页面或组件,可以看看
Modal
Popup
或者别的符合需求的组件如果没有符合需求的话,可以考虑自己写个组件,
onHeaderClick
方法里改变变量控制该组件的显示隐藏状态在你的
demo
上加了Popup
https://codesandbox.io/s/happy-thompson-fk7hdk?file=/src/App.tsx