窗口类 vjsp.Window

可配置参数

NameTypeDescription
titleString标题
contentString内容
widthNumber
heightNumber
closeBtnBoolean是否显示顶部关闭按钮
sizeBtnBoolean是否显示顶部最大化按钮
maxBoolean是否最大化
escBoolean是否开启esc关闭
buttonsObject自定义按钮
exClassString额外样式(class)

事件

关闭

close()

最大化

fullScreen()

恢复大小

restore()

居中

center()

关闭事件

onClose(callback)

回调函数中可以通过设置this.returnValue = false来阻止关闭

参数:

NameTypeDescription
callbackfunction回调函数