1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-08-30 21:56:33 +08:00
parent 4a5256c19f
commit b1d5d09a80

View File

@ -218,7 +218,7 @@ func (m *Message) PushDownload(key string, arg ...string) *Message {
func (m *Message) EchoInfoButton(info string, arg ...Any) *Message { func (m *Message) EchoInfoButton(info string, arg ...Any) *Message {
kit.If(info == "", func() { info = Info.Template(m, m.ActionKey()+".html") }) kit.If(info == "", func() { info = Info.Template(m, m.ActionKey()+".html") })
kit.If(len(arg) == 0, func() { arg = append(arg, m.ActionKey()) }) kit.If(len(arg) == 0, func() { arg = append(arg, kit.Select(CREATE, m.ActionKey())) })
m.Display("/plugin/table.js", "style", "form") m.Display("/plugin/table.js", "style", "form")
return m.Echo(html.Format("div", info, "class", "info", "style", kit.JoinCSS())).EchoButton(arg...).Echo(NL).Action(arg...) return m.Echo(html.Format("div", info, "class", "info", "style", kit.JoinCSS())).EchoButton(arg...).Echo(NL).Action(arg...)
} }