一、效果

二、代码
<div class="tableWra"> <ticket-info-table check-type="checkQuery" :card-cancel-info="orderList"></ticket-info-table> </div>
data() { return { orderList: [], } }
setOrderList(true) { if (true) { // 默认选中第一行 this.orderList[0]._highlight = true; // eslint-disable-line // 默认展开第一行 this.orderList[0]._expanded = true; // eslint-disable-line } },
本文介绍了一个使用Vue实现的票务信息表格组件的配置方法,包括如何设置默认选中和展开行的功能。通过代码示例展示了data属性和setOrderList方法的具体应用。
5

被折叠的 条评论
为什么被折叠?



