背景:使用el-table表头自定义header
问题:表头自定义中的数据响应不及时
解决:添加slot-scope="scope"
<el-table-column
prop="name"
:show-overflow-tooltip="true"
label="名称">
<template slot="header" slot-scope="scope">
<name-select v-model="filterName" @clearName="clearName" @fetchData="fetchData"/>
</template>
<template slot-scope="{row}">
<span>{{row.name}}</span>
</template>
</el-table-column>