Element ui在table组件中使用slot来自定义表头,数据无法刷新

如题,这样使用data改变无法响应刷新

<template slot="header">
   {{data}}
</template>

需要改成下面这样

<template #header>
   {{data}}
</template>

原因不清楚。。。

评论

暂无评论