1
0
mirror of https://shylinux.com/x/volcanos synced 2025-05-04 04:17:00 +08:00
This commit is contained in:
shaoying 2021-01-05 16:37:41 +08:00
parent 772f23d533
commit 9b9f068924
2 changed files with 4 additions and 8 deletions

View File

@ -64,7 +64,7 @@ Volcanos("onaction", {help: "控件交互", list: [], _init: function(can, meta,
var feature = can.sup.Conf("feature")
var input = feature && feature[name]; if (input) {
return can.sup.onaction.input(event, can.sup, name, function(msg) {
// can.run({})
can.sup.onimport._process(can, msg)
})
}

View File

@ -26,7 +26,7 @@ var Volcanos = shy("火山架", {libs: [], cache: {}}, [], function(name, can, l
libs = Preload.concat(Config.volcano), cb = function(can) {
can.onengine._init(can, can.Conf(Config), Config.panes, function(msg) {
can.base.Log(name, "run", window.can = can)
var list = []; document.body.onresize = function(event) { can.core.Delay(list, 100, function() {
var list = []; document.body.onresize = function() { can.core.Delay(list, 100, function() {
can.onlayout._init(can, can._target, can._width = window.innerWidth, can._height = window.innerHeight)
}) }, document.body.onresize()
}, can._target)
@ -43,12 +43,8 @@ var Volcanos = shy("火山架", {libs: [], cache: {}}, [], function(name, can, l
for (var i = 0; i < cache.length; i++) { var sub = cache[i]
if (typeof cb == "function" && cb(can, name, sub)) { continue }
if (can[sub._name] && can[sub._name]._merge && can[sub._name]._merge(can, sub)) { continue }
if (can[sub._name]) {
for (var k in sub) {
can[sub._name].hasOwnProperty(k) || (can[sub._name][k] = sub[k])
}
} else {
can[sub._name] = sub
!can[sub._name] && (can[sub._name] = {}); for (var k in sub) {
can[sub._name].hasOwnProperty(k) || (can[sub._name][k] = sub[k])
}
}
},