<el-tree
v-loading="loading"
class="tree-container"
ref="tree"
:data="filteredData"
node-key="value"
:props="defaultProps"
:default-expanded-keys="defaultExpandedKeys"
>
<template v-slot="{ node, data }">
<div
@click="() => selectItem(node, data)"
>
<el-checkbox
@click.native.stop
v-model="node.checked"
@change="() => checkItem(node)"
></el-checkbox>
</div>
</template>
</el-tree>
解决上面的问题:
复选框增加:@click.native.stop