1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shaoying 2020-06-28 23:40:09 +08:00
parent b2619cf90f
commit a20c85da04
3 changed files with 5 additions and 5 deletions

View File

@ -265,7 +265,7 @@ Volcanos("onappend", { _init: function(can, meta, list, cb, target, field) { met
} }
var args = can.base.Obj(meta.args, []); can.core.Next(can.base.Obj(meta.inputs, []), add) var args = can.base.Obj(meta.args, []); can.core.Next(can.base.Obj(meta.inputs, []), add)
var count = 0; function run(event, cmds, cb, silent) { return sub.run(event, cmds, function(msg) { var count = 0; function run(event, cmds, cb, silent) { return sub.run(event, cmds||[], function(msg) {
sub.Status("ncmd", sub._history.length+"/"+count++) sub.Status("ncmd", sub._history.length+"/"+count++)
if (silent) { typeof cb == "function" && cb(msg); return } if (silent) { typeof cb == "function" && cb(msg); return }
@ -278,8 +278,7 @@ Volcanos("onappend", { _init: function(can, meta, list, cb, target, field) { met
_option: option, _action: action, _output: output, _option: option, _action: action, _output: output,
}, Volcanos.meta.libs.concat(["/frame.js", display]), function(table) { table.Conf(sub.Conf()), table._msg = msg }, Volcanos.meta.libs.concat(["/frame.js", display]), function(table) { table.Conf(sub.Conf()), table._msg = msg
table.onimport && table.onimport._init && table.onimport._init(table, msg, msg.result||[], function() {}, output) table.onimport && table.onimport._init && table.onimport._init(table, msg, msg.result||[], function() {}, output)
table.run = function(event, cmds, cb, silent) { cmds = cmds || [] table.run = function(event, cmds, cb, silent) {
var last = sub._history[sub._history.length-1]; !can.core.Eq(last, cmds) && !silent && sub._history.push(cmds)
return run(event, cmds, cb, silent) return run(event, cmds, cb, silent)
} }

View File

@ -235,7 +235,7 @@ div.upload div.item {
fieldset.input { fieldset.input {
background-color:black; background-color:black;
position:absolute; position:fixed;
left:0; top:0; left:0; top:0;
} }
fieldset.input { fieldset.input {

View File

@ -91,6 +91,7 @@ fieldset.editor>div.output textarea.editor {
background-color:#00000000; color:#00000000; background-color:#00000000; color:#00000000;
caret-color:yellow; caret-color:yellow;
display:none; display:none;
min-width:480px;
} }
fieldset.editor>div.output textarea.editor.normal { fieldset.editor>div.output textarea.editor.normal {
caret-color:#00000000; caret-color:#00000000;
@ -107,6 +108,6 @@ fieldset.editor>div.output textarea.command {
border:solid 1px red; border:solid 1px red;
border-left:solid 3px green; border-left:solid 3px green;
z-index:200; z-index:200;
min-width:240px; min-width:480px;
} }