mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
22 lines
915 B
JavaScript
22 lines
915 B
JavaScript
Volcanos("onfigure", {help: "控件详情", list: [], key: {onclick: function(event, can, item, target, figure) { function run() {
|
|
var msg = can.request(event, can.Option())
|
|
item.run(event, ["action", "inputs", item.name, target.value], function(msg) {
|
|
if (!msg.append) { return }
|
|
|
|
can.onappend._action(can, ["关闭", "清空"], figure.action, {
|
|
"关闭": function(event) { can.page.Remove(can, figure.fieldset) },
|
|
"清空": function(event) { target.value = "" },
|
|
})
|
|
|
|
can.onappend.table(can, msg, function(value, key, index, line) {
|
|
return {type: "td", inner: value, onclick: function() {
|
|
target.value = value, msg.Option("_refresh") && run()
|
|
can.page.Remove(can, figure.fieldset)
|
|
}}
|
|
}, figure.output)
|
|
|
|
can.onlayout.figure(can, figure, event)
|
|
}, true)
|
|
}; run() }}, }, [])
|
|
|