跳到主要内容

eo-alert

<eo-alert>
Alias: <presentational.general-alert>

告警提示

Examples​

Basic​

Playground

HasTitle​

Playground

Properties​

NameDescriptionTypeDefaultRequired
type

警告类型

AlertType
hasTitle

是否显示标题。开启后,可以使用 title 插槽

boolean
showIcon

是否显示提示图标

boolean
closable

是否显示关闭按钮

boolean
localStorageKey

以该值和页面 url 作为命名空间,决定是否显示该警告提示

string
disableUrlNamespace

关闭后仅以 localStorageKey 作为命名空间

boolean
textContent

文本内容

string

Slots​

NameDescription
(default)

内容区

title

标题

Type references​

AlertTypeenum​

"SUCCESS" = "success",
"INFO" = "info",
"WARNING" = "warning",
"ERROR" = "error",