1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00

add layout.def

This commit is contained in:
shaoying 2019-12-28 18:07:55 +08:00
parent 93ca4afb46
commit 720e98a995
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ var can = Volcanos("chat", {
}), }),
}, Config.libs.concat(Config.list), function(can) { }, Config.libs.concat(Config.list), function(can) {
can[Config.main] = can.Page(can, Config.main, Config, function(chat) { can[Config.main] = can.Page(can, Config.main, Config, function(chat) {
chat.Login.Export(event||{}, can.user.Search(can, "layout")||"工作", "layout") chat.Login.Export(event||{}, can.user.Search(can, "layout")||Config.layout.def, "layout")
chat.Login.Import(event||{}, "", "login") chat.Login.Import(event||{}, "", "login")
}, document.body) }, document.body)
}) })

View File

@ -30,7 +30,7 @@ var Config = {context: "/chat/",
{group: "index", name: "Action", pos: "bottom"}, {group: "index", name: "Action", pos: "bottom"},
{group: "index", name: "Footer", pos: "foot", state: ["ntxt", "ncmd"], title: '<a href="mailto:shylinux@163.com">shylinux@163.com</a>'}, {group: "index", name: "Footer", pos: "foot", state: ["ntxt", "ncmd"], title: '<a href="mailto:shylinux@163.com">shylinux@163.com</a>'},
], layout: {list: ["工作", "办公", "聊天"], size: { ], layout: {def: "办公", list: ["工作", "办公", "聊天"], size: {
"工作": {head: 30, foot: 30, left: 0, right: 100, bottom: -1, center: 0, top: 0}, "工作": {head: 30, foot: 30, left: 0, right: 100, bottom: -1, center: 0, top: 0},
"办公": {head: 30, foot: 30, left: 100, right: 100, bottom: -1, center: 0, top: 0}, "办公": {head: 30, foot: 30, left: 100, right: 100, bottom: -1, center: 0, top: 0},
"聊天": {head: 30, foot: 30, left: 100, right: 100, bottom: 300, center: 40, top: -2}, "聊天": {head: 30, foot: 30, left: 100, right: 100, bottom: 300, center: 40, top: -2},