1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2021-11-06 13:47:18 +08:00
parent 4ea60fc18e
commit 64bd055b37
3 changed files with 5 additions and 2 deletions

View File

@ -660,8 +660,8 @@ Volcanos("onkeypop", {help: "键盘交互", list: [], _focus: [], _init: functio
repeat(cb, count); return list
}
var map = can.onkeypop._engine[mode]; for (var i = list.length-1; i > pre-1; i--) {
var cb = map[list[i]]; switch (typeof cb) {
var map = can.onkeypop._engine[mode]||{}; for (var i = list.length-1; i > pre-1; i--) {
var cb = map[list[i]]||{}; switch (typeof cb) {
case lang.FUNCION: repeat(cb, count); return list
case lang.OBJECT: map = cb; continue
case lang.STRING:

View File

@ -31,6 +31,8 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, conf,
_field: function(can, msg) {
msg.Table(function(item) { can.onappend._plugin(can, item, {arg: can.base.Obj(item[ice.ARG], [])}, function(sub, meta) {
var opt = can.base.Obj(item[ice.OPT], [])
sub.Conf("height", can.Conf("height"))
sub.Conf("width", can.Conf("width"))
sub.run = function(event, cmds, cb, silent) {
var res = can.request(event, can.Option())
for (var i = 0; i < opt.length; i += 2) { res.Option(opt[i], opt[i+1]) }

View File

@ -210,6 +210,7 @@ Volcanos("ondetail", {help: "用户交互", list: [],
top = 48, sub.Conf(chat.HEIGHT, height-top)
}
} else {
height += (can.user.mod.isCmd? 0: 300)
sub.Conf(chat.HEIGHT, height-top)
}