arco-design / arco-design

A comprehensive React UI components library based on Arco Design

Home Page:https://arco.design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Popover 在 title 和 content 都为空的场景下,组件内部不会自动设置 popupVisible 为 flase

qmetest opened this issue · comments

代码逻辑,Popover 使用的是 Tooltip 的组件,传递给 Tooltip 的content 为
即使 title 和content 都为空, Tooltip isEmpty 方法也不会判断空,内部就无法自动设置 popupVisible 为false, 感觉可以在 Popover 传递 content 的地方处理下
img_v3_0277_a89f42bc-25d3-44f5-8391-23a071207eeg

不然对于业务场景,很多情况下,还需要手动判断下 content 是不是为空,来隐藏掉弹出框
nLqxdbB1gj