1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-25 09:08:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-04-30 22:11:58 +08:00
parent e2babe49a6
commit 582519d290
2 changed files with 6 additions and 1 deletions

View File

@ -75,6 +75,9 @@ func Render(m *ice.Message, cmd string, args ...ice.Any) bool {
res := m.Cmdx(nfs.CAT, arg[0])
fieldset := "fieldset." + m.Option(ctx.INDEX)
m.W.Write([]byte(kit.ReplaceAll(res,
"$option", fieldset+">form.option",
"$action", fieldset+">div.action",
"$output", fieldset+">div.output",
"$project", fieldset+">div.output>div.project",
"$display", fieldset+">div.output>div.layout>div.display",
"$profile", fieldset+">div.output>div.layout>div.layout>div.profile",

View File

@ -74,7 +74,9 @@ func (m *Message) MergeLink(url string, arg ...Any) string {
kit.If(m.Option(DEBUG) == TRUE, func() { arg = append([]Any{DEBUG, TRUE}, arg...) })
return kit.MergeURL2(strings.Split(kit.Select(Info.Domain, m.Option(MSG_USERWEB)), QS)[0], url, arg...)
}
func (m *Message) FieldsSetDetail() { m.OptionFields(FIELDS_DETAIL) }
func (m *Message) FieldsSetDetail() {
m.OptionFields(FIELDS_DETAIL)
}
func (m *Message) FieldsIsDetail() bool {
ls := m.value(MSG_APPEND)
return len(ls) == 2 && ls[0] == KEY && ls[1] == VALUE || m.OptionFields() == FIELDS_DETAIL