1.3.0 • Published 4 years ago

@beisen-phoenix/mobile-popup v1.3.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
4 years ago

mobile-popup组件

弹层容器组件

分类

export { Drawer, Modal, Popover }

Drawer(抽屉组件)

props

namedescriptiontypedefault是否为必传
visible展示、隐藏booleantrue
placement弹出方向 :left , right , top , bottomstringleft
width容器宽度string ,number百分比
height容器高度string ,number百分比
mask是否带遮罩booleantrue
maxHeight最大高度string70%
onClose关闭弹层的回调函数functiononClose: () => { }

Modal(对话框)

props

namedescriptiontypedefault是否为必传
visible展示、隐藏booleantrue
hasCloseBtn是否带有关闭按钮booleanfalse
width容器宽度string ,number百分比
height容器高度string ,number百分比
mask是否带遮罩booleantrue
maxHeight最大高度string70%
hasCloseBtn是否显示关闭按钮boolean
onClose关闭弹层的回调函数functiononClose: () => { }
maskCls自定义遮罩classnamestring
mainViewCls自定义内容container classNamestring

Popover(气泡框弹层)

namedescriptiontypedefault是否为必传
visible展示、隐藏booleantrue
hasArrow是否显示上箭头booleanfalse
hotAreaOffset触发弹层显示的元素位置信息,一般都是getBoundingClientRect函数的返回值objectfalsetrue
mask是否带遮罩booleantrue
stylepopover内容的样式object{backgroundColor:'white',width:'60%',maxHeight:'70%',borderRadius:'4px'}
maskStyle遮罩的样式objundefined
prefixCls自定义classstringphoenix-popup
getPopoverContainer自定义popover渲染到的节点() => JSXundefined
onClose关闭弹层的回调函数functiononClose: () => { }