Replies: 1 comment 6 replies
-
你的用法有问题,你的点击事件里怎么是个 Picker 组件? <List.Item
onClick={
// 这里有问题...
<Picker />
}
/> 建议改成这样 return (
<List>
<List.Item onClick={() => setVisible(true)}/>
<Picker visible={visible}/>
</List>
) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
已写的代码:
目前效果是,点击列表时,列表的背景颜色变成深灰色,然而没有弹出弹窗,chrome浏览器没有报错,审查元素里也看不到与Picker弹窗相关的标签
请问代码出了什么问题?如何解决?请展示代码举例说明。
Beta Was this translation helpful? Give feedback.
All reactions