# Popover

气泡菜单,在点击控件或者某个区域后,浮出一个气泡菜单来做更多的操作,建议配合动画组件使用。可设置气泡定位元素、偏移量、凸起箭头位置等。

# 代码演示

# Popover API

Option Description  Type Default Value
style popover样式 CSSProperties {}
visible 当前显隐状态 Boolean true
target 待显示气泡 DOM(定位 origin) React.createRef() -
left 基于 target 偏移量 Number 0
top 基于 target 偏移量 Number 10
arrowPosition 凸起箭头的位置 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft'等 'topCenter'
autoClose 操作菜单后是否自动关闭 Boolean true
animationType 动画的类型 'fade' | 'slide' 'fade'
slideDirection 动画类型为 slide 时的方向 'up' | 'down' 'down'
拖拽移动|点击折叠