📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
10.93k
stars
1.42k
forks
source link
[Bug Report] 【feedbackTextError】当有自定义validator + 默认的validator时提示文案出错 #4129
Open
KedAyAyA opened 2 months ago
Reproduction link
Steps to reproduce
当定义了自定义的validator 和 默认的 required之后,错误提示文案会出现 [errormessage1], , ,[errormessage2] 的非预期文案
What is expected?
错误提示文案应为 [errormessage1],[errormessage2]
What is actually happening?
源码上看,应该是这行 https://github.com/formilyjs/element-plus/blob/main/packages/components/src/form-item/index.ts#L524 中,已经为每个错误信息增加了分隔符
但是这行又join了 ', ' https://github.com/formilyjs/element-plus/blob/main/packages/components/src/form-item/index.ts#L537 ,就导致了 ['error1', ',' , 'error2'].join(', ') => error1, , , error2,辛苦看下是否是这个问题,是的话我提PR了
Package
@formily/element-plus@1.1.0.beta