<template>
    <div class="add-comp-button">
        <h1>累加器按钮组件</h1>
        <button @click="childAddFun">Add</button>
    </div>
</template>
<script>
export default {
    methods: {
        childAddFun(){
            this.$emit('parentHandle',10)
        }
    },
}
</script>