<p dir="auto">升级到 v2.1.6 版本后，出下如下异常。<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7324648/21306352/763b57a6-c60b-11e6-93ac-fbf191e41d92.png"><img src="https://cloud.githubusercontent.com/assets/7324648/21306352/763b57a6-c60b-11e6-93ac-fbf191e41d92.png" alt="issue_vue_-update method" style="max-width: 100%;"></a></p>
<p dir="auto">发现是定义vue组件代码中有类似如下的代码：</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="exports default {
  data {
    return {}
  },
  methods: {
    _update () {
      // doSomethings()
    }
  }
}"><pre class="notranslate"><span class="pl-s1">exports</span> <span class="pl-s1">default</span> <span class="pl-kos">{</span>
  <span class="pl-s1">data</span> <span class="pl-kos">{</span>
    <span class="pl-k">return</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
  <span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-c1">methods</span>: <span class="pl-kos">{</span>
    <span class="pl-en">_update</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
      <span class="pl-c">// doSomethings()</span>
    <span class="pl-kos">}</span>
  <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">When passing props to a component, the following pattern is very common,</p>
<p dir="auto"><code class="notranslate">&lt;my-component :propA="propA" :propB="propB" /&gt;</code></p>
<p dir="auto">I am proposing that when the prop name is the same as the variable name being passed to it, that the following more concise syntax be applicable,</p>
<p dir="auto"><code class="notranslate">&lt;my-component :propA :propB :propC /&gt;</code></p>
<p dir="auto">This would mimic ES6's object property declaring shorthands (like here <a href="http://www.benmvp.com/learning-es6-enhanced-object-literals/" rel="nofollow">http://www.benmvp.com/learning-es6-enhanced-object-literals/</a>)</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<p dir="auto"><code class="notranslate">&lt;my-component :propA :propB :propC /&gt;</code></p>
<p dir="auto">instead of</p>
<p dir="auto"><code class="notranslate">&lt;my-component :propA="propA" :propB="propB" /&gt;</code></p>