264403ea by fanguang

fix

1 parent 66abfccf
......@@ -212,11 +212,12 @@ const toolBtnClick = (btn) => {
tableInfo.value.page.rows = tableData.value.length
saveDisabled.value = false
// 表格滚动到第一行
tableEl.value.setCurrentRow(rowInfo)
let table = tableEl.value.layout.table.refs
let $tableEl = tableEl.value.tableRef
$tableEl.setCurrentRow(rowInfo)
let table = $tableEl.layout.table.refs
let tableScrollEle =
table.bodyWrapper.firstElementChild.firstElementChild
tableScrollEle.scrollTop = tableScrollEle.scrollHeight
tableScrollEle.scrollTop = 0
}
}
......@@ -597,7 +598,6 @@ defineExpose({
<Table
ref="tableEl"
:tableInfo="tableInfo"
height="400px"
@tableBtnClick="tableBtnClick"
@tableSelectionChange="tableSelectionChange"
@tablePageChange="tablePageChange"
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!