elementui prevents the inner layer of el-checkbox from bubbling

The inner layer is wrapped with a div, and a click event is added to prevent bubbling

<el-checkbox v-for="item in settingInfo.hi_photo" :key="item.id" :label="item.id">
    <div @click.stop.prevent="() => {}">
        <el-button></el-button>
    </div>
</el-checkbox>

Guess you like

Origin blog.csdn.net/starstarstarl/article/details/129021674