1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
volcanos/panel/cmd.js
2021-07-27 23:28:53 +08:00

15 lines
630 B
JavaScript

Volcanos("onaction", {help: "交互操作", list: [], _init: function(can, msg, list, cb, target) {
console.log("what")
can.base.isFunc(cb) && cb()
},
onmain: function(can, msg) {
var args = location.pathname.split("/").slice(1)
can.onappend.plugin(can, {index: args[2], args: args.slice(3), opts: can.user.Search(), width: window.innerWidth}, function(sub, meta) {
sub.run = function(event, cmds, cb) { can.run(event, [ctx.ACTION, "run", args[2]].concat(cmds), cb) }
can.onmotion.hidden(can, sub._legend)
can.user.title(meta.name)
})
},
})