Skip to content
On this page

Dialog 对话框

基本用法

文档说明

Attributes

参数说明类型
v-model:visible是否显示 Dialogboolean
titleDialog 的标题,也可通过具名 slot 传入-
widthDialog 的宽度,支持 px | % | vwstring
fullscreen是否为全屏 Dialogboolean
topDialog CSS 中的 top 值,支持 px | % | vhstring
closeOnClickMask是否可以通过点击蒙层关闭 Dialogboolean
maxHeightDialog 最大高度,支持 px | % | vhstring
showClose是否显示 Dialog 关闭按钮boolean

Slot

插槽名说明
titleDialog 头部标题区的内容
contentDialog 内容区的内容
footerDialog 底部按钮的内容

Events

事件名说明
okDialog 点击确认按钮的回调
cencelDialog 点击取消按钮的回调
beforeCloseDialog 关闭前的回调

Released under the MIT License.