Toast 通知

展示临时通知,支持语义类型区分消息性质。

使用提示

type 变体

namespace: "doc_toast_type_diff",
  layout: {
    "column:types": {
      "toast:info": {
        type: "info",
        title: "信息",
        description: "A new update is available."
      },
      "toast:success": {
        type: "success",
        title: "成功",
        description: "操作已完成。"
      },
      "toast:warning": {
        type: "warning",
        title: "警告",
        description: "继续前请复核。"
      },
      "toast:danger": {
        type: "danger",
        title: "错误",
        description: "出现错误。"
      }
    }
  }
}

API 参考