在el-table中的自定義表頭使用下拉框無(wú)法選中,在change中看到數(shù)據(jù)已經(jīng)更改但是視圖 沒(méi)改。
1.添加 @change="$forceUpdate()" 無(wú)效
2.this.$set 無(wú)效
3.在自定義表頭時(shí)<template slot="header" slot-scope="{}"> 添加 slot-scope="{}" 有效!
三個(gè)方法可以都試一下 我只有第三個(gè)有效
在el-table中的自定義表頭使用下拉框無(wú)法選中,在change中看到數(shù)據(jù)已經(jīng)更改但是視圖 沒(méi)改。
1.添加 @change="$forceUpdate()" 無(wú)效
2.this.$set 無(wú)效
3.在自定義表頭時(shí)<template slot="header" slot-scope="{}"> 添加 slot-scope="{}" 有效!
三個(gè)方法可以都試一下 我只有第三個(gè)有效