Skip to content

属性

气泡确认框组件的属性,支持大部分popper属性

Description

联合类型的props声明可能会导致编译vue报错

链接

https://github.com/vuejs/core/issues/4294

继承

属性

属性类型描述继承自
arrow?boolean是否显示箭头 默认值 falsePopperProps.arrow
arrowPadding?string箭头偏移量 默认值 0PopperProps.arrowPadding
cancelBtnText?string取消按钮文案 默认值 取消-
cancelButtonProps?null | ButtonProps取消按钮属性 默认值 参考button属性-
closeAfterConfirm?true点击确认后消失 默认值 true-
closeDelay?string | number隐藏延时 默认值 0PopperProps.closeDelay
confirmBtnText?string确定按钮文案 默认值 确定-
confirmButtonProps?null | ButtonProps确认按钮属性 默认值 参考button属性-
content?null | string弹出文本内容 默认值 nullPopperProps.content
disableClickAway?boolean禁用点击区域外关闭 默认值 falsePopperProps.disableClickAway
disabled?boolean是否禁用 默认值 falsePopperProps.disabled
hover?boolean通过悬浮触发 默认值 falsePopperProps.hover
interactive?boolean是否可交互,若为false,则在点击或者悬浮后会关闭 默认值 truePopperProps.interactive
locked?boolean是否锁定位置 默认值 truePopperProps.locked
offsetDistance?string距触发元素距离 默认值 12PopperProps.offsetDistance
offsetSkid?string偏移像素 默认值 0PopperProps.offsetSkid
openDelay?string | number弹出延时 默认值 0PopperProps.openDelay
placement?PopperPlacement弹出位置 默认值 bottomPopperProps.placement
show?null | boolean手动触发显示隐藏 默认值 nullPopperProps.show
showCancelBtn?boolean展示取消按钮 默认值 true-
showConfirmBtn?boolean展示确定按钮 默认值 true-
targetElement?null | HTMLElement触发元素,优先级slot > 该属性,当popper触发关联一个无法被外层的元素时,使用该属性,且需要手动控制popper的显示 默认值 nullPopperProps.targetElement
zIndex?string | number样式层级 默认值 9999PopperProps.zIndex