title: How can i use computed property in v-for
body: <p>I penerate list for vue,second list in wrapper,left and right,</p>
  
  <pre><code>computed: {
  
      currentIndex () {
           for (let i = 0; i &lt; this.listHeight.length; i++) {
               let height1 = this.listHeight[i];
               console.log(height1);
               let height2 = this.listHeight[i + 1];
               if (!height1 || (this.scrollY &lt; height1 &amp;&amp; this.ScrollY &gt;=     height2)) {
               return i;
            }
      }
      return 0;
  }
  </code></pre>
  
  <p>this code have a question,height1 and height2 not movement,why is regular two variable inner loop.</p>