1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2021-12-15 11:14:25 +08:00
parent 1ef53c5610
commit 5a60718d64

View File

@ -56,10 +56,7 @@ func (b *Block) Data(m *ice.Message, meta interface{}) wiki.Chart {
return b
}
func (b *Block) Draw(m *ice.Message, x, y int) wiki.Chart {
float := 3
if strings.Contains(m.Option(ice.MSG_USERUA), "iPhone") {
float += 0
}
float := kit.Int(kit.Select("2", "7", strings.Contains(m.Option(ice.MSG_USERUA), "iPhone")))
if m.Option(HIDE_BLOCK) != ice.TRUE {
item := wiki.NewItem([]string{`<rect height="%d" width="%d" rx="4" ry="4" x="%d" y="%d"`}, b.GetHeight(), b.GetWidth(), x+b.MarginX/2, y+b.MarginY/2)
item.Push(`fill="%s"`, b.BackGround).Push(`%v`, b.RectData).Echo("/>").Dump(m)