1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-25 17:18:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-06-08 08:01:15 +08:00
parent 4d8a21fd54
commit f30bdb9696
5 changed files with 10 additions and 6 deletions

View File

@ -338,6 +338,7 @@ func init() {
m.Cmd(SERVE, m.ActionKey(), arg)
return
}
m.Option(mdb.ICONS, "")
kit.If(ice.Info.NodeMain, func(cmd string) { RenderPodCmd(m, "", cmd) }, func() { RenderMain(m) })
}},
ice.INFO: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {

View File

@ -50,7 +50,6 @@ func init() {
m.Cmdy(web.SPACE, arg[0], arg[2], arg[3:])
} else {
m.Options(m.Cmd(web.SPACE, arg[0]).AppendSimple())
m.Options(mdb.ICONS, "")
web.RenderPodCmd(m, arg[0], arg[2], arg[3:])
}
}

View File

@ -1 +0,0 @@
title "ide"

View File

@ -15,8 +15,6 @@ func init() {
if len(arg[0]) == 0 || arg[0] == "" || arg[0] == chat.RIVER {
web.RenderMain(m)
} else {
if m.IsWeixinUA() {
}
web.RenderCmd(m, kit.Select(m.Option(ctx.INDEX), m.Option(ice.CMD)))
}
}},

View File

@ -10,7 +10,7 @@ const WXML = "wxml"
func init() {
Index.MergeCommands(ice.Commands{
WXML: {Actions: code.PlugAction(code.PLUG, kit.Dict(
WXML: {Actions: ice.MergeActions(code.PlugAction(code.PLUG, kit.Dict(
code.INCLUDE, code.HTML,
code.KEYWORD, kit.Dict(
"page", code.KEYWORD,
@ -40,6 +40,13 @@ func init() {
"bindinput", code.FUNCTION,
"bindchange", code.FUNCTION,
),
))},
)), ice.Actions{
code.TEMPLATE: {Hand: func(m *ice.Message, arg ...string) {
m.Echo(`
<import src="../../app.wxml"/>
<view class="output"></view>
`)
}},
})},
})
}