ant-design/components/result/index.zh-CN.md
thinkasany 6f2b330bbe
Some checks are pending
Publish Any Commit / build (push) Waiting to run
✅ test v6 / lint (push) Waiting to run
✅ test v6 / test-react-legacy (18, 1/2) (push) Waiting to run
✅ test v6 / test-react-legacy (18, 2/2) (push) Waiting to run
✅ test v6 / test-node (push) Waiting to run
✅ test v6 / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test v6 / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test v6 / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test v6 / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test v6 / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test v6 / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test v6 / test-coverage (push) Blocked by required conditions
✅ test v6 / build (push) Waiting to run
✅ test v6 / test lib/es module (es, 1/2) (push) Waiting to run
✅ test v6 / test lib/es module (es, 2/2) (push) Waiting to run
✅ test v6 / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test v6 / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
feat: ConfigProvider support classNames and styles for Result (#52171)
* feat: ConfigProvider support classNames and styles for Result

* update content to body

* update version to 6.0.0

* update body
2024-12-31 18:37:14 +08:00

1.5 KiB
Raw Blame History

group category title subtitle description cover coverDark
反馈 Components Result 结果 用于反馈一系列操作任务的处理结果。 https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*-e2IRroDJyEAAAAAAAAAAAAADrJ8AQ/original https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*-0kxQrbHx2kAAAAAAAAAAAAADrJ8AQ/original

何时使用

当有重要操作需告知用户处理结果,且反馈内容较为复杂时使用。

代码演示

Success Info Warning 403 404 500 Error 自定义 icon 组件 Token

API

通用属性参考:通用属性

参数 说明 类型 默认值
extra 操作区 ReactNode -
icon 自定义 icon ReactNode -
status 结果的状态,决定图标和颜色 success | error | info | warning | 404 | 403 | 500 info
subTitle subTitle 文字 ReactNode -
title title 文字 ReactNode -

Semantic DOM

主题变量Design Token