mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
3d45725678
commit
efda5a480e
@ -1,12 +1,12 @@
|
|||||||
Volcanos(chat.ONIMPORT, {_init: function(can, msg, target, cb) { cb && cb(msg)
|
Volcanos(chat.ONIMPORT, {_init: function(can, msg, target, cb) {
|
||||||
if (msg.index && msg.meta && msg.list) { return can.sup.onimport._field(can.sup, msg) }
|
if (msg.index && msg.meta && msg.list) { return cb && cb(msg), can.sup.onimport._field(can.sup, msg) }
|
||||||
if (can.isCmdMode() && can.Conf(ctx.STYLE) == html.FORM) { can.onappend.style(can, html.OUTPUT) }
|
if (can.isCmdMode() && can.Conf(ctx.STYLE) == html.FORM) { can.onappend.style(can, html.OUTPUT) }
|
||||||
if (can.Mode() == html.ZONE) { return can.onimport._vimer_zone(can, msg, target) }
|
if (can.Mode() == html.ZONE) { return can.onimport._vimer_zone(can, msg, target) }
|
||||||
var cbs = can.onimport[can.Conf(ctx.STYLE)||msg.Option(ctx.STYLE)]; if (can.base.isFunc(cbs)) {
|
var cbs = can.onimport[can.Conf(ctx.STYLE)||msg.Option(ctx.STYLE)]; if (can.base.isFunc(cbs)) {
|
||||||
can.onappend.style(can, can._args[ctx.STYLE], target), can.core.CallFunc(cbs, {can: can, msg: msg, target: target})
|
can.onappend.style(can, can._args[ctx.STYLE], target), can.core.CallFunc(cbs, {can: can, msg: msg, target: target})
|
||||||
} else {
|
} else {
|
||||||
can.onappend.table(can, msg, null, target), can.onappend.board(can, msg, target), can.onmotion.story.auto(can, target)
|
can.onappend.table(can, msg, null, target), can.onappend.board(can, msg, target), can.onmotion.story.auto(can, target)
|
||||||
}
|
} cb && cb(msg)
|
||||||
},
|
},
|
||||||
card: function(can, msg, target, filter) { target = target||can.ui.content||can._output
|
card: function(can, msg, target, filter) { target = target||can.ui.content||can._output
|
||||||
can.page.Append(can, target, msg.Table(function(value) { if (filter && filter(value)) { return }
|
can.page.Append(can, target, msg.Table(function(value) { if (filter && filter(value)) { return }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user