1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
volcanos/plugin/input.js
2020-05-03 13:41:21 +08:00

28 lines
768 B
JavaScript

Volcanos("onimport", {help: "导入数据", list: [],
_init: function(can, meta, list, cb, output, action, option, field) { output.innerHTML = "";
},
})
Volcanos("onaction", {help: "控件交互", list: [],
onclick: function(event, can) {
switch (can.Conf("type")) {
case "button":
can.run(event, [], function() {})
break
}
},
onkeydown: function(event, can) {
switch (event.key) {
case "Enter":
can.run(event, [], function() {})
break
}
},
onkeyup: function(event, can) {
switch (event.key) {
case "Enter":
can.run(event, [], function() {})
break
}
},
})