跳转到内容

ProModal 对话框

ProModal 是基于Antv Modal的扩展,支持Antv Modal的所有属性。

使用演示

通过 description 设置对话框描述,通过 showFullscreen 设置对话框全屏按钮显示,通过 defaultFullscreen 设置对话框默认全屏显示,通过 draggable 开启对话框页头拖动,其他使用示例请前往Antv Modal查看。

API

Props

参数说明类型默认值
description对话框描述string-
show-fullscreen显示全屏按钮booleantrue
default-fullscreen默认全屏显示booleanfalse
draggable开启对话框页头拖动booleanfalse
after-closeModal 完全关闭后的回调function-
body-styleModal body 样式CSSProperties-
cancel-button-propscancel 按钮 propsButtonProps-
cancelText取消按钮文字string取消
centered垂直居中展示 Modalbooleanfalse
closable是否显示右上角的关闭按钮booleantrue
confirm-loading确定按钮 loadingboolean-
destroy-on-close关闭时销毁 Modal 里的子元素booleanfalse
footer当不需要默认底部按钮时,可以设为 :footer="null"string确定取消按钮
force-render强制渲染 Modalbooleanfalse
get-container指定 Modal 挂载的 HTML 节点(instance): HTMLElement() => document.body
keyboard是否支持键盘 esc 关闭booleantrue
mask是否展示遮罩booleantrue
maskClosable点击蒙层是否允许关闭booleantrue
maskStyle遮罩样式CSSProperties-
okButtonPropsok 按钮 propsButtonProps-
okText确认按钮文字string'确定'
okType确认按钮类型string'primary'
title标题string-
open(v-model)对话框是否可见boolean-
width宽度string|number520
wrap-class-name对话框外层容器的类名string-
z-index设置 Modal 的 z-indexnumber1000

Events

事件名说明类型
cancel点击遮罩层或右上角叉或取消按钮的回调(e: MouseEvent)=>void
ok点击确定回调(e: MouseEvent)=>void
full-screen点击左上角全屏按钮的回调(fullscreen: boolean)=>void

Slots

插槽名说明类型
default对话框的内容-
title对话框的标题-
description对话框的描述-
extra对话框右上角的操作区域-
footer对话框的页脚-

源代码

组件样式文档

贡献者