1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shaoying 2022-10-08 07:09:56 +08:00
parent 46f561953c
commit 312f81ac4b
2 changed files with 2 additions and 3 deletions

View File

@ -322,7 +322,7 @@ Volcanos(chat.ONACTION, {help: "控件交互",
})
},
"编辑器": function(event, can) {
window.opencmd("cd ~/contexts; vim "+can.Option(nfs.PATH)+can.Option(nfs.FILE)+" +"+can.Option(nfs.LINE))
window.opencmd("cd ~/contexts; vim +"+can.Option(nfs.LINE)+" "+can.Option(nfs.PATH)+can.Option(nfs.FILE))
},
"浏览器": function(event, can) {
window.openurl(location.href)

View File

@ -67,8 +67,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
}, onclick: function(event) {
can.onmotion.focus(can, event.target)
}, _init: function(target) { zone._search = target
can.onmotion.delay(can, function() { can.page.styleWidth(can, target, target.parentNode.parentNode.parentNode.offsetWidth-32) })
// can.onappend.figure(can, {name: zone.name}, target)
can.onmotion.delay(can, function() { can.page.styleWidth(can, target, can.core.Value(target.parentNode.parentNode, "parentNode.offsetWidth")-32) })
}}], target, {})
}},
{view: html.LIST, _init: function(target) { can.ui[zone.name] = zone