The form check about the logical relation of concatenation in element-ui

the specific UI is shown as follows:

clipboard.png

:

 


after tossing about for so long, it has finally come out. The main problem is: when the verification conditions are met, it is necessary to re-check the rationality of all forms


validator

    [
        { 1... },
        { 2... },
        {
            validator: function(rule, value, callback) {

                sum(this.data) === 100 ? callback() : callback(new Error("100%"));
            },
            trigger: 'blur'
        }
    ]
Menu