forked from x/volcanos
opt some
This commit is contained in:
parent
d615acf189
commit
f8abb7e7c8
@ -6,7 +6,7 @@ Volcanos(chat.ONFIGURE, {help: "控件详情", key: {
|
||||
},
|
||||
_show: function(can, msg, cbs, target, name) {
|
||||
if (!can.onmotion.toggle(can, can._target, msg.Length() != 0)) { return }
|
||||
can.onmotion.clear(can), can.onappend.table(can, msg, function(value) {
|
||||
can.onmotion.clear(can), can.onappend.table(can, msg, function(value, key, index, line) { value = line[key]
|
||||
return {text: [value, html.TD], style: msg.append && msg.append.length == 1? {"min-width": target.offsetWidth-16}: {}, onclick: function(event) { can.base.isFunc(cbs) && cbs(can, value, target.value)
|
||||
msg.Option(ice.MSG_PROCESS) == ice.PROCESS_AGAIN && can.onmotion.delay(can, function() {
|
||||
can.onfigure.key._init(event, can, cbs, target, name, value)
|
||||
|
@ -10,7 +10,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
|
||||
|
||||
var hash = can.sup._hash||can.misc.SearchHash(can)||true, list = msg.Table(function(value) {
|
||||
var item = can.onimport._item(can, value); value.hash == hash && (item.click(), hash = false)
|
||||
}); hash && can.onimport._create(can, [mdb.TYPE, "", mdb.NAME, "term"])
|
||||
}); hash && can.onimport._create(can, [mdb.TYPE, msg.Option("type")||"", mdb.NAME, "term"])
|
||||
}, 500) })
|
||||
},
|
||||
layout: function(can) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user