ant-design/components/form/demo/custom-feedback-icons.md
Gunay 46341b115c
feat: custom feedback icons (#43894)
* custom feedback icons initial

(cherry picked from commit 22e43ad0357ea5294baf6eda659c900b1ab170f1)

* tests added and snaps updated

* Revert "tests added and snaps updated"

This reverts commit 13b57be30c.

* unittest and documentation changes

* feedback items could be turn off

* documentation fix

* move feedback icons object into the hasFeedback prop

* feedbackIcons added to the form element

* test: commit trigger

* fix: failed form test

* snaps updated

* Update components/form/index.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: Gunay <gladio@gmail.com>

* Update components/form/index.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: Gunay <gladio@gmail.com>

* Update components/form/index.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: Gunay <gladio@gmail.com>

* Update components/form/demo/custom-feedback-icons.md

Signed-off-by: afc163 <afc163@gmail.com>

* Update components/form/demo/custom-feedback-icons.md

Signed-off-by: afc163 <afc163@gmail.com>

---------

Signed-off-by: Gunay <gladio@gmail.com>
Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-09-04 20:36:45 +08:00

8 lines
334 B
Markdown

## zh-CN
自定义反馈图标可以通过 `hasFeedback={{ icons: ... }}``<Form FeedbackIcons={icons}>` 传递(`Form.Item` 必须具有 `hasFeedback` 属性)。
## en-US
Custom feedback icons can be passed by `hasFeedback={{ icons: ... }}` or `<Form feedbackIcons={icons}>` (`Form.Item` must has `hasFeedback` attribute).