1
0
forked from x/volcanos

opt golang

This commit is contained in:
shaoying 2021-08-12 08:46:58 +08:00
parent 77d159cee2
commit b41be33d56
2 changed files with 3 additions and 2 deletions

View File

@ -385,7 +385,7 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
return sort && can.page.RangeTable(can, table, sort), table
},
board: function(can, text, target) {
board: function(can, text, target) { text && text.Result && (text = text.Result())
// text = text.replace(/</g, "&lt;"), text = text.replace(/>/g, "&gt;"), text = can.page.Color(text||"")
text = can.page.Color(text||"")
var code = text && can.page.Append(can, target||can._output, [{text: [text, html.DIV, html.CODE]}]).code
@ -448,6 +448,7 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
},
plugins: function(can, meta, cb, target) {
can.onappend.plugin(can, meta, function(sub) {
can.page.Modify(can, sub._target, {style: {margin: 0}})
sub.onmotion.hidden(sub, sub._legend)
sub.onmotion.hidden(sub, sub._option)
sub.onmotion.hidden(sub, sub._action)

View File

@ -135,7 +135,7 @@ Volcanos("onkeymap", {help: "键盘交互", list: ["command", "normal", "insert"
can.ui.command.value = ""
can.onmotion.clear(can, can.ui.output)
var ls = can.core.Split(line, " ", ",")
var ls = can.core.Split(line+" ", " ", ",")
var cb = can.onkeymap._engine[ls[0]]; if (can.base.isFunc(cb)) {
can.onmotion.hidden(can, can.ui.display)
can.onkeymap._normal(can)