ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.1k stars 14.64k forks source link

validator message bug #18789

Open newbie78 opened 4 years ago

newbie78 commented 4 years ago

https://github.com/yiminghe/async-validator#messages

Reference

        login: [{
          required: true,
          message: () => this.$i18n.t('login is required'),
          trigger: ['blur', 'change'],
        }],

not worked. i'm got this result: image

tnx

Originally posted by @newbie78 in https://github.com/ElemeFE/element/issues/14951#issuecomment-583660886

newbie78 commented 4 years ago

can someone help me?

xuxucode commented 4 years ago

message function is available as of async-validator@^1.11.1

Yuliang-Lee commented 3 years ago

but in now(Element 1.13.2), it's still use async-validator@~1.8.1

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

AnzhiZhang commented 1 year ago

please upgrade async-validator for i18n message!!!