mirror of
https://shylinux.com/x/volcanos
synced 2025-05-04 20:27:01 +08:00
opt some
This commit is contained in:
parent
51c558fd56
commit
f481733bfe
@ -156,10 +156,10 @@ Volcanos("onaction", {help: "交互操作", list: [], _init: function(can, msg,
|
||||
})
|
||||
Volcanos("onexport", {help: "导出数据", list: [],
|
||||
args: function(can, msg, list, cb, target) {
|
||||
can.page.Select(can, target, "fieldset.plugin>form.option"), function(item, next) {
|
||||
can.core.Next(can.page.Select(can, target, "fieldset.plugin>form.option"), function(item, next) {
|
||||
var list = can.page.Select(can, item, '.args', function(item) { return item.value||"" })
|
||||
item.dataset.args = JSON.stringify(list), cb(item, next)
|
||||
}
|
||||
})
|
||||
},
|
||||
})
|
||||
})()
|
||||
|
@ -19,7 +19,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
if (event.shiftKey) { var msg = can.request(event, line)
|
||||
can.onappend.plugin(can, {index: line.ctx+"."+line.cmd}, function(story, meta) {
|
||||
story.run = function(event, cmds, cb, silent) {
|
||||
can.run(event, ["command", "run", meta.index].concat(cmds), function(msg) {
|
||||
can.run(event, ["plugin", "run", meta.index].concat(cmds), function(msg) {
|
||||
typeof cb == "function" && cb(msg)
|
||||
})
|
||||
}
|
||||
@ -27,7 +27,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
return
|
||||
}
|
||||
if (line.ctx == "web.chat" && line.cmd == "/search") {
|
||||
can.onimport.select(can, msg, [line.type, line.name, line.text], can.cb)
|
||||
can.onimport.select(can, can.request(), [line.type, line.name, line.text], can.cb)
|
||||
return
|
||||
}
|
||||
if (typeof line.text == "function") {
|
||||
|
@ -1,3 +1,16 @@
|
||||
body fieldset.plugin.word h1:hover {
|
||||
background:green;
|
||||
cursor:pointer;
|
||||
}
|
||||
body fieldset.plugin.word h2:hover {
|
||||
background:green;
|
||||
cursor:pointer;
|
||||
}
|
||||
body fieldset.plugin.word h3:hover {
|
||||
background:green;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
body fieldset p.story[data-name=inner] {
|
||||
padding:4px;
|
||||
background-color:#4b6c8a;
|
||||
|
Loading…
x
Reference in New Issue
Block a user