1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
shylinux@163.com 2022-09-25 22:50:06 +08:00
parent ded4c85207
commit 877e70e952
3 changed files with 3 additions and 3 deletions

View File

@ -248,7 +248,7 @@ Volcanos(chat.ONACTION, {help: "交互操作", _init: function(can, cb, target)
can.page.ClassList.del(can, can._target, can.Conf(chat.LAYOUT)); if (button == ice.AUTO) { button = "" }
can.page.ClassList.add(can, can._target, can.Conf(chat.LAYOUT, button)), can.onlayout._init(can)
can.onmotion.toggle(can, can._root.River._target, true), can.onmotion.toggle(can, can._root.Footer._target, true), can.onlayout._init(can)
can.onmotion.hidden(can, can._header_tabs)
can._header_tabs && can.onmotion.hidden(can, can._header_tabs)
var cb = can.onlayout[button]; if (can.base.isFunc(cb)? cb(can, silent): (can.getActionSize(function(height, width) {
can.ConfHeight(can.base.Min(200, height-3*html.ACTION_HEIGHT-4*html.PLUGIN_MARGIN-200)), can.ConfWidth(width-4*html.PLUGIN_MARGIN)

View File

@ -31,7 +31,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb) { c
})
Volcanos(chat.ONLAYOUT, {help: "界面布局",
_init: function(can) {
can.page.style(can, can._output, html.HEIGHT, can.ConfHeight()+20, html.WIDTH, can.ConfWidth()+20, html.MAX_WIDTH, "")
can.page.style(can, can._output, html.HEIGHT, can.ConfHeight(), html.WIDTH, can.ConfWidth()+20, html.MAX_WIDTH, "")
can.onmotion.delay(can, function() { can.page.style(can, can._output, html.HEIGHT, "", html.WIDTH, "") }, 500)
can._current && can._current._fit.fit(), can.onexport.term(can)
},

View File

@ -38,7 +38,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _process: function(can, msg) {
})(); return }
var opt = can.base.Obj(item[ice.OPT], [])
sub.ConfHeight(can.ConfHeight()/2), sub.ConfWidth(can.ConfWidth())
sub.ConfHeight(can.ConfHeight()), sub.ConfWidth(can.ConfWidth())
sub.run = function(event, cmds, cb) {
var res = can.request(event, can.Option(), opts, {pid: msg.Option("pid")})
for (var i = 0; i < opt.length; i += 2) { res.Option(opt[i], opt[i+1]) }