在el-table中的自定义表头使用下拉框无法选中,在change中看到数据已经更改但是视图 没改。
1.添加 @change="$forceUpdate()"
无效
2.this.$set
无效
3.在自定义表头时<template slot="header" slot-scope="{}">
添加 slot-scope="{}"
有效!
三个方法可以都试一下 我只有第三个有效
在el-table中的自定义表头使用下拉框无法选中,在change中看到数据已经更改但是视图 没改。
1.添加 @change="$forceUpdate()"
无效
2.this.$set
无效
3.在自定义表头时<template slot="header" slot-scope="{}">
添加 slot-scope="{}"
有效!
三个方法可以都试一下 我只有第三个有效