alibaba/formily

[Bug Report] 【feedbackTextError】当有自定义validator + 默认的validator时提示文案出错

Opened this issue · 1 comments

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

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


这个库是没人维护了吗?