Browse Source

类型编译修复

刘洋 2 years ago
parent
commit
04527b456d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/hooks/useTableCheck.ts

+ 1 - 1
src/hooks/useTableCheck.ts

@@ -90,7 +90,7 @@ const useTableCheck = <T extends TableDataType<InputDataType>>(data: T, auto = t
   const nextRow = () => {
     const index = (current.value?.index || 0) + 1
     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 (index % tableData.value.length == 0) {
         elTableRef?.value?.scrollTo({ left: 0, top: 0, behavior: 'smooth' })