1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-04-15 12:25:16 +08:00
parent 1564bb6899
commit 158c738970
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package team
import ( import (
ice "shylinux.com/x/icebergs" ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/web" "shylinux.com/x/icebergs/base/web"
kit "shylinux.com/x/toolkits"
) )
const TEAM = "team" const TEAM = "team"
@ -10,3 +11,5 @@ const TEAM = "team"
var Index = &ice.Context{Name: TEAM, Help: "团队中心"} var Index = &ice.Context{Name: TEAM, Help: "团队中心"}
func init() { web.Index.Register(Index, nil, TODO, EPIC, TASK, PLAN) } func init() { web.Index.Register(Index, nil, TODO, EPIC, TASK, PLAN) }
func Prefix(arg ...string) string { return web.Prefix(TEAM, kit.Keys(arg)) }

View File

@ -53,7 +53,7 @@ Volcanos(chat.ONIMPORT, {
}, },
title: function(can, meta, target) { can.isCmdMode() && can.page.tagis(target, html.H1) && can.onexport && can.onexport.title(can, meta.text) }, title: function(can, meta, target) { can.isCmdMode() && can.page.tagis(target, html.H1) && can.onexport && can.onexport.title(can, meta.text) },
button: function(can, meta, target) { var item = can.base.Obj(meta.meta); target.onclick = function(event) { can.onaction.route(event, can, item.route) } }, button: function(can, meta, target) { var item = can.base.Obj(meta.meta); target.onclick = function(event) { can.onaction.route(event, can, item.route) } },
layout: function(can, height, width) { if (!can.ui.layout) { return } layout: function(can, height, width) { if (!can.ui.layout || !can.ui.main) { return }
can.ui.layout(height, width), can.ConfHeight(can.ui.main.offsetHeight), can.ConfWidth(can.ui.main.offsetWidth) can.ui.layout(height, width), can.ConfHeight(can.ui.main.offsetHeight), can.ConfWidth(can.ui.main.offsetWidth)
if (can.user.isMobile && can.isCmdMode()) { if (can.user.isMobile && can.isCmdMode()) {
can.page.style(can, can.ui.nav, html.HEIGHT, "", html.WIDTH, can.page.width()) can.page.style(can, can.ui.nav, html.HEIGHT, "", html.WIDTH, can.page.width())