uView2.0 icon indicating copy to clipboard operation
uView2.0 copied to clipboard

u-form组件的errorType属性值设为‘toast’时,并不会弹出错误信息,且没有任何提示。

Open EquinoxFlowerJG opened this issue 1 year ago • 7 comments

版本

2.0.34

转载链接

http://xn--gzu78ezug722c/

重现步骤

u-form组件的errorType属性值设为‘toast’时,并不会弹出错误信息,且没有任何提示。是还需要进行额外的设置吗?

期望的结果是什么?

设为toast时,校验会弹出错误信息。

实际的结果是什么?

设为toast时,校验并不会弹出错误信息。且没有任何提示。


是还需要进行别的设置吗?还是要怎么弄?或者说这是一个BUG?

EquinoxFlowerJG avatar Sep 30 '22 07:09 EquinoxFlowerJG

上面的链接打不开,因为没有链接。

EquinoxFlowerJG avatar Sep 30 '22 07:09 EquinoxFlowerJG

+1

Cloud370 avatar Oct 04 '22 13:10 Cloud370

+1

BNDong avatar Oct 19 '22 02:10 BNDong

+1,求快解决啊,项目用到了

as0026 avatar Dec 22 '22 01:12 as0026

您好,来信已收到,我会尽快给您回复的。

EquinoxFlowerJG avatar Dec 22 '22 01:12 EquinoxFlowerJG

现在都没修复啊。。。

canye666 avatar Jul 15 '23 03:07 canye666

关于errorType为 toast时不会弹出错误的解决方法:

不要使用官方上提供的 key值对应对象的方式; rules: { 'userInfo.name': { type: 'string', required: true, message: '请填写姓名', trigger: ['blur', 'change'] } }

应使用key对应数组对象,亲测可用

rules: { name: [{ required: true, message: '请输入姓名', trigger: ['change', 'blur'], }] }

image

adengweb avatar Jan 02 '24 12:01 adengweb