alibaba / formily

📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
https://formilyjs.org/
MIT License
10.94k stars 1.43k forks source link

[Bug Report] Formily antd v5 FormItem Warning border color is wrong #4025

Closed xiongpi closed 1 month ago

xiongpi commented 7 months ago

Reproduction link

Edit on CodeSandbox

Steps to reproduce

We add a reaction on FormItem component and find the warning color of the border is green, and the variable of the border color is " colorSuccess"

x-reactions={(field: Field) => { field.setSelfWarnings([ "This is a warning, while the border color is colorSuccess!" ]); }}

What is expected?

We want the warnning border color to be yellow and the variable to be "colorWarning"

What is actually happening?

the border color is green

Package

@formily/antd-v5@2.3.0