Skip to content

Half-screen Dialog 半屏弹窗

Half-screen Dialog 半屏弹窗打开
9:41
/pages/half-screen-dialog/index

介绍

weui-half-screen-dialog 用于承载相对复杂的操作流程或说明内容,弹层从底部出现,视觉上对齐 WeUI 半屏弹窗。

基础用法

vue
<weui-half-screen-dialog
  v-model="visible"
  title="标题"
  subtitle="辅助说明"
  :actions="[{ text: '确定' }]"
>
  弹窗内容
</weui-half-screen-dialog>

Props

属性说明类型默认值
modelValue是否显示弹窗,支持 v-modelbooleanfalse
title标题string''
subtitle副标题string''
actions底部按钮数组,支持 { text, type, disabled, close }array[]
attachment底部附加链接文字string''
showClose是否显示关闭按钮booleantrue
closeText关闭按钮文字string'关闭'
closeIcon关闭图标,可选 close-thinslide-downback-arrow-thinstring'close-thin'
maskClosable点击遮罩是否关闭booleantrue
large是否使用大尺寸样式booleanfalse
grab是否显示抓手样式booleanfalse
bottomFixed底部操作是否固定booleanfalse
buttonWrap按钮是否换行排列booleanfalse

Slots

插槽名说明
default弹窗主体内容
header自定义完整头部
left头部左侧
title头部标题区域
right头部右侧
footer底部区域
attachment附加链接区域

Events

事件名说明回调参数
update:modelValue显示状态变化visible
close弹窗关闭-
action-click点击默认操作按钮action, index
attachment-click点击附加链接-

Released under the MIT License.