# Toast 消息提示

Options

参数 说明 类型 可选值 默认值
message 消息文字 String — —
type 主题 success / warning / info / error — —
enabledHTML 是否将 message 属性作为 HTML 片段处理 Boolean — false
duration 显示时间, 毫秒。设为 0 则不会自动关闭 Number — 3000
showClose 是否显示关闭按钮 Boolean — false
center 文字是否居中 Boolean — false
position toast 出现的位置 top / middle / bottom — top
beforeClose 关闭时的回调函数, 参数为被关闭的 message 实例 Function — —