title: How to get the element width and height immediately when it resizing in Vue.js
body: <p>How to get the element width and height immediately when it resizing in Vue.js?
  Here is my code pen illustration 
  please help me to change it till work,thanks!</p>
  
  <p><a href="https://codepen.io/weretyc/pen/zEvVZj" rel="nofollow noreferrer">Codepen</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let app = new Vue({
    el: '#app',
    data: {
      boxs: [{
          width: 100,
          height: 100
        },
        {
          width: 100,
          height: 100
        }
      ]
    }
  
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#app {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .resize {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    width: 100px;
    height: 100px;
    overflow: hidden;
    resize: both;
    background-color: #C3E2CE;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.4/vue.js"&gt;&lt;/script&gt;
  &lt;div id="app"&gt;
    &lt;div v-for="box,key in boxs" class="resize"&gt;
      {{ box.width }} x {{ box.height }}
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>