Welcome to Qi-U Community for programmer and developer-Open, Learning and Share

Categories

0 votes
207 views
in Technique[技术] by (31.9m points)

如何动态渲染element-ui的表格展开行?

`

<el-table-column v-if="isShow" type="expand">
    <div>.....</div>
</el-table-column>

`
我想动态的切换 isShow ,可是当 isShow 从 true 切换为 false 时,里面的内容会自动的跑出来,求帮助。
即这个页面,true时显示,false 就不显示。image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (31.9m points)

判断当前下标 如果当前isshow为true 其它的全部isshow为false


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Qi-U Community for programmer and developer-Open, Learning and Share
...