forked from x/volcanos
opt golang
This commit is contained in:
parent
77d159cee2
commit
b41be33d56
3
frame.js
3
frame.js
@ -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, "<"), text = text.replace(/>/g, ">"), 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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user