Skip to content

ActionButton 操作按钮

基于 ElButton + ElPopconfirm 封装,一般用于 Table 中的操作按钮。

组件注册名

ActionButton 组件以 MA 名称注册,模板中使用 <MA><M-A>

API

A 属性

属性名说明类型默认值
type按钮类型'primary' | 'success' | 'warning' | 'danger' | 'info''primary'
pop是否显示气泡确认框(type 为 danger 时默认显示)boolean
popTitle气泡确认框标题string'确认删除吗?'
submitText确认按钮文字string'是'
cancelText取消按钮文字string'否'
popAttrsElPopconfirm 属性object

$attrs

A 组件的 $attrs 会透传给 ElButton 组件。

A 插槽

插槽名说明
default自定义按钮文字

A 事件

事件名说明类型
click点击确认/点击按钮(evt: Event) => void

基于 MIT 许可发布