Element UI el-table 資料更新了,但 slot header 表頭沒有重新渲染問題|Element UI 2.x|Vue 2.x|伊恩踩坑筆記
Nov 12, 2023
當在自定義 El-table 組件的表頭內容時,資料確定有更新,但表頭上的資料卻沒有更新
<el-table-column>
<template slot="header">
...
</template>
<template slot-scope="scope">
...
</template>
</el-table-column>
解決方式只要將 slot="header"
改成 #header
即可
<template #header>
...
</template>
ING Design 応設計
https://www.theingdesign.com/