属性
气泡确认框组件的属性,支持大部分popper属性
Description
联合类型的props声明可能会导致编译vue报错
链接
https://github.com/vuejs/core/issues/4294
继承
属性
属性 | 类型 | 描述 | 继承自 |
---|---|---|---|
arrow? | boolean | 是否显示箭头 默认值 false | PopperProps .arrow |
arrowPadding? | string | 箭头偏移量 默认值 0 | PopperProps .arrowPadding |
cancelBtnText? | string | 取消按钮文案 默认值 取消 | - |
cancelButtonProps? | null | ButtonProps | 取消按钮属性 默认值 参考button属性 | - |
closeAfterConfirm? | true | 点击确认后消失 默认值 true | - |
closeDelay? | string | number | 隐藏延时 默认值 0 | PopperProps .closeDelay |
confirmBtnText? | string | 确定按钮文案 默认值 确定 | - |
confirmButtonProps? | null | ButtonProps | 确认按钮属性 默认值 参考button属性 | - |
content? | null | string | 弹出文本内容 默认值 null | PopperProps .content |
disableClickAway? | boolean | 禁用点击区域外关闭 默认值 false | PopperProps .disableClickAway |
disabled? | boolean | 是否禁用 默认值 false | PopperProps .disabled |
hover? | boolean | 通过悬浮触发 默认值 false | PopperProps .hover |
interactive? | boolean | 是否可交互,若为false,则在点击或者悬浮后会关闭 默认值 true | PopperProps .interactive |
locked? | boolean | 是否锁定位置 默认值 true | PopperProps .locked |
offsetDistance? | string | 距触发元素距离 默认值 12 | PopperProps .offsetDistance |
offsetSkid? | string | 偏移像素 默认值 0 | PopperProps .offsetSkid |
openDelay? | string | number | 弹出延时 默认值 0 | PopperProps .openDelay |
placement? | PopperPlacement | 弹出位置 默认值 bottom | PopperProps .placement |
show? | null | boolean | 手动触发显示隐藏 默认值 null | PopperProps .show |
showCancelBtn? | boolean | 展示取消按钮 默认值 true | - |
showConfirmBtn? | boolean | 展示确定按钮 默认值 true | - |
targetElement? | null | HTMLElement | 触发元素,优先级slot > 该属性,当popper触发关联一个无法被外层的元素时,使用该属性,且需要手动控制popper的显示 默认值 null | PopperProps .targetElement |
zIndex? | string | number | 样式层级 默认值 9999 | PopperProps .zIndex |