up
This commit is contained in:
@@ -20,7 +20,7 @@ function CLLPWebView.init(csObj)
|
||||
CLLPWebView.onCallOnStarted,
|
||||
CLLPWebView.onCallOnLoaded
|
||||
)
|
||||
webView:setMargins(0, NumEx.getIntPart(130 / MyUtl.getSizeAdjust()), 0, 0)
|
||||
webView:setMargins(0, NumEx.getIntPart(134 / MyUtl.getSizeAdjust()), 0, 0)
|
||||
end
|
||||
|
||||
-- 设置数据
|
||||
@@ -28,8 +28,17 @@ function CLLPWebView.setData(paras)
|
||||
url = paras and paras.url or ""
|
||||
end
|
||||
|
||||
--当有通用背板显示时的回调
|
||||
function CLLPWebView.onShowFrame()
|
||||
---public 当有通用背板显示时的回调
|
||||
---@param cs Coolape.CLPanelLua
|
||||
function CLLPWebView.onShowFrame(cs)
|
||||
if cs.frameObj then
|
||||
---@type _BGFrame1Param
|
||||
local d = {}
|
||||
-- d.title = LGet(cs.titleKeyName)
|
||||
d.title = cs.titleKeyName
|
||||
d.panel = csSelf
|
||||
cs.frameObj:init(d)
|
||||
end
|
||||
end
|
||||
|
||||
function CLLPWebView.onCallFromJS(msg)
|
||||
@@ -72,9 +81,6 @@ end
|
||||
-- 处理ui上的事件,例如点击等
|
||||
function CLLPWebView.uiEventDelegate(go)
|
||||
local goName = go.name
|
||||
if goName == "ButtonQuit" then
|
||||
hideTopPanel()
|
||||
end
|
||||
end
|
||||
|
||||
-- 当顶层页面发生变化时回调
|
||||
|
||||
Reference in New Issue
Block a user