For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/zh/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/zh/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/zh/components/result.md.
v0.0.57
  • 简体中文
  • Result

    反馈@rockshin/tao-ui

    展示操作结果,并提供继续或恢复操作。

    何时使用

    用于重要操作完成后或整页错误状态。短暂状态提示使用 message 或 notification。

    示例

    成功与下一步

    操作按钮应说明下一步行为;此例仅更新本地状态。

    390 × 640
    TSX

    信息、警告与错误

    根据操作结果选择状态,并通过文字说明问题。

    Import is queued
    Open the import details to see the next step.
    TSX

    HTTP 错误页面

    403、404、500 提供独立插画;标题和恢复建议由应用提供。

    404
    Page not found
    Check your access or return to your workspace.
    TSX

    错误详情

    children 用于展示可处理的详细原因,主标题保持简短。

    Two records need attention
    Fix the highlighted fields before retrying.
    • Row 12: enter a valid email address.
    • Row 28: choose a workspace owner.
    TSX

    自定义图标与语义样式

    使用 Semantic DOM 分别定制图标、标题和正文。

    Invitation prepared
    Review the recipient before sending.
    TSX

    API

    Result

    属性说明类型默认值