EAlert 提示
示例与代码
提示
属性
属性说明取值与默认值
centerbool是否采用居中布局或居中文字。
默认值
falseclosablebool是否显示关闭或删除按钮。
默认值
truecloseTextstring自定义关闭按钮文字。
默认值
""descriptionstring说明文字。
默认值
""descriptionComponentComponent自定义说明文字的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nulleffectstring组件的视觉主题。
light
dark
默认值
"light"enabledbool是否允许交互;false 时控件禁用。
默认值
trueheightreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitHeighticonComponentComponent自定义图标的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nulliconSourceint组件使用的图标。
EIcons.*
0(无图标)
默认值
0showIconbool是否显示语义状态图标。
默认值
truestyleTypeint语义配色风格。
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
默认值
EStyle.Infotitlestring标题文字。
默认值
""titleComponentComponent自定义标题的 Component 插槽;null 使用默认内容。 委托上下文见本页示例。
默认值
nullvisiblebool是否显示组件。
默认值
truewidthreal组件尺寸,单位为像素;可绑定父布局尺寸。
默认值
implicitWidthaccentColorcolor只读根据主题、当前状态及自定义配色确定的实际颜色。
默认值
由运行时计算darkEffectbool只读当前视觉 effect 是否为 dark。
默认值
由运行时计算信号
签名作用
closed()组件关闭后触发。