|
@@ -90,7 +90,7 @@ const useTableCheck = <T extends TableDataType<InputDataType>>(data: T, auto = t
|
|
const nextRow = () => {
|
|
const nextRow = () => {
|
|
const index = (current.value?.index || 0) + 1
|
|
const index = (current.value?.index || 0) + 1
|
|
elTableRef?.value?.setCurrentRow(tableData.value[index % tableData.value.length])
|
|
elTableRef?.value?.setCurrentRow(tableData.value[index % tableData.value.length])
|
|
- const tBodyDomWrap = elTableRef?.value?.$refs.bodyWrapper
|
|
|
|
|
|
+ const tBodyDomWrap: any = elTableRef?.value?.$refs.bodyWrapper
|
|
if (tBodyDomWrap) {
|
|
if (tBodyDomWrap) {
|
|
if (index % tableData.value.length == 0) {
|
|
if (index % tableData.value.length == 0) {
|
|
elTableRef?.value?.scrollTo({ left: 0, top: 0, behavior: 'smooth' })
|
|
elTableRef?.value?.scrollTo({ left: 0, top: 0, behavior: 'smooth' })
|