mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
583efd2168
commit
2a64c31512
2
frame.js
2
frame.js
@ -126,7 +126,7 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
|
|||||||
{name: "golang", help: "编程", index: "web.wiki.word", args: ["usr/golang-story/src/main.shy"]},
|
{name: "golang", help: "编程", index: "web.wiki.word", args: ["usr/golang-story/src/main.shy"]},
|
||||||
]},
|
]},
|
||||||
"redis": {name: "缓存 redis", action: [
|
"redis": {name: "缓存 redis", action: [
|
||||||
{name: "redis", help: "缓存", index: "web.wiki.word", args: ["usr/redis-story/src/main.shy"]},
|
{name: "redis", help: "缓存", index: "web.wiki.word", args: ["usr/redis-story/main.shy"]},
|
||||||
]},
|
]},
|
||||||
"mysql": {name: "数据 mysql", action: [
|
"mysql": {name: "数据 mysql", action: [
|
||||||
{name: "mysql", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/main.shy"]},
|
{name: "mysql", help: "数据存储", index: "web.wiki.word", args: ["usr/mysql-story/src/main.shy"]},
|
||||||
|
@ -38,7 +38,7 @@ Volcanos("base", {help: "数据类型",
|
|||||||
Ext: function(file) { return (file.split("/").pop().split(".").pop()).toLowerCase() },
|
Ext: function(file) { return (file.split("/").pop().split(".").pop()).toLowerCase() },
|
||||||
Path: function() { var res = ""
|
Path: function() { var res = ""
|
||||||
for (var i = 0; i < arguments.length; i++) {
|
for (var i = 0; i < arguments.length; i++) {
|
||||||
res += (arguments[i].indexOf("/") == 0 || res.indexOf("/")==res.length-1? "": "/") + arguments[i].trim()
|
res += (arguments[i][0]=="/" || res=="" || res[res.length-1]=="/"? "": "/") + arguments[i].trim()
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
},
|
},
|
||||||
|
@ -146,7 +146,7 @@ Volcanos("ondetail", {help: "用户交互", list: [],
|
|||||||
can.onlayout.figure(event, sub, sub._target)
|
can.onlayout.figure(event, sub, sub._target)
|
||||||
|
|
||||||
can.search(["Action.onexport.size"], function(msg, left, top, width, height) { left = left||0
|
can.search(["Action.onexport.size"], function(msg, left, top, width, height) { left = left||0
|
||||||
can.page.Modify(can, sub._target, {style: {position: "fixed", left: left}})
|
can.page.Modify(can, sub._target, {style: {position: "fixed", left: left, top: 120}})
|
||||||
can.page.Modify(can, sub._output, {style: {"max-width": width}})
|
can.page.Modify(can, sub._output, {style: {"max-width": width}})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user