forked from x/icebergs
add some
This commit is contained in:
parent
1564bb6899
commit
158c738970
@ -3,6 +3,7 @@ package team
|
||||
import (
|
||||
ice "shylinux.com/x/icebergs"
|
||||
"shylinux.com/x/icebergs/base/web"
|
||||
kit "shylinux.com/x/toolkits"
|
||||
)
|
||||
|
||||
const TEAM = "team"
|
||||
@ -10,3 +11,5 @@ const TEAM = "team"
|
||||
var Index = &ice.Context{Name: TEAM, Help: "团队中心"}
|
||||
|
||||
func init() { web.Index.Register(Index, nil, TODO, EPIC, TASK, PLAN) }
|
||||
|
||||
func Prefix(arg ...string) string { return web.Prefix(TEAM, kit.Keys(arg)) }
|
||||
|
@ -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) },
|
||||
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)
|
||||
if (can.user.isMobile && can.isCmdMode()) {
|
||||
can.page.style(can, can.ui.nav, html.HEIGHT, "", html.WIDTH, can.page.width())
|
||||
|
Loading…
x
Reference in New Issue
Block a user