<ul id="example-1">
<li v-for="(value, key) in items">
<my-components :options="options"></my-components>
</li>
</ul>
According to the traversed data, different parameters are passed to the component. How to achieve this?
For example
When key==0, options=options_0
When key==1, options=options_1
迷茫2017-05-19 10:46:04
<ul id="example-1">
<li v-for="(value, key) in items">
<my-components :options="'options_'+key"></my-components>
</li>
</ul>