1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-27 09:38:28 +08:00
This commit is contained in:
shaoying 2020-10-12 15:51:29 +08:00
parent 9ca383ce30
commit 0558eef131
3 changed files with 8 additions and 2 deletions

View File

@ -95,7 +95,7 @@ Volcanos("onexport", {help: "导出数据", list: [], _init: function(can, msg,
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.inputs = can.base.Obj(msg.list&&msg.list[0]||"[]", [])
can.onaction.add_plugin(can, river, storm, value), next()

View File

@ -124,6 +124,12 @@ Volcanos("onexport", {help: "导出数据", list: [], _init: function(can, msg,
},
time: function(event, can, key, target) {
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)
},
})

View File

@ -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) {
var msg = can.sup.request(event); msg.Option(can.Option()), msg.Option(line)
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) {
can.user.toast(can, index+1+"/"+array.length)