This commit is contained in:
2020-07-11 20:53:21 +08:00
parent ab64739382
commit ac03de0387
69 changed files with 4130 additions and 1218 deletions

View File

@@ -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
-- 当顶层页面发生变化时回调