# <bst-dialog/> 按钮组件

<bst-dialog/>是基于 <el-dialog/> (opens new window) 组件的二次封装扩展

# 扩展功能

  • 增加:对话框底部增加【取消】【确认】按钮,可通过配置设置按钮的显示/隐藏与按钮文本。
  • 增加:在没有title的情况下,默认不显示头部元素。
  • 修改:默认点击modal不关闭对话框(close-on-click-modal=false)。
  • 修改:对话框默认在页面水平垂直居中展示。

# Props

参数 说明 类型 默认值
showCancelButton 是否显示取消按钮 Boolean false
cancelButtonText 取消按钮文本 String 取消
showConfirmButton 是否显示确定按钮 Boolean false
confirmButtonText 确定按钮文本 String 确定

# Methods

方法名 说明 参数 返回值
- - - -

# Events

事件名称 说明
cancel 取消事件
confirm 确认事件

# Slots

name 说明
对话框的内容
footer 对话框操作区的内容

编辑此文档 (opens new window)