this.applyTable.tableData[11]._highlight = true //选中某一行的
this.$nextTick().then( //滚动条的滚动到具体位置
() => {
util.isEmpty(document.querySelector('.testClass .ivu-table-tbody .ivu-table-row-highlight')) ? '' : document.querySelector('.testClass .ivu-table-tbody .ivu-table-row-highlight').scrollIntoView({
behavior: "instant",
block: "end",
inline: "nearest"
});
}
)
behavior:定义过渡动画。"auto"
,"instant"
或"smooth"
。默认为"auto"
。
block:"start"
,"center"
,"end"
或"nearest"
。默认为"center"
inline "start"
,"center"
,"end"
或"nearest"
。默认为"nearest"