弹出层组件,用于展示弹窗、信息提示等内容。
import { WuPopup } from '@itrain/wu-ui'
visible
是否显示弹出层 双向同步
boolean
是
placement
弹出位置, 可选值为 top bottom right left center
top
bottom
right
left
center
string
否
'center'
round
是否显示圆角
true
popupWidth
弹窗宽度
Length
popupHeight
弹窗高度
safeAreaInsetTop
是否开启顶部安全区适配
false
safeAreaInsetBottom
是否开启底部安全区适配
duration
动画时长,单位毫秒
number
400
maskable
是否显示遮罩层
maskClosable
是否允许点击遮罩关闭弹窗
closeable
是否显示关闭图标
onOpen
弹窗打开时执行的回调
() => void
onClose
弹窗关闭时执行的回调
customContent
自定义弹窗内容
Last updated 1 year ago