Skip to content

【急】cube-ui 搭配 webpack 5 普通编译 时,无法添加自定义校验(addRule失效,addMessage可以生效) #822

Description

@shendiid

Version

undefined

Reproduction link

https://codesandbox.io/s/vue

Steps to reproduce

1.增加自定义校验
Validator.addRule('ipv4', (val) => {
return false;
});
Validator.addMessage('ipv4', () => {
return 'wrongIpAddress';
});

What is expected?

正常生效

What is actually happening?

不生效

Dependencies Version

vue:
better-scroll:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions