【急】cube-ui 搭配 webpack 5 普通编译 时,无法添加自定义校验(addRule失效,addMessage可以生效)
Author: shendiidCreated May 10, 2023Updated May 10, 2023
Version
undefined
Reproduction link
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:
Source: didi/cube-ui