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