标签: vue.js vuejs2 vue-component
<button-counter v-on:increment="incrementTotal"></button-counter> <button-counter v-on:increment="incrementTotal"></button-counter>
每次定义一个v-on:increment="incrementTotal"时,我都要重复button-counter,有什么办法可以避免它?
v-on:increment="incrementTotal"
button-counter