1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-26 01:04:06 +08:00
2021-02-17 23:28:47 +08:00

19 lines
813 B
JavaScript

Volcanos("onfigure", {help: "控件详情", list: [], key: {onclick: function(event, can, item, target) {
can.run(event, ["action", "inputs", item.name, target.value], function(msg) {
if (msg.Length() == 0) { return can.page.Remove(can, can._target) }
can.onappend._action(can, ["关闭", "清空"], can._action, {
"关闭": function(event) { can.page.Remove(can, can._target) },
"清空": function(event) { target.value = "" },
})
can.onappend.table(can, msg, function(value, key, index, line) {
return {text: [value, "td"], onclick: function() {
target.value = line[key], can.page.Remove(can, can._target)
}}
}), can.Status("count", msg.Length())
can.onlayout.figure(event, can)
})
}}})