Skip to content

i-element / Popconfirm / PopconfirmProps

Interface: PopconfirmProps

Popconfirm.PopconfirmProps

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

Description

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

Link

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

Hierarchy

Table of contents

Properties

Properties

arrow

Optional arrow: boolean

是否显示箭头

Default

ts
false
false

Inherited from

PopperProps.arrow


arrowPadding

Optional arrowPadding: string

箭头偏移量

Default

ts
0
0

Inherited from

PopperProps.arrowPadding


cancelBtnText

Optional cancelBtnText: string

取消按钮文案

Default

ts
取消
取消

cancelButtonProps

Optional cancelButtonProps: null | ButtonProps

取消按钮属性

Default

ts
参考button属性
参考button属性

closeAfterConfirm

Optional closeAfterConfirm: true

点击确认后消失

Default

ts
true
true

closeDelay

Optional closeDelay: string | number

隐藏延时

Default

ts
0
0

Inherited from

PopperProps.closeDelay


confirmBtnText

Optional confirmBtnText: string

确定按钮文案

Default

ts
确定
确定

confirmButtonProps

Optional confirmButtonProps: null | ButtonProps

确认按钮属性

Default

ts
参考button属性
参考button属性

content

Optional content: null | string

弹出文本内容

Default

ts
null
null

Inherited from

PopperProps.content


disableClickAway

Optional disableClickAway: boolean

禁用点击区域外关闭

Default

ts
false
false

Inherited from

PopperProps.disableClickAway


disabled

Optional disabled: boolean

是否禁用

Default

ts
false
false

Inherited from

PopperProps.disabled


hover

Optional hover: boolean

通过悬浮触发

Default

ts
false
false

Inherited from

PopperProps.hover


interactive

Optional interactive: boolean

是否可交互,若为false,则在点击或者悬浮后会关闭

Default

ts
true
true

Inherited from

PopperProps.interactive


locked

Optional locked: boolean

是否锁定位置

Default

ts
true
true

Inherited from

PopperProps.locked


offsetDistance

Optional offsetDistance: string

距触发元素距离

Default

ts
12
12

Inherited from

PopperProps.offsetDistance


offsetSkid

Optional offsetSkid: string

偏移像素

Default

ts
0
0

Inherited from

PopperProps.offsetSkid


openDelay

Optional openDelay: string | number

弹出延时

Default

ts
0
0

Inherited from

PopperProps.openDelay


placement

Optional placement: PopperPlacement

弹出位置

Default

ts
bottom
bottom

Inherited from

PopperProps.placement


show

Optional show: null | boolean

手动触发显示隐藏

Default

ts
null
null

Inherited from

PopperProps.show


showCancelBtn

Optional showCancelBtn: boolean

展示取消按钮

Default

ts
true
true

showConfirmBtn

Optional showConfirmBtn: boolean

展示确定按钮

Default

ts
true
true

targetElement

Optional targetElement: null | HTMLElement

触发元素,优先级slot > 该属性,当popper触发关联一个无法被外层的元素时,使用该属性,且需要手动控制popper的显示

Default

ts
null
null

Inherited from

PopperProps.targetElement


zIndex

Optional zIndex: string | number

样式层级

Default

ts
9999
9999

Inherited from

PopperProps.zIndex