Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

how to validated to an array #3

Open
shireen22 opened this issue Sep 6, 2016 · 1 comment
Open

how to validated to an array #3

shireen22 opened this issue Sep 6, 2016 · 1 comment

Comments

@shireen22
Copy link

shireen22 commented Sep 6, 2016

my code

@shireen22 shireen22 changed the title how to validated to a array how to validated to an array Sep 6, 2016
@PeakTai
Copy link
Owner

PeakTai commented Sep 7, 2016

Can't do it directly.

you can specify a child component.

<div v-for="el in array">
    <child-component :el.sync="el"></child-component>
</div>

And then,validate element in child component.

created:function(){
    this.$verify({
        el : {...}
    })
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants