Skip to content

Dialog 弹窗

常用的弹窗组件。

基础用法

开盖即用,更可配置 自定义 个性化使用。

显示代码

宽度设置

使用 size 来定义弹出框尺寸。

显示代码

高度设置

使用 height 来定义弹窗框高度。

显示代码

偏移设置

使用 offsetXoffsetY 来定义弹窗框位置偏移量。

显示代码

使用 插槽位置 展示

字段描述
footerDialog 底部
headerDialog 标题

Api

Attribute 属性

属性名说明类型可选值默认值
size内置尺寸string"l" / "m" / "max" / "s"m
height高度string / number500
width宽度string / number
offsetXX 轴偏移量string / number0
offsetYY 轴偏移量string / number0
keepAlive缓存模式booleanfalse
titleDialog 标题string'Dialog'
useFull使用全屏模式booleanfalse
closeOnMod点击 Mod 退出booleantrue
closeOnEsc使用 Esc 退出booleantrue
draggable开启拖拽booleanfalse