Skip to content
Vue3UI
Main Navigation
指南
组件
Appearance
Menu
Return to top
On this page
Backdrop 遮罩层
基本用法
避免滚动穿透
自定义类名
API
Backdrop Props
参数名
说明
类型
可选值
默认值
必填
modelValue(
v-model
)
遮罩层的显隐状态
boolean
true
fixed
是否避免滚动穿透
boolean
false
customClass
自定义遮罩层的类名
string
center
内部的元素是否要水平垂直居中
boolean
true
closeOnClick
点击遮罩层是否关闭
boolean
true
Backdrop Slots
插槽名
说明
子标签
default
默认插槽