mirror of
https://shylinux.com/x/volcanos
synced 2025-04-27 17:48:28 +08:00
opt some
This commit is contained in:
parent
9ca383ce30
commit
0558eef131
@ -95,7 +95,7 @@ Volcanos("onexport", {help: "导出数据", list: [], _init: function(can, msg,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
can.run({}, ["action", "command", value.index], function(msg) {
|
value.index && can.run({}, ["action", "command", value.index], function(msg) {
|
||||||
value.feature = can.base.Obj(msg.meta&&msg.meta[0]||"{}", {})
|
value.feature = can.base.Obj(msg.meta&&msg.meta[0]||"{}", {})
|
||||||
value.inputs = can.base.Obj(msg.list&&msg.list[0]||"[]", [])
|
value.inputs = can.base.Obj(msg.list&&msg.list[0]||"[]", [])
|
||||||
can.onaction.add_plugin(can, river, storm, value), next()
|
can.onaction.add_plugin(can, river, storm, value), next()
|
||||||
|
@ -124,6 +124,12 @@ Volcanos("onexport", {help: "导出数据", list: [], _init: function(can, msg,
|
|||||||
},
|
},
|
||||||
time: function(event, can, key, target) {
|
time: function(event, can, key, target) {
|
||||||
target.innerHTML = can.base.Time(null, "%w %H:%M:%S")
|
target.innerHTML = can.base.Time(null, "%w %H:%M:%S")
|
||||||
|
|
||||||
|
if (can.user.Search(can, "pod")) { return }
|
||||||
|
if (can.user.Search(can, "topic")) { return }
|
||||||
|
var h = parseInt(can.base.Time(null, "%H"))
|
||||||
|
var topic = h < 7 || h > 17? "black": "white"
|
||||||
|
can.onaction[topic]({}, can, topic)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
|||||||
can.onmotion[value.indexOf("\n") >= 0 || event.ctrlKey? "modifys": "modify"](can, event.target, function(event, value, old) {
|
can.onmotion[value.indexOf("\n") >= 0 || event.ctrlKey? "modifys": "modify"](can, event.target, function(event, value, old) {
|
||||||
var msg = can.sup.request(event); msg.Option(can.Option()), msg.Option(line)
|
var msg = can.sup.request(event); msg.Option(can.Option()), msg.Option(line)
|
||||||
if (key == "value") { key = line.key }
|
if (key == "value") { key = line.key }
|
||||||
can.run(event, ["action", "编辑", key, value], function(msg) { can.run({}) }, true)
|
can.run(event, ["action", "modify", key, value], function(msg) { can.run({}) }, true)
|
||||||
})
|
})
|
||||||
}, onmouseover: function(event) {
|
}, onmouseover: function(event) {
|
||||||
can.user.toast(can, index+1+"/"+array.length)
|
can.user.toast(can, index+1+"/"+array.length)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user