属性
ios-enable-swipe-back
iOS
当覆盖层显示时,'true' 允许向右滑动关闭当前页面,'false' 则不允许。
level
Android
iOS
Clay
Harmony
引入了层的概念,分为四个级别。层的值越大,越靠近底部。默认情况下为第一级。层按 1 到 4 的顺序排列。指定要显示的层,不受显示顺序的影响。在每个层内,按照“后进先出”的逻辑排列。覆盖层显示时无法动态调整层,只能在隐藏时进行调整。
mode
iOS
指定覆盖层内容在 iOS 上的层级。window:挂载在窗口上,即应用的顶层;top:挂载在 topViewController 上;page:挂载在 UINavigationController 上;others:在客户端中自定义类名。
visible
Android
iOS
Clay
Harmony
控制覆盖层是否显示。
事件
前端可以绑定相应的事件回调来监听元素的运行时行为,如下所示。
binddismissoverlay
Android
iOS
Clay
Harmony
覆盖层隐藏时的回调。
binderror
Android
2.18
触摸覆盖层时的回调
bindoverlaytouch
Android
iOS
Clay
触摸覆盖层时的回调
bindrequestclose
Android
Clay
Harmony
点击返回按钮时的回调。
bindshowoverlay
Android
iOS
Clay
Harmony
覆盖层显示时的回调