类型 AlertData
API 文档由 Go 源码生成,内容为英文。
type AlertData struct {
Variant AlertVariant
Icon ui.Icon
Title string
Description string
}AlertData is the content of an alert. Icon is optional (a zero Icon leaves the slot out, like an Alert without an svg child); when set, the text moves right by the icon column.