问题描述
点击展开,展开行,然后展开文字变成收起。点击其它展开,该行收起文字变成展开,点击的行展开文字变成收起。
问题出现的环境背景及自己尝试过哪些方法
无法变化
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
展开
{{scope.row.reportTestCase.testcaseName}}
{{scope.row.reportTestCase.testcaseLineName}}
《------------------代码分割线------------》
//展开更多
toogleExpand(row) {
const _this = this
let $table = _this.$refs.table;
_this.reportListInfo.map((item,index) => {
if (row.id != item.id) {
$table.toggleRowExpansion(item, false)
}
})
$table.toggleRowExpansion(row)
},
你期待的结果是什么?实际看到的错误信息又是什么?